refactor: dissolve composer extracts and consolidate plugin doctrine - #278
Draft
FrkAk wants to merge 1 commit into
Draft
refactor: dissolve composer extracts and consolidate plugin doctrine#278FrkAk wants to merge 1 commit into
FrkAk wants to merge 1 commit into
Conversation
This was referenced Aug 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Task Reference: [PYZ-379]
Second tranche of the Claude 5 plugin modernization, stacked on #277. Establishes a single source of truth for every kind of doctrine in the claude-code plugin:
skills/composer/references/(4 phase-rule extracts +sources.jsonhash-pin machinery). Phase-unique rules moved into the owning agent body; content mirroring the canonicalskills/piyaz/references/files replaced with pointers. The stale mirror blockquotes in the canonical files are removed.composer-plannerintocomposer-researcher: the researcher owns the plan rubric and thedraft -> plannedtransition under its merged mandate, and serves direct "plan " dispatch.agents/composer-planner.mddeleted.agents/manage.mddrops workflows C-F (plan, record completion, resume, propagate); they are owned by the piyaz skill's workflow index andlifecycle.md.lifecycle.mdis the sole state machine. The never-self-promote-to-done rule stays explicit in each dispatched agent body.doneis reachable only fromin_review, user-reported completion records and setsin_review, unverified or failing criteria hold the task.scripts/check-plugins.ts: remove the extract hash-pin machinery and the extract sync entry.Net for the claude-code plugin: -10,301 words (-16.6%), 0
@-includes, 0 digraphs, 5 files deleted.Behavioral A/B against the tranche 1 plugin (15 scenarios, 51 runs per arm, paired scoring): mean delta +0.079, 95% CI [0.004, 0.177]; completion-protocol and grounded-record scenarios improved, zero illegal status transitions across the arm.
Type of change
Testing
bun run devbun run lint)bun run typecheck)bun run build:cf && bun run smoke:cf) — required when this PR touchesapp/api/**,middleware.ts,worker-cf.ts, or a.node.ts/.workers.tspairNotes for reviewer
Brand plugin directories (
plugins/codex,plugins/cursor,plugins/antigravity) are intentionally not synced;check:pluginsreports drift until the pre-mergebun run sync:pluginson the final PR of this stack.Docs impact
Compliance impact