Skip to content

review-reviewers: restore the headless claude harness on a current pin - #803

Merged
max-sixty merged 2 commits into
mainfrom
restore-headless-harness
Aug 2, 2026
Merged

max-sixty merged 2 commits into
mainfrom
restore-headless-harness

Conversation

@max-sixty

@max-sixty max-sixty commented Aug 1, 2026 •

Copy link
Copy Markdown
Owner

review-reviewers.yaml was the last thing anywhere still running claude-interactive, pinned at 0.1.9 while every generated tend-* workflow sits on [email protected]. This restores it to the default harness and takes claude-interactive out of the adopter-facing docs.

Why it diverged

It never chose the interactive harness on its own merits. When tend dogfooded claude-interactive across all eight generated workflows, this file was bumped to match — pure parity, no review-reviewers-specific reason. The metering pause then rolled the generated workflows back to claude by regenerating them, and review-reviewers.yaml is hand-maintained, so the rollback didn't reach it. Two later bumps kept it current on the wrong harness.

Nothing in the job depends on interactive behaviour: it passes five inputs, all accepted by [email protected] with identical semantics, and its permissions: block already matches the generated workflows exactly. The harness timeout default rises 3h → 5h50m, matching every other tend workflow and leaving the intended 10-minute buffer under the 6h job cap. Session-log artifacts change prefix from claude-interactive-session-logs* to claude-session-logs*, which token-report.sh already accepts and which the review-reviewers skill's own download pattern only matched in the claude- form.

The root cause was a missing feedback path rather than a bad pin, so tend's running-tend overlay now records that init doesn't rewrite the non-generated workflows and that their refs need restamping when a regen moves the generated ones.

claude-interactive stays supported, stops being advertised

The docs recorded the metering pause correctly. Anthropic's help centre still carries it, verified against the article: "Claude Agent SDK, claude -p, and third-party app usage still draw from your subscription's usage limits." What they didn't do was close the loop — the README footnote described what the harness is without ever saying when to pick it, which for a config key an adopter chooses from is a trap.

The resolution is to keep shipping it and stop presenting it. harness: claude-interactive still validates, still generates, still runs; it's gone from the README (footnote and both markers), tend.example.yaml, the install-tend secrets table, and the security model, none of which now name it. CLAUDE.md records that this is deliberate so it doesn't get re-added.

claude-interactive/action.yaml's own description was separately stale: it still sold itself as the alternative to claude-code-action / @anthropic-ai/claude-agent-sdk and listed Agent-SDK-only inputs it "does not accept". The default harness stopped using the SDK when it moved to headless claude -p, and a pre-commit hook now fails the commit if the two input surfaces diverge at all. It now says what the harness actually is and the one scenario it's kept for.

debug-tend-run keeps its claude-interactive-session-logs* routing row. That's a lookup for an artifact someone already has in hand rather than a menu entry, and dropping it would break debugging for a configuration that still works.

This was written by Claude Code on behalf of max-sixty

max-sixty and others added 2 commits August 1, 2026 11:37
The workflow is hand-maintained, so the rollback to the default harness never reached it and its pin drifted three releases behind.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Still shipped and still selectable via harness: claude-interactive; just no longer presented as an option to adopters.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@max-sixty
max-sixty marked this pull request as ready for review August 2, 2026 00:01
@max-sixty
max-sixty merged commit 036f9c4 into main Aug 2, 2026
8 checks passed
@max-sixty
max-sixty deleted the restore-headless-harness branch August 2, 2026 00:08
max-sixty added a commit that referenced this pull request Aug 2, 2026
Deletes the `claude-interactive` harness, leaving `claude` and `codex`.
−1152 lines, +86.

## Why

It was built for one reason: Anthropic's 2026-06-15 change would have
metered `claude -p` against Agent SDK credits while leaving interactive
terminal sessions on the subscription, and running the binary under a
PTY sidestepped that. That reason is gone twice over. Anthropic paused
the change and still lists it paused ("Claude Agent SDK, `claude -p`,
and third-party app usage still draw from your subscription's usage
limits"), and the default `claude` harness was since rewritten to run
the same binary headless rather than going through the SDK at all — so
the thing the PTY was avoiding is no longer on either path.

Nothing selected it. No adopter config sets `harness:`, tend's own
dogfooding moved off it at the rollback, and the last caller anywhere
was `review-reviewers.yaml`, which had it by accident and was fixed in
#803.

What it cost to keep: a 667-line parallel composite action, a second
smoke workflow, a three-way branch in the generator, a pre-commit hook
whose entire job was policing the duplication, and prose across nine
files — which had already drifted, since the action's own description
still advertised itself as the alternative to `claude-code-action`.

## Restoring it

`CLAUDE.md` records the removal with a pointer to `036f9c4`, the last
commit containing the harness, so it can be recovered if the metering
resumes.

## Shape of the diff

**Deleted** — `claude-interactive/action.yaml`,
`.github/workflows/interactive-smoke.yaml`, the
`claude-action-input-parity` pre-commit hook (it existed only to keep
the two actions' inputs aligned), four `test_claude_interactive_*`
tests, `test_claude_interactive_runs_claude_auth_check`,
`test_per_workflow_harness_same_family_no_model_clash`, and the
now-orphaned regtest snapshot.

**Collapsed** — `CLAUDE_FAMILY_HARNESSES` was a two-element set
consulted at six sites across `config.py`, `checks.py`, and
`workflows.py`. Rather than leave a set of one, the sites now test
`harness == "claude"` directly. Same for the template's `{% if
cfg.harness in ('claude', 'claude-interactive') %}` guards and the
"Claude-family" phrasing in adopter-facing comments.

**Reparameterized** —
`test_per_workflow_harness_override_targets_only_named_workflow` used
`claude-interactive` as its override target. It now overrides to
`codex`, which exercises the feature harder: the override has to carry
its own secret shape, so the test additionally asserts `openai_api_key`
appears and `claude_code_oauth_token` does not.

**Also here** — a nightly task in tend's `running-tend` overlay for
restamping action refs in hand-maintained workflows. `init` only
rewrites the generated `tend-*.yaml` files, which is precisely how
`review-reviewers.yaml` sat on the wrong harness for three releases
without anyone noticing.

## Testing

284 pass (291 before; the 7-test drop is the deleted tests plus one
parametrize case). Beyond the suite, `tend init --dry-run` was run for
real on both remaining harnesses: `claude` stamps
`max-sixty/tend/[email protected]` across all eight workflows, `codex`
stamps `[email protected]` with `openai_api_key`.

The gap: no CI run has executed against a workflow generated by this
code. The regtests assert the YAML text, not that GitHub accepts it —
though the action refs and input names are unchanged for both surviving
harnesses, so there's nothing new for GitHub to reject.

## If this is wrong

Paused is not cancelled, and Anthropic said it would give notice before
shipping a revised version. If the metering returns, this has to be
rebuilt or reverted rather than toggled. The bet is that notice plus a
commit reference beats carrying a 667-line duplicate that had already
started to rot.

No CHANGELOG entry: that section is drafted at release time from the
commit range.

> _This was written by Claude Code on behalf of max-sixty_

---------

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants