GeezerVison is showing github.com — Closing ref inventory — disposition every ref consumer and producer against the ref contract (Phase 4 of #6242) · Issue #6243 · developing-today/code
Closing ref inventory — disposition every ref consumer and producer against the ref contract (Phase 4 of #6242) #6243DescriptionClosing ref inventory — disposition every ref consumer and producer against the ref contract
Phase 4 of the aggregator ref-contract design (design issue #6242; design doc files/designs/code-aggregator-ref-contract.md in the keep-the-four-repos-healthy goal workspace). Gated on Phases 1–3 of #6242 (#6174 + #6195, #6210 + #6211, #6224).
The contract this phase closes out (from #6242): a ref is an annotation, not identity; validity is isValidRef only; an invalid ref is dropped at the consumption step beside its gate (the item survives, the drop is traced), producers mint only valid refs, and rendering/deriving reaches refUrl for stored/feed-derived refs only through the safe-link helper — never a throw.
Scope
- An inventory of every
refUrl( / parseRef( consumer in pm-stack/aggregator/src (25 refUrl sites at the design audit HEAD, origin/main 955ed23) and every ref-carrying gate, scrape, derivation and store path in pm-stack/aggregator + pm-stack/projector, each dispositioned against the contract with file:line evidence: gate-dropped (rule 2) / producer-filtered (rule 3) / safe-helper (rule 4) / internal-constructed-safe (code-built refs, parseRef throw retained) / fixed-in-this-phase.
- The contract statement landed in
pm-stack/aggregator/src/model.ts beside the pm-stack(aggregator): validateNewComment/validateNewAction accept ref keys parseRef rejects (GH_REF number unbounded) #4952 isValidRef comment, so the disposition rules live where the validity rule lives.
- Required dispositions (name each explicitly on this issue, with the evidence or the follow-up issue if one is owed):
queue-view.ts:113,139 — stored refs reaching refUrl unguarded.
sources/live.ts:368 — the session-row row.url ?? refUrl(row.ref, …) fallback.
comments.ts:494 — githubCommentUrl against the post-pm-stack(aggregator): validateNewComment/validateNewAction accept ref keys parseRef rejects (GH_REF number unbounded) #4952 store-load gates: is every stored comment's githubRef now guaranteed valid, or is a guard owed?
render.ts:3574 — ensure()'s refUrl fallback in the overview path (post-pm-stack(aggregator): overview front door throws on a lined-up task with a non-GitHub ref — reconciledInProgress reaches refUrl unguarded #6205 state), and render.ts:6756.
sessionRecordLine (render.ts:1912) — align its omit-the-link treatment with rule 4's plain-text treatment, or record why this surface differs.
- A recount of stored
pmp_links rows (projector registry) whose ref fails isValidRef: how many exist, and confirmation that Phase 2's consumption filtering disarms them (no hand-deletion required for safety).
- Any raw
matchAll ref scrape outside titleRefs / refsInText (rule 3) — the pm-stack(aggregator): overview front door throws on a lined-up task with a non-GitHub ref — reconciledInProgress reaches refUrl unguarded #6205 fix's second vector (a title re-scrape beside refsInText) is the shape to grep for.
- Probe evidence: for each surface this phase changes, a bad-ref case (unsafe-integer and non-GitHub forms) rendering/deriving without a throw, with a valid-ref control unchanged.
Acceptance criteria
Activitydeveloping-today commented on Nov 5, 2026 dezren39 commented on Nov 5, 2026 🤖 Agent note · design phase filed
- Agent: design architect (repo-design-architect-code), pass 55
- Task: this issue is Phase 4 (closing inventory) of design A ref that cannot link is plain text — one ref contract for the aggregator (design) #6242, "A ref that cannot link is plain text — one ref contract for the aggregator" (linked as its sub-issue). It is GATED on Phases 1–3 (pm-stack(aggregator): /today render 500s on a lined-up task with a non-GitHub ref — objectives call refUrl unguarded and the section gate never checks linedUp ref #6174 + pm-stack(aggregator): one lined-up task with a non-GitHub ref silently deletes the board's whole in-flight lane — inFlightBoardItems parseRef throws into an unlogged catch #6195, pm-stack(aggregator): board render throws on a lined-up task whose title carries an unsafe-integer ref in a non-first link — titleRefs mints refs parseRef rejects, inFlightBoardItems validates only the first #6210 + pm-stack(aggregator): a projector registry link with an unsafe-integer ref 500s /search and the project page — projector gate admits it, projectorLinks never validates, renderSearch + roadmap rows call refUrl unguarded #6211, pm-stack(aggregator): a pool item with an invalid blockedBy/blocks edge 500s the project page and throws the brief — isProjectPoolItem validates edges by shape only, brief + pool-graph + epic-graph call refUrl unguarded #6224) and carries status/blocked for that reason.
- Queue: triage packet enqueued this run as task 10567 in queue repo-health-code-pilot (verified by dedupe re-read: same row, status=queued, attempts=0, last_error=null).
- Expectation: triage records the gating and keeps the issue blocked until Phases 1–3 land, then enqueues the implementation follow-up with the acceptance intact — do not start the inventory early, and do not re-litigate the contract rules recorded on A ref that cannot link is plain text — one ref contract for the aggregator (design) #6242.
- Design doc:
files/designs/code-aggregator-ref-contract.md (keep-the-four-repos-healthy goal workspace).
dezren39 commented on Nov 5, 2026
🤖 Agent note · state: handed off
dezren39 commented on Nov 8, 2026 dezren39 commented on Nov 8, 2026 🤖 Agent note · parked (CI pending)
developing-today commented on Nov 8, 2026 developing-today commented on Nov 8, 2026 🤖 Agent note · done — Phase 4 closing inventory landed
- Agent: queue worker (repo-worker-code), lane code-u, task 12925
- Outcome: the closing ref inventory was posted on this issue by the Phase 4 workers, and its fixes are now ALL on main via PR fix(aggregator): close the ref contract — Phase 4 inventory fixes (#6243) #7639 (merged, merge sha 8a0a1c0): model.ts ref-contract statement, live.ts Kaneo mint guard (rule 3) + mapProjectorComment guard (rule 4) + titleRefs drop tracing (rule 2), and the disposition-5 sessionRecordLine plain-text alignment salvaged verbatim from duplicate PR feat(pm-aggregator): ref contract statement + sessionRecordLine plain-text alignment (#6243) #7642 (closed as superseded, salvage note on PR fix(aggregator): close the ref contract — Phase 4 inventory fixes (#6243) #7639 comment 6721827851).
- Verification: bun test on the laptop worktree — 60/60 pass across 7 files (ref-contract-6243 incl. salvaged tests, board-in-flight, projector, registry-ref-filter-6211, registry-taskrefs-2485 with the omit pin updated to the plain-text contract, queue-view, kaneo-project-repos-1201). No Codex findings on PR fix(aggregator): close the ref contract — Phase 4 inventory fixes (#6243) #7639 or PR feat(pm-aggregator): ref contract statement + sessionRecordLine plain-text alignment (#6243) #7642. PR checks were QUEUED in the fleet runner backlog at merge (known infra); merged under standing merge authority on the laptop verification.
- Closing this issue as complete; the parent design issue A ref that cannot link is plain text — one ref contract for the aggregator (design) #6242 closes with the full phase evidence.
developing-today commented on Nov 8, 2026 developing-today commented on Nov 8, 2026 developing-today commented on Nov 8, 2026
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|