Skip to content

test(evidence): assert the identity-named subject in the snapshot and kernel config tests - #11650

Merged
morluto merged 1 commit into
mainfrom
fix/evidence-identity-test-drift
Nov 16, 2026
Merged

morluto merged 1 commit into
mainfrom
fix/evidence-identity-test-drift

Conversation

@morluto

@morluto morluto commented Nov 16, 2026

Copy link
Copy Markdown
Owner

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

Change and scope

  • The alignment test now asserts that the snapshot subject is the Evidence subject schema; the per-format/architecture admission and strictness assertions for that schema remain, as do the bundle-manifest assertions. The snapshot-specific extra-field assertion is removed because there is no longer a separate snapshot projection to strip fields.
  • The kernel config test matches subject.identity.format.
  • Not included: any production change.

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.ts reported 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.
  • pre-push npm run check:fast and architecture guards — passed.

Compatibility, safety, and release

  • Breaking changes or migration steps: none.
  • Real Hopper/Ghidra, browser, or OS coverage: not applicable.
  • Package or release metadata impact: none.
  • Security, privacy, process, or containment review: none.

Author readiness

Human owner:

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

Before merge

  • This PR addresses a concrete problem or an agreed enhancement.
  • Material scope and authority questions are resolved, and any required maintainer scope decision covers the final diff.
  • The PR has one focused outcome and the title follows type(scope): outcome.
  • Related issue is linked, or the reason for not linking one is stated above.
  • Tests cover changed observable behavior and meaningful failure paths.
  • Owning docs, contracts, and generated metadata are updated where needed.
  • User-visible CLI/MCP changes include representative output.
  • I checked the final diff for secrets, unrelated cleanup, and unsupported claims.

… 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.
@morluto morluto added the main-fix Fixes a failure on main; may merge while main CI is red label Nov 16, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-16T01:50:16.547986Z
We couldn’t complete this review. Comment @codex review to try again.
0d937a4 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@greptile-apps

greptile-apps Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The reviewed changes appear safe to merge and already appear in local main.

Summary

Updates two tests to follow the current Evidence subject shape. No new actionable issues found.

  • Kernel config tests check the format inside the subject identity.
  • Snapshot subject tests compare the snapshot and Evidence schemas directly.

Reviews (2) · Last reviewed commit: "test(evidence): assert the identity-name..." · Reviewed by Greptile

@morluto
morluto merged commit 9ecfb10 into main Nov 16, 2026
8 checks passed
@morluto
morluto deleted the fix/evidence-identity-test-drift branch November 16, 2026 01:53
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.
@morluto morluto added the area: evidence Evidence, artifacts, and reconstruction label Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: evidence Evidence, artifacts, and reconstruction main-fix Fixes a failure on main; may merge while main CI is red

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant