Skip to content

skills: soften over-stringent guidance into examples and open frames - #693

Merged
max-sixty merged 2 commits into
mainfrom
loosen-guidance
Jun 14, 2026
Merged

max-sixty merged 2 commits into
mainfrom
loosen-guidance

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Follow-up to the triage reply-templates change (#692). A fan-out audit of tend's bot guidance — 16 skill/prompt files, each finding adversarially verified — found that the triage-template problem was systemic. Two anti-patterns recur across the skills, both giving a good median output but an awkward or incomplete tail:

  • Verbatim templates the bot reproduces literally (canned comment/PR-body wording).
  • Closed enumerated lists the bot reads as exhaustive ("respond to these categories", "cross-check these workflows").

This applies the 8 high/medium-value softenings the audit surfaced, and codifies the underlying principle in CLAUDE.md → "Authoring skills" so new skills don't reintroduce the pattern.

What changed

  • review-runs Step 4 — cross-check applies to every tend workflow, not just the four listed. This was a real coverage gap: the bot could skip checking mention/notifications/weekly/review-reviewers.
  • ci-fix 3a — transient-failure signals presented as examples to weigh, not a checklist to satisfy (the conservative default-to-durable backstop and repeat-occurrence escalation are unchanged).
  • notifications 4b — framed as the fallback for any notification no dedicated workflow covered, not a closed category list (Step 3 scope/security and Step 4a freshness/dedup guards unchanged).
  • review-reviewers Step 2 — rejection signals are examples; every bullet and the corruption-scan recipe are kept verbatim.
  • running-in-ci — the upstream-issue permission offer and the "'Likely' is a stop-sign" rule reframed around intent and semantic shape rather than fixed wording.
  • nightly Step 7, weekly Step 2 — canned PR-body strings become goal-stated summaries the model writes per-situation.

Safety

Each site keeps its load-bearing guard; only the wording loosens. Safety/correctness gates (reproduce-before-fix), security rules, branch-protection, and exact commands were deliberately left rigid — the audit's verification pass dropped any finding that touched them. An independent review confirmed no guard was weakened and no cross-reference broken.

The audit's low-tier findings (17 more of the same two patterns, lower value) are a candidate fast-follow.

This was written by Claude Code on behalf of max

A fan-out audit of tend's bot guidance found the triage-template problem was systemic: two anti-patterns recur across the skills — verbatim output templates the bot reproduces literally, and closed enumerated lists it reads as exhaustive. Both produce a good median but an awkward or incomplete tail.

Apply the verified high/medium-value softenings (8 sites) and codify the principle in CLAUDE.md so new skills do not reintroduce it:

- review-runs Step 4: cross-check applies to every workflow, not just the four listed (a real coverage gap).
- ci-fix 3a: transient signals are examples to weigh, not a checklist (default-to-durable backstop kept).
- notifications 4b: fallback for any uncovered notification, not a closed category list (Step 3/4a guards kept).
- review-reviewers Step 2: rejection signals are examples; all bullets and the corruption recipe kept.
- running-in-ci: upstream-issue offer and the "Likely is a stop-sign" rule reframed around intent/shape.
- nightly Step 7, weekly Step 2: canned PR-body strings become goal-stated summaries.

Each keeps its load-bearing guard; only the wording loosens. An independent review confirmed no guard weakened and no cross-reference broken. Safety/correctness gates, security rules, and exact commands were deliberately left rigid.

Co-Authored-By: Claude Opus 4.8 (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.

The audit framing is sound and the new CLAUDE.md principle is a good codification. One concern on the weekly change worth surfacing — flagged inline.

Smaller things I considered and decided to leave alone: the <sole handler> → <fallback> reframing in notifications widens semantic scope but the Step 3 scope and 4a freshness/dedup are still load-bearing; the dropped specific "5 prior runs" threshold in ci-fix loses precision but the repeat-occurrence escalation backstops it; the bold/unbolded split between the four example workflows and the four "same treatment" workflows in review-runs Step 4 reads slightly inconsistent but is workable as "examples + sweep".

Review feedback on #693: a `<fill-in>` token inside the shell `--body` string ships as the public approval body if substitution is ever missed, and the running-in-ci placeholder grep guard does not catch that token. Put the example in a comment and pass a `$REVIEW_BODY` variable instead — matching the new "example labeled as such rather than verbatim wording to paste" principle, and surfacing any unset-variable failure at compose time.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit 7d737d2 into main Jun 14, 2026
9 checks passed
@max-sixty
max-sixty deleted the loosen-guidance branch June 14, 2026 21:40
max-sixty pushed a commit to max-sixty/worktrunk that referenced this pull request Jun 18, 2026
Automated nightly regeneration of tend's workflow files.

**tend version:** 0.1.4 → 0.1.6

The committed workflow bodies were stamped `0.1.4` (action ref already
at `0.1.5`); this regen brings both the stamp and the `max-sixty/tend@`
action pin to `0.1.6`. The workflow bodies are otherwise unchanged — the
deltas are the version stamp and action-ref bumps.

**Notable changes** (consumer-relevant):

- Nightly sweep now skips stamp-only workflow regen PRs and scopes its
"Notable changes" list to consumer-relevant entries (max-sixty/tend#689,
max-sixty/tend#690).
- CI monitoring: a pushed fix now waits for and owns its CI
(max-sixty/tend#700).
- Triage/skills: issue-comment templates reframed as examples;
over-stringent guidance softened into examples and open frames
(max-sixty/tend#692, max-sixty/tend#693).
- `running-tend`: added a weekly task to bump `claude_version` to latest
(max-sixty/tend#696).
- Skills: replaced duplicated guidance with `running-in-ci` references
(max-sixty/tend#703).

Compare: max-sixty/tend@0.1.4...0.1.6

Co-authored-by: worktrunk-bot <[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