eval: advisory instruction feedback from Claude Code sessions

`ajieval sessions` pairs each human prompt with what the assistant did
just before it, and asks Jev whether the prompt was a correction and which
repository rule (AGENTS.md, the aji-jev skill, commit memory) the corrected
behaviour broke. Excerpts are truncated and credential-like strings
redacted; answers stay in a local log, and each prompt is sent once.

`sessions report` proposes clarifying a rule only when corrections pointing
to it recur across sessions (thresholds in triage.json); it never edits
instructions. `sessions hook` is meant for a personal SessionEnd hook: it
returns at once and scans in the background, and does nothing without a
TypeSafe key, which may now also come from ~/.config/typesafe/api_key.
This commit is contained in:
dev committed 2026-10-07 22:37:24 +03:00
1 parent dde801c653
commit 65e7a0a97c
6 files changed
+352 -4

No files matched your search

+1
View File
@@ -3,6 +3,7 @@
"calibrated": false,
"min_confidence": {"category": 0.8, "cause": 0.8, "caught_by": 0.8},
"proposal": {"min_events": 3, "min_tasks": 2, "min_agents": 2},
"sessions": {"min_correction": 0.7, "min_rule_confidence": 0.6, "min_events": 3, "min_sessions": 2},
"routes": {
"diagnostics": {"layer": "diagnostic text", "target": "src/diag.zig, docs/reference/error-codes.md", "action": "patch the message and add a test; PR review"},
"agent_bundle": {"layer": "agent bundle", "target": "docs/agent/, Quick Reference", "action": "patch; PR review; only between experiment iterations"},