Clean up agent phases, invariants doc, and rename bots to timearena #323
Labels
No labels
agent:fix_bugfix
agent:fix_conflicts
agent:fix_security
agent:gap_analysis
agent:implement
agent:open_issues
agents
agent:security_audit
agent:verify
area
timecurve
arena
arena-v2
audit
block:feature_review
block:security
bug
contracts
design
devops
docs
documentation
enhancement
epic
feature
frontend
indexer
low priority
megaeth
operations
ops
performance
QA
qa checklist
referrals
removal
security
smart-contracts
tech-debt
testing
time-arena
timecurve
visual-qa
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
code/yieldomega#323
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
Gap analysis follow-up from #309.
Current codebase
Agent phases:
docs/agent-phases.mdPhase 14 still says "propose workflow" —docs/testing/ci.mdexists. Approved: remove stale Phase 14 prompt.docs/product/rabbit-treasury.md. Approved: cleanup retired phase references.Invariants doc:
docs/testing/invariants-and-business-logic.md~800 lines; no CI-vs-local matrix; staleDoubPresaleVesting/INV-INDEXER-112entries. Approved: cleanup.Bots naming drift:
bots/timearena/bots/timearena/src/timecurve_bot/timecurve-botinpyproject.tomlbots-timecurve-testin.github/workflows/unit-tests.ymlstart-local-anvil-stack.shimportstimecurve_bot.swarm_runnerApproved: rename to consistent
timearenanaming.Why needed
Approved housekeeping from gap analysis — reduces agent confusion and drift.
Constraints / guardrails
scripts/rename-timecurve-to-timearena.py,scripts/cleanup-timecurve-identifiers.pywhere applicable.INV-BOTS-245-TIMEARENAafter rename.Relevant files
docs/agent-phases.mddocs/testing/invariants-and-business-logic.mdbots/timearena/pyproject.toml,bots/timearena/src/timecurve_bot/.github/workflows/unit-tests.ymlscripts/start-local-anvil-stack.sh,scripts/anvil-export-bot-env.shdocs/testing/ci.mdRecommended direction
ci.md. Clean Phase 7–8 dead links.timecurve_bot→timearena_bot(ortimearena); update imports, CI job name, CLI entrypoint.Acceptance criteria
bots/timearena/.Test plan
cd bots/timearena && pytest.github/workflows/unit-tests.ymlbots job equivalent locallybash scripts/check-doc-anchors.shAttack / abuse test plan
Verification criteria
rg timecurve_botonly in migration/CHANGELOG unless intentional alias.pytestpasses inbots/timearena/.mentioned in issue #309
mentioned in commit
1beabde51dmentioned in merge request !467
mentioned in commit
0954d46b30mentioned in merge request !478
mentioned in commit
5b3bff3869mentioned in merge request !487
mentioned in merge request !493
mentioned in commit
ee36ffe698Verification — issue #323 (PASS)
Verified Clean up agent phases, invariants doc, and rename bots to timearena on
mainat verify time. No repo changes required; no MR opened.Acceptance criteria
docs/agent-phases.mdPhase 14 points todocs/testing/ci.md+testing/strategy.md; no "propose workflow" copy-paste prompt (rg 'propose workflow'→ empty)product/arena-v2.md#retired-surfaces+onchain/treasury-contracts.md(no missingrabbit-treasury.md); Phase 8 linksschemas/archive/+schemas/CHANGELOG.md;bash scripts/check-doc-anchors.sh→ OK (77 invariants + 13 arena-views anchors)docs/testing/invariants-and-business-logic.mdhas CI-vs-local matrix (§11);INV-BOTS-245-TIMEARENAnamestimearena_bot/timearena-bot/bots-timearena-test;DoubPresaleVestingonly in removal invariants (INV-REMOVAL-243,INV-INDEXER-319-REGISTRY-VESTING);indexer/address-registry.megaeth-mainnet.jsonhas no vesting entrybots/timearena/bots/timearena/src/timearena_bot/;pyproject.toml→timearena-botCLI;.github/workflows/unit-tests.ymljobbots-timearena-test;scripts/start-local-anvil-stack.shimportstimearena_bot.swarm_runnerTest plan
cd bots/timearena && python3 -m venv .venv && .venv/bin/pip install -e ".[dev]" && .venv/bin/pytest tests -v.github/workflows/unit-tests.ymlbots-timearena-testbash scripts/check-doc-anchors.shbash scripts/check-doc-retired-terms.shbash scripts/check-doc-timecurve-satellite.shVerification criteria
rg timecurve_botonly in migration/CHANGELOG unless intentional aliasbots/timearena/CHANGELOG.md(migration note) +docs/testing/invariants-and-business-logic.md(explicit legacy-alias sentence perINV-DOCS-284)pytestinbots/timearena/Closing as verified on
main.