Repository navigation
revert(generator): restore the slash-command prompt, and record why - #904
Merged
Merged
Conversation
Reverts #902. Making the Claude prompt prose existed only so the `Skill` tool's waiver could fire and the built-in `/code-review` become reachable during a run. Reading the built-in out of the 2.1.226 binary says it isn't worth reaching: it and the vendored port share their angles, verify pass and sweep near-verbatim, but the built-in resolves per model and effort, and `claude-opus-5` at medium/high renders a minimal single-pass cell with no verify and no sweep. It also reports through `ReportFindings`, which `claude/action.yaml` does not allowlist, and Codex has no built-in at all. So the port stays and the prompt goes back to the slash command the harness routes, which also retires the compensating `CLAUDE_DIRECTIVE` clause the prose form needed. The vendored skill carries a dated TODO holding those measurements, so the question can be reopened without re-reading a binary. Its preamble no longer says the built-in "cannot be reached with the `Skill` tool": the gate is conditional, and a prompt naming `/code-review` is exactly what lifts it. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
tend-agent
reviewed
Aug 8, 2026
tend-agent
left a comment
Collaborator
There was a problem hiding this comment.
The revert itself is faithful: for every file #902 touched, the tree here is byte-identical to its pre-#902 state, and the merge with #903 is clean on substance too — #903 doesn't touch config.py, mention.yaml.j2, or compose-system-prompt.sh, and its test_generate.py addition sits well below the removed block. The generator suite passes on the merged tree (378 passed). Nothing dangles: code_review_notice has no remaining references anywhere, re is still used elsewhere in test_generate.py, and the Codex $review {pr_number} shape that the deleted test asserted is still pinned by the codex regtests.
One observation, on where the decision record landed rather than on the revert.
The note argues about whether the port should exist, which is maintainer work, but a skill body is loaded into every session that runs the skill — so every review run carried it and no run could act on it. `TODO.md` is the repo's stated home for deferred work, and the entry there can justify its own cost properly instead of compressing into a comment. That also settles the two skill-authoring rules it broke: brevity, and no citing a past PR as precedent. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
tend-agent
approved these changes
Aug 8, 2026
This was referenced Aug 8, 2026
Closed
max-sixty
added a commit
that referenced
this pull request
Aug 9, 2026
`claude/action.yaml` moved to 2.1.226 while #904 was in flight, so the sentence naming 2.1.220 as the version it pins was already false when it landed. The skill's preamble no longer names a version at all — it had no reason to, and a version sitting in a file nothing re-checks is a claim waiting to rot. `TODO.md` keeps the provenance, where the drift is the point rather than an aside: the port was taken from 2.1.220, CI now runs 2.1.226, and what changed between them is exactly what decides whether the port should survive. That entry already listed a version bump as a revisit trigger; this records that the trigger has fired. > _This was written by Claude Code on behalf of max-sixty_ Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Aug 12, 2026
… stale snapshots jq 1.8 removed `_nwise`, so the outage-reconcile fake failed to page and the two reconcile tests saw nothing to delete. Slice by index instead; an empty list still pages as `[[]]`, the shape real `gh` returns. The local-setup regtests arrived recorded against a base that predated the #904 revert and #849, so their snapshots carried the prose prompt and the older mention comments. Re-recorded from the current render. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Aug 12, 2026
…tale two snapshots (#956) `wt test` failed six tests on macOS: the shell-script tests replace the environment wholesale, so a bare `bash` resolved through the PATH they set for their fake binaries and reached `/bin/bash` 3.2. `compute-token-usage.sh` uses `mapfile`, a bash 4 builtin, so those tests exited 127 locally while passing on the ubuntu runners. `BASH = shutil.which("bash")` joins `ACTION_VERSION` in `generator/tests/__init__.py` and every shell invocation in the suite uses it, `test_integration.py`'s generated-snippet run included — so the tests exercise the scripts under the bash version CI does. `_usage` was the one helper still hardcoding its PATH; it now resolves `jq` the way the three fixtures below it do, so the token-usage tests don't depend on `jq` sitting in `/usr/bin`. Merging main surfaced two more suites of the same kind, both fixed here: - **`jq` 1.8 removed `_nwise`**, which the outage-reconcile fake used to page comments, so it returned nothing to reconcile and `test_report_failure_reconciles_a_racing_leg` / `…_past_the_first_page` failed on any box with jq ≥ 1.8 (ubuntu ships 1.7.1). It now slices by index; an empty list still pages as `[[]]`, the shape real `gh` returns. - **`test_workflow_with_local_setup_regtest[review]` and `[mention]` were red on main**, not just locally: [#847](#847) recorded their snapshots against a base that predated the [#904](#904) revert and [#849](#849), so they carried the prose prompt and the older mention comments. Re-recorded from the current render. 429 tests pass on macOS. > _This was written by Claude Code on behalf of max-sixty_ --------- Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Merged
max-sixty
added a commit
that referenced
this pull request
Aug 12, 2026
Release 0.1.15: version bump, lockfile, and the CHANGELOG section the release workflow publishes verbatim as the GitHub Release notes. 84 commits since 0.1.14. The adopter-facing headlines: a maintainer can now release the spike rate limit by closing the `tend-rate-limit` issue it files ([#874](#874)); `tend-review` folds a mid-review push into the running session behind an examined-HEAD gate instead of cancelling it ([#903](#903)); `credential-environments` reads five repo shapes it previously misread; and the four `secrets.*` name overrides are gone, with a leftover key failing on the rename to make ([#861](#861)). Six PRs in the range are deliberately uncited in the notes: the 0.1.14 workflow regeneration, a `TODO.md` narrowing, a `consumers.json` refresh, a skill-preamble version drop, and [#902](#902) with its revert [#904](#904), which cancel out. Every other PR in `0.1.14..main` has a bullet, and every cited number resolves to a merged PR. The tag comes after this merges, so `max-sixty/tend/<harness>@0.1.15` resolves before any workflow pins it. > _This was written by Claude Code on behalf of max-sixty_
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.
Reverts #902.
Making the Claude prompt prose existed only so the
Skilltool's waiver could fire and the built-in/code-reviewbecome reachable during a run. Reading the built-in out of the 2.1.226 binary says it isn't worth reaching.The two share their method almost verbatim. Same ten angles (A line-by-line, B removed-behavior, C cross-file, D language-pitfall, E wrapper/proxy, plus Reuse, Simplification, Efficiency, Altitude, Conventions), the same three-verdict verify with the same "PLAUSIBLE by default" rule, and the same Phase 3 sweep down to the same focus list.
But the built-in isn't one prompt — it's a model × effort matrix, and Opus 5 gets a deliberately minimal cell. For
claude-opus-5, bothmediumandhighresolve to a cell whose entire prompt isminimal prompt → single careful diff pass → ≤15 findings: no angles, no verify, no sweep, no fan-out. It carriesmeasuredExternal: true, so that is a measured choice rather than an oversight. The angle-based versions are whatxhigh/maxand thedefaultmodel row get.tend CI runs
model: opusand sets no effort, so it lands on whichever row model-id normalization yields — and both candidates point the same way. Thedefaultrow at medium is 3+5 angles → verify → ≤8; theclaude-opus-5row is the minimal single pass. The port's core-logic band is 5+5 angles → verify → sweep → ≤10, broader than either.Two further costs: the built-in reports through
ReportFindings, whichclaude/action.yamldoes not allowlist, and the Codex harness has no built-in at all.So the port stays, and the prompt goes back to the slash command the harness routes — which also retires the compensating
CLAUDE_DIRECTIVEclause the prose form needed.What stays behind
TODO.mdgains an entry holding those measurements, so the question can be reopened without re-reading a binary. It lives there rather than in the skill because it argues about whether the port should exist, which is maintainer work — a skill body is loaded into every session that runs the skill, so a note there is carried by every review run and acted on by none.Its preamble changes too. It used to say the built-in "cannot be reached with the
Skilltool", which #902 made false — and which was over-strong even before, since the gate isdisableModelInvocation && !userTypedThisTurnand a prompt naming/code-reviewis exactly what lifts it. It now names the two durable reasons the port exists: Codex has no equivalent, and no tend prompt lifts the Claude gate.How the built-in was read, and what is not verified
2.1.220 — the version
claude/action.yamlpins, and the one the port was taken from — has been pruned from local disk, so the comparison is against 2.1.226. The angle, verify and sweep texts still match the port near-verbatim, so the method itself has not drifted; what moved is the parameterization around it.Not verified: which matrix row
model: opusresolves to at runtime, since that depends on model-id normalization inside the binary. The conclusion holds under both candidate rows, which is why it did not need pinning down.