Docs: trim remaining TimeCurve/FeeRouter mentions in 30 satellite files
Summary
Follow-up to #274 (closed) (closed). P0 operator/agent paths are clean and check-doc-retired-terms.sh passes, but 30 files under docs/ still contain TimeCurve or FeeRouter tokens (55 mentions total as of 4230ab7). Most are labeled retired cross-links or negative-test invariant rows — not active operator runbooks — but they still add noise for QA, contributors, and third-party agents.
Goal: Reduce remaining TimeCurve|FeeRouter surface in docs/ to the minimum needed for historical traceability, without reintroducing v1 operator instructions or duplicating arena-v2.md.
Parent: #274 (closed) · Epic: #238 (closed) · Policy: #263 (closed).
Files to update (30)
Baseline inventory (rg -l 'TimeCurve|FeeRouter' docs/ on main):
Out of scope: contracts/ (TimeCurve.sol, FeeRouter.sol, fork tests), frontend/e2e/ redirect tests, code comments, git history.
Instructions for the agent
-
Read guardrails first:
.cursor/skills/yieldomega-guardrails/SKILL.md·docs/agent-phases.md· closed #274 (closed) close comment. -
Use a git worktree (e.g.
issue/274-residual-docs) — do not work directly on a dirtymain. -
Inventory before edit:
rg -n 'TimeCurve|FeeRouter' docs/ | sort rg -c 'TimeCurve|FeeRouter' docs/ | sort -t: -k2 -nrClassify each hit: delete, rephrase (drop token, keep meaning), or keep (invariant ID / anchor must stay).
-
Edit policy (same as #263 (closed) / #274 (closed)):
- Delete duplicate v1 runbook prose; do not create
docs/testing/archive/stubs. - Rephrase “retired v1 launchpad / five-sink CL8Y model” instead of repeating
TimeCurve/FeeRoutertokens when the token adds no test value. - Preserve Arena v2 cross-links:
TimeArena,GET /v1/arena/*,VITE_TIME_ARENA_ADDRESS, play skillsskills/README.md. - Preserve invariant anchor IDs (
#timearena-v2-gitlab-260,#satellite-docs-gitlab-274, etc.) — update prose around them, do not rename anchors without fixingcheck-doc-anchors.sh. - Do not reintroduce
VITE_FEE_ROUTER_*,idx_timecurve_*, or/timecurveas active QA paths.
- Delete duplicate v1 runbook prose; do not create
-
Optional hardening: extend
scripts/check-doc-retired-terms.shor add a warn-only count gate in CI if totaldocs/mention count regresses above baseline — only if it does not false-positive on intentional invariant rows. -
Verification loop: verify → fix → reset infra (if touching scripts) → repeat. Docs-only: no infra reset required unless running
e2e-anvil.sh. -
Commit / merge: single focused commit; merge to
main; comment on this issue with before/after counts and checklist results.
Acceptance criteria
- All 30 files in the table above were reviewed; each has either zero
TimeCurve|FeeRoutertokens or a ≤1-line Retired label explaining why the token remains (invariant row IDs only). -
rg 'TimeCurve|FeeRouter' docs/mention count ≤ 25 (down from 55; ~55% further reduction). -
rg -l 'TimeCurve|FeeRouter' docs/file count ≤ 15 (down from 30). - P0 paths still clean:
bash scripts/check-doc-retired-terms.shpasses (must not regress #274 (closed)). -
bash scripts/check-doc-anchors.shpasses — no brokeninvariants-and-business-logic.md#…links. - No operator-facing doc presents v1 five-sink routing or sale-end lifecycle as current behavior.
-
docs/testing/strategy.mdand.cursor/skills/yieldomega-guardrails/SKILL.mdcross-link this issue if counts/gates change. - Docs-only diff —
indexer cargo test,frontend npm test, andbash scripts/e2e-anvil.shunchanged (regression smoke).
Verification checklist
| Step | Command / action | Expected |
|---|---|---|
| Baseline delta | rg -c 'TimeCurve|FeeRouter' docs/ | wc -l and total mention count |
≤ 15 files, ≤ 25 mentions |
| P0 gate | bash scripts/check-doc-retired-terms.sh |
Exit 0 |
| Anchor gate | bash scripts/check-doc-anchors.sh |
Exit 0, no new broken anchors |
| Operator paths | rg 'VITE_FEE_ROUTER|FeeRouter\.distributeFees|TimeCurve\.endSale|redeemCharms|idx_timecurve' docs/qa/ docs/testing/qa-local-full-stack.md docs/agent-phases.md docs/agent-implementation-phases.md |
Zero matches |
| QA onboarding | Read docs/qa/QA-onboarding-gitlab-issue-body.md |
/arena, bots/timearena, no FeeRouter env gate |
| Agent smoke | Ask Cursor agent with guardrails: “how do I run local QA?” | Cites /arena, not TimeCurve page |
| Invariants | Spot-check INV-DOCS-274-* rows still accurate |
Manual |
| Regression | cd indexer && cargo test; cd frontend && npm test; bash scripts/e2e-anvil.sh |
All green |
| Skills | rg 'play-timecurve' skills/ |
Zero (no resurrection) |
Related
- Closed: #274 (closed) — satellite doc cleanup (P0 paths)
- #263 (closed) — invariant bulk deletion
- #243 (closed), #244 (closed) — retired stacks