Failure Codifier
Testing & Qualityfailure-codifierFailure Codifier is an Agent Skill for testing & quality published in the Chachamaru127/claude-code-harness repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Extract recurring failure patterns from breezing orchestration logs and Judgment Ledger, emit failure-rule.v1 proposals with confidence scores. SSOT promotion to patterns.md or decisions.md is proposal-only — human-approval-required. Use when user mentions failure codifier, failure patterns, self-learning loop, codify failures, or failure-rule proposals. Do NOT load for: direct SSOT edits, auto-promotion, or implementation unrelated to failure analysis.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/Chachamaru127/claude-code-harness/blob/HEAD/skills/failure-codifier/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/failure-codifier, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Failure Codifier
breezing orchestration ledger + Judgment Ledger から再現失敗を read-only で抽出し、failure-rule.v1 候補を confidence score 付きで提案します。
核心契約
- human-approval-required: codifier は dry-run 提案のみ。
patterns.md/decisions.mdへの自動昇格は構造的に禁止。 - Confidence 閾値: occurrence count ≥ 3 → medium、count ≥ 5 → high(
go/internal/failurecodifier/confidence.go)。 - 昇格先 heuristic:
proposed_ssot_targetフィールドでpatterns.mdまたはdecisions.mdを提案するのみ。
使い方
Dry-run 提案(推奨)
./scripts/failure-codifier-propose.sh --dry-run
stdout は JSON 配列(failure-rule.v1 候補)。SSOT ファイルには一切書き込みません。
Go テスト
cd go && go test ./internal/failurecodifier/... -count=1
参照
- 昇格ワークフロー: references/promotion-workflow.md
- Schema:
templates/schemas/failure-rule.v1.json - Core:
go/internal/failurecodifier/
禁止事項
patterns.md/decisions.mdへの Write / Edit(human 承認後も codifier 経由では不可)AutoPromote/ unattended SSOT 更新- Plans.md の
cc:*マーカー変更