Skip to content

docs: blocking-fork pilot and invocation-context rubric (#3545) - #4927

Merged
kyle-sexton merged 15 commits into
mainfrom
cursor/3545-invocation-context-37e9
Sep 29, 2026
Merged

kyle-sexton merged 15 commits into
mainfrom
cursor/3545-invocation-context-37e9

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Sep 28, 2026 •

Copy link
Copy Markdown
Member

Closes #3545

Summary

Blocking-fork pilot on mcp-tools:audit (context: fork, background: false), plus an owner doc for the invocation-context rubric: when a fork pays, the anti-candidate classes, and the fleet's background: false default. claude-config:audit-permission-state is deferred, not flipped: audit-pass Skill-tool-invokes it as a lane, and the 2026-09-27 operator decision on #3545 excludes skills that audit-pass chains. playbooks:skill-authoring points at the rubric without restating it.

Fix

  • New docs/conventions/invocation-context/README.md, with the pilot table, the deferred audit-permission-state entry and its unblock condition; registry row in docs/plugin-philosophy.md; cross-reference from invocation-mode.
  • mcp-tools:audit gains context: fork and background: false, a Purpose paragraph, and a no-parent-history eval.
  • skill-authoring hub, checklist and guidance point at the rubric; new eval.
  • Versions: mcp-tools 0.5.2 → 0.5.3, playbooks 0.13.29 → 0.13.30.

Verification

  • Merged current origin/main. The plugin-philosophy.md registry conflict keeps both rows (main's skill-argument-shape, this PR's invocation-context); playbooks re-bumped one patch above main.
  • check-changelog-parity.sh --check --check-order, validate-plugins.sh, check-changed-skills.sh origin/main (2 skills, 0 failed), and the mcp-tools and playbooks shell test suites pass on the merged head.

Related

🤖 Generated with Claude Code

https://claude.ai/code/session_01WejvGhkHUSWPRim2caW2Wh

@github-actions

github-actions Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

PR body contract — issue linkage

This PR body conforms to the issue-linkage contract. Nothing to do.

@cursor
cursor Bot force-pushed the cursor/3545-invocation-context-37e9 branch 3 times, most recently from 72f86b6 to 80c695d Compare September 28, 2026 12:29
cursoragent and others added 4 commits September 28, 2026 12:38
Owner doc records when fork pays, the anti-candidate classes, and this
fleet's background: false default. Registry row plus a pointer from the
invocation-mode rubric. Pilot skills land in follow-up commits.

Closes nothing on its own; part of #3545.

Co-authored-by: Kyle Sexton <[email protected]>
Pilot #3545: context: fork with background: false so audit-pass still
waits for the lane report in the same turn. Body states that $ARGUMENTS
and the working tree are the whole input.

Version 0.51.5.

Co-authored-by: Kyle Sexton <[email protected]>
Pilot #3545: context: fork with background: false. audit-posture stays
inline. The scorecard caller waits in the same turn.

Version 0.5.1.

Co-authored-by: Kyle Sexton <[email protected]>
Hub, runtime-model section, pre-share checklist, and one eval case point
at the new rubric. They do not restate it.

Version 0.13.9.

Co-authored-by: Kyle Sexton <[email protected]>
kyle-sexton and others added 5 commits September 28, 2026 11:49
# Conflicts:
#	plugins/claude-config/CHANGELOG.md
The purged-em-dashes gate flags audit-permission-state/SKILL.md:35 and
skill-authoring/SKILL.md:244-245; rewrite each with commas instead of
substituting a hyphen or en dash.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01PT4esxbdC7eQiwQxy35Mie
The comma-only rewrite of the purged em dash read as a three-item list
with a singular verb; restructure into two sentences instead.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01PT4esxbdC7eQiwQxy35Mie
@kyle-sexton
kyle-sexton marked this pull request as ready for review September 28, 2026 19:34
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 28, 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-09-28T19:37:24.400754Z 03e021b 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 03e021b343

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@claude

claude Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 28s —— View job


Security review complete

  • Load PR context and diff
  • Review changed files for security-relevant surface
  • Report findings (or confirm none)

No security issues found. This PR is documentation and skill-frontmatter only:

  • A new markdown rubric doc (docs/conventions/invocation-context/README.md) and cross-references from invocation-mode/plugin-philosophy.
  • Frontmatter additions (context: fork, background: false) plus explanatory prose on three existing SKILL.md files.
  • Changelog entries, plugin.json version bumps, and eval-case additions (evals.json).

None of these introduce executable logic, handle user input, touch authentication/authorization, or create injection surfaces (no new scripts, no shell/run: blocks, no workflow files changed). context: fork / background: false are Claude Code skill-frontmatter keys that only affect where a skill's own body executes as a subagent prompt — they don't change trust boundaries, secrets handling, or permissions for this PR's content. Skip-gate criterion 2 applies: no security-relevant surface in this diff.

@claude

claude Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 3m 23s —— View job


Code review complete

  • Gather context (PR diff, CLAUDE.md/AGENTS.md, custom instructions)
  • Review changed files for correctness and maintainability
  • Post inline findings (if any)
  • Post final summary

No blocking findings. This is a docs/metadata-only change (new rubric doc, two skill frontmatter additions, eval-JSON additions, changelog/version bumps) and it checks out cleanly:

  • The two pilot skills (claude-config:audit-permission-state, mcp-tools:audit) are read-only, argument-scoped, have no mid-flow human gate (no AskUserQuestion/confirmation), and match the new rubric's "when fork pays" criteria — no anti-candidate class applies.
  • context: fork appears in exactly two SKILL.md files repo-wide, matching the doc's claim that this is a first-of-its-kind two-skill pilot (docs/conventions/invocation-context/README.md).
  • audit-pass's lane-catalog entry for audit-permission-state correctly states it as a blocking fork and separately calls out that its --oracle path is never dispatched from the pass, consistent with audit-permission-state/SKILL.md's own description of --oracle's cost.
  • Every next-tier and anti-candidate skill named in the rubric (claude-config:audit-permission-grants, claude-ops:inventory, claude-ops:audit-install-state, skill-quality:check, code-tidying:audit-dead-code, docs-hygiene:audit-progressive-disclosure, testing:audit, plus the anti-candidate examples) resolves to a real skill directory — no stale/typo'd references.
  • Cross-references (invocation-mode ↔ invocation-context, plugin-philosophy.md registry row, skill-authoring hub/checklist/guidance) all point at real, correctly-pathed targets, using full GitHub blob URLs consistently (necessary since these are cross-plugin references that must survive standalone plugin installs).
  • New eval cases (evals.json in all three touched skills) have unique ids, well-formed JSON, and use the pre-existing narration field correctly.
  • Version bumps (claude-config 0.51.21→0.51.22, mcp-tools 0.5.2→0.5.3, playbooks 0.13.22→0.13.23) match their respective CHANGELOG.md entries.
  • No stray em dashes in the new/touched prose, consistent with the PR's own cleanup commit.

Nothing here rises to a senior-reviewer blocking or flagging bar; the change is internally consistent and self-verifying by design (the rubric doc's own claims about the pilot count and file layout check out against the actual tree).

kyle-sexton and others added 3 commits September 28, 2026 20:42
Per the operator's approval relayed for #3545, the pilot is
mcp-tools:audit alone. Revert this branch's audit-permission-state
frontmatter, Purpose paragraph and eval, the audit-pass lane-catalog
paragraph, and the claude-config bump. The invocation-context rubric
lists audit-permission-state as deferred until a recorded composition
run shows a blocking fork keeps audit-pass's timing and single gate.
Re-bump playbooks to 0.13.27 above main.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WejvGhkHUSWPRim2caW2Wh
@claude

claude Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 54s —— View job


Security review complete

  • Load PR context and diff
  • Review changed files for security-relevant surface
  • Check instruction-surface deletions against protected classes
  • Report findings (or confirm none)

No security issues found.

Reviewed the full diff (gh pr diff 4927, 13 files) at HEAD 3e34b2b. This PR is documentation and skill-frontmatter only:

  • A new rubric doc, docs/conventions/invocation-context/README.md, plus cross-references added to invocation-mode/README.md and plugin-philosophy.md.
  • context: fork / background: false frontmatter added to plugins/mcp-tools/skills/audit/SKILL.md, plus explanatory prose on the same file and on playbooks:skill-authoring's hub, checklist, and guidance surfaces.
  • Changelog entries, plugin.json version bumps, and additive eval cases (evals.json) in mcp-tools and playbooks.

None of this introduces executable logic, handles user input, touches authentication/authorization, or opens an injection surface — no scripts, no run:/shell blocks, no workflow files touched. context: fork and background: false are Claude Code skill-frontmatter keys that only change where a skill's own body executes (as an isolated subagent prompt vs. inline); they don't alter trust boundaries, secrets handling, or tool permissions for anything in this PR.

Checked the diff under the instruction-surface-deletion lens as well: every change here is additive (new doc, new cross-references, new prose, new eval cases). No existing rule, guardrail, block list, or allowlist in AGENTS.md/CLAUDE.md/skill or agent bodies is deleted, narrowed, or softened, so the instruction exception register lens finds nothing to flag.

Skip-gate criterion 2 applies: no security-relevant surface in this diff.

@claude

claude Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Code review in progress

  • Load PR context and diff
  • Read CLAUDE.md/AGENTS.md and repo review conventions
  • Review changed files for correctness and maintainability
  • Post inline findings (if any)
  • Post final summary

View job run

@claude

claude Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 5m 0s —— View job


Code review complete

  • Load PR context and diff
  • Invoke /review:code-review per custom instructions
  • Post inline findings
  • Post final summary

Reviewed the merged diff against origin/main (373 lines across the 13 files listed). Current pilot scope is one skill, mcp-tools:audit — claude-config:audit-permission-state was struck from the pilot by an earlier merge commit on this branch, and I confirmed the revert is clean (audit-permission-state/SKILL.md and audit-pass/reference/lane-catalog.md carry no stray context: fork/blocking-fork text), so the PR body's current description matches the tree.

One finding, recurring across three files (inline comments posted):

Each restates Claude Code's fork/background runtime semantics ("no parent conversation," "returns asynchronously," etc.) inside a skill body, backed only by a link to the in-repo rubric. .claude/rules/skill-bodies-state-current-rules.md (scope plugins/*/skills/**) requires a four-part verification record — claim, upstream basis, as-of date, recheck trigger — for exactly this kind of restatement; a pointer to the rubric doesn't satisfy it, and the rubric's own record (the "> Verification" block in docs/conventions/invocation-context/README.md) isn't duplicated here. This is the same defect chatgpt-codex-connector flagged as P1 on this PR — it originally also named audit-permission-state/SKILL.md and audit-pass/reference/lane-catalog.md, which are moot now that those files dropped out of the diff, but the restatements in the three files above were left unaddressed by the PR's latest commit (which fixed only the separate P2 async-report-exception finding). As a related side effect, plugins/playbooks/CHANGELOG.md#L14's claim that the touched surfaces "do not restate the rubric" is itself inaccurate for two of them (noted inline).

Fix is small either way: trim the restated sentences down to pure pointers, or add the four-part record at each site.

Everything else checks out:

  • Version bumps match their CHANGELOG.md entries (mcp-tools 0.5.2→0.5.3, playbooks 0.13.29→0.13.30).
  • New evals.json cases in both touched skills have unique, well-formed ids.
  • Every skill named in the rubric's pilot/next-tier/anti-candidate lists (claude-config:audit-permission-grants, claude-ops:inventory, claude-ops:audit-install-state, skill-quality:check, code-tidying:audit-dead-code, docs-hygiene:audit-progressive-disclosure, testing:audit, context-budget:audit, claude-ops:audit-performance, claude-ops:audit-skill-visibility, docs-hygiene:audit-encapsulation, claude-memory:audit, ai-briefing:generate, planning:interview/plan/prd) resolves to a real skill directory.
  • Cross-references (invocation-mode ↔ invocation-context, plugin-philosophy.md registry row) point at real targets.

Note: I did not independently re-run check-changelog-parity.sh, validate-plugins.sh, or the shell test suites the PR description says were run on the merged head — I did not execute them myself, so I'm not re-asserting that verification, only noting it's author-claimed.

@claude

claude Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 1m 16s —— View job


Security review complete

  • Load PR context and diff
  • Invoke /review:security-review and follow its instructions
  • Report findings (or confirm none)

Skip gate applies — no security-relevant surface. Full diff against origin/main (13 files, +218/-3) is documentation and skill-metadata only:

  • New rubric doc docs/conventions/invocation-context/README.md and cross-references from invocation-mode/plugin-philosophy.
  • Frontmatter additions (context: fork, background: false) plus explanatory prose on mcp-tools:audit.
  • skill-authoring hub/checklist/guidance updates pointing at the rubric (including the latest commit, which restores the confirmed async-report exception at skill-authoring/SKILL.md#L302-L303 — still prose only).
  • Changelog entries, plugin.json version bumps, and eval-case additions (evals.json).

None of this introduces executable logic, handles user input, touches authentication/authorization, or creates an injection surface — no new scripts, no shell/run: blocks, no workflow files changed. context: fork / background: false are Claude Code skill-frontmatter keys that only affect where a skill's own body executes as a subagent prompt; they don't change trust boundaries, secrets handling, or permissions for this PR's content.

Checked the instruction-surface-deletion lens specifically (this diff touches standing guidance files): no rule is deleted, narrowed, or softened here — every change to authoring-guidance.md / authoring-checklist.md / skill-authoring/SKILL.md is additive (new pointers to the rubric, or restoring an exception that had been over-tightened), so no protected-class check applies.

No security issues found.

Comment thread plugins/mcp-tools/skills/audit/SKILL.md Resolved
Comment thread plugins/playbooks/CHANGELOG.md Resolved
@claude

claude Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 1m 19s —— View job


Security review complete

  • Load PR context and diff
  • Invoke /review:security-review and follow its instructions
  • Report findings (or confirm none)

Skip gate applies — no security-relevant surface. Confirmed the full net diff against origin/main at HEAD 95af98c (gh pr diff 4927): 13 files, matching the PR's stated file list exactly. This is documentation and skill-frontmatter only:

  • New rubric doc docs/conventions/invocation-context/README.md, plus cross-references added to invocation-mode/README.md and plugin-philosophy.md.
  • context: fork / background: false frontmatter plus explanatory prose on plugins/mcp-tools/skills/audit/SKILL.md.
  • skill-authoring hub, checklist, and guidance updates pointing at the rubric.
  • Changelog entries, plugin.json version bumps, and additive eval cases (evals.json) in mcp-tools and playbooks. Confirmed the pilot is now scoped to a single skill: plugins/claude-config/skills/audit-permission-state/SKILL.md and audit-pass/reference/lane-catalog.md carry no context: fork text in the current tree — that half of the original pilot was reverted earlier in this branch's history, and the current diff matches that reverted state.

None of this introduces executable logic, handles user input, touches authentication/authorization, or opens an injection surface — no new scripts, no shell/run: blocks, no workflow files touched. context: fork / background: false are Claude Code skill-frontmatter keys that only change where a skill's own body executes (isolated subagent vs. inline); they don't alter trust boundaries, secrets handling, or tool permissions for anything in this PR.

Instruction-surface-deletion lens (this diff touches rule-adjacent files under plugins/*/skills/**): checked every - line in the net diff. The only removals are a version bump line in each plugin.json and one sentence in authoring-guidance.md that's rephrased in place, not dropped, into an equivalent pointer sentence. No standing rule, guardrail, block list, or allowlist in AGENTS.md/CLAUDE.md/any skill or agent body is deleted, narrowed, or softened here — every substantive change is additive (new doc, new cross-references, new prose, new eval cases). No protected-class match.

No security issues found.

@claude

claude Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 3m 11s —— View job


Code review complete

  • Load PR context and diff
  • Invoke /review:code-review per custom instructions
  • Post inline findings (none needed)
  • Post final summary

Reviewed the full diff at HEAD 95af98c (gh pr diff 4927, 13 files, +216/-3) against the review criteria in docs/conventions/invocation-context/README.md, .claude/rules/skill-bodies-state-current-rules.md, and the prior review rounds on this PR.

No blocking findings. The three P1 restatement findings raised by earlier passes (chatgpt-codex-connector and the prior claude code-review run against commit 2d876f0) are resolved by commit f40fb97 ("point at the invocation-context rubric instead of restating fork semantics"), which is now part of this head via the merge:

  • plugins/mcp-tools/skills/audit/SKILL.md#L24-L27 — the Purpose paragraph now only names context: fork/background: false and points to the rubric for what that changes; it no longer restates "no parent conversation" or "waits ... in the same turn."
  • plugins/playbooks/skills/skill-authoring/SKILL.md#L243-L249 — dropped "A fork discards conversation history and, unless background: false is set, returns asynchronously"; what remains (background: false default, anti-candidate class names) is this fleet's own authored policy, not a restatement of Claude Code's volatile runtime behavior, so it doesn't need the four-part record.
  • plugins/playbooks/skills/skill-authoring/reference/authoring-guidance.md#L153-L156 — dropped "The body becomes an isolated subagent's prompt with no parent history," so the line 156 claim "this section does not restate them" is now accurate (it was previously contradicted, per the earlier P1 finding). plugins/playbooks/CHANGELOG.md#L14's "they do not restate the rubric" is likewise now true for these two files.

Checked for regressions from the fix and from the origin/main merge itself:

  • No leftover merge-conflict markers in any touched file.
  • docs/conventions/invocation-context/README.md's own claims (single-skill pilot, audit-permission-state struck) match the tree — audit-permission-state/SKILL.md and audit-pass/reference/lane-catalog.md carry no fork/background text, confirming the revert is clean.
  • Version bumps match CHANGELOG.md entries (mcp-tools 0.5.2→0.5.3, playbooks 0.13.29→0.13.30); evals.json additions in both skills are well-formed with unique ids.
  • Cross-references (invocation-mode ↔ invocation-context, plugin-philosophy.md registry row) resolve to real targets.

One non-blocking style note, not filed as a finding since MD013 (line length) is disabled repo-wide and this is a pure line-wrap artifact: the edit to authoring-guidance.md#L154 merged two sentences onto one long line while its neighboring lines stay soft-wrapped to ~95–100 chars. Cosmetic only.

Note: I did not independently re-run check-changelog-parity.sh, validate-plugins.sh, or the plugin shell test suites the PR description says were run on the merged head — that verification is author-claimed, not something I re-executed.

@kyle-sexton
kyle-sexton merged commit c91c6de into main Sep 29, 2026
3 checks passed
@kyle-sexton
kyle-sexton deleted the cursor/3545-invocation-context-37e9 branch September 29, 2026 02:12
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.

context: fork pilot on read-only audit skills, plus an invocation-context owner doc

2 participants