You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implements §5.1–§5.2 and §7.2 of the #2025 review-loop design (files/review-loop-design-2025.md in the keep-the-four-repos-healthy goal workspace, linked from #2025).
Scope
Add second_pass to the repo-task/v1 packet kind enum (pr_shepherd | triage | small_fix | ci_investigation today — verified 2026-10-29).
Add the review payload block (verdict, verdict_note_url, artifact, pass, pass_cap, gap_list, goal_context_refs, producer, route_floor); gap_list and verdict_note_url required for kind second_pass.
Validation rejects a second_pass packet with pass > pass_cap — the termination cap is enforced in the enqueue code path, not by reviewer restraint.
New deterministic dedupe family: repo-health:v1:second-pass:<repo>:<issue>:pass-<n> (one live packet per artifact+pass by construction).
Queue result outcome superseded_by_second_pass / second_pass_complete recognised in result validation if it validates outcomes.
Acceptance
repo-queue.py validate accepts a well-formed second_pass packet and rejects: missing gap_list, missing verdict_note_url, pass > pass_cap
A second enqueue for the same (issue, pass) collides on the dedupe key
Existing kinds validate exactly as before (regression: run the current packet corpus through validate)
Parent: #2025 · Design: review-loop-design-2025.md §§5, 7.2 · Depends on Drew's decision D2 on #2025 (kind vs payload-block) — do not start until D2 is ruled.
Risks: the dedupe family change is the irreversible-feeling part; the acceptance regression (existing corpus through validate) is the guard — keep it non-optional.
Suggested approach: once D2 is ruled: enum + payload block + validator rules, dedupe family, then the corpus regression before any producer emits a second_pass packet.
agent-note:v1
state: reviewed (coverage loop-back)
Coverage pass 2026-11-03, loop-back review: this issue was re-reviewed (drift / overlap / already-handled / stale / blockers / ordering) so every open issue in the four repos is reviewed and in the system. Verdict: still live; in the system as task 7325 (triage, queued, priority 50) in repo-health-code-pilot. Labels audited and synced. If it is already handled at current main, its triage closes it with evidence; if oversized, the triage files the split; blockers belong on this issue.
Found via: coverage loop-back 2026-11-03
The decision Drew owns (on issue #2025, where the escalation already sits): D2 — add second_pass as a repo-task/v1 packet kind (design recommendation: yes, the kind — validation, dedupe, and health counting all get simpler) versus a permanent review payload block on small_fix. Issue #2310 implements whichever is ruled; starting before the ruling risks building the rejected shape into the schema, the validator, and the dedupe family.
No fix path can be enqueued past this gate — the packet kind this issue would create does not exist until D2 names its shape. Task 7325 blocks with reason class escalated-to-user, blocker = D2 ruling on issue #2025.
Disposition: blocked in the queue as packet_defect; no code changes were made.
Evidence: The packet routes to developing-today/code, but its explicit source/build direction points to darwin-nix/pkgs/fleet-brokers (package.nix builds src/, including src/crates/queue-broker/src/validate.rs). The schema referenced as ~/tools/repo-task-v1.schema.json is not tracked in this repo. Code has a separate validator at pkgs/fleet/crates/fleet-queue/src/validate.rs, but this packet does not establish that it is the canonical deployed broker or explain how the external schema is shipped. Updating only code risks leaving the specified broker and schema unchanged.
Next: Route the task to the canonical repo/build path or clarify the canonical code-owned source and schema shipping path, then re-claim with the matching repo filter.
Steer applied 2026-11-13 under Drew's order "fix all fixable and reblocked": Drew's recorded answer (review-loop-2025-d1d2) applied — queue task(s) released to the queue to execute it. Set: decisions-2026-11-13-blocked-review.
Agent note (lane code-b, task 15297): implemented; PR open for review. The acceptance checklist in the body is checked off with this evidence:
PR:#9402 (queue/15297-2310-second-pass) — pkgs/fleet/crates/fleet-queue/src/validate.rs: second_pass added to KINDS; new second-pass dedupe family repo-health:v1:second-pass:<repo>:<issue>:pass-<n> cross-checked against payload.issue.number and payload.review.pass; review_errors requires the §5.2 review block for second_pass (and shape-checks it on any kind, covering the §5.3 interim), with gap_list + verdict_note_url required and pass > pass_cap rejected at enqueue.
validate accepts a well-formed second_pass packet and rejects missing gap_list / missing verdict_note_url / pass > pass_cap — unit tests second_pass_packet_validates, second_pass_rejects_missing_gap_list, second_pass_rejects_missing_verdict_note_url, second_pass_rejects_pass_above_cap, second_pass_requires_the_review_block, all passing.
A second enqueue for the same (issue, pass) collides on the dedupe key — the key is a pure function of (repo, issue, pass); second_pass_dedupe_family_matches_issue_and_pass pins the parse, the cross-checks, and the family↔kind binding in both directions.
Existing kinds validate exactly as before — cargo test -p fleet-queue --features queue-broker → 298 passed, 0 failed (the suite carries the per-family corpus controls).
Outcomes superseded_by_second_pass / second_pass_complete: no result-outcome allowlist exists in validate.rs / turso_queue.rs / queue_broker.rs (checked), so there is nothing to recognise them in — the conditional acceptance item is satisfied vacuously.
Mirrors updated in place with the same semantics: ~/fleet-brokers-src/crates/queue-broker/src/validate.rs (cargo check -p queue-broker clean) and ~/tools/repo-task-v1.schema.json (kind enum + review block; still valid JSON). The live broker picks this up on its next release from the merged source.
Task 15297 is parked pending Codex review of PR #9402.
Agent note — lane code-d, queue task 15297 (complete): #2310 is implemented and merged; closing with evidence.
PR feat(fleet-queue): second_pass packet kind + review payload block (#2310) #9402 merged 2026-11-13T10:17:24Z (pkgs/fleet/crates/fleet-queue/src/validate.rs): second_pass added to the kind enum; the §5.2 review payload block validated (required for the kind; gap_list + verdict_note_url required; pass > pass_cap rejected at enqueue); the deterministic dedupe family repo-health:v1:second-pass:<repo>:<issue>:pass-<n> cross-checked against payload.issue.number and payload.review.pass.
Verification (independent, lane code-d):cargo test -p fleet-queue --features queue-broker --lib → 298/298, incl. the six new second_pass tests and the full pre-existing corpus regression. (The validate module is behind the queue-broker feature.)
Outcomes:superseded_by_second_pass / second_pass_complete — the validator crate keeps no result-outcome allowlist, so per the issue's conditional there was nothing to extend.
Deploy note: the broker picks this up through the normal broker build/deploy path from main; no live-broker change was made by this task.
Activity
developing-today commentedon Oct 29, 2026
CODE-1162
dezren39 commentedon Oct 29, 2026
Intake review — fleet monitor, 2026-10-29
repo-queue.py validatestill knows only the four existing kinds (verified against the helper this run's era).developing-today commentedon Nov 3, 2026
agent-note:v1
state: reviewed (coverage loop-back)
Coverage pass 2026-11-03, loop-back review: this issue was re-reviewed (drift / overlap / already-handled / stale / blockers / ordering) so every open issue in the four repos is reviewed and in the system. Verdict: still live; in the system as task 7325 (triage, queued, priority 50) in repo-health-code-pilot. Labels audited and synced. If it is already handled at current main, its triage closes it with evidence; if oversized, the triage files the split; blockers belong on this issue.
Found via: coverage loop-back 2026-11-03
dezren39 commentedon Nov 3, 2026
🤖 Agent note · blocked
Verified fresh 2026-11-03 ~23:55Z:
second_passis still absent from therepo-task/v1schema: the kind enum in~/tools/repo-task-v1.schema.jsonis exactlypr_shepherd | triage | small_fix | ci_investigation, and there is noreviewpayload block. Nothing in issue review loop: add second_pass packet kind + review payload block to repo-task/v1 (design #2025 §5) #2310's scope has landed.user/escalated+status/blocked, and named this task (task 7325) as issue review loop: add second_pass packet kind + review payload block to repo-task/v1 (design #2025 §5) #2310's place in the system. The design's D2 recommendation (recorded on issue design: review loop — diff review can reject 'done' and commission a fresh second-pass session #2025) is: addsecond_passas a kind.The decision Drew owns (on issue #2025, where the escalation already sits): D2 — add
second_passas arepo-task/v1packet kind (design recommendation: yes, the kind — validation, dedupe, and health counting all get simpler) versus a permanentreviewpayload block onsmall_fix. Issue #2310 implements whichever is ruled; starting before the ruling risks building the rejected shape into the schema, the validator, and the dedupe family.No fix path can be enqueued past this gate — the packet kind this issue would create does not exist until D2 names its shape. Task 7325 blocks with reason class
escalated-to-user, blocker = D2 ruling on issue #2025.23 remaining items
dezren39 commentedon Nov 12, 2026
🤖 Agent note · blocked — packet defect
second_passpacket kind and validator support.packet_defect; no code changes were made.developing-today/code, but its explicit source/build direction points todarwin-nix/pkgs/fleet-brokers(package.nixbuildssrc/, includingsrc/crates/queue-broker/src/validate.rs). The schema referenced as~/tools/repo-task-v1.schema.jsonis not tracked in this repo. Code has a separate validator atpkgs/fleet/crates/fleet-queue/src/validate.rs, but this packet does not establish that it is the canonical deployed broker or explain how the external schema is shipped. Updating only code risks leaving the specified broker and schema unchanged.dezren39 commentedon Nov 13, 2026
Steer applied 2026-11-13 under Drew's order "fix all fixable and reblocked": Drew's recorded answer (review-loop-2025-d1d2) applied — queue task(s) released to the queue to execute it. Set: decisions-2026-11-13-blocked-review.
dezren39 commentedon Nov 13, 2026
Agent note (lane code-b, task 15297): implemented; PR open for review. The acceptance checklist in the body is checked off with this evidence:
PR: #9402 (
queue/15297-2310-second-pass) —pkgs/fleet/crates/fleet-queue/src/validate.rs:second_passadded to KINDS; newsecond-passdedupe familyrepo-health:v1:second-pass:<repo>:<issue>:pass-<n>cross-checked againstpayload.issue.numberandpayload.review.pass;review_errorsrequires the §5.2 review block forsecond_pass(and shape-checks it on any kind, covering the §5.3 interim), withgap_list+verdict_note_urlrequired andpass > pass_caprejected at enqueue.second_passpacket and rejects missing gap_list / missing verdict_note_url / pass > pass_cap — unit testssecond_pass_packet_validates,second_pass_rejects_missing_gap_list,second_pass_rejects_missing_verdict_note_url,second_pass_rejects_pass_above_cap,second_pass_requires_the_review_block, all passing.second_pass_dedupe_family_matches_issue_and_passpins the parse, the cross-checks, and the family↔kind binding in both directions.cargo test -p fleet-queue --features queue-broker→ 298 passed, 0 failed (the suite carries the per-family corpus controls).superseded_by_second_pass/second_pass_complete: no result-outcome allowlist exists in validate.rs / turso_queue.rs / queue_broker.rs (checked), so there is nothing to recognise them in — the conditional acceptance item is satisfied vacuously.Mirrors updated in place with the same semantics:
~/fleet-brokers-src/crates/queue-broker/src/validate.rs(cargo check -p queue-brokerclean) and~/tools/repo-task-v1.schema.json(kind enum + review block; still valid JSON). The live broker picks this up on its next release from the merged source.Task 15297 is parked pending Codex review of PR #9402.
Merge pull request #9402 from developing-today/queue/15297-2310-secon…
dezren39 commentedon Nov 13, 2026
Agent note — lane code-d, queue task 15297 (complete): #2310 is implemented and merged; closing with evidence.
pkgs/fleet/crates/fleet-queue/src/validate.rs):second_passadded to the kind enum; the §5.2reviewpayload block validated (required for the kind;gap_list+verdict_note_urlrequired;pass > pass_caprejected at enqueue); the deterministic dedupe familyrepo-health:v1:second-pass:<repo>:<issue>:pass-<n>cross-checked againstpayload.issue.numberandpayload.review.pass.cargo test -p fleet-queue --features queue-broker --lib→ 298/298, incl. the six new second_pass tests and the full pre-existing corpus regression. (The validate module is behind thequeue-brokerfeature.)superseded_by_second_pass/second_pass_complete— the validator crate keeps no result-outcome allowlist, so per the issue's conditional there was nothing to extend.— lane code-d worker, 2026-11-13
docs(review-loop): second-pass session brief template + worked example (