feat(cli): summarize managed members with durable Evidence paging (#5167)

Fixes #5148.

Add opt-in durable managed member summaries and authenticated paging while preserving complete default output, original Evidence, cleanup ownership and queued cancellation.

Verified with bounded real Newtonsoft/Redux/Rust tasks, independent oracles, 556 focused tests and the expanded domain gate; paired token estimates and latency tradeoffs are recorded in experiments/analysis-efficiency/managed-cli.md.
This commit is contained in:
Jay-Alexander Elliot
2026-10-21 18:43:30 -06:00
committed by GitHub
parent d8948efb81
commit 57fd3ea5d8
48 changed files with 4671 additions and 196 deletions
@@ -37,16 +37,13 @@ export const resolveSourceToBundleReference = async (
}),
);
if (!("kind" in reference)) return ok({ reference });
const read = await readJsonFileWithSource(reference.path, signal, resources);
if (!read.ok) {
return read.error instanceof AnalysisCancelledError
? err(
new AnalysisCancelledError("compare_source_to_bundle", {
cause: read.error.cause,
}),
)
: read;
}
const read = await readJsonFileWithSource(
reference.path,
signal,
resources,
"compare_source_to_bundle",
);
if (!read.ok) return read;
await setImmediate();
if (cancelled())
return err(