Skip to content

feat: mainnet readiness guardrails (replay of 498ff1e)#1

Open
antfleet-ops wants to merge 1 commit into
mainfrom
bench/498ff1e-mainnet-guardrails
Open

feat: mainnet readiness guardrails (replay of 498ff1e)#1
antfleet-ops wants to merge 1 commit into
mainfrom
bench/498ff1e-mainnet-guardrails

Conversation

@antfleet-ops
Copy link
Copy Markdown

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.

- 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants