gomcp/internal/application/tools/decision_recorder.go

12 lines
428 B
Go

package tools
// DecisionRecorder is the interface for recording tamper-evident decisions (v3.7).
// Implemented by audit.DecisionLogger. Optional — nil-safe callers should check.
type DecisionRecorder interface {
RecordDecision(module, decision, reason string)
}
// SetDecisionRecorder injects the decision recorder into SynapseService.
func (s *SynapseService) SetDecisionRecorder(r DecisionRecorder) {
s.recorder = r
}