Files
Agent-System/internal/docrevision/deliverable.go
T
WeiCHEN 9c7a5be209 feat(arch): clear G1 U3/U4 sql_write and path exceptions
Move document_records duty-slot writes into docgov, project ledger
heads through docgov/freedoc ports, and workspace deliverable I/O
through DeliverableStore so arch-check baseline drops to sql_write:1
path:13.
2026-09-22 21:40:12 +08:00

17 lines
490 B
Go

package docrevision
// DeliverableStore reads/writes the workspace deliverable without embedding path literals.
// Wired from the composition root using workspace.DeliverableKey.
type DeliverableStore interface {
Read(absWorkDir string) ([]byte, error)
Write(absWorkDir string, body []byte) error
}
// SetDeliverableStore injects the path-owner-backed deliverable I/O.
func (s *Service) SetDeliverableStore(store DeliverableStore) {
if s == nil {
return
}
s.deliverables = store
}