Repository navigation
test(evidence): assert the identity-named subject in the snapshot and kernel config tests - #11650
Merged
Merged
Conversation
… kernel config tests #11551 made a snapshot entry's subject the Evidence subject schema and #11416 moved the subject's format under identity. Two tests that merged alongside them still asserted the old shapes and fail on main: - evidenceSubject.test.ts parsed the snapshot subject with the retired {format, architecture, path, sha256} projection and expected it to strip extra fields. It now asserts the snapshot subject is the Evidence subject schema, whose admission and strictness the rest of the test covers. - KernelBuildConfigService.test.ts matched subject.format; it now matches subject.identity.format.
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Contributor
[Low impact] The reviewed changes appear safe to merge and already appear in local SummaryUpdates two tests to follow the current Evidence subject shape. No new actionable issues found.
Reviews (2) · Last reviewed commit: "test(evidence): assert the identity-name..." · Reviewed by Greptile |
maxazure
added a commit
to maxazure/rea
that referenced
this pull request
Nov 16, 2026
Merge main 162097b, including morluto#11650 and morluto#11613, while retaining morluto#11551 full-subject snapshots and the independently bounded payload fix. Focused source and boundary checks and fast static checks completed. One decompile snapshot replay test fails with the same Unix-socket listen EPERM on clean main in this cloud environment; remote CI remains necessary. Preserve the draft and human readiness declaration.
3 tasks
This was referenced Nov 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Main fails two test files after the Evidence/snapshot target-identity series landed in parallel (#11416, #11551). Production behaviour is correct; the tests still assert the retired subject shapes. No linked issue: this is a red-main repair.
Problem and expected behavior
src/domain/evidenceSubject.test.tsparses the snapshot entry subject with the retired{ format, architecture, path, sha256 }projection and expects it to strip extra fields. Since feat(snapshots)!: persist the target identity as the snapshot target #11551 a snapshot entry's subject isevidenceSubjectSchemaitself (src/domain/analysisSnapshot.ts,execution.subject), so both assertions fail ({"format":"hopper","architecture":"x86"}: expected false to be true, and a ZodError on the extra-field parse).src/application/binaryDiagnostics/KernelBuildConfigService.test.tsmatchessubject: { format }; since feat(evidence)!: name the Evidence subject by its target identity (format revision 2) #11416 the format lives atsubject.identity.format(7 failures).Change and scope
subject.identity.format.Contribution scope: not applicable (test-only repair).
Contract and boundary impact
Semantic owner and earliest changed stage: none; tests now follow the owner (
evidenceSubjectSchema).Contribution scope fit and linked maintainer decision: not applicable.
CLI and MCP/tool-catalog contract: none.
Provider, bridge, target-format, or platform compatibility: none.
Evidence, artifact, provenance, or reconstruction contract: none.
Target selection, authority, upstream behavior, and cleanup details (if applicable): not applicable.
Generated metadata, package, or installation impact: none.
Read existing files or captured data.
Launch or attach to a process.
Inject instrumentation or run scripts/code.
Change process memory, registers, files, or configuration.
Contact network services.
Recover protected code or work around protections.
Documentation or usability only; no target interaction.
Not sure yet; investigation or maintainer guidance needed.
Evidence and regression coverage
Tests added or updated: the two test files above.
Base reproduction or other evidence: on origin/main 465796a,
npm run test:focused -- src/application/binaryDiagnostics/KernelBuildConfigService.test.ts src/domain/evidenceSubject.test.tsreported 9 failed, 12 passed; the same failures appear in CI "Source tests" (e.g. run 43778437885).User-visible CLI/MCP output (if applicable): none.
Remaining proof gaps: none known. Sibling sweep: no other test matches
subject: { format.Observed, derived, and inferred claims remain distinguishable.
Artifact identity, source provenance, and failed attempts remain preserved.
Unsupported, incomplete, unavailable, or uncertain outcomes remain visible.
Validation performed
npm run test:focused -- src/application/binaryDiagnostics/KernelBuildConfigService.test.ts src/domain/evidenceSubject.test.ts— 2 files, 21 passed.npm run check:fastand architecture guards — passed.Compatibility, safety, and release
Author readiness
Human owner:
Before merge
type(scope): outcome.