Skip to content

fix!: repair boundary contracts across CLI and MCP - #597

Merged
morluto merged 7 commits into
mainfrom
fix/boundary-root-causes
Oct 5, 2026
Merged

morluto merged 7 commits into
mainfrom
fix/boundary-root-causes

Conversation

@morluto

@morluto morluto commented Oct 5, 2026

Copy link
Copy Markdown
Owner

Managed inspection could inherit an unrelated native provider, CLI failures could exit successfully, and comparisons could report definite changes from incomplete evidence. This repairs the contracts at their shared owners and adds regressions through the consuming adapters.

  • Run all three managed inspections against explicit PE/CLI paths through a native-independent session. Retain the last successful managed selection and bind Evidence to the inspected file.
  • Classify complete CLI error envelopes and exhaustive setup/update/uninstall outcomes. Check coverage against actual registered CLI commands, with explicit declarations for MCP operations without dedicated CLI commands.
  • Share absence and digest rules; preserve unknown body and membership facets; use unique managed type/name/signature matching before structural fallback.
  • Share JavaScript property and assigned-result rules, retain destructuring projections, and keep projected downstream relationships partial rather than claiming whole-result identity.
  • Preserve selected process/Doctor host identity and actionable PTY, filesystem, provider, and lease failures. Drain cancelled lazy loads and exclude exited descendants from verified lineage.
  • Make browser teardown cancellation-aware, retain primary errors alongside cleanup failures, share frame-tree/navigation rules, and invalidate stale WebMCP registrations without pruning unrelated frames.
  • Decode complete native tool representations, remove the unused load-command field, rename the Ghidra fixture, link fake-backed suites to real verification lanes, and refresh generated contracts and the roadmap.

Managed MCP example, independent of an active native target:

{"name":"inspect_managed_artifact","arguments":{"path":"C:\\fixtures\\Fixture.Managed.dll"}}
{"name":"inspect_managed_members","arguments":{"path":"C:\\fixtures\\Fixture.Managed.dll"}}
{"name":"inspect_managed_native_boundaries","arguments":{"path":"C:\\fixtures\\Fixture.Managed.dll"}}

Each result retains the complete inline Evidence record and subject identity for that managed file.

Verification:

  • npm run check:pr: 364 test files, 2,070 tests passed, two host-specific skips; typecheck, lint, formatting, dead-code and generated-document checks passed.
  • npm run verify:browser: live Chrome, browser scenarios, CLI/MCP screenshots, and owned versus attached browser cleanup passed.
  • npm run verify:inspector: live Node Inspector discovery and observation through CLI/MCP passed.
  • npm run verify:managed: 11 managed conformance cases passed; optional operator-local and ILSpy proofs remain unconfigured.
  • npm run verify:package: isolated installed-package setup/update, managed workflows, Evidence composition and MCP startup passed.
  • Actual macOS otool -h -l /bin/ls parsing passed; npm run docs:check passed after the roadmap update.

Real Hopper and Ghidra verification was not performed. Windows execution must be verified by its CI lane; this change does not enable Windows Ghidra or process-tree ownership.

BREAKING CHANGE: Native load-command results omit the unused, always-null file_offset. Managed comparison metadata adds the exact-signature basis and exact_signature count, and reports exact-signature-fallback name matching.

Fixes #568
Fixes #566
Fixes #565
Fixes #563
Fixes #562
Fixes #561
Fixes #560
Fixes #559
Fixes #558
Fixes #557
Fixes #553

Issue #551 was already resolved on main by #585; this branch includes that fix. The unproven secondary seed allegation in #553 was narrowed away after checking the graph families and existing matchers. #529 is resolved by #577, and #544 is consolidated into the concrete boundary issues above.

Share absence and digest semantics, keep unobserved managed bodies unknown, and match unique managed type/name/signatures before structural fallback.

BREAKING CHANGE: Managed comparison metadata adds exact-signature matching and its count, and name_matching now reports exact-signature-fallback.
Share syntax-aware property reads and assigned-result resolution. Retain destructuring paths and downgrade downstream whole-result relationships instead of resolving nested or wrapped calls as aliases.
Decode Mach headers by named columns, validate complete slice keys and lipo alignment, and preserve codesign runtime flags and tagged parser errors. Rename the Ghidra test dossier fixture and connect fake-backed suites to real verification lanes.

BREAKING CHANGE: Native load-command results no longer contain the unused, always-null file_offset field.
Thread selected platform and environment through process and Doctor seams, stamp observed producer identity in Evidence, and retain PTY, filesystem, lease and lazy-provider failure causes. Drain cancelled lazy loads and omit exited descendants from verified lineage.
Make V8 and Playwright teardown cancellation-aware, expose primary failures alongside incomplete cleanup, share frame-tree and navigation rules, and clear stale WebMCP registrations without pruning unrelated child frames.
Inspect managed PE/CLI targets independently of native provider selection, reuse successful managed selections, and keep evidence bound to the actual inspected target. Classify canonical CLI error envelopes and exhaustive setup/update/uninstall outcomes, audit registered CLI coverage, and assert platform-specific runtime results.
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@morluto
morluto merged commit 9c25dc4 into main Oct 5, 2026
20 checks passed
@morluto
morluto deleted the fix/boundary-root-causes branch October 5, 2026 16:50
darsrc pushed a commit to darsrc/rea that referenced this pull request Oct 10, 2026
* fix(comparisons)!: preserve unknowns across partial observations

Share absence and digest semantics, keep unobserved managed bodies unknown, and match unique managed type/name/signatures before structural fallback.

BREAKING CHANGE: Managed comparison metadata adds exact-signature matching and its count, and name_matching now reports exact-signature-fallback.

* fix(javascript): preserve projected result binding semantics

Share syntax-aware property reads and assigned-result resolution. Retain destructuring paths and downgrade downstream whole-result relationships instead of resolving nested or wrapped calls as aliases.

* fix(native)!: admit complete parser values and preserve typed failures

Decode Mach headers by named columns, validate complete slice keys and lipo alignment, and preserve codesign runtime flags and tagged parser errors. Rename the Ghidra test dossier fixture and connect fake-backed suites to real verification lanes.

BREAKING CHANGE: Native load-command results no longer contain the unused, always-null file_offset field.

* fix(process): preserve host identity and actionable boundary failures

Thread selected platform and environment through process and Doctor seams, stamp observed producer identity in Evidence, and retain PTY, filesystem, lease and lazy-provider failure causes. Drain cancelled lazy loads and omit exited descendants from verified lineage.

* fix(browser): preserve cleanup and document-transition evidence

Make V8 and Playwright teardown cancellation-aware, expose primary failures alongside incomplete cleanup, share frame-tree and navigation rules, and clear stale WebMCP registrations without pruning unrelated child frames.

* fix(adapters): align managed targets and typed CLI outcomes

Inspect managed PE/CLI targets independently of native provider selection, reuse successful managed selections, and keep evidence bound to the actual inspected target. Classify canonical CLI error envelopes and exhaustive setup/update/uninstall outcomes, audit registered CLI coverage, and assert platform-specific runtime results.

* docs: refresh boundary contracts and shipped roadmap behavior
@morluto morluto added bug Something isn't working area: mcp MCP server, transport, and tool registration labels Oct 14, 2026
@morluto morluto added the area: cli CLI adapter and one-shot commands label Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment