| name | run-rubric-sync |
| description | トリアージで影響ありと判定された spec-drift issue の rubric/schema/template を同期したいとき、propose(read-only)で最小 Edit 差分と pre-image hash を提案し apply で監査 PASS と明示承認後に allowlist 対象だけを適用したいときに使う。 |
| kind | run |
| prefix | run |
| hierarchy_level | L1 |
| version | 0.1.0 |
| user-invocable | true |
| disable-model-invocation | false |
| argument-hint | [--issue NUMBER] [--mode propose|apply] |
| arguments | ["issue","mode"] |
| allowed-tools | ["Read","Write","Edit","Glob","Grep","Bash(python3 *)","Bash(shasum *)","Bash(sha256sum *)","Bash(git *)","AskUserQuestion","Task"] |
| effect | local-artifact |
| owner | spec-drift-guardian maintainers |
| since | "2026-07-13T00:00:00.000Z" |
| source | plugins/spec-drift-guardian/skills/run-rubric-sync/ |
| source-tier | internal |
| last-audited | "2026-07-13T00:00:00.000Z" |
| output_language | ja |
| prompt_layer | 7layer |
| combinators | ["with-goal-seek","with-feedback-contract"] |
| goal_seek | {"engine":"inline","fork":"subagent","max_loops":5} |
| responsibility_refs | ["prompts/R1-elicit.md","prompts/R2-plan.md","prompts/R3-apply.md"] |
| schema_refs | ["../../schemas/sync-proposal.schema.json","../../schemas/sync-audit-verdict.schema.json","../../schemas/triage-report.schema.json","../../schemas/triage-verdict.schema.json"] |
| reference_refs | ["references/apply-gate-policy.md","../../references/field-impact-map/field-impact-map.json"] |
| script_refs | ["../../scripts/map-field-impact.py","../../scripts/check-triage-complete.py"] |
| depends_on | ["C01","C09"] |
| feedback_contract | {"max_iterations":3,"criteria":[{"id":"IN1","loop_scope":"inner","text":"全 impacted フィールドに target_path/axis/proposed_diff/pre_image_sha256 が揃い、C03 triage-verdict の agree・C04 sync-audit-verdict=PASS・approval.granted=true が全て揃うまで apply へ遷移できないことを script で機械検証できる。","verify_by":"script"},{"id":"OUT1","loop_scope":"outer","text":"承認済み case は allowlist 対象パスだけが Edit 適用され post_image_sha256 と validator_results が一致し、未承認・監査 FAIL・pre-image hash drift・allowlist 外パスの各 case は変更 0 件で fail-closed になることを受入テストが確認する。","verify_by":"test"},{"id":"OUT2","loop_scope":"outer","text":"fresh context の実セッションで /rubric-sync を起動したとき、rubric-sync-auditor SubAgent が実際に発火して sync-audit-verdict を出し、AskUserQuestion の承認 gate が自走で素通りされず、監査 PASS と明示承認の双方が揃うまで apply が保留されることを live 実行で確認する。","verify_by":"live-trial"}]} |