AGENT SKILL

failure-codifier

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.

License 许可
MIT
所属仓库
foden303/harness
最近更新
2026-11-06
Stars
★ 0
Forks
0

01 前言 Front Matter

name
failure-codifier
description
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.
allowed-tools
[ "Read", "Bash", "Grep" ]
argument-hint
[propose|explain]
description-en
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.
user-invocable
true

02 资源文件 1

03 SKILL.md 正文

Failure Codifier

Extracts recurring failures read-only from the breezing orchestration ledger + Judgment Ledger and proposes failure-rule.v1 candidates with confidence scores.

Core contract

  • human-approval-required: the codifier makes dry-run proposals only. Auto-promotion to patterns.md / decisions.md is structurally prohibited.
  • Confidence thresholds: occurrence count ≥ 3 → medium, count ≥ 5 → high (go/internal/failurecodifier/confidence.go).
  • Promotion-target heuristic: only proposes patterns.md or decisions.md via the proposed_ssot_target field.

Usage

Dry-run proposal (recommended)

./scripts/failure-codifier-propose.sh --dry-run

stdout is a JSON array (failure-rule.v1 candidates). It writes nothing to SSOT files.

Go tests

cd go && go test ./internal/failurecodifier/... -count=1

References

Prohibited

  • Write / Edit to patterns.md / decisions.md (not allowed via the codifier even after human approval)
  • AutoPromote / unattended SSOT updates
  • Changing the cc:* markers in Plans.md

04 同仓库更多 Skills