Skip to content

skills: promote the cross-cutting references to skills, and rename running-in-ci to run-tend - #1306

Merged
max-sixty merged 4 commits into
mainfrom
linebreaks
Sep 18, 2026
Merged

max-sixty merged 4 commits into
mainfrom
linebreaks

Conversation

@max-sixty

@max-sixty max-sixty commented Sep 18, 2026 •

Copy link
Copy Markdown
Owner

The References tables indexed sixteen references/ files, and sessions were reading 26% of the ones their actions required — 11 of 42 gated actions across 32 sessions. Compliance tracked where the pointer sat rather than what it said: a reference named inline by the workflow skill got read, one named only by the central table did not. Per workflow it followed the inline-citation count almost exactly — review 10 citations/67%, triage 5/60%, nightly 3/19%, notifications 1/0%, weekly 0/0%.

The harness already carries an index that fires on the action rather than on choosing a task: the skill listing, whose name and description every session holds without reading anything. So the twelve cross-cutting references become skills in their own right.

was is
trigger-context.md /tend-ci-runner:respond-on-thread
posting.md /tend-ci-runner:post-to-github
pr-creation.md /tend-ci-runner:open-pr
pushing.md /tend-ci-runner:push-commits
ci-monitoring.md /tend-ci-runner:monitor-ci
grounded-analysis.md /tend-ci-runner:ground-claims
directives.md /tend-ci-runner:check-requester-access
dismissing-approval.md /tend-ci-runner:dismiss-approval
other-repos.md /tend-ci-runner:act-in-other-repos
session-logs.md /tend-ci-runner:read-session-logs
proposing-tend-instructions.md /tend-ci-runner:propose-instructions
triage's fixing.md /tend-ci-runner:fix-a-bug

review's four stay references. A pointer gets read where the session already is when it acts — the listing, or a step in a skill it has loaded — and every session that needs those four arrives through a skill whose own step names them, including the weekly and review-runs sessions that reach two of them. CLAUDE.md states that criterion, rather than the reader-set one it had, which this PR's own weekly citations contradicted. Both References tables go with the promotion — the listing is the one index now, and run-tend names only the handful nearly every task needs. nightly, weekly, notifications, and ci-fix cite the skill at the step that takes the action, which is the placement the compliance data says gets read.

running-in-ci becomes run-tend, in the imperative like the rest.

The description is the trigger, and Codex truncates it

Each description names a situation a session can recognise at the moment it is about to act, and fits inside Codex's per-skill share of the skills context budget. That share is 130 characters, measured against the real plugin install (both plugins, 22 runner skills) on Codex 0.155.0 rather than assumed: over it, Codex cuts the description mid-sentence and the trigger stops partway, which is the one thing this design cannot afford. Re-verified as untruncated after the change.

test_skill_frontmatter_is_loadable holds that ceiling and also catches an unquoted : inside a description, which makes the whole frontmatter block invalid YAML — one of these descriptions had that, and nothing in the suite would have caught it before it shipped. It also pins the skill count the 130 was measured at — 24, spanning both plugins, since the install carries both and they draw on the one budget. The share falls as skills are added and four descriptions sit within four characters of the ceiling, so the next skill fails with a message to re-measure rather than silently truncating them. test_plugin_skill_citations_resolve replaces the table-index test's forward direction — a rename now fails here rather than leaving slash commands that resolve to nothing — and test_skill_reference_citations_resolve keeps the reverse one, failing on a references/ file no skill cites, which loads in no session.

Where the 26% came from

Session-log artifacts from 32 recent runs across max-sixty/worktrunk and max-sixty/tend, spanning review, triage, nightly, weekly, notifications, and mention. For each gated Bash action taken (gh pr create / gh issue create, a PR body edit, a comment or review POST, git push), the check was whether the reference that action required had been read at an earlier tool call in the same session. 11 of 42 passed; of the 31 misses, 25 never read the file at all and 6 read it after the action.

The decisive evidence for why is a within-session control: weekly runs reliably read integration-test.md, the file their own workflow skill names, and zero files from the central table; nightly runs always read nightly-cleaner.md. Progressive disclosure works when the trigger is choosing a task and fails when the trigger is an action inside a plan already formed.

Follow-up, not in this PR: five consumer overlays still name running-in-ci in prose, two of them pointing at sections that have moved out of it.

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

🤖 Generated with Claude Code

…nning-in-ci to run-tend

The References tables indexed sixteen `references/` files, and sessions were
reading 26% of the ones their actions required. Compliance tracked where the
pointer sat rather than what it said: a file named inline by the workflow skill
got read, a file named by the central table did not.

The harness already carries an index that fires on the action — the skill
listing, whose name and description every session holds. So the twelve
cross-cutting references become skills in their own right:

    trigger-context           -> respond-on-thread
    posting                   -> post-to-github
    pr-creation               -> open-pr
    pushing                   -> push-commits
    ci-monitoring             -> monitor-ci
    grounded-analysis         -> ground-claims
    directives                -> check-requester-access
    dismissing-approval       -> dismiss-approval
    other-repos               -> act-in-other-repos
    session-logs              -> read-session-logs
    proposing-tend-instructions -> propose-instructions
    triage's fixing           -> fix-a-bug

`review`'s four stay references: no other skill's session reaches them.

Both tables go with them — the listing is the one index now, and `run-tend`
names only the handful nearly every task needs. `nightly`, `weekly`,
`notifications`, and `ci-fix` cite the skill at the step that takes the action,
which is the placement the compliance data says gets read.

`running-in-ci` becomes `run-tend`, in the imperative like the rest.

Each description is a trigger a session can recognise at the moment it is about
to act, and fits Codex's per-skill share of the skills context budget, measured
at 130 characters against the real plugin install with 22 skills. Over it, Codex
cuts the description mid-sentence and the trigger stops partway;
`test_skill_frontmatter_is_loadable` holds the ceiling and catches an unquoted
`: ` that makes the block invalid YAML. `test_plugin_skill_citations_resolve`
replaces the table-index test: a rename now fails rather than leaving a slash
command that resolves to nothing.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

@tend-agent tend-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Three findings inline, all on what the new guards hold rather than on the citation rewrites.

Two are gaps in the guards this PR adds: the description ceiling is only valid at today's skill count, and orphan references/ files stopped being detected when the table test went. The third is the CLAUDE.md criterion for what stays a reference, which this diff's own weekly citations contradict — that one needs a call rather than an edit.

I'm happy to push the first two as a commit if you want them.

Comment thread generator/tests/test_repo_pins.py Resolved
Comment thread generator/tests/test_repo_pins.py Resolved
Comment thread CLAUDE.md Resolved
…and re-check for orphan references

Three findings from the bot review, all on what the new guards hold.

`DESCRIPTION_BUDGET` is a per-skill share of one listing budget that shrinks
as skills are added, and four descriptions sit within four characters of it,
so the 23rd skill would truncate their triggers with the test still green.
`SKILLS_MEASURED_AT` pins the count the 130 was measured at; adding a skill
now means re-measuring rather than raising the number.

The table test this branch removed asserted `indexed == on_disk`, so it failed
in both directions; its replacement only checked that a cited skill exists. A
reference nothing cites loads in no session, which is the failure the removed
docstring named, so `test_skill_reference_citations_resolve` now collects the
`(owner, file)` pairs it already resolves and compares them against
`skills/*/references/*.md`.

CLAUDE.md's criterion for what stays a reference — text "no other skill's
session reaches" — is contradicted by this branch's own `weekly` citations of
`/tend-ci-runner:review`'s `references/approving.md`, and by
`shared/review-gates.md` reaching `references/draft-mode.md` for `review-runs`.
The rule now states the principle both cases follow: a pointer gets read where
the session already is when it acts, which is the listing or a step in a skill
it has loaded. Text keeps its `references/` file while the skills whose steps
cite it can be named; where the need arises from an action any workflow might
take, no skill body can be relied on to raise it, so it becomes a skill.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@max-sixty

Copy link
Copy Markdown
Owner Author

All three are in 73ca958a.

The budget now pins the count it was measured at (SKILLS_MEASURED_AT = 22), so a 23rd skill fails the test with a message saying to re-measure rather than raise it. test_skill_reference_citations_resolve collects the (owner, file) pairs it already resolves and compares them against skills/*/references/*.md, restoring the direction the table test covered — verified by adding your orphan.md and watching it fail.

On the third: the criterion was wrong, and promoting approving.md would be the wrong repair, since weekly and review-runs both reach the files they need from a step in a skill they have already loaded — the placement the compliance data says gets read. So the rule states what both cases follow: a pointer gets read where the session already is when it acts, which is the listing or a step in a loaded skill; text keeps its references/ file while the skills whose steps cite it can be named, and becomes a skill where the need arises from an action any workflow might take.

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

@tend-agent

Copy link
Copy Markdown
Collaborator

All three hold up. Verified against 73ca958a in a clean worktree — this session's checkout has CLAUDE.md and .claude/** pinned to base, so both citation tests fail there on the old running-in-ci name and pass on the PR's actual tree.

  • Description budget — SKILLS_MEASURED_AT fires as intended: a 23rd skill fails test_skill_frontmatter_is_loadable with the re-measure message rather than silently truncating the four descriptions sitting near the ceiling. The assert is symmetric, so removing a skill fails too; that direction is safe for the budget (the share grows), and re-measuring is still the right response, so nothing to change.
  • Orphan references — restored. Adding back plugins/tend-ci-runner/skills/review/references/orphan.md now fails with reference files no skill cites, so no session loads them.
  • The criterion — the rewrite resolves it, and better than promoting approving.md would have. "The skills whose steps cite it can be named" is a test a later session can apply and get this PR's answer, and it matches what's on disk: weekly/SKILL.md names approving.md at Step 0 and Step 2, shared/review-gates.md names draft-mode.md, both from a step in a skill those sessions have already loaded.

No remaining concerns from the review.

@tend-agent tend-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Three points on 73ca958, all inline. Both guards it adds fire as intended; each has a gap at its edge, and the criterion rewrite left two places still carrying the claim it replaced.

  • test_plugin_skill_citations_resolve doesn't match ${SKILL:<name>} — the citation every session on both harnesses follows, and the one this PR's rename had to update by hand.
  • CLAUDE.md's "Which file" row and a sentence in codex/agents-tail.md still say a references/ file is read only by its own skill's sessions.
  • SKILLS_MEASURED_AT pins a count narrower than the basis the share was measured against.

Happy to push all three as one commit.

Comment thread generator/tests/test_repo_pins.py Resolved
Comment thread CLAUDE.md Resolved
Comment thread generator/tests/test_repo_pins.py Resolved
…dget's real basis

Three more from the bot review of the previous commit.

`test_plugin_skill_citations_resolve` matched `/tend-ci-runner:<name>` only,
missing `${SKILL:<name>}` in `shared/system-prompt.md` — the citation every
session on both harnesses follows, and the one this branch's rename had to
update by hand. `_prompt.py` substitutes it blind, so a stale name there
renders an invocation that resolves to nothing and every session starts
without the base rules. The alternation brings the scan to 136 citations.

`SKILLS_MEASURED_AT` counted `tend-ci-runner` alone, but the share was measured
with both plugins installed and they draw on the one listing budget, so a skill
added under `install-tend` would shrink it with the pin still green. It now
counts `plugins/*/skills/*/SKILL.md`, 24 today; the loop below stays
runner-only.

`CLAUDE.md`'s "Which file" row and a sentence in `codex/agents-tail.md` still
said a `references/` file is read by its own skill's sessions, the criterion
the previous commit replaced. Read off that row, a rule both `review` and
`weekly` sessions need can't live where it does live.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@max-sixty

Copy link
Copy Markdown
Owner Author

All three are in bc0590aa.

PLUGIN_SKILL takes the alternation, so the scan covers ${SKILL:<name>} as well and resolves 136 citations; breaking the placeholder fails the test. SKILLS_MEASURED_AT counts plugins/*/skills/*/SKILL.md — 24 today — since the share was measured with both plugins installed, while paths stays runner-only for the loop. The Which file row and codex/agents-tail.md now state the criterion the bullet does.

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

@tend-agent

Copy link
Copy Markdown
Collaborator

Verified against bc0590aa in a clean worktree — this session's checkout has CLAUDE.md and .claude/** pinned to base. test_repo_pins.py is green there, 51 passed.

  • The budget's basis — holds. Dropping a plugins/install-tend/skills/probe/SKILL.md in fails test_skill_frontmatter_is_loadable with 25 skills across both plugins, not the 24 the budget was measured at, so a skill added under either plugin now moves the pin, and paths staying runner-only leaves the per-description loop where it was.
  • The criterion — the Which file row and the codex/agents-tail.md sentence now say what the bullet says, and an rg for the replaced phrasings turns up nothing else carrying it.
  • The placeholder — my finding was wrong; the alternation isn't buying anything. test_shipped_prompt_skill_tokens_resolve_to_a_bundled_skill has been on main since prompt: give the shared system prompt one home for both harness directives #1280 and already covers it: it runs _prompt.SKILL_REF over shared/system-prompt.md and codex/agents-tail.md, asserts each name resolves to a skill on disk, then renders both under every harness prefix and fails if ${SKILL survives. Those two files are the only ones _prompt.render is ever called on (compose_system_prompt.py and codex/runner.py), and the repo's single ${SKILL: occurrence is in system-prompt.md — so the widened PLUGIN_SKILL reaches no file the older test doesn't, and it's the weaker of the two on a malformed token, since it matches without requiring the closing brace. It's harmless as it stands. The one cost is that its new comment reads as if this test were the placeholder's guard, when the fuller one is elsewhere.

Nothing else outstanding from the review.

@tend-agent tend-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One finding, on the frontmatter guard this branch adds rather than on bc0590a's own hunks.

test_skill_frontmatter_is_loadable reaches front.get(...) on whatever yaml.load returned, and the two authoring slips it most needs to name both route around the curated message. A SKILL.md that forgets the --- block leaves head as the whole file, which loads as a str; a metadata: key with nothing under it makes front.get("metadata", {}) return None. Either way CI fails on a bare AttributeError naming neither the skill nor the problem, and the broken list is the reason this test is worth having.

Suggestion inline — happy to push it.

Comment thread generator/tests/test_repo_pins.py Resolved
…f an AttributeError

`yaml.load` raises only on malformed YAML, so valid YAML that isn't a mapping
reached `front.get`. The two authoring slips the guard most needs to catch both
land there: a `SKILL.md` with no `---` block loads as a `str`, and a bare
`metadata:` key makes `front.get("metadata", {})` return `None`. Either way CI
failed on a traceback carrying neither the skill nor the problem, and the
`broken` list is the reason the test is worth having.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@max-sixty

Copy link
Copy Markdown
Owner Author

Fixed in efd30831 — the guard now names the skill and the problem for both cases. Probed at that head: a SKILL.md with no --- block reports no --- frontmatter block above the body rather than the AttributeError.

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

@max-sixty
max-sixty merged commit 1ca04b2 into main Sep 18, 2026
12 checks passed
@max-sixty
max-sixty deleted the linebreaks branch September 18, 2026 19:51
@max-sixty max-sixty mentioned this pull request Sep 18, 2026
max-sixty added a commit that referenced this pull request Sep 18, 2026
Version bump, lockfile, and the `## 0.2.11` section the release workflow
publishes verbatim as the GitHub Release notes.

19 commits since 0.2.10. The headline is the skills change that just
landed: the twelve cross-cutting `references/` files are now skills in
their own right and `running-in-ci` is `run-tend`, so the harness's
skill listing — which fires on the action rather than on picking a task
— is the index ([#1305](#1305),
[#1306](#1306)). Alongside it:
`model:` forwards any name to the harness CLI so a consumer can pin an
exact id ([#1294](#1294)),
`install-tend` hands the OAuth mint to the user and drops the pty
wrapper ([#1295](#1295)), the
sandbox boundary's Ubuntu and npm packages resolve as of one recorded
instant ([#1289](#1289),
[#1291](#1291)), and `tend check`
can verify release immutability from the releases when it lacks admin —
a check that had never produced a verdict in a scheduled run
([#1290](#1290)).

Each bullet was written from the commit's diff rather than its subject.

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

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
max-sixty added a commit to max-sixty/worktrunk that referenced this pull request Sep 18, 2026
This overlay names bundled tend skills that are being renamed upstream
in [max-sixty/tend#1306](max-sixty/tend#1306),
so its pointers would resolve to nothing once that ships.

tend promoted the twelve cross-cutting `references/` files to skills in
their own right — the skill listing every session already holds becomes
the index, which fires on the action about to be taken rather than on
picking a task. Sessions were reading 26% of the references their
actions required; where the pointer sits turned out to matter more than
what it says. `running-in-ci` became `run-tend` in the same change.

Here: the intro's skill list (also still using the long-dead `tend-`
prefix form), and the standing exception's pointer, now
`/tend-ci-runner:act-in-other-repos`. The frontmatter description also
named the dead `tend-*` prefix; it now names the bundled
`tend-ci-runner` skills.

The names ship in tend
[0.2.11](https://github.com/max-sixty/tend/releases/tag/0.2.11), and
this lands after #4187, which
moves this repo's pin onto it; merged against the old pin, both pointers
would resolve to nothing.

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

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
max-sixty added a commit to max-sixty/leaf that referenced this pull request Sep 18, 2026
This overlay names bundled tend skills that are being renamed upstream
in [max-sixty/tend#1306](max-sixty/tend#1306),
so its pointers would resolve to nothing once that ships.

tend promoted the twelve cross-cutting `references/` files to skills in
their own right — the skill listing every session already holds becomes
the index, which fires on the action about to be taken rather than on
picking a task. Sessions were reading 26% of the references their
actions required; where the pointer sits turned out to matter more than
what it says. `running-in-ci` became `run-tend` in the same change.

Here: the standing exception's pointer, now
`/tend-ci-runner:act-in-other-repos`.

The names ship in tend
[0.2.11](https://github.com/max-sixty/tend/releases/tag/0.2.11), and
this lands after #804, which moves
this repo's pin onto it; merged against the old pin, both pointers would
resolve to nothing.

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

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
max-sixty pushed a commit that referenced this pull request Sep 22, 2026
… action (#1351)

`/tend-ci-runner:ground-claims` has been loaded by **0 of the 74**
`tend-review` sessions that have run since #1306 promoted it from a
`references/` file to a skill. The skills promoted alongside it are
loaded routinely in those same sessions — `monitor-ci` 33 times,
`post-to-github` 31, `push-commits` 22, `open-pr` 10 — so the listing is
being read. `ground-claims` alone never matches.

The mechanism is the rule it sits under. **Action skills** says "load
every skill its *actions* will hit", and the sentence naming the six
sits directly beneath it. Five of them name an action a session plans —
respond, post, open a PR, push, poll CI — while `ground-claims` names a
property of what the session will *say*, so a session enumerating its
actions never reaches it. The second pointer, closing **Grounded
Analysis**, reads as further reading ("carries the rest") and follows a
paragraph that already restates a usable subset, so a session arriving
there has apparently been served.

This re-keys both pointers on the claim rather than the action and adds
nothing else: one sentence in **Action skills**, two words in **Grounded
Analysis**. It is the smallest change that makes the trigger match the
situation; #1306's own rationale was that the listing "fires on the
action rather than on picking a task", which is exactly why the one
non-action skill it created sits at zero.

What it is meant to prevent is the shape whose fifth occurrence prompted
it. Reviewing #1346, a session hand-typed the consumer list, fetched
`.config/tend.yaml` from `max-sixty/numbagg` three times, got nothing
each time, and published *"`max-sixty/numbagg` has no
`.config/tend.yaml`, so the description's list of five consumers looks
like it is one short."* The consumer is `numbagg/numbagg`, and
`data/consumers.json` in the session's own checkout holds the full name.
The maintainer corrected it in-thread and the next round retracted it.
`ground-claims` carries both rules that cover it — an API returning
empty where records exist points upstream rather than at absence, and an
exhaustiveness claim needs a method that could have found a
counterexample — and the session had not loaded it.

Lint (all 13 hooks) and `uv run pytest` are green on this branch: 1220
passed, with only the two `test_refresh_consumers.py` failures
`CLAUDE.md` documents as the DNS-less sandbox's.

<details><summary>Measurement, and the gate assessment</summary>

**Method.** Every `tend-review` run created after `0.2.11` shipped the
promotion (2026-09-18T20:03Z) through this sweep's window: 74 runs, all
with session artifacts present, none skipped. `Skill` tool-uses
extracted from each JSONL. Distribution across the 74:

| skill | sessions |
|---|---|
| `running-tend` | 74 |
| `tend-ci-runner:run-tend` | 72 |
| `tend-ci-runner:code-review` | 52 |
| `tend-ci-runner:monitor-ci` | 33 |
| `tend-ci-runner:post-to-github` | 31 |
| `tend-ci-runner:push-commits` | 22 |
| `tend-ci-runner:open-pr` | 10 |
| `tend-ci-runner:ground-claims` | **0** |

Narrowing to the sessions that actually posted (47 of the 74) does not
move it: still 0, while 31 of those 47 loaded `post-to-github`.

**Gate 1.** Structural — 74 of 74, across every outcome shape and both
harness paths, with no run-to-run variation to attribute to model
choice. Its consequence, an unverified factual claim shipped in bot
output, is at its fifth occurrence (2026-08-28; #1154 2026-09-07; #1150
2026-09-08; #1306 2026-09-18; #1346 here), and this one is a wrong claim
posted publicly that a maintainer had to correct.

**Gate 2.** Targeted fix — one added sentence, one reworded clause, one
list item moved. No new section, no restatement of a rule that already
exists elsewhere.

**Why now.** The 2026-09-18 sweep recorded the fourth occurrence and
pre-registered the condition for acting: *"Next window measures whether
promotion changes the read rate; do not add instruction text before it
has."* No intervening sweep took the measurement. This one did, and the
answer is that promotion alone changed nothing.

Prior observations of this family, and the runs behind the numbers, are
on #1125.

</details>

---------

Co-authored-by: tend-agent <[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