fix!: repair boundary contracts across CLI and MCP (#597)
* 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
This commit is contained in:
@@ -104,15 +104,25 @@ export class PlaywrightScenarioSession implements BrowserScenarioSessionPort {
|
||||
readonly version: string;
|
||||
readonly initialUrl: string;
|
||||
private closed = false;
|
||||
private readonly secrets: BrowserScenarioSecrets;
|
||||
private readonly eventCapture: PlaywrightScenarioEvents;
|
||||
private readonly signal: AbortSignal | undefined;
|
||||
|
||||
private constructor(
|
||||
private readonly opened: OpenedScenarioBrowser,
|
||||
mode: BrowserScenario["browser"]["mode"],
|
||||
private readonly secrets: BrowserScenarioSecrets,
|
||||
private readonly eventCapture: PlaywrightScenarioEvents,
|
||||
options: {
|
||||
readonly mode: BrowserScenario["browser"]["mode"];
|
||||
readonly secrets: BrowserScenarioSecrets;
|
||||
readonly eventCapture: PlaywrightScenarioEvents;
|
||||
readonly signal?: AbortSignal;
|
||||
},
|
||||
) {
|
||||
this.mode = mode;
|
||||
this.processOwnership = mode === "launch" ? "provider-owned" : "external";
|
||||
this.mode = options.mode;
|
||||
this.processOwnership =
|
||||
options.mode === "launch" ? "provider-owned" : "external";
|
||||
this.secrets = options.secrets;
|
||||
this.eventCapture = options.eventCapture;
|
||||
this.signal = options.signal;
|
||||
this.version = opened.browser.version();
|
||||
this.initialUrl = opened.page.url();
|
||||
}
|
||||
@@ -139,7 +149,9 @@ export class PlaywrightScenarioSession implements BrowserScenarioSessionPort {
|
||||
);
|
||||
} catch (cause: unknown) {
|
||||
void opening
|
||||
.then((lateOpened) => closePlaywrightScenarioBrowser(lateOpened))
|
||||
.then((lateOpened) =>
|
||||
closePlaywrightScenarioBrowser(lateOpened, options.signal),
|
||||
)
|
||||
.catch(() => undefined);
|
||||
throw cause;
|
||||
}
|
||||
@@ -154,12 +166,12 @@ export class PlaywrightScenarioSession implements BrowserScenarioSessionPort {
|
||||
enabled: new Set(scenario.capture.events),
|
||||
secrets,
|
||||
});
|
||||
const session = new PlaywrightScenarioSession(
|
||||
opened,
|
||||
scenario.browser.mode,
|
||||
const session = new PlaywrightScenarioSession(opened, {
|
||||
mode: scenario.browser.mode,
|
||||
secrets,
|
||||
events,
|
||||
);
|
||||
eventCapture: events,
|
||||
...(options.signal === undefined ? {} : { signal: options.signal }),
|
||||
});
|
||||
await withPlaywrightExecutionBoundary(
|
||||
() =>
|
||||
opened.page.goto(secrets.url(scenario.start_url), {
|
||||
@@ -171,7 +183,7 @@ export class PlaywrightScenarioSession implements BrowserScenarioSessionPort {
|
||||
);
|
||||
return session;
|
||||
} catch (cause: unknown) {
|
||||
await closePlaywrightScenarioBrowser(opened);
|
||||
await closePlaywrightScenarioBrowser(opened, options.signal);
|
||||
throw cause;
|
||||
}
|
||||
}
|
||||
@@ -241,7 +253,7 @@ export class PlaywrightScenarioSession implements BrowserScenarioSessionPort {
|
||||
? ("terminated-owned-process" as const)
|
||||
: ("disconnected-external" as const);
|
||||
this.closed = true;
|
||||
await closePlaywrightScenarioBrowser(this.opened);
|
||||
await closePlaywrightScenarioBrowser(this.opened, this.signal);
|
||||
return this.mode === "launch"
|
||||
? ("terminated-owned-process" as const)
|
||||
: ("disconnected-external" as const);
|
||||
|
||||
Reference in New Issue
Block a user