Skip to content

fix(evidence): preserve subjects in derived workflows - #9492

Merged
morluto merged 8 commits into
mainfrom
codex/javascript-trace-evidence-subject
Nov 9, 2026
Merged

morluto merged 8 commits into
mainfrom
codex/javascript-trace-evidence-subject

Conversation

@morluto

@morluto morluto commented Nov 8, 2026 •

Copy link
Copy Markdown
Owner

Summary

Fixes #9480. Feature and semantic traces discarded verified application subjects and reported artifact identity unavailable. Preserve their full identity and display name, and carry them into feature-trace views and their advertised schema. Android retained search summaries, managed graph projections, and Android, Apple and Harmony inventory projections now preserve the same selected subject metadata.

This follows ShuaixinHuang's #9483, with attribution in the commit. Static application results reject an observed artifact root that contradicts the declared digest; when that root observation is absent, derived trace subjects remain unknown. The managed graph result owner validates that its artifact root matches its declared digest. A managed graph subject is carried into a feature trace only when its PE digest matches that validated root; reconciliation and mismatched subjects remain unknown. Shared Evidence conversion and identity-checked rebinding preserve selected names in inline and retained views. The feature-view projection retains the artifact to avoid an integrity failure after subject preservation.

Validation performed

  • Evidence, analysis-view, and JavaScript workflow source tests — 118 passed; Android summary, managed graph, and JavaScript Evidence source tests — 35 passed. These include selected names, architecture, mismatched subjects, and multi-source controls.
  • npm run test:focused -- tests/acceptance/applications/applicationWorkflowCli.test.ts tests/acceptance/managedWorkflowExamples.test.ts — 39 passed, covering CLI and stdio MCP workflows.
  • npm run test:focused -- tests/boundary/process/androidSearchEvidenceBudget.test.ts — 3 passed. An earlier interrupted run timed out; the completed rerun passed.
  • Android, Apple and Harmony inventory and MCP boundary suites — 67 tests passed; the Android suite passed again with 12 tests after splitting its new regression. Managed graph source suite — 24 passed, including the contradictory root case. Managed CLI/MCP and MCP schema validity/profile suites — 22 passed.
  • Static-root regression passed through the CLI-produced Evidence boundary, including the older missing-root control; 83 affected source tests and 37 CLI workflow tests passed. Related MCP view suites also passed.
  • npm run check:fast and npm run docs:check — passed.

No external provider or platform-specific runtime was exercised. CI and automated review of the updated head are pending. This changes derived Evidence and the feature-view output schema; no input or tool names change.

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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-08T23:49:27.339462Z d614b76 New commits
ℹ️ 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.

@greptile-apps

greptile-apps Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5 Tier: plus

[Medium impact] The PR appears safe to merge; the previously reported MCP test mismatch is fixed.

Summary

Preserves verified artifact subjects and selected names across derived traces, inventory projections, and analysis views.

  • JavaScript traces keep artifact subjects only when their graphs support them.
  • Feature-trace views show the artifact when the trace has one.
  • Inventory projections and Android search summaries keep selected artifact details.
  • The native inspection command keeps the same path argument.

Reviews (9) · Last reviewed commit: "test(javascript): update feature trace g..." · Reviewed by Greptile

@morluto morluto changed the title fix(javascript): preserve verified trace evidence subjects fix(evidence): preserve subjects in derived workflows Nov 8, 2026
@morluto
morluto merged commit 52fe342 into main Nov 9, 2026
16 checks passed
@morluto
morluto deleted the codex/javascript-trace-evidence-subject branch November 9, 2026 00:12
maxazure added a commit to maxazure/rea that referenced this pull request Nov 9, 2026
Merge main 52fe342, including the inherited CLI formatting repair from
morluto#9054 and subject preservation from morluto#9492. The Evidence depth patch is
unchanged relative to the new main baseline.

Validated on this tree: check:ci:fast, 24 focused files / 362 tests,
test discovery and diff checks passed. No real-provider or full-suite
claim; keep the PR in draft for human review and current-head CI.
@morluto morluto added area: evidence Evidence, artifacts, and reconstruction bug Something isn't working labels 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 bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] trace_application_feature and trace_javascript_semantics discard verified Evidence.subject

1 participant