fix(audit): reserve recovery evidence outside user deliverables
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"net/http/httptest"
|
||||
"os"
|
||||
"path/filepath"
|
||||
@@ -13,6 +14,7 @@ import (
|
||||
|
||||
"git.a-wan.net/alan/pipelines/internal/cli"
|
||||
"git.a-wan.net/alan/pipelines/internal/pipeline"
|
||||
"git.a-wan.net/alan/pipelines/internal/protocol"
|
||||
"git.a-wan.net/alan/pipelines/internal/stage"
|
||||
)
|
||||
|
||||
@@ -58,6 +60,12 @@ func TestRuntimeSessionExportRepairPreservesOriginalAndUsesRecordedOwner(t *test
|
||||
}
|
||||
// Restore readback availability; this is a fake native export CLI, not a
|
||||
// model stage, no generation/resumption/definition mutation is performed.
|
||||
// A full user-artifact inventory must not consume mandatory audit capacity.
|
||||
for i := 0; i < maxArtifactFiles; i++ {
|
||||
if err := s.RecordDeliverable(context.Background(), id, 1, protocol.StageArtifact{Name: fmt.Sprintf("private/capture-%03d.png", i), SizeBytes: 100}); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
sessionExportCLI(t)
|
||||
h.runner.exportSession = nil
|
||||
repaired, err := h.runner.repairSessionExport(context.Background(), id, 1)
|
||||
|
||||
Reference in New Issue
Block a user