feat(work): accept task evaluation evidence callbacks
CI / test (push) Successful in 1m7s
CI / test (pull_request) Successful in 1m4s

This commit is contained in:
m
2026-08-23 12:28:42 +03:00
parent 6dec47c791
commit 7afe3ff48f
8 changed files with 224 additions and 2 deletions
+11
View File
@@ -81,6 +81,17 @@ type TaskEvaluationGraphRequest struct {
TriggerEvidenceRef string `json:"trigger_evidence_ref,omitempty"`
}
// TaskEvaluationEvidenceCallback is emitted by a specialist after it has
// completed the bounded case set. Capability remains the evidence owner;
// Work only advances its matching graph node after the evidence is accepted.
type TaskEvaluationEvidenceCallback struct {
GraphID string `json:"graph_id"`
Revision int64 `json:"revision"`
NodeID GraphNodeID `json:"node_id"`
Evaluation capability.TaskEvaluation `json:"evaluation"`
Succeeded bool `json:"succeeded"`
}
type ResultCandidate struct {
ID string `json:"id"`
GraphID string `json:"graph_id"`