Skip to content

fix(bridge): classify probe failures and reject non-zero api exits - #14

Merged
HarryHeYu merged 1 commit into
mainfrom
fix/bridge-diagnostics
Nov 19, 2026
Merged

HarryHeYu merged 1 commit into
mainfrom
fix/bridge-diagnostics

Conversation

@HarryHeYu

Copy link
Copy Markdown
Owner

Fixes V04 and V05 from the 2026-11-18 cross-review, as separate, separately-tested changes.

V04 — probe error classification: a core that starts but answers integration-info with non-JSON or JSON missing schema_version was reported as VOYAGER_NOT_FOUND ("install the core"), sending users to reinstall a core they already have. Probe failures now carry a typed bridge code + found flag; found-but-unusable answers become INCOMPATIBLE with the real cause in the diagnostic. All per-candidate codes survive in both terminal branches. No new error code; VoyagerError union unchanged; existing consumers preserved.

V05 — callOp exit-code semantics: the core reports op errors in the JSON error field and cmd_api always exits 0, so a valid JSON answer paired with a non-zero exit means a broken wrapper or dying process. callOp now rejects it as CLI_FAILED before parsing. Evidence verification five-state path is untouched on normal exits.

Red/green: 4 red on the pre-fix tree (#6 non-JSON, #8 code flattening, #9 exit 3 accepted, #4 child re-run knock-on) -> 37/37 green; full suite 127/127. Mutation: removing the V05 check turns #9 red; flipping found=true to false turns #6 red. lib/ is build output (untracked); tests import the freshly compiled bridge. Bridge schema stays 1.

Copilot AI balanced review requested due to automatic review settings November 19, 2026 15:10

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

@HarryHeYu
HarryHeYu merged commit fd18215 into main Nov 19, 2026
6 checks passed
@HarryHeYu
HarryHeYu deleted the fix/bridge-diagnostics branch November 19, 2026 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants