Repository navigation
Description
Decision packet: proactive-use descriptions on security-reviewer and ecosystem-specialist, and the instruction-surface lens
This comes from the 2026-09-29 audit of the Cursor agent run. It needs an owner decision on two questions. No option is implemented.
Q1. Should the "proactive" trigger be dropped from the other two agents?
#4268 removed the "Proactively ... use immediately" trigger from code-reviewer because it invites delegation on every edit. Its evidence was one hand-invoked run. The same wording is still present in:
plugins/review/agents/security-reviewer.md:3: "Proactively reviews code for vulnerabilities ... Use when modifying authentication, authorization, data handling, API endpoints ..."plugins/review/agents/ecosystem-specialist.md:3: "Use proactively after code changes ..."
Evidence exists only for code-reviewer. security-reviewer's trigger acts as a coverage guarantee for security-sensitive edits, so removing it could reduce coverage.
Options:
- A. Keep both.
- B. Drop from
ecosystem-specialistonly. - C. Drop from both.
Recommendation: B. Basis: security-reviewer.md:3 scopes its trigger to named security-sensitive changes, so the delegation cost is bounded and removal has a coverage risk; ecosystem-specialist.md:3 is unscoped ("after code changes") and has the same shape as the code-reviewer wording #4268 removed. That the unscoped shape costs as much in ecosystem-specialist as in code-reviewer is judgment: no run of either agent was measured.
Q2. Should the #3566 instruction-surface-deletion lens also be in agents/security-reviewer.md?
The lens ("Instruction-surface deletions") is at plugins/review/skills/security-review/SKILL.md:112 and fires in the CI security-review lane only. agents/security-reviewer.md does not have it, so /review:quality-gate security mode and /review:fanout judge a guardrail-only deletion without it. The same diff can pass locally and be flagged in CI. PR #5277 states the CI-lane-only fact in the skill for now.
Options:
- A. Mirror the lens into the agent.
- B. Keep it CI-lane only and keep the stated gap.
No default is recommended: this is a security-posture change. Mirroring closes a local/CI inconsistency but widens what the agent flags. The evidence that would settle it is how often guardrail-only deletions reach the local path, which was not measured.
What the decisions unblock
Two small edits: the description lines in Q1, and one paragraph in the agent in Q2.
Acceptance criteria
- Owner answers Q1 and Q2 in a comment.
- The chosen edits land, or the gap is recorded as intended.
Activity
kyle-sexton commentedon Sep 29, 2026
Owner decision (2026-09-29): Q1: drop the proactive trigger from ecosystem-specialist only; keep security-reviewer's scoped trigger. Q2: decide with evidence; the owner accepted the recommendation, which delegates gathering how often guardrail-only deletions reach the local review path (/review:quality-gate security mode, /review:fanout), measured against the lens at plugins/review/skills/security-review/SKILL.md:112.
Next: an agent edits the ecosystem-specialist description line (Q1), then gathers the Q2 evidence and posts it here. Because Q2 is a security-posture change, it stops after posting the evidence and the owner makes the final call; needs-human stays.
kyle-sexton commentedon Sep 29, 2026
Evidence for Q2 (not a decision). How often a guardrail-only deletion reaches the local review path (
/review:quality-gatesecurity mode,/review:fanout, both viaagents/security-reviewer.md, which lacks the lens) versus the CI lane, where the "Instruction-surface deletions" lens atplugins/review/skills/security-review/SKILL.md:112fires.Bottom line
Method
origin/mainat96436062d, window 2026-07-01 to 2026-09-29 (90 days; the first commit in the repo is 2026-06-22). Merges are squashes; 2,817 of the 2,833 non-merge commits carry a PR number.git log origin/main --since=2026-07-01 --no-merges -M --numstat, parsed with a Python script (scratch, not committed). Per commit, added and deleted lines are summed over instruction-surface files:CLAUDE.md/AGENTS.md,.claude/rules/**,plugins/*/skills/**/SKILL.md,plugins/*/agents/*.md,plugins/*/hooks/block-*.sh.never | must not | do not | don't | forbid* | deny | block* | refus* | prohibit* | only | always | stop(case-insensitive), compared with the same count on added lines. It is a keyword screen, not a judgment about whether a rule was a guardrail.Counts (2026-07-01 to 2026-09-29)
By surface (files with deletions / deleting more than adding / adding nothing):
SKILL.md1,110 / 75 / 1; agents 66 / 4 / 0;CLAUDE.md/AGENTS.md23 / 10 / 6; hook block scripts 103 / 6 / 0;.claude/rules6 / 2 / 0.Most of the 1,148 rewrites and 79 deletion-dominant commits are editorial (de-slop, spoke extraction, compression). The keyword screen does not separate an editorial cut from a guardrail cut, so read every count above as an upper bound.
The 7 deletion-only commits, by what I read of their removed lines:
CLAUDE.md(a fresh-docs mandate, plugin design rules) and 28 ofAGENTS.md, plus thehooksandenabledPluginsblocks in.claude/settings.json. An intentional baseline reset. By my reading theCLAUDE.mdcontent is process and design rules that map loosely, if at all, to the register's six classes (judgment).AGENTS.md): removed "never patch the materialized copy here" and a cloud-sessions note.managed-files-guard.ymlenforces the first mechanically, and the lens does not count a mechanically enforced rule as a finding (judgment: the lens would probably not have flagged it).AGENTS.mdsections of procedural guidance (run affected suites, theexec-bitCI fix, Cursor cloud setup). Advisory, not register-class by my reading.## Purposefrom the work skill #3185 (drops a## Purposeheading) and revert: remove Cursor dual-target marketplace manifests (#1835) #1839 (reverts manifests): classified by title only, not read.CI lane on the 96 commits that lost guardrail-keyword lines
Classified from the
### Security reviewissue comment by the claude lane on each PR:So 56 of 96 had no completed lane review. The 51 were not investigated individually (early PRs, draft PRs, skipped runs, or removed comments are all possible).
Pre-lens examples:
guardrailsplugin (a settings removal) and called theCLAUDE.md/AGENTS.mdblanking "a soft/advisory-instruction loss, not a technical control". So pre-lens it caught the settings change and dismissed the instruction deletion.plugins/ai-briefing/skills/generate/context/execution-flow.md): the lane checked that the outbound-collection safety rules in it survived elsewhere, and found they did. Pre-lens, the lane sometimes checks a deletion without the lens.After the lens landed (2026-09-28 19:45 -04:00 onward): 91 commits with surface deletions, 90 with a security-lane comment, 73 of those comments name the instruction-surface lens or the register. None raised a finding about a deleted guardrail. Three raised findings on other subjects, which I read:
do-not-mergelabel gate was enforced only in one tier, after a SKILL.md reword admitted the gap. I called it a code-gate gap, not a softening by deletion.unattendedflag invokes a mutating native step without asking, a departure from theagent-authorityrail stated indocs/conventions/native-references/README.md. This is lens-adjacent (register class, standing instruction overridden) but an addition, not a deletion.#5287 shows the lens working as written: the lane refused the prose-only skip, checked each removed passage against the register's six classes, and reported no finding. This window is about one day, so 73 applications with 0 deletion findings is not a rate.
Local path (
/review:quality-gatesecurity mode,/review:fanout).work/reviews/<branch-slug>/, gitignored (plugins/review/reference/topic-docs.md). Found 0 findings files in the main checkout's.workand in the worktrees under~/worktrees.review:quality-gateSkill calls: 0. Typed<command-name>invocations ofreview:quality-gateorreview:fanout: 0.review:fanoutSkill call: 1 session.security-reviewersubagent dispatch: 9 sessions (change under review not determined).Gaps in the data
## Purposefrom the work skill #3185 and revert: remove Cursor dual-target marketplace manifests (#1835) #1839 by title.claude-security-review-hosted.ymlcallsci-workflowsv0.30.1); the post-lens comments show the lens active by 2026-09-29.Other enforcement that already catches instruction deletions
claude-config:audit-instructionsandclaude-config:unhobblehold register-class deletions, only inside those two trimming skills (register README, consumer table). A hand edit or any other route relies on the lens at PR review.plugins/implementation/skills/implement-dispatch/reattach-slice.test.sh(6assert_gatechecks). They cover only enumerated gates..github/workflows/silent-revert-canary.yml: post-merge and advisory, detects a squash that drops content another recent commit added. It is not a check on guardrail deletion in general..github/workflows/managed-files-guard.yml: advisory during soak; fails a PR that hand-edits a standards-managed file. It covers managed files only.unhobbleeval fixture.What this implies for the options
The final call on Q2 stays with the owner; needs-human stays.
fix(review): drop the proactive trigger from ecosystem-specialist (#5396
kyle-sexton commentedon Sep 30, 2026
Owner decision (2026-09-29): approved consensus
Question. Q2 (the only open question; Q1 was decided as B): should the #3566 instruction-surface-deletion lens also live in
plugins/review/agents/security-reviewer.md? A. Mirror the lens into the agent. B. Keep it CI-lane only and keep the stated gap.Decision. Q2: A, mirrored as a short pointer paragraph (trigger condition, consequence-based recognition, cite docs/conventions/instruction-exception-register/README.md), not a copy of SKILL.md:112-125. Also add the agent as a row in the register's "Who consumes this" table.
Rationale. The register says "A register nothing consumes changes no behavior" and that a deletion "by hand or by any other route" must meet the lens. The local agent is such a route and currently has no consumer entry (register README lines 40-63). The cost objection is weak: the lens only fires on diffs that delete, narrow or soften a standing instruction (7 of 2,833 deletion-only commits in 90 days), and the "73 of 90" figure counts CI comments naming the lens, not local runs. Local-path exposure cannot be measured, and consumers without the CI lane rely on the agent alone. Confidence is moderate (0.6): precision is unmeasured, so the choice rests on convention.
Next: needs-human and status: needs-decision are removed and agent-ready is set. An agent will add the pointer paragraph to
security-reviewer.md, add the register consumer-table row, and apply the Q1=B description edit toecosystem-specialist.md, in a draft PR.