Repository navigation
skills: soften the fix gate's failing-test rule, and correct tend-mention's TODO premise - #1272
Conversation
…tion's TODO premise triage/references/fixing.md binds every workflow's fixes, and its absolute "You MUST have a failing test before writing any fix" collided with ci-fix's escalated-fault path, which asks for a mitigation PR for a fault that reruns green and so has no test to write. The rule now reads as the general case. TODO.md's tend-mention entry said mention-shaped rules had nowhere to live but the file every session loads; #1268 moved them to references/trigger-context.md. The entry now states what is left: mention is the one exception test_repo_pins.py allows to the names-a-skill invariant. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
tend-agent
left a comment
There was a problem hiding this comment.
Two loose ends, both on the first half.
The Step 6 pointer in plugins/tend-ci-runner/skills/triage/SKILL.md still carries the absolute this PR removes — it describes references/fixing.md as holding "the failing test you must already have". A triage session reads that line before it opens fixing.md, so the contradiction survives one level up, and it is the restatement CLAUDE.md's "A rule has one home" (under "Which file") warns about: the pointer should name the gate, not re-state it. It's outside this diff — say the word and I'll push the narrowing commit onto this branch.
The softening also may not reach the case that motivated it. ci-fix's escalated fault is one that "still reruns green", and the fix-attempt bar below still opens with "Only attempt a fix if all of these hold: Bug is clearly reproducible" — so the mitigation PR is blocked by the first condition whatever the parenthetical says. Naming the condition instead of hedging with "Generally"/"usually" would unblock that case and keep the gate from reading as optional to a session with an unreproduced bug in front of it. Suggestions inline for both lines.
Step 6's pointer to references/fixing.md still described the gate as "the failing test you must already have", the absolute this branch softens. It now names "the reproduction gate", matching the References table row. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Ships #1277. bubblewrap's CVE-2026-87766 fix reached the Ubuntu archive this afternoon, and every consumer's sessions have died at sandbox launch since — consumers pin an immutable tag, so the fix reaches them only through a release. Also carried: the `tend-notifications` conflict-gate and subject-owner fixes (#1276, #1264), the outage-enrichment skip (#1248), the sandbox Git identity seed (#1252), and the split of tend's own maintainer calls out of the shipped skills (#1265, #1267, #1268, #1269, #1272). `review` will fail on this PR for the same reason the release exists: the reviewer runs `max-sixty/tend/[email protected]`, which is the broken pin. > _This was written by Claude Code on behalf of max-sixty_ Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
…ttle two names (#1284) A survey of every shipped file after #1265–#1272 — the bundled skills, `shared/system-prompt.md`, `codex/agents-tail.md`, the generated-workflow header, and `docs/tend.example.yaml` — for text that is tend's own call, tend-only, or a citation of a past case. Plus the two naming decisions the survey turned up. ## Tend's own calls still shipping - **`review/SKILL.md`** judged a consumer's PRs by tend's stance: "avoid unnecessary complexity, **feature flags, or compatibility layers**" and "a rule every run loads". A published library among the consumers needs compatibility layers, so the reviewer was objecting to the code its maintainer wants. The weight question stays, without tend's answer. - **`nightly`**'s review checklist applied CLAUDE.md's placement rules ("belongs in the file its actors read") to a consumer's own instruction files, so the survey would open PRs rearranging their `CLAUDE.md` to tend's layout. It keeps the mechanical half — an overlay rule that forked a bundled default and drifts — and tend's overlay asks the placement questions here. - **`grounded-analysis.md`**'s transient-incident rule wrote findings to "the run's evidence log" and explained itself with sibling matrix legs; both exist only in `review-reviewers`, which is tend's. It now says to report the incident wherever the workflow reports findings, which covers the triage, mention and ci-fix sessions that also load the file. Its escalation ladder told the bot to *add* a Windows CI job to its repo; [#788](#788), which the ladder came from, said to *offer* to, which is what it says now. - **`proposing-tend-instructions.md`** (was `skill-pr-workflow.md`) carried three tend-only passages — "Running on tend itself, it means a PR here", the `plugins/` scripts directory, and which paths need the read-only-mount workaround. They move to `.claude/skills/running-tend/`, which the repo-wins rule makes authoritative here. - **`review-runs`** named `review-reviewers` as a workflow consumers run; past-case citations left `review-gates.md` (a fabricated run ID from an old session) and `ci-fix` (one consumer's `create-issue-on-nightly-failure` job); `triage` lost the "AD FONTES" label, which appears nowhere else in shipped text. ## One way to cite a reference file Four spellings were in use: a path from the skill's own directory, the owner before it, the owner after it, and a bare filename between siblings inside a `references/` directory. A citation now reads `references/<file>.md` from the skill's own directory, with the owning skill in front where the file belongs to another skill — so a sentence reads the same wherever it ends up, and survives being moved. A rule inside a skill's own `SKILL.md` is cited by section and skill (`**Reader-facing prose** in /tend-ci-runner:running-in-ci`). `test_skill_reference_citations_resolve` rejects the bare filename rather than resolving it, and the owner-after branch is out of the regex; converting the stragglers turned up one citation that no longer resolved at all, in `resolve-conflicts`. ## Two names `skill-pr-workflow.md` becomes **`proposing-tend-instructions.md`**: the file is about turning a maintainer's correction into durable instructions — the bar, where the rule lands, what the text carries — of which the PR mechanics are the last section. Its opening now names both destinations, and the upstream sentence names `max-sixty/tend` outright. And the prose agents read is **instructions** throughout, not "guidance". The repo used "guidance" for the whole body while "instruction files" already named the `CLAUDE.md`/`AGENTS.md` half; one word now covers both, and it is the ecosystem's (AGENTS.md, Copilot's custom instructions, this repo's own `pin-instruction-files.sh`). ## Also The generated-workflow header told a consumer to edit a skill for any change, leaving the file that owns triggers, timeouts and setup steps unnamed; it now names `.config/tend.yaml` (39 regtest snapshots reset). `workflows.py`'s comment pointed at nightly's Step 6, where the rolling survey lives, rather than Step 7's regen. ## Testing `uv run pytest` (1175) and all 13 pre-commit hooks pass. The instruction changes are unexercised by CI, as instructions always are; an independent pass over the whole diff checked each removal for a rule left with no home and each cross-reference against the files and headings it names. > _This was written by Claude Code on behalf of max-sixty_ --------- Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Two follow-ups to #1268 and #1269.
The fix gate's failing-test rule read as absolute for every workflow.
triage/references/fixing.mdis where the References table sends any session about to write a fix, and it said "You MUST have a failing test before writing any fix".ci-fix's escalated-fault path asks for a mitigation PR — pin the runner image, skip a leg — for a fault that still reruns green, which has no test to write, so a ci-fix session following both was told to open that PR and forbidden to write it. The rule now reads "Generally, have a failing test before writing a fix", the fix-attempt bar's reproduction condition says "usually" rather than presuming the test, andtriage's Step 6 pointer names "the reproduction gate" instead of restating "the failing test you must already have".TODO.md'stend-mentionentry claimed a problem #1268 solved. It said rules with mention's shape had nowhere to live but the file every session loads; #1268 moved them torunning-in-ci'sreferences/trigger-context.md. The entry now says what remains: mention's prompt is the one exceptiontest_repo_pins.pyallows to the invariant that every agent-invoking workflow names a skill, and amentionskill earns its cost only if mention-only rules start accumulating inrunning-in-ciagain. The entry stays because that lint cites it.🤖 Generated with Claude Code