Repository navigation
review-reviewers: restore the headless claude harness on a current pin - #803
Merged
Merged
Conversation
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
marked this pull request as ready for review
August 2, 2026 00:01
tend-agent
approved these changes
Aug 2, 2026
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
review-reviewers.yamlwas the last thing anywhere still runningclaude-interactive, pinned at0.1.9while every generatedtend-*workflow sits on[email protected]. This restores it to the default harness and takesclaude-interactiveout of the adopter-facing docs.Why it diverged
It never chose the interactive harness on its own merits. When tend dogfooded
claude-interactiveacross 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 toclaudeby regenerating them, andreview-reviewers.yamlis 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 itspermissions: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 fromclaude-interactive-session-logs*toclaude-session-logs*, whichtoken-report.shalready accepts and which thereview-reviewersskill's own download pattern only matched in theclaude-form.The root cause was a missing feedback path rather than a bad pin, so tend's
running-tendoverlay now records thatinitdoesn't rewrite the non-generated workflows and that their refs need restamping when a regen moves the generated ones.claude-interactivestays supported, stops being advertisedThe 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-interactivestill 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 toclaude-code-action/@anthropic-ai/claude-agent-sdkand listed Agent-SDK-only inputs it "does not accept". The default harness stopped using the SDK when it moved to headlessclaude -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-runkeeps itsclaude-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.