feat(exec): surface AttemptRecord slice on Result for session logging

This commit is contained in:
Mathias Bergqvist
2026-04-22 13:35:38 +02:00
parent 38ada998a2
commit c44eb680b2
2 changed files with 7 additions and 4 deletions

View File

@@ -14,9 +14,10 @@ type Result struct {
Skill string `json:"skill"` // tdd | review | ...
FilePath string `json:"file_path"` // absolute path to generated file
RunnerOutput string `json:"runner_output"` // raw stdout+stderr from test runner
Verified bool `json:"verified"` // based on exit code, never self-report
ModelUsed string `json:"model_used"` // model name or "self"
Message string `json:"message"` // one sentence summary
Verified bool `json:"verified"` // based on exit code, never self-report
ModelUsed string `json:"model_used"` // model name or "self"
Message string `json:"message"` // one sentence summary
Attempts []AttemptRecord `json:"attempts,omitempty"` // populated by orchestrator, not Claude
}
var validStatuses = map[string]bool{"pass": true, "fail": true, "error": true}