fix: Kraiken.sol and Stake.sol absent from agent context across all runs (#829)
Inject Kraiken.sol (outstandingSupply, mint/burn mechanics) and Stake.sol (snatch, withdrawal, KRK exclusion from floor denominator) into the red-team agent prompt so agents can reason from actual source rather than guesses. - red-team.sh: read SOL_KRAIKEN and SOL_STAKE from onchain/src/ alongside the other six contracts already injected - red-team-program.md: add ### Kraiken.sol and ### Stake.sol sections in the Source Code reference block (after PriceOracle.sol) - AGENTS.md: document the full list of injected contracts in a new "Red-team Agent Context" section; both files are now listed as in-scope Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
682d55f00a
commit
13d5b40564
3 changed files with 24 additions and 1 deletions
|
|
@ -135,6 +135,16 @@ Do NOT attempt to deploy or modify contracts — these are for reference only.
|
|||
{{SOL_PRICE_ORACLE}}
|
||||
```
|
||||
|
||||
### Kraiken.sol
|
||||
```solidity
|
||||
{{SOL_KRAIKEN}}
|
||||
```
|
||||
|
||||
### Stake.sol
|
||||
```solidity
|
||||
{{SOL_STAKE}}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Cast command patterns
|
||||
|
|
|
|||
|
|
@ -400,6 +400,8 @@ SOL_OPTIMIZER=$(< "$ONCHAIN_SRC/Optimizer.sol")
|
|||
SOL_OPTIMIZERV3=$(< "$ONCHAIN_SRC/OptimizerV3.sol")
|
||||
SOL_VWAP=$(< "$ONCHAIN_SRC/VWAPTracker.sol")
|
||||
SOL_PRICE_ORACLE=$(< "$ONCHAIN_SRC/abstracts/PriceOracle.sol")
|
||||
SOL_KRAIKEN=$(< "$ONCHAIN_SRC/Kraiken.sol")
|
||||
SOL_STAKE=$(< "$ONCHAIN_SRC/Stake.sol")
|
||||
|
||||
# Build Previous Findings section from memory file
|
||||
MEMORY_SECTION=""
|
||||
|
|
@ -574,6 +576,8 @@ PROMPT=${PROMPT//\{\{SOL_OPTIMIZER\}\}/$SOL_OPTIMIZER}
|
|||
PROMPT=${PROMPT//\{\{SOL_OPTIMIZERV3\}\}/$SOL_OPTIMIZERV3}
|
||||
PROMPT=${PROMPT//\{\{SOL_VWAP\}\}/$SOL_VWAP}
|
||||
PROMPT=${PROMPT//\{\{SOL_PRICE_ORACLE\}\}/$SOL_PRICE_ORACLE}
|
||||
PROMPT=${PROMPT//\{\{SOL_KRAIKEN\}\}/$SOL_KRAIKEN}
|
||||
PROMPT=${PROMPT//\{\{SOL_STAKE\}\}/$SOL_STAKE}
|
||||
PROMPT=${PROMPT//\{\{CROSS_CANDIDATE_SECTION\}\}/$CROSS_CANDIDATE_SECTION}
|
||||
PROMPT=${PROMPT//\{\{MEMORY_SECTION\}\}/$MEMORY_SECTION}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue