Share typed extraction control evidence

This commit is contained in:
2026-12-02 21:31:26 +00:00
parent e824e133d7
commit 93876ff2cf
11 changed files with 203 additions and 86 deletions

View File

@@ -12,9 +12,8 @@ import (
const MaxExtractionPayloadBytes int64 = 64 * 1024 * 1024
const (
extractStageName = "extract"
extractionLaneKind = "notarius_lane"
extractionMetadataRun = "narratio_run_id"
extractStageName = "extract"
extractionLaneKind = "notarius_lane"
)
// HydrateExtractionArtifacts marks extraction sources available only when the current
@@ -89,8 +88,3 @@ func safeExtractionPathSegment(value string) bool {
return value != "" && value != "." && value != ".." && filepath.Base(value) == value &&
!strings.ContainsAny(value, `/\\`)
}
func extractionMetadataString(metadata map[string]any, key string) string {
value, _ := metadata[key].(string)
return strings.TrimSpace(value)
}