maturity-trackerlisted
Install: claude install-skill Kucell/cortex-agent
# Maturity Tracker Skill
## 目标
收集 Harness 各组件的表现指标,追踪其成熟度演进,为渐进式退化决策提供数据支撑。
## 调用时机
在 `/ship` 的 `CLEAN` 最终状态后自动调用(即 ENTROPY_SCAN 完成后)。
## 收集的指标
### context_budget(上下文预算)
- `overflow_prevented`:本次任务是否因预算控制避免了超出 40%(boolean)
- `actual_utilization`:读取 `context-manifest.json` 的 `utilization` 字段
- `within_limit`:读取 `context-manifest.json` 的 `within_limit` 字段
### reasoning_sandwich(推理三明治)
- `first_pass`:本次 /ship 是否一次通过(reviewer verdict = PASS,retry_count = 0)
- `retry_count`:读取 ship 执行日志中的重试次数
- `cost_mode_used`:读取 `reasoning-config.yml` 的 `cost_mode`
### agent_firewall(防火墙)
- `contamination_detected`:读取 `review_verdict.json` 的 `input_contamination` 字段
- `blocked_steps_count`:读取 `execution_report.json` 的 `blocked_steps` 数量
### entropy_scanner(熵治理)
- `health_score`:读取 `entropy-report.json` 的 `health_score`
- `auto_fixes`:读取 `entropy-report.json` 的 `auto_fixed` 数量
- `l2_pending`:读取 `entropy-report.json` 的 `pending_human` 数量
### phase_gate(阶段门控)
- `gates_passed`:本次 /ship 成功通过的 gate 数量(读取 ship 执行日志)
- `gates_blocked`:被 gate 阻断的次数
## 输出格式
将指标追加到 `.agent/metrics/component-health.json`(滚动保留最近 30 条记录):
```json
{
"records": [
{
"task_id": "T-xxx",
"timestamp": "2026-03-27T10:30:00Z",
"metrics": {
"context_budget": {
"overflow_prevented": true,
"actual_utilization": "25.4%",
"within_limit": true
},
"reasoning_sandwich": {
"first_pass": true,
"retry_count": 0,
"cost_mode_us