fix(evidence): report a single record selected as a bundle as invalid input
Reading a caller-selected Evidence bundle that holds one intact Evidence record, such as one command's --json result, failed with evidence_integrity_mismatch. The record authenticates; the caller chose the wrong kind of file. That is a selection error like a missing or non-regular path, which #1256 already reports as invalid input. Classify it at the file-reading boundary as EvidenceFileError reason not-bundle, projected as invalid_request / invalid_input with the selected path and the record's evidence_id. The guidance to export a session bundle is unchanged. Unparseable or tampered bundles remain evidence_integrity_mismatch. Fixes #2050 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
3bdc8730bd
commit
31bb73768c
@@ -311,6 +311,9 @@ const artifactStateErrorDetails = (
|
||||
operation: error.operation,
|
||||
reason: error.reason,
|
||||
...(error.path === undefined ? {} : { path: error.path }),
|
||||
...(error.evidenceId === undefined
|
||||
? {}
|
||||
: { evidence_id: error.evidenceId }),
|
||||
...(error.published === undefined
|
||||
? {}
|
||||
: {
|
||||
|
||||
Reference in New Issue
Block a user