Repository navigation
refactor(native): read retained inventory views through the operation fact contracts - #10883
Merged
Merged
Conversation
Codex Review Summary: ✅ CompletedThis 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. |
Contributor
[Medium impact] The reviewed changes appear safe to merge. SummaryRoutes native inventory readers through named operation contracts.
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart TD
Provider["Provider execution"] --> Port["executeFact"]
Contract["Named operation contract"] --> Port
Port --> Fact["Typed rows for live readers"]
Port --> Execution["Unchanged source execution"]
Execution --> Evidence["Retained Evidence"]
Evidence --> Reader["Cached reader for parent operation"]
Contract --> Reader
Reader --> View["Inventory view"]
Reviews (3) · Last reviewed commit: "refactor(native): read dispatch symbol f..." · Reviewed by Greptile |
22 tasks
morluto
force-pushed
the
refactor/native-operation-fact-port
branch
from
November 15, 2026 08:49
0615298 to
5e5f9f4
Compare
morluto
force-pushed
the
refactor/native-inventory-view-facts
branch
from
November 15, 2026 08:50
2f49d21 to
c6340b4
Compare
morluto
changed the base branch from
refactor/native-operation-fact-port
to
main
November 15, 2026 08:59
…s at the port (#10889) * refactor(native): read dispatch symbol fallbacks as lenient name facts at the port * test(native): accept undeclared name-row fields in both dispatch consumers * refactor(native): read literal searches and overview counts as operation facts (#10894) * refactor(native): read literal searches and overview counts as operation facts * refactor(native): read addressed inventory rows as operation facts in every reader (#10899) * refactor(native): read addressed inventory rows as operation facts in every reader * test(native): cover xrefs name resolution through the name fact contract * test(server): pin procedure completion to the procedure inventory contract
morluto
force-pushed
the
refactor/native-inventory-view-facts
branch
from
November 15, 2026 09:21
7c6fa3f to
1576292
Compare
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
Second step of ADR
docs/adr/native/typed-operation-facts.md: the native inventory view reads retainedlist_*/search_*Evidence through the parent operation's named fact contract instead of its own copy of the row schemas. #10880 has merged; this PR now targetsmainand also carries the collapsed stack: #10887 (matching inventories, xrefs address resolution, literal tracing and decompile-all read their inventories through the operation fact contracts) and #10889 (dispatch-metadata symbol fallbacks read as lenient name facts at the port). See those PRs for their own scope and review.Problem and expected behavior
nativeInventoryViewbuilt its readers fromnativeInventoryRowsSchemasdirectly and chose names vs strings by an operation-name test, a second interpretation of which contract applies to which operation.listNamesFact,listProceduresFact,searchProceduresFact,listStringsFact,searchStringsFact), selected by the parent operation with exact types.Change and scope
src/domain/analysisView/nativeInventoryView.ts:readInventorymaps everyNativeInventoryOperationto a cached view reader over its contract's schema (satisfies Record<NativeInventoryOperation, …>, so a new inventory operation without a reader fails typecheck). The direct schema import is removed.Not included: anything beyond the readers above. Behavior is unchanged: each contract's schema is the schema this view used for that operation, so Evidence produced earlier still parses.
Contribution scope: not applicable (internal refactor).
Contract and boundary impact
nativeOperationFacts.tscontracts; the view consumes them.docs/public/product-catalog.json), package, or installation impact: none.Expected effects (check known effects; use documentation-only on its own).
Unchecked items do not establish absence; leave uncertainties visible.
Evidence and regression coverage
For evidence-bearing changes:
Validation performed
npm run test:focused -- src/domain/analysisView/nativeInventoryView.test.ts tests/boundary/mcp/nativeInventoryViewsMcp.test.ts tests/boundary/mcp/nativeViewPredicateMcp.test.ts— 12 passednpm run check:fast— passed; pre-commit and pre-push hooks passedmain(d06f6cc):npm run check:fast— passed;node scripts/verify/architecture-guards.mjs --shrink-baselines— passed, no baseline change;npm run test:focused -- src/application/EnhancedLiteralTracing.test.ts src/application/XrefsAddressResolution.test.ts src/application/native/EnhancedNativeInvestigation.test.ts src/application/native/NativeDispatchMetadataInspection.fallback.test.ts— 50 passedCompatibility, safety, and release
Author readiness
Human owner:
Before merge
type(scope): outcome.