refactor: return complete analysis results inline
This commit is contained in:
@@ -78,7 +78,6 @@ async function runInlineEvidenceScenarios(
|
||||
expect(compared.isError).not.toBe(true);
|
||||
expect(compared.structuredContent).toMatchObject({
|
||||
result: {
|
||||
schema_version: 1,
|
||||
summary: { unknown: expect.any(Number) },
|
||||
coverage: { status: expect.any(String) },
|
||||
},
|
||||
@@ -94,7 +93,6 @@ async function runInlineEvidenceScenarios(
|
||||
expect(sourceCompared.isError).not.toBe(true);
|
||||
expect(sourceCompared.structuredContent).toMatchObject({
|
||||
result: {
|
||||
schema_version: 1,
|
||||
reference: {
|
||||
root_sha256: SOURCE_TO_BUNDLE_COMPARISON_EXAMPLE.reference.root_sha256,
|
||||
},
|
||||
|
||||
@@ -116,7 +116,6 @@ describe("application workflow MCP parity", () => {
|
||||
expect(semantic.isError).not.toBe(true);
|
||||
expect(semantic.structuredContent).toMatchObject({
|
||||
result: {
|
||||
schema_version: 1,
|
||||
source_evidence_id: left.value.evidence_id,
|
||||
source_graph_id: analyzed.semantic_graph.graph_id,
|
||||
summary: { retained_seed_matches: 1 },
|
||||
|
||||
@@ -93,7 +93,6 @@ function createReplayScenario(root: string) {
|
||||
},
|
||||
javascriptReplayRunner: {
|
||||
execute: async (prepared) => ({
|
||||
schema_version: 1,
|
||||
plan_digest: prepared.publicPlan.plan_digest,
|
||||
outcomes: [
|
||||
{
|
||||
|
||||
@@ -60,7 +60,6 @@ describe("application workflow CLI parity", () => {
|
||||
expect(compared).toMatchObject({
|
||||
operation: "compare_application_versions",
|
||||
normalized_result: {
|
||||
schema_version: 1,
|
||||
summary: { unknown: expect.any(Number) },
|
||||
},
|
||||
});
|
||||
@@ -74,7 +73,7 @@ describe("application workflow CLI parity", () => {
|
||||
]);
|
||||
expect(sourceCompared).toMatchObject({
|
||||
operation: "compare_source_to_bundle",
|
||||
normalized_result: { schema_version: 1 },
|
||||
normalized_result: { reference: expect.any(Object) },
|
||||
});
|
||||
}, 20_000);
|
||||
|
||||
@@ -177,7 +176,7 @@ describe("application workflow CLI Evidence resolution", () => {
|
||||
);
|
||||
expect(compared).toMatchObject({
|
||||
operation: "compare_application_versions",
|
||||
normalized_result: { schema_version: 1 },
|
||||
normalized_result: { summary: expect.any(Object) },
|
||||
});
|
||||
|
||||
const missingRecord = await runCli(
|
||||
@@ -322,7 +321,6 @@ describe("application workflow CLI validation and replay", () => {
|
||||
"--json",
|
||||
]);
|
||||
expect(inline).toMatchObject({
|
||||
schema_version: 1,
|
||||
final_state: "complete",
|
||||
decisions: [{ outcome: "matched" }],
|
||||
transition_journal: [
|
||||
|
||||
Reference in New Issue
Block a user