Skip to content

S9 repo hygiene: fix the ownership map, codebase map and runbook; queue six ledger tick-offs - #3826

Merged
BigSimmo merged 3 commits into
mainfrom
claude/project-thread-62erz2
Oct 26, 2026
Merged

BigSimmo merged 3 commits into
mainfrom
claude/project-thread-62erz2

Conversation

@BigSimmo

Copy link
Copy Markdown
Owner

Requested by Josh · project thread

Summary

Stream S9 of the 26 Oct master plan: documentation, ownership map and ledger only. No app code, no database, no protected search files.

  • ARCH-01. The organisation map placed 35 answer and document-loading paths in other areas (delivery, data-platform, personal-practice, clinical-content, or nowhere), so edit hints and reviewer routing went to the wrong owners. Moved the clear misses from the 20 Oct architecture audit into answer-engine and source-intake. Deliberately left: scripts/promote-public-documents-batch.ts (publication step, keeps clinical-content review) and src/app/api/clinical-quality/route.ts (stays with its dashboard).
  • F-DOC-N5 / ARCH-02. docs/codebase-index.md worker table now lists the four real modules it was missing (claim-scope, extraction-provenance, image-caption-cache, review-carry-forward). The invented modules from ARCH-02 were already gone.
  • Re-index runbook. Two places still said migration 20261025170000 "merges only after the owner's own yes". It merged in RAG and ingestion audit follow-up (24 Oct): remaining fixes, plus two database migrations for the owner's own merge #3790 and live-drift run 40276000072 passed, so the runbook now says it is live.
  • Ledger requests (inbox only, no canonical edit):
    • #MAAXAX done (PR Propose TGA PI and WA source links for 48 more high-risk medicines, signable as the live TGA search (#05WXHX) #3759, live-drift run 39740811325 green), plus a new P3 row for its leftover clean-ups.
    • #2X90V6 closed without changing the archived read-only record; the correct branch name is kept in the outcome.
    • #WWTRM5 update: item 4 is on main; the mojibake arrow needs a small ledger-tool change, because reconcile does not rewrite the preamble.
    • #9Z197J update with the WebKit triage below. It carries the pending 24 Oct update's text, which is cancelled so the two do not collide at reconcile.
    • The other five tick-offs (#1RVGZF, #MSJT12, #NM9S1V, #SQ2FG9, #YDENFM) already have done requests on main. All six leave the open list at the next issues:reconcile run (dry run: 25 requests, 1 cancellation, no conflicts).

Areas touched: Knowledge and records, Source intake and indexing

RAG impact: no retrieval behaviour change. Only ownership-map JSON and docs changed.

WebKit red on main (#3099, #9Z197J)

Run 40282193144 (#3796 merge) failed one test in one of 23 Firefox/WebKit shards: tests/ui-tools.spec.ts:1538 "Services keeps its shortlist when the shared composer submits another query at 1280px" on mobile-pwa-standalone. After clearing the shortlist and typing "housing", Enter submitted "crisis". This is the race f8f5ff2 tried to settle on 21 Oct. Not fixed here: it may be a real Safari bug where the shared composer overwrites a newly typed query, so it should be fixed at the cause, not by loosening the test.

Check-main results

All 82 rows marked "check main", "recheck" or "partly fixed" in the plan CSV were rechecked against 2d02dbeb7, read-only. Results with evidence are in the project file plan/streams/S9-check-main-results.csv. Of the 92 rows there (82 plus the S9 items): 49 fixed, 17 partly fixed, 25 still open, 1 closed without change.

Verification

  • npm run verify:pr-local: "completed: check:runtime, check:installed-lock-parity, format:changed, check:diff-integrity, sitemap:check, check:mockups, check:repo-awareness-snapshot, docs:check-index, docs:check-inventory, docs:check-scripts, docs:check-links, check:decisions, check:branch-review-ledger, check:outstanding-issues, check:ledger-write-discipline, check:clinical-hazard-controls. failed: (none)"
  • Organisation tests: vitest run tests/check-organisation.test.ts tests/organisation-*.test.ts: 16 files, 446 tests passed.
  • npm run check:organisation -- --no-report: exit 0 (pass); spot-checked moved files resolve to the new areas.
  • node scripts/ledger-inbox.mjs reconcile --dry-run: "Would reconcile 25 request(s) ... with 1 cancellation decision(s)."

Risk and rollout

  • Risk: low. Docs and routing metadata only.
  • Rollback: revert the PR.
  • Provider or production effects: None.

Clinical Governance Preflight

Not applicable: no ingestion, answer, retrieval, source or clinical-output behaviour changed.


Generated by Claude Code

…(ARCH-01); close #MAAXAX

The organisation map put the Answer spending guard, the patient-detail
detector, ingress safety, upload admission, the shared ingestion Edge
Function modules and their tests in delivery, data-platform,
personal-practice, clinical-content or nowhere. Edit hints and reviewer
routing therefore pointed at the wrong owners. Move the clear misses the
20 Oct architecture audit listed into answer-engine and source-intake.
Left as they are: scripts/promote-public-documents-batch.ts (publication
step, keeps clinical-content review) and src/app/api/clinical-quality
(stays with its dashboard in prototypes).

Also queue the #MAAXAX done request (PR #3759 live-drift run
39740811325 passed) and a P3 row for its leftover clean-ups.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0147L1V42JqffXE1wew8zymM
…ck migration live in the re-index runbook

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0147L1V42JqffXE1wew8zymM
The #9Z197J update carries the pending 24 Oct update's text, which is
cancelled so the two do not collide at reconcile.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0147L1V42JqffXE1wew8zymM
@BigSimmo BigSimmo self-assigned this Oct 26, 2026
@coderabbitai

coderabbitai Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Your organization has reached its usage spending cap. Adjust your spending cap in the billing tab.

Next included review available in 40 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 89 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration
Commits

Reviewing files that changed from the base of the PR and between 4cd57ba and 8a34e04.

Files selected for processing: 12
  • docs/codebase-index.md
  • docs/organisation/systems/answer-engine.json
  • docs/organisation/systems/clinical-content.json
  • docs/organisation/systems/delivery.json
  • docs/organisation/systems/source-intake.json
  • docs/outstanding-issues-inbox/02aaea82-0ef9-4416-be1c-0126e849b7bd.json
  • docs/outstanding-issues-inbox/73a239c2-ae2f-4a12-a30b-f9a0cd9aa56d.json
  • docs/outstanding-issues-inbox/7aa2743f-e7e2-4ae9-8f85-6da9645f0f08.json
  • docs/outstanding-issues-inbox/968d6000-0bba-4605-a0e7-bd1a310d8203.json
  • docs/outstanding-issues-inbox/a769145c-b5df-4b77-a0c2-79c93be1b266.json
  • docs/outstanding-issues-inbox/f2161a30-4730-4873-a225-13df2eecb2ac.json
  • docs/reindex-runbook.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@supabase

supabase Bot commented Oct 26, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project sjrfecxgysukkwxsowpy because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@gitar-bot

gitar-bot Bot commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

Important

You are using the Gitar free plan. Upgrade to unlock code review, CI analysis, auto-apply, custom automations, and more.

Gitar

@BigSimmo
BigSimmo marked this pull request as ready for review October 26, 2026 09:47
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-26T09:48:53.114284Z 8a34e04 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@claude

claude Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Claude encountered an error after 2s —— View job


I'll analyze this and get back to you.

@BigSimmo
BigSimmo merged commit 6a4a690 into main Oct 26, 2026
56 checks passed
@BigSimmo
BigSimmo deleted the claude/project-thread-62erz2 branch October 26, 2026 12:01
BigSimmo pushed a commit that referenced this pull request Oct 26, 2026
Applies the queued requests on main, including the six S9 tick-offs from
#3826, with one cancellation. Ledger 91 open rows after reconcile.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EsF939L1hy81VC4Rxg3hL1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants