feat: mainnet readiness guardrails (replay of 498ff1e)#1
Open
antfleet-ops wants to merge 1 commit into
Open
Conversation
- agent/src/brain.ts: OperatingMode now carries chain_actions_allowed
· On X Layer mainnet (chain 196), AI is bounded to register_strategy,
retire, scoring_change, no_action — no new Solidity to mainnet
· On testnet (1952), all action types permitted for experimentation
- agent/src/approver.ts: applies the chain-scoped allowlist before any other guardrail
- brain/wiki/agentfloat-operating-mode.md: documents the new field
- contracts/script/XLayerMainnet.sol: canonical mainnet addresses
· Uniswap v4 PoolManager + Aave V3 Pool + USDT/aUSDT
- contracts/script/DeployMainnet.s.sol: one-shot mainnet deploy
· Attaches to canonical PoolManager (no redeploy)
· Uses real USDT, registers IdleStrategy (active) + AaveStrategy (shadow)
· Expected cost ~0.0008 OKB (~$0.20)
- contracts/script/MineHookSalt.s.sol: CREATE2 salt miner for hook permission bits
- .env.example: mainnet variables documented
All 12 tests still pass.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Benchmark replay
This PR replays upstream commit
498ff1e("feat: mainnet readiness — chain-scoped guardrails + DeployMainnet script") as a diff against its parent.Scope: agent operating-mode guardrails, approver chain action allowlist, X Layer mainnet constants, deploy scripts, Flap vault surfaces, and Aave strategy wiring.
Not for merge. Purpose: AntFleet two-model PR review evaluation.
See BENCHMARK.md for the policy.