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.
17 lines
490 B
Go
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
|
|
}
|