Repository navigation
refactor(native): read addressed inventory rows as operation facts in every reader - #10899
Merged
morluto merged 3 commits intoNov 15, 2026
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 PR appears safe to merge, with the previous test gap addressed and no new actionable issues found. SummaryMoves the remaining addressed-inventory readers to shared operation facts and extends the architecture guard against local row parsing.
Reviews (2) · Last reviewed commit: "test(server): pin procedure completion t..." · Reviewed by Greptile |
22 tasks
morluto
added a commit
that referenced
this pull request
Nov 15, 2026
…ion 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
added a commit
that referenced
this pull request
Nov 15, 2026
…ion 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
added a commit
that referenced
this pull request
Nov 15, 2026
…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
added a commit
that referenced
this pull request
Nov 15, 2026
…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
added a commit
that referenced
this pull request
Nov 15, 2026
… fact contracts (#10883) * refactor(native): read retained inventory views through the operation fact contracts * refactor(native): read matching inventories through the operation fact contracts (#10887) * refactor(native): read dispatch symbol fallbacks as lenient name facts 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
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
Sixth step of ADR
docs/adr/native/typed-operation-facts.md(sibling sweep): the remaining readers that parsed native inventory rows withaddressedValueSchemadirectly now readlistNamesFact/listProceduresFactthroughexecuteFact, and the architecture guard also rejects directaddressedValueSchemarow parses. Stacked on #10894.Problem and expected behavior
EnhancedTools(#allAddressed,#parseAddressed,#objcClasses),decompileAll(list_procedures),XrefsAddressResolution(list_names) and MCP prompt completion (list_procedures) each re-parsed the provider value, refusing with differing wording and no diagnostics or partial Evidence.decompileAllskips empty addresses and counts them asunaddressed; completion keeps its silent fallback on a malformed inventory).Change and scope
src/application/EnhancedTools.ts:#allAddressedand#objcClassesuseexecuteFactover#observed;#parseAddressedreplaced by a pureaddressedNamesprojection of typed rows.src/application/decompileDirectory/decompileAll.ts,src/application/XrefsAddressResolution.ts:executeFact; the array check and per-row parse are removed.src/server/promptCompletion.ts: parses the looked-up inventory withlistProceduresFact.schemainstead of a localpickschema.scripts/verify/architecture-guards.mjs: the guard also matchesz.array(addressedValueSchema…)andaddressedValueSchema.safeParse|parse|pick.Not included:
addressedValueSchema.extend(...)inliteralFeatureMatch.tsandnativeInventoryView.ts(they define output record shapes, not reads of provider results).Contribution scope: not applicable (internal refactor).
Contract and boundary impact
nativeOperationFacts.tscontracts andexecuteFact.contract_issuesand partial Evidence. Prompt completion now validates row symbol metadata like every other reader; a malformed inventory still yields no suggestions.list_namesfailures; a contract refusal is an output error and does not fall back.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
src/application/XrefsAddressResolution.test.ts(undeclared field accepted and resolved; malformed address refused withcontract_issues; empty address refused at index 0).For evidence-bearing changes:
Validation performed
npm run test:focused --35 files (src/application/EnhancedTools*.test.ts,src/application/native/**/*.test.ts,src/application/decompileDirectory/**/*.test.ts, and tests naming xrefs-name resolution, prompt completion or ObjC classes) — 611 passednpm run test:local -- src/application/XrefsAddressResolution.test.ts— 3 passednpm run test:focused -- tests/boundary/mcp/promptCompletion.test.ts— 16 passed (new cases: valid symbol metadata plus an undeclared field completes; malformed symbol metadata returns no suggestions)node scripts/verify/architecture-guards.mjs— passednpm run check:fast— passed;npx knip --include exports,types,files— no findings; pre-commit and pre-push hooks passedCompatibility, safety, and release
Author readiness
Human owner:
Before merge
type(scope): outcome.