Repository navigation
fix(javascript): preserve uncertainty for unexamined sources - #7911
Conversation
[Medium impact] The reviewed changes appear safe to merge; no actionable new issue was found. SummaryThis PR keeps comparisons uncertain when source analysis is incomplete, without hiding observed file changes. The latest update uses package parsing results instead of JSON-module results for
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Matched files] --> B{Observed content or property change?}
B -->|Yes| C[changed]
B -->|No| D{Source analysis incomplete?}
D -->|Yes| E[unknown with coverage limit]
D -->|No| F[Apply remaining comparison checks]
Reviews (3) · Last reviewed commit: "fix(javascript): compare observed packag..." · Reviewed by Greptile |
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0fd2c231d5
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Summary
Fixes #7393. Comparing a fully analyzed directory with a source-selected analysis no longer reports an identical excluded file as changed solely because its analysis metadata differs.
Problem and expected behavior
An excluded file retains its content digest but lacks the other analysis's parsed facts. That establishes file identity, not equality of unexamined analysis. Its comparison is now
unknownwith a coverage limitation; independently observed content or property changes still reportchanged.Change and scope
The shared JavaScript application-version comparison excludes analysis-only file metadata from property comparisons when either side's source analysis is unavailable or incomplete. Retained observations and evidence are unchanged. Domain regressions cover selected, excluded, failed, and invalid-source cases; a CLI regression compares both input directions.
Contract and boundary impact
unknownandcoveragerather than a false property change; no schema change.Expected effects:
Evidence and regression coverage
The CLI regression analyzes a directory containing
main.jsandlib.js, compares full andmain.js-selected evidence in both directions, and checks thatlib.jshas an exact digest match,unknownstatus, and coverage rather than a false property change. Domain tests also preserve reporting of independent observed changes and exercise JSON and unavailable analysis states. No direct MCP workflow or external provider was exercised.Validation performed
npm run test:focused -- src/domain/javascript/javascriptApplicationVersionUnavailableScopes.test.ts tests/acceptance/applications/applicationVersionSelectedSourceCli.test.ts— passed, 6 tests.git diff --check— passed.npm run check:fastandnpm run lint— failed on duplicatejoinandcreateTestTempDirectoryimports already present intests/boundary/mcp/serverUnknownsMcp.test.tson the base revision. The pre-push hook encountered the same failure; the push bypassed that hook to publish this draft.Compatibility, safety, and release
Existing callers may see corrected status and dimensions for incompletely analyzed files; no migration or schema change. No real external provider or MCP workflow was tested. No package, process-authority, or installation changes.
Author readiness
Human owner: @morluto
Before merge
type(scope): outcome.