Skip to content

id(cli): test_cli_rejects_first_and_last_together never runs — PR #3738's inserted test took its #[test] attribute #6943

Closed

Description

@dezren39

id(cli): test_cli_rejects_first_and_last_together never runs — PR #3738's inserted test took its #[test] attribute

Finding

The CLI regression test for the --first/--last conflict (conflicts_with, the #3029 contract) is dead code on current main: it carries no #[test] attribute, is never called from anywhere, and therefore never runs — while the suite stays green.

Evidence

Relation to issue #6410

Issue #6410 (OPEN) lists cli.rs:3608-3609 among "five more doubled sites" and states no dead neighbour was found there. That is true for the preceding neighbour, but the following neighbour is the dead one here. Simply deleting one duplicated attribute at cli.rs (the literal #6410 acceptance step) would leave this test dead. Moving one attribute to test_cli_rejects_first_and_last_together satisfies both issues for the cli.rs site.

Why it matters

PR #3738's body claims "#3029's first/last conflict behaviour is preserved" — the one test that pins that behaviour at the CLI boundary has not run since PR #3738 merged. If a future clap refactor drops the conflict, nothing would say so.

Acceptance criteria

Activity

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

    @developing-today
    Contributor
  3. added
    priority/normalOrdinary priority (the default)
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    effort/xsTrivial: expected under 30 minutes of work
    on Nov 7, 2026
  4. dezren39 commented on Nov 7, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · filed

  5. developing-today commented on Nov 8, 2026

    @developing-today
    Contributor

    🤖 Agent note · handed off

  6. added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    work/assignedQueue worker lifecycle state
    and removed on Nov 8, 2026
  7. 12 remaining items

  8. dezren39 commented on Nov 9, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

  9. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    task 11335 — picked up by lane code-b, verified fresh: issue #6943 OPEN, no hard-stop labels (held / user/owned / do-not-merge / do-not-auto-edit absent).
    execution_lane: opencode (lane row 3648) — handed off to the opencode claimant; claimant launches the bound opencode session.
    stage: handed_off

  10. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    agent-note:v1 — task 11335 pickup + handoff (lane code-g)

  11. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off to opencode claimant — Agent: queue worker (repo-worker-code), lane code-b — Session/ID: task 11335, repo-queue-worker-shift-b 2026-11-10 run. Task 11335 (triage) for issue #6943; attempts 3/4 on this claim. Fresh check: issue #6943 OPEN, no held/user/owned/do-not-merge/do-not-auto-edit labels, no status/needs-triage. Execution lane row 3648 = opencode. Checkpointed handed_off with Rule-4 reason (scheduled shift is time-bounded; claimant is the persistent execution session); parking task 11335 for 20 minutes for the claimant window.

  12. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

  13. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: handed-off
    queue: repo-health-code-pilot
    task: 11335 (triage, worker repo-worker-code, lane code-n)
    issue: #6943
    Verified fresh 2026-11-10T09:43Z: issue #6943 OPEN, no hard-stop labels, no status/needs-triage. Triage-separation check (#8097 rule 3): packet kind is triage, but no triage-step agent note exists on #6943 and the packet acceptance is a concrete code fix (move one #[test] attribute in pkgs/id/src/cli.rs), so this is not a bookkeeping-complete; the packet stays live.
    Lane assignment: opencode (assignment row 3648). Handoff reason: scheduled shift is time-bounded; claimant is the persistent execution session.
    Next: claimant launches the bound opencode session. Task 11335 parked 1200s for the claimant window.

  14. added
    priority/lowNice to have; do when convenient
    and removed
    priority/normalOrdinary priority (the default)
    on Nov 11, 2026
  15. dezren39 commented on Nov 11, 2026

    @dezren39
    MemberAuthor

    Agent note (lane code-b, task 11335): already fixed on current main — closing as already-done with verification.

    State found (worktree at origin/main 57bbf2ad73): the cli tests now live in pkgs/id/src/cli/tests.rs (cli.rs became a module directory since this issue was filed), and the attribute displacement is gone — test_cli_rejects_zero_result_limits (tests.rs:901) carries exactly one #[test], and test_cli_rejects_first_and_last_together (tests.rs:930) carries its own #[test]. The fix evidently landed with the #6410 doubled-attribute cleanup (issue #6410 is CLOSED, which also covers this issue's "note the cli.rs site on #6410" acceptance bullet).

    Verification against the acceptance oracle, this run:

    • cargo test --lib test_cli_rejects -- --list lists cli::tests::test_cli_rejects_first_and_last_together and cli::tests::test_cli_rejects_zero_result_limits exactly once each.
    • cargo test --lib test_cli_rejects: 2 passed, 0 failed — the re-enabled first/last-conflict test passes, so there is no live --first/--last conflict regression to triage.

    No code change was needed; no PR opened.

  16. added and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 11, 2026
  17. dezren39 commented on Nov 11, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · follow-on claim verified already-fixed (task 14972, lane code-c)

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/xsTrivial: expected under 30 minutes of workkind/testTest coverage, test infrastructure, or test-only fixespriority/lowNice to have; do when convenientsource/pr-diff-reviewFiled by the pr-diff-review jobstatus/donestatus:donetask/triageQueue packet kind: verify, reproduce, and route this itemwork/assignedQueue worker lifecycle state

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions