Repository navigation
Conversation
[Medium impact] The PR appears safe to merge; no new actionable issues were found. SummaryDefault process comparisons now ignore capture-local timing while keeping timed observations in source Evidence and change details.
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart LR
E["Source Evidence<br/>timing retained"] --> S["Default projection<br/>capture-local timing omitted"]
E --> T["Optional exact trace<br/>selected timing asserted"]
S --> C["Compare dimensions"]
T --> C
C --> D["Choose first difference"]
E --> R["Retained observations"]
R --> D
Reviews (5) · Last reviewed commit: "fix(process): stabilize capture comparis..." · Reviewed by Greptile |
48dbadc to
21007d7
Compare
Codex Review SummaryThis 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. |
21007d7 to
1e30e34
Compare
1e30e34 to
e6b2be1
Compare
|
Superseded by #9644, which preserves this implementation and integrates current main with the documentation conflict resolved. The contributor fork rejected maintainer pushes. Validation on the replacement: 76 comparison, input-order, diagnostics and verification tests passed, plus check:fast and docs:check. Closing this duplicate; the fix continues in #9644. |
Summary
Fixes #8204.
Make deterministic process-capture comparisons ignore capture-local scheduler and observer timing by default, while retaining every timestamp in the source Evidence. Keep the comparison compatible with the generalized inline/retained/file Evidence inputs now provided by current
main.Problem and expected behavior
Two captures of the same deterministic command can record different terminal, settlement, finalization, process-sample, and filesystem-checkpoint times. The prior comparison treated those observation times as behavior, so otherwise identical captures reported changed terminal, exit, and filesystem dimensions.
Default comparison should compare observed behavior, not observer latency. Callers that need timing as part of the question can still assert exact timing fields through
trace_spec.Change and scope
This is an ordinary fix within the existing process-capture and comparison boundaries; no new provider, target execution capability, or protection-recovery scope is introduced.
Contract and boundary impact
processComparison.tsowns the default semantic projection. Currentmainowns generalized Evidence selection in the shared process-comparison service; this PR adds no parallel resolver.mainalready accepts inline, retained, and file Evidence inputs; this path remains covered after the rebase.Expected effects:
Evidence and regression coverage
22e5aa9returnedstatus=changed, with terminal/exit/filesystem all changed and first divergence at terminalat_ms.unknownbecause both captures explicitly retain REA's existing sampled-process-tree residual unknown.Boundary/lifecycle coverage includes the public CLI capture/compare path, compiled MCP schema/registration/delivery, Evidence identity and retained-ledger lookup, trace parity, process lifecycle, filesystem snapshots, terminal rendering, normalization, and cleanup.
For evidence-bearing changes:
Validation performed
npm run test:fast -- --maxWorkers=1 --no-file-parallelism(Ubuntu 24.04 WSL2, Node 24.22.1/npm 11.16.0, immediately preceding23de10bbase) — 1,217 files passed; 22,487 tests passed; 16 skipped; zero failures. A prior default-concurrency run reached 22,486 passes with one untouched upstreamNodeSeaArtifactReaderstream-lifecycle flake; that file passed alone (41/41), and the complete serialized run passed.npm run test:focused -- <12 relevant process/evidence files>on the finaldf25bc8base — 12 files passed; 164 tests passed and 4 intentionally skipped (168 total) across semantic comparison, shared Evidence resolution/conformance, CLI input ordering/file loading, MCP consumers/boundaries, and real process-capture acceptance.npm run test:local -- src/domain/process/processCapture.comparison.test.ts src/domain/process/processTraceComparison.test.ts src/application/EvidenceInputResolver.test.ts— 48 tests passed on Windows.npm run check:fast— typecheck and lint passed on Windows and Linux, including the pre-push hook.npm run format:check— all 6,673 files passed on the final base.npm run docs:check— all six built documentation tasks and nine README consistency tests passed.npm run verify:windows-native:artifact— exact 6.8.0 Windows x64 native artifact verified.Compatibility, safety, and release
trace_spec.Author readiness
Human owner: @Sonai124
Before merge
type(scope): outcome.