refactor: remove obsolete source exclusions and identity wrapper
This commit is contained in:
1 parent
07675f78c6
commit
44c92f88c5
4 files changed
+2
-18
No files matched your search
@@ -39,7 +39,6 @@ import {
|
||||
} from "./ArtifactProviderMetadata.js";
|
||||
import { createEvidence } from "../domain/evidence.js";
|
||||
import { createArtifactInspection } from "../domain/artifactInspection.js";
|
||||
import { resolveArtifactIntegrityPolicy } from "./inventory/policy.js";
|
||||
|
||||
/** Read-only inventory and exclusively owned extraction provider. */
|
||||
export class ArtifactProvider implements AnalysisProvider {
|
||||
@@ -364,9 +363,7 @@ class ArtifactClient implements AnalysisClient {
|
||||
return inventoryArtifact(this.target.sourcePath ?? this.target.path, {
|
||||
environment: this.environment,
|
||||
...(options?.signal === undefined ? {} : { signal: options.signal }),
|
||||
integrity: resolveArtifactIntegrityPolicy({
|
||||
mode: parsed.integrity_policy,
|
||||
}),
|
||||
integrity: { mode: parsed.integrity_policy },
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
import type { ArtifactIntegrityPolicy } from "./types.js";
|
||||
|
||||
/** Parsed caller intent for integrity mismatch handling. */
|
||||
export type ArtifactIntegrityIntent =
|
||||
| { readonly mode: "fail" }
|
||||
| { readonly mode: "record-and-continue" };
|
||||
|
||||
/** Preserve the explicit integrity admission choice without changing verification. */
|
||||
export const resolveArtifactIntegrityPolicy = (
|
||||
intent: ArtifactIntegrityIntent,
|
||||
): ArtifactIntegrityPolicy => intent;
|
||||
@@ -133,8 +133,6 @@ const exclusionSchema = z.strictObject({
|
||||
reason: z.enum([
|
||||
"configured-secret",
|
||||
"symlink-escape",
|
||||
"size-limit",
|
||||
"inventory-limit",
|
||||
"unreadable",
|
||||
"caller-excluded",
|
||||
]),
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/** Exclusions and maximum traversal sizes for historical source imports. */
|
||||
/** Caller-selected path exclusions for historical source imports. */
|
||||
export interface ReferenceSourcePolicy {
|
||||
readonly secretPatterns: readonly string[];
|
||||
}
|
||||
Reference in new issue
Block a user