Skip to content

perf(session-flow): trim skill descriptions to the description standard (#11954 pilot) - #12021

Merged
kyle-sexton merged 4 commits into
mainfrom
perf/11954-session-flow-trim-pilot
Nov 1, 2026
Merged

kyle-sexton merged 4 commits into
mainfrom
perf/11954-session-flow-trim-pilot

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Closes #11954

Summary

This shortens 16 session-flow skill descriptions to the #7582 description standard: one what-sentence, then Use when with at most three quoted triggers. Measured probes show no loss in triggering within the 5-point non-inferiority margin (Q185). This is the trim pilot that gates #7588 and the listing-budget work.

Fix

  • 16 plugins/session-flow/skills/*/SKILL.md descriptions now run 240-282 characters each; they ran 337-670 before. Total length drops from 7,877 to 4,153 characters. check, setup and tidy-work are unchanged.
  • The hook terms come from the train probes only.
  • Changelog fragment for session-flow.
  • skillListingBudgetFraction stays 0.07 (.claude/settings.json:61, Q187).

Verification

  • Should-trigger probes, pooled and paired (n=187): baseline 183/187 (0.979), trim 184/187 (0.984). The Newcombe 95% interval is [-0.026, +0.038]; its lower bound is above -0.05.
  • Should-not-trigger guard (n=119): false triggers go from 4/119 to 5/119, with Newcombe [-0.033, +0.053].
  • All six suites come back VALID under run-validity.py: Claude Code 2.1.316, claude-opus-5-5.
  • Skill visibility at 200k/4: fleet listing demand goes from 155,570 to 151,846 against a 56,000 budget, and starved skills from 221 to 216. Session-flow's own demand goes from 8,051 to 4,327.
  • check-skill.sh plugins/session-flow/skills: 0 errors.
  • The full record is posted on perf(session-flow): run the description trim pilot and measure skill visibility #11954 as its Probe result: comment.
  • Left out: one full-positives attempt was discarded after "OAuth token revoked" errors; its cause is unconfirmed.

Related

🤖 Generated with Claude Code

kyle-sexton and others added 2 commits November 1, 2026 11:29
Trim sixteen session-flow descriptions to the #7582 description standard:
one what-sentence, Use when with at most three quoted triggers, about 250
characters. Total description length falls from 7,877 to 4,153
characters. check, setup and tidy-work are unchanged.

Refs #11954

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 1, 2026 17:59
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-01T18:00:44.192211Z 1742c17 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 2f1cb45deb5b61d87baa4c639233789c8d8f9be0: read 17 of 17 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #12021 (session-flow description trim pilot)

I found no security issues.

I read every hunk of all 17 changed files:

  • 16 plugins/session-flow/skills/*/SKILL.md files. Each change replaces only the frontmatter description: line. argument-hint, user-invocable, disable-model-invocation, shell, metadata, tool grants and the skill bodies are all unchanged.
  • One new changelog fragment: .changes/session-flow/perf-11954-description-trim-pilot-7c3e91a4.md.

None of the changed files matches a trusted-path glob. The change touches no plugin manifest, workflow, trust control or merge hold. Compared with the earlier reviewed head 1742c17, the only new commit is a merge from origin/main, and the diff is the same.

Instruction-surface lens. I checked every description that lost guardrail wording. Each guard is still enforced in its skill body:

  • reconcile: the description no longer says "Gates killing running work". The body still has "GATE any kill" (reconcile/SKILL.md#L112) and the kill gate at L68–75.
  • keep-going: the description now says "Gates kills" instead of "Gates killing or re-firing side-effectful work". The body still gates re-firing side effects (keep-going/SKILL.md#L283) and still says "Do not kill work that is making progress" (L159).
  • find-handoff: the description no longer says "Read-only". The body still holds the read-only and redaction invariants and the mandatory confirm gate (find-handoff/SKILL.md#L199-L204, L152, L246).
  • continue-in-background: still says "Launches only on that request, never self-elected".
  • clean-stop: still says "Gates destructive cleanup".
  • handoff: dropped "Never on an estimate of the remaining window". That is a timing heuristic, not a security control.

A description is a routing hint, and in each case the guard lives in the skill body, so no protected rule lost its enforcement. I didn't open docs/contracts/instruction-exception-register/README.md. This check went by what each removed phrase prevents, not by the register's class list.

Embedded text: none. The PR context contains no instructions aimed at this review.

Spend: none. The change only shortens listing text.

critical-findings: 0

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

claude-review: 1 inline finding(s) on 1742c17ff0f4750e40e05ded5be88a8f6433f15f; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 2f1cb45deb5b61d87baa4c639233789c8d8f9be0: read 17 of 17 changed file(s); 0 finding(s), 0 as inline comments.

Code review: PR #12021 (session-flow description trim pilot)

I found no problems on this head.

Scope. I read every hunk of all 17 changed files: the 16 plugins/session-flow/skills/*/SKILL.md frontmatter description lines and the changelog fragment .changes/session-flow/perf-11954-description-trim-pilot-7c3e91a4.md. None of them matches a trusted-path glob. No plugin manifest changed, so the manifest checks don't apply.

Prior finding. Round 1's advisory said the changelog fragment described the pilot as still running. That is fixed: the fragment's last sentence now reads "Live invocation probes on the plugin's own probe set showed no loss in triggering within a 5-point non-inferiority margin." I am not posting it again.

Correctness. Each new description follows the #7582 shape: one what-sentence, then Use when with at most three quoted triggers. Every cross-reference names a session-flow skill that exists: keep-going, reconcile, recall, orient, workflow, recommend-skills, continue-in-background and running-retro. The gating sentences are kept: "Gates destructive cleanup" in clean-stop, "Launches only on that request, never self-elected" in continue-in-background, "Gates kills" in keep-going, and "Writes nothing" in orient. Retro's mode list is gone from its description but is still in its argument-hint. bump: patch fits a change that only edits description text.

Path-scoped rules. Two rules match these files, and the changes break neither:

  • .claude/rules/skill-bodies-state-current-rules.md: the descriptions state no volatile upstream facts.
  • .claude/rules/cost-claims.md: they make no cost or figure claims ("wasted time and tokens" names a topic, not a cost figure).

Closing issue #11954.

  • Criterion 1: the Probe result: comment must show non-inferiority within a 5-point margin, with the visibility measurement posted alongside. The PR context includes that comment, reporting Newcombe [-0.026, +0.038], the guard rates, and the listing-demand figures in the PR body. All of this is author-claimed; I could not run the probes. No repository test can catch a drop in triggering, which is expected for a criterion that is a measurement.
  • Criterion 2: skillListingBudgetFraction stays 0.07. The diff does not touch .claude/settings.json, so this is met.

Embedded text. Nothing in the PR context tries to direct this lane.

Spend. None.

kyle-sexton and others added 2 commits November 1, 2026 14:25
…gment

The fragment said the probes would decide whether the trim ships; it
ships only after they did, so state the result instead.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 1, 2026
Merged via the queue into main with commit 08e5938 Nov 1, 2026
42 checks passed
@kyle-sexton
kyle-sexton deleted the perf/11954-session-flow-trim-pilot branch November 1, 2026 20:15
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.

perf(session-flow): run the description trim pilot and measure skill visibility

1 participant