This is the second focused reduction target after #13535 and #13537.
Current measured evidence:
node ./ai/scripts/lint/lint-skill-manifest.mjs --report-sizes --top 20 ranks .agents/skills/pull-request/references/pull-request-workflow.md as a top remaining hotspot: 34,096 bytes, 387 lines, 148 signals, disposition compress-to-trigger.
.agents/skills/skills.manifest.json still carries a temporary migration-period per-file budget override for pull-request (perFilePayloadBudget: 38000).
Discussion #11598 recorded pull-request-workflow.md at 36,041 bytes as part of the skill-payload accretion loop.
The pull-request workflow is hot because every authored PR must load it; bloat here directly taxes delivery and review routing.
Release classification: post-release Agent OS hardening; boardless.
The Problem
The pull-request workflow has accumulated branch discipline, commit hygiene, PR body, cross-family review, A2A routing, evidence declaration, authorship, and edge-case governance into one large map.
Those contracts matter, but their current shape is too expensive. The workflow also contains multiple edge-case blocks that should either be compact pointers to existing sibling payloads or compressed into smaller canonical rules. Continuing to add paragraphs to this file makes every PR handoff more expensive and increases the chance that smaller-context agents cannot complete a lifecycle without compaction.
The pull-request skill is already a map with several sibling payloads. The corrective move is not to add a new book; it is to compress the hot workflow and use existing sibling payloads only when they reduce total invocation load.
The Fix
Perform a focused compression pass on pull-request-workflow.md.
Lower temporary pull-request per-file override if the file safely fits a lower threshold
Document follow-up target if scope would be too broad
manifest
lint-skill-manifest
Decision Record impact
Aligned with ADR 0008 (SKILL.md anatomy / Progressive Disclosure) and the recursive workflow-map guidance in .agents/skills/create-skill/references/skill-authoring-guide.md.
Acceptance Criteria
Record before/after byte counts for .agents/skills/pull-request/references/pull-request-workflow.md.
Record before/after aggregate byte counts for .agents/skills/pull-request/**/*.md.
The PR has a net-negative .agents/skills/pull-request/**/*.md byte delta.
No new pull-request Markdown file is added unless aggregate pull-request Markdown remains negative and the PR explains why the split reduces invocation load.
If the resulting workflow fits below a lower per-file threshold, either lower the manifest override in the same PR or document the follow-up threshold target.
Out of Scope
Changing PR policy semantics.
Adding another pull-request workflow book.
Compressing pr-review or ideation-sandbox; those are separate hotspots.
Rewriting PR body lint or GitHub workflow APIs.
Avoided Traps
Relocation-only split: rejected because pull-request invocation would still pay the same aggregate cost.
Weakening merge gates: rejected; compression must preserve the safety contracts.
Adding more examples: rejected unless larger same-PR deletions make the aggregate negative.
Context
This is the second focused reduction target after #13535 and #13537.
Current measured evidence:
node ./ai/scripts/lint/lint-skill-manifest.mjs --report-sizes --top 20ranks.agents/skills/pull-request/references/pull-request-workflow.mdas a top remaining hotspot: 34,096 bytes, 387 lines, 148 signals, dispositioncompress-to-trigger..agents/skills/skills.manifest.jsonstill carries a temporary migration-period per-file budget override forpull-request(perFilePayloadBudget: 38000).pull-request-workflow.mdat 36,041 bytes as part of the skill-payload accretion loop.Release classification: post-release Agent OS hardening; boardless.
The Problem
The
pull-requestworkflow has accumulated branch discipline, commit hygiene, PR body, cross-family review, A2A routing, evidence declaration, authorship, and edge-case governance into one large map.Those contracts matter, but their current shape is too expensive. The workflow also contains multiple edge-case blocks that should either be compact pointers to existing sibling payloads or compressed into smaller canonical rules. Continuing to add paragraphs to this file makes every PR handoff more expensive and increases the chance that smaller-context agents cannot complete a lifecycle without compaction.
The Architectural Reality
Primary target:
.agents/skills/pull-request/references/pull-request-workflow.mdAdjacent surfaces that must be checked but should not grow by default:
.agents/skills/pull-request/references/review-response-protocol.md.agents/skills/pull-request/references/*.agents/skills/skills.manifest.jsonThe
pull-requestskill is already a map with several sibling payloads. The corrective move is not to add a new book; it is to compress the hot workflow and use existing sibling payloads only when they reduce total invocation load.The Fix
Perform a focused compression pass on
pull-request-workflow.md.Preferred direction:
.agents/skills/pull-request/**/*.mdbytes go down.pull-requestper-file manifest override in the same PR or name the follow-up target.Contract Ledger Matrix
.agents/skills/pull-request/references/pull-request-workflow.mdcreate-skillrecursive Map/Atlas guidance; #10757 cognitive-load auditwc -c,lint-skill-manifest --report-sizes --top 20, grep for retained anchors.agents/skills/pull-request/references/**.agents/skills/skills.manifest.jsonpull-requestper-file override if the file safely fits a lower thresholdDecision Record impact
Aligned with ADR 0008 (
SKILL.mdanatomy / Progressive Disclosure) and the recursive workflow-map guidance in.agents/skills/create-skill/references/skill-authoring-guide.md.Acceptance Criteria
.agents/skills/pull-request/references/pull-request-workflow.md..agents/skills/pull-request/**/*.md..agents/skills/pull-request/**/*.mdbyte delta.pull-requestMarkdown file is added unless aggregatepull-requestMarkdown remains negative and the PR explains why the split reduces invocation load.--base dev, self-identification,Resolves-only PR body hygiene, Evidence declaration, cross-family mandate, A2A review routing, human-only merge, and authorship respect.node ./ai/scripts/lint/lint-skill-manifest.mjs --base origin/devpasses.Out of Scope
pr-revieworideation-sandbox; those are separate hotspots.Avoided Traps
pull-requestinvocation would still pay the same aggregate cost.Related
Handoff Retrieval Hints
Search patterns:
pull-request-workflow skill bloat compression perFilePayloadBudget 38000skill payloads accrete pull-request-workflow 36041pull-request workflow net-negative map atlas