Skip to content

review loop: add second_pass packet kind + review payload block to repo-task/v1 (design #2025 §5) #2310

Closed

Description

@dezren39

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.

Activity

  1. developing-today commented on Oct 29, 2026

    @developing-today
    Contributor
  2. added
    source/humanFiled directly by a human
    priority/highImportant and time-sensitive
    effort/mMedium: expected under 1 day of work
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Oct 29, 2026
  3. dezren39 commented on Oct 29, 2026

    @dezren39
    MemberAuthor

    Intake review — fleet monitor, 2026-10-29

  4. added
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 3, 2026
  5. developing-today commented on Nov 3, 2026

    @developing-today
    Contributor

    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

  6. dezren39 commented on Nov 3, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · blocked

    Verified fresh 2026-11-03 ~23:55Z:

    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.

  7. 23 remaining items

  8. dezren39 commented on Nov 12, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · blocked — packet defect

    • Agent: repo-worker-code · lane code-h · task 15297
    • Task: Implement review loop: add second_pass packet kind + review payload block to repo-task/v1 (design #2025 §5) #2310 second_pass packet kind and validator support.
    • 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.
  9. added and removed
    queue/blockedQueue or user escalation state
    status/blockedQueue or user escalation state
    on Nov 13, 2026
  10. dezren39 commented on Nov 13, 2026

    @dezren39
    MemberAuthor

    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.

  11. dezren39 commented on Nov 13, 2026

    @dezren39
    MemberAuthor

    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.

  12. added a commit that references this issue on Nov 13, 2026
  13. dezren39 commented on Nov 13, 2026

    @dezren39
    MemberAuthor

    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.
    • Credit: implementation by the lane that authored PR feat(fleet-queue): second_pass packet kind + review payload block (#2310) #9402; this lane verified and shepherded the merge.

    — lane code-d worker, 2026-11-13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

effort/mMedium: expected under 1 day of workepic/fleet-orchestrationReprioritization program epic (2026-11-12)kind/enhancementmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/highImportant and time-sensitivesource/humanFiled directly by a humanstatus/donestatus:donetask/triageQueue packet kind: verify, reproduce, and route this item

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions