Skip to content

fix(running-in-ci): one when-keyed index for every reference - #1253

Merged
max-sixty merged 3 commits into
mainfrom
breaks
Sep 16, 2026
Merged

max-sixty merged 3 commits into
mainfrom
breaks

Conversation

@max-sixty

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

Copy link
Copy Markdown
Owner

Tend's PR and issue bodies have been shipping hard-wrapped at ~72-80 columns, which GitHub renders as breaks mid-sentence. The single-line-paragraph rule is in references/posting.md, but the references index keyed that file to comments and pr-creation.md to gh pr create, so a session opening a PR read pr-creation.md and never reached posting.md. Two triage runs 15 minutes apart show it in their session logs: the one whose PR body wrapped read posting.md 13 minutes after gh pr create, on its way to the issue comment, which came out unwrapped.

The index in running-in-ci/SKILL.md is now a table keyed by action that names every file to read before it, so the row for gh pr create and gh issue create lists posting.md alongside pr-creation.md. Its lead-in states that read as a requirement rather than describing the table, and tells the session to read the files in the run that takes the action — too late is how this one failed.

It is also the plugin's only index now, and the only place that says when to read a reference and what it carries. Review's four references join the table, the body paragraphs that restated a file's contents are gone, and so is the Depth behind ... line each reference opened with. That line held two instructions in re-targeting.md that appear nowhere else — read the delta in full, keep the hidden draft marker — so those moved into its body.

Two consistency repairs came out of review: the Scope restriction promised that Other Repos carries all three cases after that section had been cut back to the default alone, and CLAUDE.md's authoring rule still told authors to keep a per-skill references list, which would have re-fragmented the index.

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

max-sixty and others added 2 commits September 15, 2026 16:54
Bot PR and issue bodies were shipping hard-wrapped, which GitHub renders as mid-sentence line breaks. The single-line-paragraph rule is in references/posting.md, but the index keyed that file to comments and pr-creation.md to gh pr create, so sessions opening a PR read pr-creation.md and never posting.md. The index is now a table keyed by action that names every file to read for it, so gh pr create and gh issue create list posting.md alongside pr-creation.md.

It is also the only index the plugin has, and the only place that says when to read a reference and what it carries. Review's four references join the table, the body paragraphs that restated a file's contents are gone, and so is the 'Depth behind ...' header each reference carried. The two instructions re-targeting.md's header carried, reading the delta in full and keeping the draft marker, moved into its body.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The index read as background reading, so a session could pass over it. State the read as a rule, with what skipping it costs.

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.

Two places the consolidation leaves behind an inconsistency.

The Scope restriction still reads "Other Repos below carries all three cases", but that section is now the default case alone with no pointer onward. Three other call sites route to it for the same substance — review-runs' "file the fix against tend per Other Repos", notifications' "new issues follow Other Repos", and pr-creation.md's "filing into another repo follows Other Repos in SKILL.md" — so each now lands on two sentences that say only "ask permission first". The inline suggestion restores a one-clause pointer, which repairs all four at once; fixing the Scope sentence to name references/other-repos.md directly would also clear the false claim, but leaves the three cross-skill pointers thin.

CLAUDE.md's Authoring skills rule is now out of step with the structure this PR establishes: "SKILL.md keeps the rules every session needs plus a references list that names each file and the action that triggers reading it". review/SKILL.md deliberately no longer keeps one. Left unchanged, the next session that adds a reference file follows CLAUDE.md, re-adds a per-skill list, and re-fragments the index this PR just made singular. I can push that CLAUDE.md edit onto this branch if you want it here.

…ule in step

Consolidating the index left two claims stale: the Scope restriction promised that Other Repos carries all three cases when the section had been cut to the default alone, and CLAUDE.md still told authors to keep a per-skill references list, which would re-fragment the index. Both from tend's review on this PR.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit c5a8b68 into main Sep 16, 2026
13 checks passed
@max-sixty
max-sixty deleted the breaks branch September 16, 2026 04:50
@max-sixty max-sixty mentioned this pull request Sep 16, 2026
max-sixty added a commit that referenced this pull request Sep 16, 2026
Bumps the generator to 0.2.9, syncs `uv.lock`, and adds the `## 0.2.9`
changelog section that `pypi-release.yaml` publishes as the GitHub
Release notes.

The release covers 7 commits since 0.2.8. #1254 sets `NO_COLOR=1` and
`CLICOLOR_FORCE=0` on tend's Python `gh` readers, including the
pre-check scripts inlined into the generated `tend-notifications` and
`tend-mention` workflows, so an inherited forced colour setting no
longer breaks their JSON parsing. #1259 has a session review its own
diff before the push that opens a PR or pushes a fix to one under
review. #1253 makes `running-in-ci`'s references index a table keyed by
action, so PR and issue creation reads `posting.md`. #1258 adds a
comment to the generated `tend-mention-relay.yaml`. No config format
changes.

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

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

---------

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
max-sixty pushed a commit to max-sixty/worktrunk that referenced this pull request Sep 17, 2026
Regenerates the `tend-*.yaml` workflows with tend 0.2.9 (from 0.2.8) and
moves the
`max-sixty/tend/claude` action pin with them.

Two changes reach the generated files:

- **`gh` JSON reads are no longer corrupted by a forced-colour
environment.** The
preflight scripts in `tend-mention` and `tend-notifications` parse `gh
--json`
output; when the job environment forces colour, `gh` writes ANSI codes
into that
  piped response and the parse sees them. Both readers now run `gh` with
`NO_COLOR=1` and `CLICOLOR_FORCE=0` — `gh` ranks a forced value above
`NO_COLOR`,
  so the second variable is the one that actually settles it
  (max-sixty/tend#1254).
- **`tend-mention-relay` records why it carries no pause check.**
Comment only: the
relay job boots no agent, and `TEND_ENABLED=false` already skips the
jobs that do,
  so a paused repo relays an event that then reaches nothing
  (max-sixty/tend#1258).

The action bump also picks up the bundled-skill changes at that ref,
which change
how the bot behaves rather than what the workflow files say: it now
reviews a change
before the push that opens or fixes a PR (max-sixty/tend#1259), and the
`running-in-ci` references index is keyed by when to read each file
(max-sixty/tend#1253).

Release mechanics and tend-internal test/doc fixes in the range are
omitted.

Full comparison: max-sixty/tend@0.2.8...0.2.9

`.config/tend.yaml` pins no model, so nothing there needed updating.

Co-authored-by: worktrunk-bot <[email protected]>
max-sixty pushed a commit to max-sixty/leaf that referenced this pull request Sep 17, 2026
Regenerates the tend workflows from 0.2.8 to 0.2.9 and moves the
`max-sixty/tend/claude`
action pin with them.

The change adopters will notice is the forced-colour fix in the
preflight readers
(max-sixty/tend#1254). `tend-mention` and `tend-notifications` each
embed a small Python
`gh` wrapper whose `--json` output is parsed before the agent boots.
`gh` colourizes a
piped JSON response when the job environment forces colour, and those
ANSI codes landed
inside the body the wrapper hands to `json.loads`, failing the preflight
and stranding the
trigger. Both wrappers now run `gh` with `NO_COLOR=1` and
`CLICOLOR_FORCE=0`; the second is
what actually defeats it, since `gh` ranks a forced value above
`NO_COLOR`.

The bundled skills carry one behaviour change with it: the bot now
reviews its own change
before the push that opens or fixes a PR (max-sixty/tend#1259), so a PR
it opens should
arrive having had a pass over its own diff.

`tend-mention-relay` gains comment-only text recording why the relay job
carries no
`TEND_ENABLED` check — it boots no agent, and a paused repo stops at
`tend-mention`'s
`verify` regardless. No behaviour change there.

Support: <max-sixty/tend@0.2.8...0.2.9>

<details><summary>Upstream commits in this range</summary>

The remaining entries are tend-internal and produce no adopter-visible
effect: the
references-index rule and its scoping (max-sixty/tend#1253), an
integration-test count
correction (max-sixty/tend#1255), and release mechanics
(max-sixty/tend#1251, max-sixty/tend#1260).

</details>

Co-authored-by: leaf-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