Repository navigation
skills: promote the cross-cutting references to skills, and rename running-in-ci to run-tend - #1306
Conversation
…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
left a comment
There was a problem hiding this comment.
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.
…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]>
|
All three are in The budget now pins the count it was measured at ( On the third: the criterion was wrong, and promoting
|
|
All three hold up. Verified against
No remaining concerns from the review. |
tend-agent
left a comment
There was a problem hiding this comment.
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_resolvedoesn'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 incodex/agents-tail.mdstill say areferences/file is read only by its own skill's sessions.SKILLS_MEASURED_ATpins a count narrower than the basis the share was measured against.
Happy to push all three as one commit.
…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]>
|
All three are in
|
|
Verified against
Nothing else outstanding from the review. |
tend-agent
left a comment
There was a problem hiding this comment.
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.
…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]>
|
Fixed in
|
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]>
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]>
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]>
… 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]>
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.
trigger-context.md/tend-ci-runner:respond-on-threadposting.md/tend-ci-runner:post-to-githubpr-creation.md/tend-ci-runner:open-prpushing.md/tend-ci-runner:push-commitsci-monitoring.md/tend-ci-runner:monitor-cigrounded-analysis.md/tend-ci-runner:ground-claimsdirectives.md/tend-ci-runner:check-requester-accessdismissing-approval.md/tend-ci-runner:dismiss-approvalother-repos.md/tend-ci-runner:act-in-other-repossession-logs.md/tend-ci-runner:read-session-logsproposing-tend-instructions.md/tend-ci-runner:propose-instructionstriage'sfixing.md/tend-ci-runner:fix-a-bugreview'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 theweeklyandreview-runssessions that reach two of them.CLAUDE.mdstates that criterion, rather than the reader-set one it had, which this PR's ownweeklycitations contradicted. Both References tables go with the promotion — the listing is the one index now, andrun-tendnames only the handful nearly every task needs.nightly,weekly,notifications, andci-fixcite the skill at the step that takes the action, which is the placement the compliance data says gets read.running-in-cibecomesrun-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_loadableholds 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_resolvereplaces the table-index test's forward direction — a rename now fails here rather than leaving slash commands that resolve to nothing — andtest_skill_reference_citations_resolvekeeps the reverse one, failing on areferences/file no skill cites, which loads in no session.Where the 26% came from
Session-log artifacts from 32 recent runs across
max-sixty/worktrunkandmax-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 readnightly-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-ciin prose, two of them pointing at sections that have moved out of it.🤖 Generated with Claude Code