feat: Фаза 7 шаги 7-10 — job-lifecycle FSM + project passport + parity-smoke
- chezmoi/dot_agents/job-lifecycle.yaml: FSM 13 состояний (Draft→Archived + Failed→Retry), invariants (retry-once, delivered/archived gates), ledger_fields. - claude-starter/project.yaml: шаблон project passport (data_policy, capabilities, agents.preferred_pair, steward.max_proposals_per_week). - claude-starter/routing-evals.example.jsonl: формат eval-записей (3 примера: code-edit/arch/legal с полями ts/job_id/task_class/primary/reviewer/outcome/correction). - athena-router.md: добавлен start matrix 10 классов + eval feedback loop. - smoke/parity-smoke.sh: synthetic parity-smoke — сравнение schema route-card Claude vs Codex + drift-check ~/.claude↔~/.codex если оба развёрнуты. - smoke/agent-contract.sh: +5 проверок (job-lifecycle/project.yaml/routing-evals/ start-matrix/parity-smoke). - smoke/smoke.sh: секция [parity]. - shellcheck -S warning: 0 warnings · smoke: SMOKE OK.
This commit is contained in:
@@ -8,3 +8,31 @@
|
||||
- **Contract:** emits a route card `{primary, reviewer, capabilities, risk, confidence, why[], alternatives, requires_approval[]}`. No evidence → `confidence: low, status: hypothesis`. Logs every route to `routing-evals.jsonl`.
|
||||
- **Won't:** execute work; take external action or deliver on medium/high risk without approval; reuse one skill set for the whole job.
|
||||
- **Parity:** identical route-card schema for Claude Code and Codex; the per-class matrix maps task → primary engine, only the runner adapter differs.
|
||||
|
||||
## Start matrix (10 classes)
|
||||
|
||||
Default routing hypothesis. Refined by `routing-evals.jsonl` over time.
|
||||
`project.yaml:agents.preferred_pair` overrides per-project.
|
||||
|
||||
| Class | Primary | Reviewer | Why |
|
||||
|---|---|---|---|
|
||||
| code-edit | codex | claude | execution-heavy; Codex optimized for code generation |
|
||||
| debug | codex | claude | trace-first; Codex strong on stack analysis |
|
||||
| arch | claude | codex | synthesis-first; Claude stronger on reasoning + design |
|
||||
| docs | claude | codex | language-first; Claude stronger on writing quality |
|
||||
| legal | claude | codex | reasoning-critical; Claude mandatory for judgment calls |
|
||||
| obsidian | claude | codex | knowledge-graph; Claude for synthesis + linking |
|
||||
| deploy | codex | claude | command-heavy; Codex for shell + CI sequences |
|
||||
| ui | codex | claude | code-gen dominant; Codex for component output |
|
||||
| security | claude | codex | judgment-first; Claude for threat modeling + review |
|
||||
| steward | claude | codex | governance; Claude for weekly improvement loop |
|
||||
|
||||
> Matrix is a hypothesis, not a rule. Correction events in `routing-evals.jsonl` shift weights.
|
||||
> Format: `{ts, job_id, task_class, primary, reviewer, confidence, why[], outcome, correction}`.
|
||||
|
||||
## Eval feedback loop
|
||||
|
||||
Wrong project → apply matching penalty to that project-signal.
|
||||
Always one provider → flag project.yaml `preferred_pair` policy divergence.
|
||||
Bad artifact → label eval record + surface to athena-steward weekly.
|
||||
The loop is closed: every route decision is a falsifiable prediction.
|
||||
|
||||
Reference in New Issue
Block a user