mirror of
https://github.com/tiennm99/rplace.git
synced 2026-10-11 03:13:48 +00:00
All P1 atomicity/identity/WS fixes shipped (commits3c1263a,42d1ca1,4f02d30); docs scrubbed (9f50237); DO surface tests landed (5765055). 156 tests pass across 12 files in ~3.3s.
6.1 KiB
6.1 KiB
phase, title, status, priority, effort, dependencies
| phase | title | status | priority | effort | dependencies |
|---|---|---|---|---|---|
| 5 | Docs cleanup & legacy plan archival | completed | P2 | 30m |
Phase 5: Docs Cleanup & Legacy Plan Archival
Overview
Strike stale Upstash references from README.md and .env.example. Verify the docs/ directory matches current code (the docs-manager and code-reviewer reports disagree — verify file by file). Mark the migration plan as completed after the 7-day rollback observation window.
Context Links
- Reports:
plans/reports/docs-manager-260510-0211-rplace-docs-drift.md(primary) - Reports:
plans/reports/code-reviewer-260510-0211-rplace-do-migration.md(C1 — claims docs/*.md still mention Upstash; conflicts with docs-manager finding)
Key Insights
- Docs-manager said
docs/system-architecture.md,deployment-guide.md,code-standards.mdare accurate. Code-reviewer C1 said they still reference Upstash. Verify directly before deciding. - Migration endpoint already removed from worker; documenting it as "transitional" misleads onboarding.
.env.exampleplaceholders for deleted services cause new-developer confusion.
Requirements
Functional
- README's Project Structure block lists only files that exist in
src/. - README does not advertise
/admin/migrate-from-upstashas transitional. .env.exampleeither deleted or replaced with a comment explaining no external secrets.- All
docs/*.mdfiles verified accurate; any Upstash references that describe current state (not history) removed. plans/260509-2309-canvas-on-do-storage/plan.mdfrontmatterstatus: completed(after 2026-05-17, the rollback window cutoff).
Non-functional
- Edits target only the lines in question; no unrelated reformatting.
- Git history preserves clear "docs:" commit type per
.claudeconvention (dropdocs:from.claude/paths only — not relevant here).
Architecture
N/A — text edits.
Related Code Files
Modify
README.md— Project Structure tree (lines 79–111), API section (lines 146–151).env.example— contentdocs/system-architecture.md— only if verification finds Upstash-as-current textdocs/deployment-guide.md— only if verification finds Upstash-as-current textdocs/code-standards.md— only if verification finds Upstash-as-current textplans/260509-2309-canvas-on-do-storage/plan.md— frontmatterstatusfield (after rollback window)
Create — none
Delete — possibly .env.example (Option A in docs-manager report)
Implementation Steps
-
Verify docs/ accuracy
grep -ni 'upstash\|redis\|@upstash' docs/*.md- For each match: read context, classify as (a) historical mention OK, (b) presented as current — needs edit.
- Decide whether to keep migration narrative as historical or scrub entirely.
-
README.md Project Structure (docs-manager STALE finding 1)
- Replace lines 79–111 with the corrected tree from docs-manager report (no
src/admin/, no legacy lib files; include image pipeline files). - Use the actual
find src -type foutput as ground truth.
- Replace lines 79–111 with the corrected tree from docs-manager report (no
-
README.md API Section (docs-manager MISLEADING finding 2)
- Delete the
### POST /admin/migrate-from-upstash (transitional)block (lines 146–151). - Verify no other doc references this section.
- Delete the
-
.env.example (docs-manager STALE finding 3)
- Choose Option B (keep as documentation): replace contents with a single comment block:
# No external secrets required. # Canvas + cooldown state live inside CanvasRoom Durable Object (SQLite). # All configuration is in src/lib/constants.js. - Rationale: discoverability. New devs find
.env.exampleand learn there's nothing to set.
- Choose Option B (keep as documentation): replace contents with a single comment block:
-
docs/ targeted edits (only if step 1 found drift)
- Edit each flagged section. Keep migration mentioned in
deployment-guide.md"Optional One-Shot Migration from Upstash" as historical — do not delete the narrative if it's already framed as past.
- Edit each flagged section. Keep migration mentioned in
-
Migration plan archival (docs-manager finding 4)
- Today is 2026-05-10; rollback window per migration-plan ends ~2026-05-17.
- Add a TODO note in this phase saying "after 2026-05-17, change
plans/260509-2309-canvas-on-do-storage/plan.mdfrontmatterstatustocompleted". - For now (before 2026-05-17), leave
status: in-progressBUT adddeployment.cleanupAt: 2026-05-10(already present per existing frontmatter) and verify it's accurate.
-
Sanity sweep
grep -rni 'upstash\|@upstash\|redis-client\|rate-limiter\.js\|migrate-from-upstash' README.md docs/ .env.example src/— should return only intentional historical refs.npm run build— must still pass (sanity check that a doc edit didn't break a<script src>reference or similar).
Todo List
- Run grep sweep on
docs/for upstash/redis terms - Classify each match (historical vs current-as-of-today)
- Edit README.md Project Structure tree
- Delete README.md
/admin/migrate-from-upstashAPI section - Rewrite
.env.examplewith documentation comment - Apply targeted edits in
docs/*.mdif step 1 found current-as-of-today refs - Add reminder note (this phase) to flip migration plan status to
completedafter 2026-05-17 - Final grep sweep — no stale refs remain
npm run buildpasses
Success Criteria
find src -type fmatches the README Project Structure tree- No
/admin/migrate-from-upstashreference inREADME.md .env.exampleis documentation-only or absentdocs/*.mdaccurately describes current code (no current-tense Upstash refs)- Final grep sweep shows only intentional historical mentions
Risk Assessment
- Risk: Editing docs accidentally drops useful historical context for future operators. Mitigation: Keep "Optional One-Shot Migration from Upstash" sections as past-tense narrative; only scrub anything that says "use this NOW".
- Risk: Premature archival of migration plan loses rollback information.
Mitigation: Wait until 2026-05-17 (7-day window). Frontmatter already records
migratedAtandpostCleanupVersionId— those stay regardless ofstatus.
Security Considerations
N/A — docs only.
Next Steps
None — this is the cleanup tail.