docs: post-convoy cleanup for fix-auth-bypass #12
No reviewers
Labels
No labels
agent-context-drift
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: rstillwell/deckhearth#12
Loading…
Reference in a new issue
No description provided.
Delete branch "docs/fix-auth-bypass-cleanup"
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?
Summary
Closes out the
fix-auth-bypassconvoy (PRs #6, #7, #8, #9, #10, #11, merged through1629afb) on the docs side. Docs only — no code touched.Refreshes guidance to reflect what shipped, marks resolved AGENTS.md gotchas + ship-readiness P0s, restores the convoy's planning artifacts (architect plan + 5 briefs) that were authored on
convoy/fix-auth-bypassbut never landed onmain, and records the mid-flight env-var rename (UPSTASH_REDIS_REST_*→KV_REST_API_*).What changed (file-by-file)
AGENTS.md— §1 auth bullet upgraded; §3 conventions point atlib/auth-secret.js+lib/rate-limit.js; §4 gotchas #2/#3/#5 → "Resolved" notes (kept numbered, not renumbered, to preserve cross-references); new #12 documentsKV_REST_API_*env-var convention; §5 setup adds rate-limit env vars; §6 testing rewritten for Vitest..cursor/rules/auth-and-permissions.mdc— canonical-surface table gainslib/auth-secret.js+lib/rate-limit.js; token model now 24h (was 7d) with fail-loud explanation; server-side patterns lead with thenull → 401contract..cursor/rules/api-routes.mdc— "CRITICAL — known bug" callout removed (resolved by Brief 2); new "Rate limiting" section with verbatim shape; "Dev/test endpoints" → "Removed" historical note (so future agents searching fortest-dbunderstand why it's gone)..convoys/fix-auth-bypass.md— restored fromconvoy/fix-auth-bypassbranch (was never merged to main), frontmatter →status: shipped, new Convoy outcome section: briefs + merge commits, resolved gotchas, R1–R12 risk walk, env-var-rename deviation record, queued follow-up convoys (expand-auth-tests,cors-tighten,drop-public-setup,fix-layout-default-user,single-sql-client,migration-tool,dual-is-public), lessons learned..convoys/fix-auth-bypass/brief-{1,2,3,5}-*.md— restored verbatim from convoy branch (audit-trail completeness)..convoys/fix-auth-bypass/brief-4-tighten-auth-surface.md— restored + updated:UPSTASH_REDIS_REST_*→KV_REST_API_*across init rules / smoke / pre-deploy checklist; new "Post-merge addendum" explaining the rename + the parent-agent interrupt approval..convoys/ship-readiness.md— P0 #1, #2, #4 marked RESOLVED with merge-commit citations; P0 #5 (CORS) and #6 (rate limit) marked PARTIAL with deferral pointers; each item gains an "As-shipped" line.README.md— Next.js 15 → 16, TypeScript claim corrected to JS-with-devDep, auth + rate-limit + testing bullets updated, env-var template extended, deleted dev-endpoints note added. Default admin section left alone — that'sdrop-public-setup's territory.Renumbering map
No renumbering. Gotchas #2/#3/#5 converted to Resolved notes in their original slots. New #12 added. This preserves all existing cross-references in
.cursor/rules/**,.cursor/skills/**, and.convoys/**.Test plan
git diff --statconfirms scope: 11 docs files, no code, no workflow, nopackage.json, novitest.config.jsnpm run lint— 128/81/47 baseline preservedJWT_SECRET=test-dummy npm run build— exit 0npm run test:run— 16/16 vitest tests pass (Briefs 1/2/4 regression locks all green)Items flagged but intentionally NOT changed
pages/api/auth/verify.jsstill shipsAccess-Control-Allow-Origin: '*'+ OPTIONS preflight. Documented in convoy outcome + ship-readiness P0 #5 PARTIAL note. Belongs to the queuedcors-tightenconvoy.README.md§ "Default Admin Account" still publishesadmin@tcgvault.com/admin123. Gotcha #4 / P0 #3 —drop-public-setupconvoy.README.md§ "📁 Project Structure" is stale (mentionslib/database.jsas the lone lib entry). Worth a small follow-up doc PR; out of scope here.CHANGELOG.mdexists. Ship-readiness flags this as its own scope ("Adopt Keep-a-Changelog format. Backfill[0.1.0] — initial private alpha").fix-auth-bypassis a natural first entry under### Securityonce that file exists.convoy/fix-auth-bypass. This PR restores them. For future convoys: either include planning files in the umbrella merge or have the doc-writer always restore them at close-out.After this merges
The
fix-auth-bypassconvoy is officially closed. Follow-up convoys queued (see.convoys/fix-auth-bypass.md § Convoy outcomefor the full list).🤖 Pipeline metadata: convoy=fix-auth-bypass, role=role-doc-writer, audit=none (docs-only)
Made with Cursor
The latest updates on your projects. Learn more about Vercel for GitHub.
Pipeline Health
Build + CI gates
Build runs on Vercel; this CI runs lint and schema-map drift only (no duplicate build).
Role reports
See individual comments above for details. This rollup updates automatically.