docs: full repository audit 2026-09-02 (audit only, nothing acted on) - #2573
Conversation
Adds docs/audit/full-repository-audit-2026-09-02.md: 25 finder lanes over every tracked path (including the closed-off Ward Flow, Care Plan, Caring Contacts, developer hub, mockup corpus and dormant Clinical Ask surfaces), every finding independently verified, machine evidence from the offline gate sweep, corroborated ledger debts, stale-documentation inventory, never-touch list and fix order. Registers the report in docs/README.md and regenerates the repo-awareness snapshot. No code, migration, script, workflow, gate or ledger table changes. RAG impact: no retrieval behaviour change — no protected path touched. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FSPY4VSqg7WVukCvmHQP9t
Eleven one-line documentation corrections, each CONFIRMED by an independent skeptic and re-checked against the code (listed with before/after text in the audit report, section 11.1): the app-mode count (16, not 15), the removed Ward Flow Tools-catalogue entry, the bed-release fixture count, the scripts index coverage claim and the retired merge driver, the tenancy review path, the interaction-coverage figure, two supersession banners on stale start-here documents, and two machine-local links in docs/performance.md. Documentation only. No code, ledger, generated file, or gate-parsed AGENTS.md section is touched. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FSPY4VSqg7WVukCvmHQP9t
…t regenerated Interim assembly of docs/audit/full-repository-audit-2026-09-02.md after the completeness-critic round (26 lanes, 173 surviving findings) and the regenerated data/repo-awareness-snapshot.json that the new document forces. The Stage-5 adversarial review section is still a placeholder; the final assembly follows. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FSPY4VSqg7WVukCvmHQP9t
Appends the Stage-5 review (red team, blue team, verification-router) as section 15 of docs/audit/full-repository-audit-2026-09-02.md, merges the ten same-defect pairs it found across lanes (173 entries -> 162 distinct findings), applies its corrections to the orchestrator-written sections in place, and places the remaining corrections as blockquotes under the affected findings. Regenerates data/repo-awareness-snapshot.json for the final document. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FSPY4VSqg7WVukCvmHQP9t
Immutable review record for claude/full-repo-audit-27fccs at 4a05322 via npm run ledger:append, plus the snapshot regeneration that record forces. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FSPY4VSqg7WVukCvmHQP9t
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Team Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
Resolves the two conflicts the base advance created: data/repo-awareness-snapshot.json is regenerated from the merged tree, and docs/care-plan/CLAUDE-START-HERE.md keeps the banner PR #2528 landed on main (the report's section 11.1 records the supersession). Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FSPY4VSqg7WVukCvmHQP9t
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_ee85db27-6ac6-438a-8e3c-5688b2237b58) |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
PR #2573 added a review record, staling the generated index. Regenerated with scripts/generate-branch-review-index.mjs. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Cq952TVk67XZzJnjiKt5pU
Summary
docs/audit/full-repository-audit-2026-09-02.md: a full repository audit covering every tracked path, including the closed-off and gated sub-projects (Ward Flow, Care Plan, Caring Contacts live workspace and mockup, developer hub, the mockup corpus, dormant Clinical Ask, Therapy Compass). Method: 25 finder lanes with fixed scope and probes, every finding independently verified by a skeptic (one skeptic per lane group after the three-per-finding design hit the session usage limit — stated plainly in §3 of the report), dedup, one completeness-critic round (its findings verified the same way), and a Stage-5 adversarial review (red team, blue team, verification-router — one reviewer wearing three lenses, stated in §3) appended verbatim as §15. That review raised 37 corrections: its ten same-defect merges (173 entries → 162 distinct findings) and its corrections to orchestrator-written text were applied in place; its corrections to a finding's own text stand as blockquotes under the finding with the skeptic's grade unchanged.npm audit(one high: browserslist, fix available), Semgrep 1.168.0 with the open-source rule repository (the proxy blocks the registry packs),check:stale-docsandcheck:dead-code-candidateon full history.docs/README.md; regeneratedata/repo-awareness-snapshot.json(its documentation list includesdocs/audit/*and the review records).npm run ledger:append(never by hand), and the snapshot regeneration that record forces.Audit only. No code, migration, script, workflow, gate, test, ledger table or inbox request is changed by this PR; the only review record added is this branch's own
ledger:appendentry. Nothing undersrc/,supabase/,worker/,scripts/or.github/is touched. Findings that deserve a ledger row are listed in §16 of the report for the owner to triage; none was filed, by the owner's decision.RAG impact: no retrieval behaviour change — no file under
src/lib/rag/, no retrieval RPC, ranking surface, golden fixture or eval harness file is touched; the RAG lane read those files and wrote about them, nothing more.Verification
npm run verify:pr-local— heavy plan, 20 steps, run on the final content commit4a05322: closing summaryfailed: (none)/not reached: (none);Test Files 951 passed (951)/Tests 12230 passed | 2 skipped (12232);format:changedinside the run:All matched files use Prettier code style!npm run format:check— repository-wide on the final tree:All matched files use Prettier code style!npm run docs:check-links—docs link check passed: 5433 repo path references resolve.npm run check:repo-awareness-snapshot—[repo-awareness] in step with data/repo-awareness-snapshot.json (204 pages, 583 documents, 2665 reviews)npm run check:branch-review-ledgerandnpm run check:ledger-write-disciplineafter the ledger record —Branch review ledger guard passed: 880 live table records + 1206 archived + 580 immutable …/Ledger write discipline passed for d1e4ae742945..HEAD.Gate selection, for the record: this branch is not docs-only.
data/repo-awareness-snapshot.jsonis a route-payload input for the scope classifier, soverify:pr-localchose the heavy plan (20 steps including lint, typecheck, the full unit suite and a production build, all offline). While the PR is a draft, CI runsstatic-pr,PR PolicyandPR mergeability;safety,coverage,build,ui-critical(-fast)andcaring-contacts-dbrun once it is marked ready for review.Machine evidence recorded in the report (§4), all run offline in the audit session on
d1e4ae7before the report was written:npm run lint—[gate-receipts] recorded a pass for "lint:internal" (6073 input files).;npm run typecheck—[gate-receipts] recorded a pass for "typecheck:internal" (6073 input files).;npm run test—Test Files 951 passed (951)/Tests 12227 passed | 5 skipped (12232); four approved read-only network operations also ran (git fetch --deepen,npm audittwice, the Semgrep install and rule-repository clone);npm run caring-contacts:db:test—Test Files 2 passed (2)/Tests 213 passed (213).Verification not run:
npm run verify:ui— documentation and a regenerated snapshot only; no UI, routing, styling or browser behaviour changed, and the pinned Chromium is not installed in the audit container (check:playwright-browser-revisionsays so); CI runs the browser suite it decides to run.Verification not run:
npm run verify:release— no release or handoff confidence is claimed.Verification not run:
npm run check:production-readiness(its offline-tolerant:civariant was not run either) and everyeval:*— provider-backed; nothing in this PR changes clinical workflow, privacy, environment, Supabase, source governance or deployment behaviour.No provider-backed gate was run. Nothing touching OpenAI, Supabase, Railway, Sentry or live CI was executed. The only network actions were the owner-approved
git fetch --deepen, a Semgrep install and rule-repository clone, andnpm audit.Risk and rollout
docs/audit/, one README bullet, a regenerated snapshot produced by its committed generator, eleven prose corrections in maintained documents, and one review record. No gate changes behaviour;docs:check-linksexcludesdocs/audit/by default and the default gate passes with the new file resolving.Clinical Governance Preflight
This PR is documentation only. It is classified clinical-risk solely because it regenerates
data/repo-awareness-snapshot.json, which the path classifier treats as clinical data; that regeneration is the mechanical output of the committed generator, required because the tree gains one document and one review record. Each item below is confirmed against the diff.Clinical KB Database(sjrfecxgysukkwxsowpy) — no Supabase env value, migration or configured Supabase project/target changes.src/file changes; service-role credentials stay server-side only.unknownstatus for the owner to action.Notes
#A95DRY,#9P4XAE,#HDCF2B,#100,#W98GR7, the four hub rows) are listed in §9 for closure throughnpm run issues:done, never by editing the ledger;#B0530Fand#27TWKMalready have pendingdonerequests in the inbox from PR Close two stale CI-coverage rows, add browser evidence for the activation wizard, and schedule the bundle-budget measurement #2527, so they must not be filed again.🤖 Generated with Claude Code
https://claude.ai/code/session_01FSPY4VSqg7WVukCvmHQP9t
Generated by Claude Code
Note
Low Risk
Documentation, snapshot regeneration, and prose corrections only; no runtime, auth, RAG, or clinical workflow behavior changes.
Overview
Adds
docs/audit/full-repository-audit-2026-09-02.md, a point-in-time full-repo audit (25 finder lanes, skeptic verification, completeness critic, Stage-5 review) recording 162 distinct findings (3 High, 30 Medium, 129 Low) for owner triage—no application code, migrations, gates, or inbox filings in this PR.Indexes and housekeeping: registers the report in
docs/README.md, regeneratesdata/repo-awareness-snapshot.json(new doc entry, updated revision metadata and counts, review-record history), and appends an immutable branch review record via the ledger workflow.Small doc fixes (called out in the audit, including in the partial diff): 16 app modes in
CLAUDE.md, correctedaudit/tenancy-defense-in-depth-review.mdpath inREADME.md, plus other one-line corrections across maintained docs (e.g. codebase index, scripts index, ward-flow/SaMD/RAG notes) aligned with the tree as of the audit.Reviewed by Cursor Bugbot for commit 24f0537. Configure here.