Skip to content

perf(security-issue-sync): wording pass on the sibling files, with evals - #1500

Merged
potiuk merged 2 commits into
apache:mainfrom
potiuk:perf/security-sync-siblings-wording
Oct 3, 2026
Merged

potiuk merged 2 commits into
apache:mainfrom
potiuk:perf/security-sync-siblings-wording

Conversation

@potiuk

@potiuk potiuk commented Oct 3, 2026

Copy link
Copy Markdown
Member

Wording pass on the sibling files of security-issue-sync, plus evals for the sections that had none (#1344 follow-up).

Summary

  • Wording. gather.md, signals-to-actions.md, apply-and-push.md, bulk-mode.md and github-advisory.md get the style rules the maintainer approved for the SKILL.md files. Each line now holds one sentence, long inline rationale is cut to a clause, and rules restated from SKILL.md, AGENTS.md or the tool docs become pointers. Headings and fenced blocks are byte-identical. 235,260 → 211,177 characters, about 6k tokens less per full sync run. next-step.md is already tight and stays unchanged.
  • Fixes while there:
    • apply-and-push.md's intro said six pre-push gates; Step 5b lists seven.
    • Two stale step references in gather.md.
    • An unescaped | in a bulk-mode.md table cell.
  • New evals: 23 cases in four suites pin the sections the wording pass changed that no eval covered. Expected values come from the text on main.
    • step-1d-signals (6)
    • step-5b-push-decision (6)
    • step-bulk-selectors (6)
    • step-ghsa-access-tier (5)
  • Restored during review. Writing the evals surfaced three places where the reworded text was weaker than main, and each is back to main's wording:
    • Cross-project callout in gather.md. It is repeated there for subagents that load only that file, and the rewrite had shortened it to a pointer to SKILL.md.
    • Collaborator-tier qualifier on the GHSA admin hand-off. Without it the hand-off reads as unconditional. The model still answered correctly without it, so this restore is for clarity and no eval proves it.
    • Lower-bound row: "The proposal must surface both …".

Test plan

  • prek hooks on commit

  • Full security-issue-sync suite before (main) and after: 47/48 both times. The same step-1f case-3 grader failure appears on main.

  • The four new suites, on main and on this branch, all pass:

    Suite main branch
    1d 6/6 6/6
    5b 6/6 6/6
    bulk-selectors 6/6 6/6
    ghsa-access-tier 5/5 5/5

    1d case-1 needed a test fix first. Its graded notes field kept failing on wording that meant the same thing ("all-versions-affected" vs "< 3.2.2"). The behaviour that field was checking ("show the current shape alongside the proposal") is now a strict field, and case 1 passed three runs in a row.

Ambiguities found that this PR leaves alone, since they read the same on main:

  • 5b: a not-configured session probe on a fix released run is told to "skip silently", while the only acceptable deferral requires an explicit blocker.
  • bulk mode: dispatch-urgent can never fire under first-match ordering.
  • bulk mode: it is unclear whether pre-flight skips apply to sync CVE-… selectors.

🤖 Generated with Claude Code

potiuk added 2 commits October 3, 2026 23:32
The optimize-skill rewrite pass, with the style rules the maintainer
approved for the SKILL.md files, applied to the subdocs a sync run
loads: gather.md, signals-to-actions.md, apply-and-push.md,
bulk-mode.md and github-advisory.md. One sentence per line, long
inline rationale cut to a clause, and pointers to SKILL.md, AGENTS.md
and the tool docs instead of restated rules.

Headings and fenced blocks are byte-identical; every rule, trigger,
field, label, marker, regex and command form is kept. Also fixed:
apply-and-push.md's intro said six pre-push gates where Step 5b lists
seven, and two stale step references in gather.md.

235,260 -> 211,177 characters (about 6k tokens less per full sync
run). next-step.md is already tight and is unchanged.

Generated-by: Claude Opus 5
…erage

Four new suites pin the rules in the subdocs the wording pass changed
and no eval covered:

- step-1d-signals (6): gather.md 1d - affected-versions lower bound
  (widen / keep and backtick-wrap), title strip and its under-3-words
  guard, private-scanner credit and its public-credit exemption,
  reporter CVSS surfaced but not proposed.
- step-5b-push-decision (6): apply-and-push.md Step 5b - skip gate,
  expired-session hand-off, two pre-push hygiene gates, clean push
  with allocated -> review-ready, close-out push on a PUBLIC record.
- step-bulk-selectors (6): bulk-mode.md - injection-shaped CVE token
  rejected, CVE list expansion, sync-all skip rules, named trackers
  never skipped, force-sync, review-ready push exemption.
- step-ghsa-access-tier (5): github-advisory.md - writes by access
  tier, 403 admin hand-off as a relay draft, reporter-reply paths.

Expected values come from the text on main. Two places where the
reworded text was weaker are restored: the cross-project callout in
gather.md (repeated there for subagents that load only that file),
and the collaborator-tier qualifier on the GHSA admin hand-off. The
lower-bound row keeps "The proposal must surface both ...".

Generated-by: Claude Opus 5
@potiuk
potiuk merged commit beca01f into apache:main Oct 3, 2026
9 checks passed
@potiuk potiuk added capability:intake Import external signal + sync tracker state family:docs Docs, MISSION.md, READMEs family:security security-* skills family:tools tools/* substrate:framework-dev Tool substrate: build / validate / eval the framework itself labels Oct 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

capability:intake Import external signal + sync tracker state family:docs Docs, MISSION.md, READMEs family:security security-* skills family:tools tools/* substrate:framework-dev Tool substrate: build / validate / eval the framework itself

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant