fix(artifacts): admit bounded reads and preserve source identity

Validation: integrated changes passed formatting, typecheck, lint, resolved module-boundary verification and git diff --check. Tests and real-provider workflows were not run.
This commit is contained in:
morluto
2026-10-11 00:03:18 +08:00
parent 2a0b58e440
commit 6d4cefc4f7
21 changed files with 502 additions and 189 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ export const readJsonFile = async (
if (!decoded.ok) {
return err(
new EvidenceFileError("read", "invalid-json", {
cause: decoded.cause,
cause: decoded.cause ?? new SyntaxError(decoded.error),
path: requestedPath,
}),
);