docs/execution/briefs/implement-plan-10.md
Read approved plan 10 from local planning checkout only when HEAD equals
a2557b2ad40e06e1e63eb655f286e6a78fe6bf0d; otherwise use
git show a2557b2ad40e06e1e63eb655f286e6a78fe6bf0d:plans/10-legacy-link-routing.md. Read current AGENTS.md, RTK,
issue/domain/DB migration guidance, ADRs, and applicable brainstorming/TDD skills. Approved prospective direction and routine
limits bind; do not ask them again. Run root Intent inventory and load matching local skill before edits. Do not spawn
subagents, touch ledger, mutate issues, merge, push, or create PR.
Start clean from refreshed origin/main, rename branch codex/issue-2836-retired-link-notices, revalidate issue 2836/open
PRs/current source, and run exact drift. Historical cause remains unknown: reference issue without closing keyword. Scope is
future slug changes under unchanged current username, 90 days, newest 50 per resume, aggregate owner-only attempts, safe 404;
no redirects, email/push, backfill, username history, visitor identity, or historical recovery.
Strict TDD, one coherent migration/API/UI/docs/E2E unit:
resume_retired_link table: generated ID, cascading owner/resume FKs, retired username/slug/timestamp,
aggregate attempt count and nullable last attempt. Unique username+slug, resume+retired index. No IP, UA, email, content.
Generate one migration via repository workflow against disposable PostgreSQL only; review SQL/snapshot for no drops/rewrites.public-sharing.spec.ts, not unrelated dashboard resume-views.spec.ts.Use .env.retired-links-test.local only if it is clearly disposable; never production DB. Run RED/GREEN DB/API/web tests,
migration generate/apply fresh and populated upgrade, DB/API/web typechecks, translation extraction, boundaries, build,
focused E2E plus public-sharing, narrow non-writing Biome, and diff/migration/scope review. Disclose/inspect write-capable
pnpm check. Stop on unreliable transaction attribution, uniqueness drift, migration uncertainty, or privacy leak. Commit
locally; no push/PR before independent review.
Write .orchestration/plan-10-implementation.md: live/drift state, exact migration/base, facts vs uncertainty, RED/GREEN,
commit/files, tests/results, skipped DB/E2E gates, privacy/transaction risks, partial issue coverage, PR not created. Final
response at most ten lines.