Skip to content

fix(ci): auto-close-queue-cards calls a verb that exists (#356) - #2347

Merged
joelteply merged 1 commit into
canaryfrom
fix/auto-close-queue-cards-verb
Aug 21, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fix/auto-close-queue-cards-verb

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Dead on every merge since ~2026-08-05. Two breaks stacked; the earlier fix cleared only the first, so the job stayed 100% dead while looking repaired.

1. No binary (fixed earlier) — checked out airc source, asserted test -x .airc-src/airc, a path nothing produced.

2. No such verb (this PR) — then called airc queue close-merged, which has never existed. The CLI exposes queue-card close-merged-meta and queue-card close-merged-refs; they're JSON transforms and leave the closing to the caller. From the run on #2346:

error: unrecognized subcommand 'queue'
tip: a similar subcommand exists: 'queue-card'

Not invented here. airc hit this exact bug in its own copy of this workflow and fixed it 2026-08-13 (airc#576). Continuum's file is a fork of the pre-fix version. It now matches upstream, and the header says to diff against it first next time.

Verified locally before pushing

Built airc-cli from canary, ran the real sequence against real merged PR #2346:

  • close-merged-meta → real merge facts (2026-08-21T13:12:13Z, canary, 8a7e0bcc6…)
  • close-merged-refs → empty, exit 0 (that PR closes no card)

Positive control — because empty-and-working prints identically to empty-and-broken, which is this whole defect class. Synthetic body with Closes #1142 / Refs #9999 / Resolves CambrianTech/airc#77:

CambrianTech/continuum#1142
CambrianTech/airc#77

Closing keywords lift; bare mentions correctly don't; cross-repo captured for the report-don't-close branch.

Also removed: the post-merge nudge

Deleted, not repaired. It called queue next (same dead namespace) but probed with --help and exit 0-ed on failure — so for two weeks it printed "not available in this airc build; skipping", which reads as a feature being off rather than a defect. That's why it outlived the loud break beside it.

Not rewritten because that means guessing: queue-card next requires --owner and --raw-json-file and takes no --limit; the old call passed a nonexistent --limit and omitted both required args, and a stale comment justified dropping --owner on the belief it might be unsupported — the opposite of true.

Why it mattered

Merged PRs never closed their queue cards, so the board drifted on every merge — shipped work read as idle lanes and drew nudges, the exact litter this job exists to prevent. The red X lands after merge, when attention has already moved on.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

Dead on every merge since ~2026-08-05. Two independent breaks stacked, and the
earlier fix cleared only the first — so the job stayed 100% dead while looking
like it had been repaired.

  1. NO BINARY (already fixed): the job checked out airc SOURCE and asserted
     `test -x .airc-src/airc`, a path nothing ever produced. A build step was
     added earlier and that half was genuinely correct.

  2. NO SUCH VERB (this commit): the step then called
     `airc queue close-merged <url>`. That subcommand has never existed. The
     Rust CLI exposes `queue-card close-merged-meta` and
     `queue-card close-merged-refs` — two JSON transforms over `gh pr view`
     output that leave the CLOSING to the caller. Verbatim from the run on
     PR #2346: `error: unrecognized subcommand 'queue'` /
     `tip: a similar subcommand exists: 'queue-card'`.

NOT INVENTED HERE: airc hit this exact bug in its OWN copy of this workflow and
fixed it on 2026-08-13 (airc#576). Continuum's file is a fork of the pre-fix
version that never got the update, so the composition is now aligned with
upstream and the header says to diff against it first next time.

VERIFIED LOCALLY, END TO END, before pushing — built airc-cli from canary and
ran the real sequence against a real merged PR (#2346):
  - `close-merged-meta` → real merge facts (2026-08-21T13:12:13Z, canary,
    8a7e0bc…, url, title/body lengths)
  - `close-merged-refs` → empty + exit 0 (that PR closes no card)
POSITIVE CONTROL, because empty-and-working and empty-and-broken print the
same and that ambiguity is the whole defect class here. Synthetic body with
`Closes #1142` / `Refs #9999` / `Resolves CambrianTech/airc#77` yields exactly:
  #1142
  CambrianTech/airc#77
— closing keywords lift, bare mentions correctly do not, cross-repo is captured
for the report-don't-close branch.

ALSO REMOVED: the post-merge nudge step, deleted rather than repaired. It called
`queue next` (same dead namespace) but probed with `--help` and `exit 0`-ed on
failure, so for two weeks it printed "not available in this airc build;
skipping" — which reads as a capability being off, not a defect. That is why it
outlived the loud break beside it. It is not rewritten because that would mean
guessing: `queue-card next` requires `--owner` and `--raw-json-file` and takes
no `--limit`, while the old call passed a nonexistent `--limit` and omitted both
required args — and a stale comment justified dropping `--owner` on the belief
it might be unsupported, the opposite of true. Restoring it needs a real
invocation verified against a live run, not another soft-failing stub.

Consequence of the whole outage: merged PRs never closed their queue cards, so
the board drifted from reality on every merge — cards whose work shipped days
ago read as idle lanes and drew nudges, the exact litter this job exists to
prevent. Nobody saw the red X because it lands AFTER merge, when attention has
already moved to the next thing.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply enabled auto-merge (squash) August 21, 2026 13:25
@joelteply
joelteply merged commit 560c8a6 into canary Aug 21, 2026
5 checks passed
@joelteply
joelteply deleted the fix/auto-close-queue-cards-verb branch August 21, 2026 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant