Skip to content

id: HandoffOperations client-routing invariants lack generated/model coverage (from PR #9175) #9793

Closed

Description

@dezren39

Finding (from PR review)

PR #9175 (still open, feat(id): phase 5 client/operations surface + gated enablement for region-seam handoff (#3904)) adds the HandoffOperations client-routing surface in pkgs/id/crates/id-worlds/src/world/handoff_operations.rs. Codex's P1 finding: the new surface has only hand-written example tests, but the root AGENTS.md testing doctrine requires property/model-generated coverage for meaningful state-machine invariants and explicitly says examples do not replace it — the existing coordinator::model_tests exercise only Coordinator, so they do not verify this surface's fail-closed routing, stale-route responses, or gate behavior across generated handoff/retry/recovery sequences.

"The new client-routing surface has only hand-written example tests, but the root AGENTS.md testing doctrine requires property/model-generated coverage for meaningful state-machine invariants and explicitly says examples do not replace it. The existing coordinator::model_tests exercise only Coordinator, so they do not verify this surface's fail-closed routing, stale-route responses, or gate behavior across generated handoff/retry/recovery sequences. Extend the generated model to exercise HandoffOperations, checking routing decisions after each transition and journal-prefix recovery against an explicit model oracle."

No-response evidence (verified 2026-11-14)

  • The comment is now over 24 hours old (PR still open — grace rule expired 2026-11-14T02:27:55Z) with no reply: GraphQL reviewThreads shows the thread unresolved with a single comment.
  • No fix commit followed the comment: the PR head is still the single commit c3230b4e6f (2026-11-13T02:24:41Z), which predates the comment.
  • Dedupe: issues searched by comment id, PR number, file path and HandoffOperations keywords — no existing issue covers this finding.

Still live on the PR head (verified 2026-11-14)

  • handoff_operations.rs at the PR head (c3230b4e6f, 729 lines; the file is not on main — the PR is unmerged): its mod tests (line 383) contains only hand-written example tests (gate default, in-transit fail-closed, stuck classification, one end-to-end acceptance scenario, unknown entity, gate disabling) — no generated/model test exercises HandoffOperations, and a code search for HandoffOperations + model coverage returns nothing.

Acceptance criteria

  • The generated model is extended to exercise HandoffOperations: routing decisions are checked after each generated handoff/retry/recovery transition, and journal-prefix recovery is checked against an explicit model oracle.
  • Or: a documented decision on this issue that this coverage is not required for this surface, with the reasoning recorded.

Activity

  1. added
    kind/testTest coverage, test infrastructure, or test-only fixes
    task/triageQueue packet kind: verify, reproduce, and route this item
    priority/highImportant and time-sensitive
    on Nov 14, 2026
  2. developing-today commented on Nov 14, 2026

    @developing-today
    Contributor
  3. dezren39 commented on Nov 14, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · filed

  4. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    effort/mMedium: expected under 1 day of work
    and removed on Nov 14, 2026
  5. 7 remaining items

  6. added
    work/assignedQueue worker lifecycle state
    and removed on Nov 14, 2026
  7. dezren39 commented on Nov 14, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up, re-verified, triaged (already routed)

  8. added and removed
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 14, 2026
  9. dezren39 commented on Nov 14, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done — fixed and merged

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/mMedium: expected under 1 day of workkind/testTest coverage, test infrastructure, or test-only fixespriority/highImportant and time-sensitivesource/pr-comment-reviewFiled by the pr-comment-review jobstatus/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