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:
@@ -0,0 +1,43 @@
|
||||
# project.yaml — Athena project passport template
|
||||
# Copy to your project root; fill in the values marked {{PLACEHOLDER}}.
|
||||
# Validated by athena-guard (data_policy) and athena-router (capabilities + preferred_pair).
|
||||
# Spec: specs/07-local-agent-contract.md §project.yaml
|
||||
|
||||
version: 1
|
||||
|
||||
project:
|
||||
id: "{{PROJECT_ID}}" # unique slug, kebab-case, e.g. "my-app"
|
||||
name: "{{PROJECT_NAME}}" # human-readable name
|
||||
description: "{{ONE_LINE_DESCRIPTION}}"
|
||||
|
||||
# Data policy — governs how agents handle project content.
|
||||
# athena-guard enforces this before any cloud API call.
|
||||
data_policy:
|
||||
sensitivity: low # low | medium | high | critical
|
||||
allow_cloud: true # send content to cloud LLM APIs (Claude, Codex)
|
||||
allow_embeddings: true # generate vector embeddings of project content
|
||||
retention_days: 90 # job artifact retention before deletion pipeline runs
|
||||
require_upload_manifest: false # require explicit manifest before any upload
|
||||
|
||||
# Capabilities — what agent task classes are permitted for this project.
|
||||
# athena-router will not propose blocked classes.
|
||||
capabilities:
|
||||
allowed:
|
||||
- code-edit
|
||||
- debug
|
||||
- arch
|
||||
- docs
|
||||
- ui
|
||||
blocked: [] # e.g. [deploy, legal] if those should not run here
|
||||
|
||||
# Preferred agent pair (overrides the global start matrix for this project).
|
||||
# Leave primary/reviewer empty to use the global matrix defaults.
|
||||
agents:
|
||||
preferred_pair:
|
||||
primary: "" # "codex" | "claude" | "" (use matrix)
|
||||
reviewer: "" # "claude" | "codex" | "" (use matrix)
|
||||
|
||||
# Steward governance — weekly improvement loop.
|
||||
steward:
|
||||
max_proposals_per_week: 3 # improvement proposals athena-steward may surface
|
||||
owner_review_required: true # proposals need explicit owner sign-off before applying
|
||||
@@ -0,0 +1,3 @@
|
||||
{"ts":"2026-06-23T10:00:00Z","job_id":"job-001","task_class":"code-edit","primary":"codex","reviewer":"claude","confidence":"high","why":["code-edit class → Codex primary per start matrix","project.yaml preferred_pair: empty (matrix default used)"],"outcome":"delivered","correction":null}
|
||||
{"ts":"2026-06-23T11:00:00Z","job_id":"job-002","task_class":"arch","primary":"claude","reviewer":"codex","confidence":"high","why":["arch class → Claude primary per start matrix","synthesis-first task favors Claude"],"outcome":"delivered","correction":null}
|
||||
{"ts":"2026-06-23T12:00:00Z","job_id":"job-003","task_class":"legal","primary":"claude","reviewer":"codex","confidence":"medium","why":["legal class → Claude primary","reasoning-critical domain"],"outcome":"needs-revision","correction":{"field":"primary","was":"claude","should_be":"claude","note":"primary was correct; reviewer should escalate to claude for final pass on legal"}}
|
||||
Reference in New Issue
Block a user