refactor(javascript): remove analysis ceilings

This commit is contained in:
morluto
2026-09-29 15:30:43 +08:00
parent 60cb68a276
commit 9aec6908b5
39 changed files with 249 additions and 534 deletions
@@ -88,7 +88,7 @@ async function runInlineEvidenceScenarios(
reference: {
root_sha256: SOURCE_TO_BUNDLE_COMPARISON_EXAMPLE.reference.root_sha256,
},
scoring: { algorithm: "rea-source-to-bundle-signals/v1" },
scoring: { algorithm: "rea-source-to-bundle-signals" },
},
});
expect(session.exportEvidenceBundle().records.length).toBeGreaterThan(2);
@@ -117,8 +117,8 @@ describe("application workflow CLI parity", () => {
}, 20_000);
});
describe("application workflow CLI Evidence resolution", () => {
it("resolves Evidence IDs from an explicitly authorized bundle", async () => {
describe("application workflow CLI Evidence lookup", () => {
it("resolves Evidence IDs from a caller-supplied bundle", async () => {
const root = await createTestTempDirectory("rea-application-bundle-cli-");
temporary.push(root);
const bundlePath = join(root, "evidence.json");
@@ -198,7 +198,7 @@ describe("application workflow CLI Evidence resolution", () => {
outsideBundlePath,
serializeEvidenceBundle(createEvidenceBundle([])),
);
const denied = await runCli(
const outsideBundle = await runCli(
[
"trace-application-feature",
JSON.stringify(JAVASCRIPT_FEATURE_TRACE_EXAMPLE),
@@ -208,7 +208,10 @@ describe("application workflow CLI Evidence resolution", () => {
],
environment,
);
expect(denied).toMatchObject({ code: "permission_required" });
expect(outsideBundle).toMatchObject({
code: "evidence_integrity_mismatch",
details: { reason: "missing" },
});
}, 30_000);
});