Repository navigation
Closed
Feature
2 / 22 of 2 issues completed
Copy link
Labels
needs-humanHuman-in-the-loop required; autonomous sessions must not resolve items carrying this.
Description
Problem
The org secret CLAUDE_CODE_OAUTH_TOKEN went invalid at ~2026-07-22 20:35-21:10Z (usage-dead account credential). Every claude-review and claude-security-review run for the next ~19 hours failed instantly (is_error:true, 1 turn, ~0.5s, $0) across every PR in claude-code-plugins — while every workflow stayed green, because the gate deliberately passes on infrastructure failure (correct: an infra failure is not a code-quality signal). Full diagnosis + verification: melodic-software/claude-code-plugins#1122.
Three properties compounded into invisibility:
- Gate-passes-by-design means no red signal anywhere in CI.
- The literal API error is structurally unreadable: the reusable keeps
show_full_outputoff (public-repo log hygiene — correct),ACTIONS_STEP_DEBUGreruns do not unhide the action's redaction, and a PR-branch probe workflow withshow_full_output: trueis skipped by claude-code-action's default-branch validation. Verified empirically on all three routes. - The infra-status comment shows only
{subtype, is_error, num_turns, duration_ms, total_cost_usd}— enough to see "instant $0 failure", not enough to distinguish 401 (dead token) from 429 (usage limit) from a crash.
Proposals
- Scheduled canary (highest value): a cron workflow on this repo's default branch running the pinned claude-code-action with a trivial 1-turn prompt (
"Reply OK") againstCLAUDE_CODE_OAUTH_TOKEN, a few times per day. Onis_error:trueit opens/updates a pinned issue (or pings a notification channel). Cost per run is cents; a dead credential surfaces within hours instead of silently degrading every consumer repo's review coverage. Lives on the default branch, so the action's workflow-validation restriction does not apply. - Error-class surfacing in the infra-status comment: the SDK result's
resultfield (or the last API error line) contains the failure class. Extract a coarse label only —auth,rate-limit,overloaded,other(e.g. regex over the redacted-safe fields or an allowlisted substring match) — and add it to the infra-status comment. No full output in public logs; one word turns a 19-hour mystery into a 1-minute diagnosis. - (Optional) freshness note in the comment: include "last successful review on this repo: " so a streak of infra failures is visible as a streak.
Non-goals: failing the gate on infra errors (current pass-through behavior is correct); enabling show_full_output anywhere public.
🤖 Generated with Claude Code
Sub-issues
Collapse Sub-issuesSub-issues
Loading 2 sub-issues
Metadata
Metadata
Assignees
Labels
needs-humanHuman-in-the-loop required; autonomous sessions must not resolve items carrying this.
Type
Fields
No fields configured for Feature.
Activity
kyle-sexton commentedon Jul 23, 2026
This was generated by AI during triage.
Triage brief (human-gated)
Verification: Accepted as verified via the linked diagnosis (melodic-software/claude-code-plugins#1122) — dead-credential window and the three unreadability routes were verified empirically there; re-reproducing a revoked-token state is not feasible in triage.
Behavioral contract (what "done" means):
CLAUDE_CODE_OAUTH_TOKENsurfaces as an operator-visible signal within hours (scheduled canary on the default branch opening/updating a tracking issue), instead of silently degrading every consumer repo's review coverage.auth/rate-limit/overloaded/other) extracted only from redaction-safe fields — no full model output or secrets in public logs.show_full_outputoff.Why human-gated (not delegable): every proposal lands on the claude-review security ground-rules surface, where the repo's CLAUDE.md requires explicit review for changes:
Work-class: C4 (security-posture/contract surface) — human-gated by the path hard gate regardless of class.
kyle-sexton commentedon Jul 24, 2026
This was generated by AI during triage.
Triage record — routed as parent of #237 / #238
Verified. Claims confirmed against melodic-software/claude-code-plugins#1122 (closed) and empirically against incident run 29991269948: run concluded
successwhile the review job's check-run annotations carry the infra-failure::errortext — the green-gate invisibility this issue describes, reproduced from the live API.Architecture decision (operator-ratified after adversarially-verified research; deep-research run on GitHub official docs, 16 confirmed claims):
api_error_status-first with allowlisted substring fallback.GITHUB_TOKENis repo-scoped, so event-driven cross-repo upsert from failing runs would require a new credential in the privileged public-repo review path (banned);workflow_runcannot cross repos;GITHUB_TOKENissue writes fire noissues-event workflows, making lane polling the platform-sanctioned consumption path. Canary stays deferred with trigger: a quiet-period credential death causes real missed-review harm.Priority: set to
priority: highby operator directive (triage default would be medium).This issue stays open as the tracking parent; work happens in the sub-items (#238 blocked by #237).
kyle-sexton commentedon Jul 24, 2026
Label drift fix (work-loop cycle 5): this parent's own triage brief is titled human-gated and its work is routed to sub-items #237/#238, but the
needs-humanlabel was absent after re-triage, which put the parent back on the autonomous frontier. Restoredneeds-humanfail-closed. Note: it also carries two priority labels (priority: high+priority: medium) — left for the attended queue to reconcile.This comment was written by an AI agent (work-items:work-loop lane).
kyle-sexton commentedon Jul 24, 2026
Advisory acknowledged (attended queue):
needs-humanrestore was correct — parent is human-gated routing shell for #237/#238. Dual priority reconciled: keptpriority: high, removedpriority: medium. This comment was written by an AI agent on the operator's behalf (work-items:attend-queue lane).9 remaining items
kyle-sexton commentedon Jul 27, 2026
Automated triage agent (gate-audit lane) — lease RELEASED, work complete. This claim marker is no longer active; the gate-audit summary follows below.
kyle-sexton commentedon Jul 27, 2026
This comment was written by an automated triage agent (gate-audit lane), on the operator's behalf. It answers a dangling question in this thread and records parent state — it does not decide, execute, or change the ratified design.
Gate audit: gate is legitimate; the last comment's open question is already closed
RECOMMENDED — keep
needs-human, no action on this parent. This issue is the operator-ratified decision carrier / routing shell for its two children (ratification 2026-07-26). All of its own design decisions are settled; the parent needs nothing from a human right now and should close when its last child lands. Verified independently this cycle: the gate is correctly applied, not label drift.Alternative (not recommended): close this parent now as fully-routed and track the remainder on #238 only. Rejected because the ratified design record and incident evidence live here, and #238 references them.
Two state changes since the last comment in this thread
auth, is a real design question this incident raises — I am not deciding it here." That was decided about three hours later, on the child: ANY-CLASS-ROUTED — open on sustained failure of any class, apply the human gate by class. Reading this thread top-to-bottom otherwise ends on a question that is no longer open.Remaining work
Only #238, which carries its own operator-recorded
Work-class: C3 (feature-shaped)and staysneeds-humanunder this repo's admission gate (feature-shaped C3 has no autonomous-dispatch path). Nothing on this parent blocks it.Also unchanged and still correct: the synthetic-canary rejection and its deferral trigger ("a quiet-period credential death causes real missed-review harm") — the 2026-07-25/26 recurrence did not meet it (159 organic runs inside the window).
fix(claude-lanes): count real assistant turns, not API-error turns (#305
feat(workflows): Claude lane incident aggregator (Phase 4, #238) (#286)
feat(claude-lane-incident-aggregator): write the incident issue with …
docs(aggregator): correct dry-run Checks:read credential sizing (#334)
kyle-sexton commentedon Aug 6, 2026
The Phase 4 acceptance test strengthened the case for Proposal 1 (the scheduled canary)
Staying open. Evidence and the full acceptance ledger are on #238; this note is only about what the run says about this issue's premises.
Error-class surfacing (Proposal 2) works. The forced-failure fixture produced exactly the one-word diagnosis this issue asked for: annotation
class=authcarryingapi_error_status: 401, and a marker comment readingFailure class: auth. The 19-hour mystery this issue opened about would now be a one-minute read. That part is delivered.But the canary is no longer just the highest-value proposal — it covers a gap nothing else can. Two findings from the run:
A silent green with no class token at all. When
claude-code-actionskips itself on workflow validation, it exits 0, the check concludes green, nothing is reviewed, and noclass=token is emitted (the outcome step took its success path —LANE_OUTCOME: success). The incident aggregator's entire detection mechanism is that token, so this failure mode is invisible to it by construction. Filed as claude-review: a workflow-validation skip is an undetectable silent no-review, plus a false review count and false marker copy #363. An annotation-based receiver cannot fix this; a probe that asks "did a review actually happen?" is the only proposed mechanism that would.The aggregator's own write path had never once executed, and 145 consecutive green runs hid it. Each emitted
cycle=clean read-errors=0— the positive-signal line intended as the antidote to "absence of an incident is not evidence of health" — while no incident could have been written at all. Fixed in fix(claude-lane-incident): upload the dot-prefixed incident body #359. The lesson is uncomfortable and directly on this issue's theme: the watchdog's own liveness signal was itself the thing that was lying, and only an end-to-end forced failure caught it. A watchdog that never fires and a watchdog that cannot fire look identical from the outside.Together these say the deferral trigger recorded on #238 — "a quiet-period credential death causes real missed-review harm" — is not the only trigger worth watching. A no-token silent green in a consumer repo would be equally decisive, and by definition it would arrive with no signal attached.
Recorded in PLAN.md's Phase 4 ledger with a dated re-evaluation of 2026-11-06, or earlier on either original trigger or on a first observed no-token silent green.
One housekeeping note: while this issue stays open it is the only place in the org tracking the canary deferral. If it is ever closed, that decision and its trigger need a home first — otherwise they survive only in the body of a closed issue.
🤖 Generated with Claude Code
fix(claude-lane-incident): upload the dot-prefixed incident body (#359)
docs(plan): record the Phase 4 acceptance run and hold the tag at DOI…
kyle-sexton commentedon Aug 7, 2026
Closing on operator authorization (interactive session, 2026-08-07). Disposition:
This comment was written by an AI agent on the operator's behalf, on explicit operator instruction.
fix(claude-review): make a workflow-validation skip visible, and stop…
feat(claude-lane-incident): route the incident issue to the attended …
docs(claude-review-lanes): advance Phase 4 to DONE with full disposit…
refactor: dissolve comments that restate code or narrate history