Repository navigation
fix(javascript): keep source-to-bundle coverage unknown when an input's coverage is unknown - #11162
Merged
morluto merged 1 commit intoNov 15, 2026
Conversation
…'s coverage is unknown
Codex Review Summary: ❌ FailedThis 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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Contributor
[Medium impact] The PR appears safe to merge; no actionable issues were found. SummaryThe comparison now reports
Reviews (1) · Last reviewed commit: "fix(javascript): keep source-to-bundle c..." · Reviewed by Greptile |
morluto
added a commit
that referenced
this pull request
Nov 15, 2026
…r and ratchet local completeness enums (#11134) * refactor(coverage): give the complete/partial/unknown status one owner and ratchet local completeness enums * fix(verify): count chained local completeness enums and exclude detail levels * fix(javascript): keep source-to-bundle coverage unknown when an input's coverage is unknown (#11162)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
compare_source_to_bundlereportedcoverage.status: "partial"whenever the historical source inventory or the Application Graph coverage was not complete, including when one of them wasunknown(or the graph'sunavailable). Partial claims a known gap. When an input cannot tell what it covered, the comparison cannot either. The comparison now reportsunknownin that case, through a sharedjoinCoverageStatusfold where unknown wins.Stacked on #11134 (adds
src/domain/coverage.ts). W6 step 2, first per-domain migration. No linked issue.Problem and expected behavior
compare_source_to_bundlewith aHistoricalSourceGraphwhoseinventory_stateisunknown, or graph Evidence whose coverage status isunknownorunavailable.coverage.status: "partial".coverage.status: "unknown". Complete plus complete still givescomplete-within-inputs. Partial with complete or partial still givespartial. Unknown beside partial givesunknown.Change and scope
src/domain/coverage.ts:joinCoverageStatus(parts)takes at least one status. Any unknown gives unknown, then any partial gives partial, otherwise complete.src/domain/javascript/sourceToBundleComparison.ts:coverageStatusfolds the reference inventory and graph coverage (graphunavailableis read as unknown) throughjoinCoverageStatus, and maps complete to the existingcomplete-within-inputswire value.src/domain/javascript/sourceToBundleComparisonSchemas.ts: the resultcoverage.statusenum addsunknownand describes when each value applies.complete-within-inputscomparison vocabularies (JavaScript version, export shape, runtime reconciliation, WASM interface). Each needs its own PR.Contribution scope: ordinary fix within existing boundaries; not applicable.
Contract and boundary impact
coverageStatusinsourceToBundleComparison.tsproduces the status. Consumers are the source-to-bundle analysis view (sourceToBundleView.ts, which passessource_coveragethrough) and the workflow Evidence (pass-through). Per-item classification was already unchanged: it usesabsenceClaimableand keeps items unknown.compare_source_to_bundlecoverage.statusmay now be"unknown". Clients should treat it as not complete. Retained comparison Evidence from earlier versions still parses.reference_inventory_stateandapplication_graph_statusare unchanged.docs/public/product-catalog.json), package, or installation impact: the advertised output schema gains one enum value and a description; CI regenerates the catalog.Expected effects (check known effects; use documentation-only on its own).
Unchecked items do not establish absence; leave uncertainties visible.
Evidence and regression coverage
sourceToBundleComparison.test.ts"source to bundle coverage" covers five input pairs (unknown/complete, complete/unknown, complete/unavailable, partial/unknown, unknown/partial). The test fixtures now accept unknown inventories and unknown or unavailable graph coverage.sourceToBundleComparison.tsrestored, all 5 new cases fail (they receivepartial); with the change, 30 of 30 pass."coverage": { "status": "unknown", "reference_inventory_state": "unknown", "application_graph_status": "complete", ... }.For evidence-bearing changes:
Validation performed
npm run test:local -- src/domain/javascript/sourceToBundleComparison.test.ts: 30 passed. With the base implementation file restored: 5 failed, 25 passed.npm run test:local -- src/application/analysisView/JavaScriptProvenanceViews.test.ts src/contracts/outputSchemaDefinitions.test.ts src/contracts/compactOutputSchema.test.ts: 24 passednode scripts/verify/architecture-guards.mjs: passednpm run check:fast: passedCompatibility, safety, and release
Author readiness
Human owner:
Before merge
type(scope): outcome.