Skip to content

test: expect the unknown Evidence subject for resource-only and objdump command records - #11613

Merged
morluto merged 1 commit into
mainfrom
test/bundle-resource-subject-identity
Nov 16, 2026
Merged

morluto merged 1 commit into
mainfrom
test/bundle-resource-subject-identity

Conversation

@morluto

@morluto morluto commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner

Summary

Main fix. Four tests still expect subject: null on Evidence records that, since #11416, carry subject: { identity: { kind: "unknown", reason: "not-observed" }, name: null, local_path: null }. They fail on main and in the merger's local gate (for example #11580's gate run).

Problem and expected behavior

#11416 made every Evidence record carry a subject ("Test guards that checked a subject for null now check its kind"). These four were not in its focused selection: tests/acceptance/applications/bundleResourceRootCliMcp.test.ts (2 tests), tests/boundary/providers/bundleResourceComposition.test.ts, tests/boundary/cli/objdumpIdentity.test.ts and src/cliBundleResource.test.ts. On main at b3ca039 each fails with - "subject": null / + "subject": { identity: { kind: "unknown", reason: "not-observed" }, ... }. The production output matches #11416's documented contract, so the tests are stale.

Change and scope

  • The four assertions expect the unknown subject, built with the owner's unknownTarget("not-observed").
  • The provider composition test title said "preserves null target identity"; it now says "keeps the target identity unknown".
  • Not included: production changes. Other tests listing subject: null were checked: they build input fixtures or provider routing values, not Evidence assertions, and the bundle resource unit tests (AppBundleResourceRoot, BinarySessionBundleResources, BundleResourcesMcp) pass on main.

Follow the contribution scope.
Unresolved scope, authority, side effects, or required verification block
integration. Link the required maintainer scope decision for new providers or
capabilities involving target execution, injection, mutation, or protection
recovery; ordinary fixes within existing boundaries may state "not applicable".
Draft PRs may leave the scope decision pending and the readiness and merge checklists
unchecked. Maintainers can help resolve open questions.

Contract and boundary impact

  • Semantic owner and earliest changed stage: src/domain/targetIdentity.ts / src/domain/evidence.ts (from feat(evidence)!: name the Evidence subject by its target identity (format revision 2) #11416); tests only here.
  • Contribution scope fit and linked maintainer decision: Not applicable.
  • CLI and MCP/tool-catalog contract: None (tests align with the merged contract).
  • 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): None.
  • Generated metadata (docs/public/product-catalog.json), package, or installation impact (CI generates and validates ignored catalogs and skills/; edit authored instructions in .agents/skills/reverse-engineer-anything/ and never commit build outputs): None.

Expected effects (check known effects; use documentation-only on its own).
Unchecked items do not establish absence; leave uncertainties visible.

  • 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 four files above.
  • Base reproduction or other evidence: On origin/main: npm run test:focused -- tests/acceptance/applications/bundleResourceRootCliMcp.test.ts 2 failed; the three others 3 failed / 32 passed alongside the bundle resource unit tests.
  • User-visible CLI/MCP output (if applicable): None.
  • Remaining proof gaps: Only the failures seen in the merger's recent gate logs and these files were checked; the full suite was not run.

For boundary fixes, identify the applicable boundary regressions
and lifecycle regressions
covered by the evidence above, and explain relevant gaps.

For evidence-bearing changes:

  • 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 -- the four files: 4 files, 6 tests passed (before: 5 failed).
  • npx oxfmt on the four files; pre-commit and pre-push hooks ran.

Compatibility, safety, and release

  • Breaking changes or migration steps: None.
  • Real Hopper/Ghidra, browser, or OS coverage: None.
  • 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.

…mp command records

Since #11416 every Evidence record has a subject; one without a file
target names identity {kind: unknown, reason: not-observed} with null name
and local_path. Four tests that #11416's run did not select still expected
subject: null and fail on main: the keyless bundle resource CLI, provider
composition and acceptance tests, and the objdump command identity test.
@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-16T00:10:24.171296Z
We couldn’t complete this review. Comment @codex review to try again.
95dd35c 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] This test-only PR appears safe to merge.

Summary

Updates four test files to expect the existing unknown Evidence subject instead of null.

  • Tests now expect an explicit unknown subject for resource-only and objdump records.

Reviews (2) · Last reviewed commit: "test: expect the unknown Evidence subjec..." · Reviewed by Greptile

@morluto
morluto merged commit 42e808f into main Nov 16, 2026
8 of 10 checks passed
@morluto
morluto deleted the test/bundle-resource-subject-identity branch November 16, 2026 00:25
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 area: cli CLI adapter and one-shot commands provider: objdump Analysis provider / engine: objdump labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: cli CLI adapter and one-shot commands main-fix Fixes a failure on main; may merge while main CI is red provider: objdump Analysis provider / engine: objdump

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant