import { describe, expect, it } from "vitest";
import { assertValidProviderProseResponse } from "./provider-response-validation.js";

describe("assertValidProviderProseResponse", () => {
  it("rejects execution success claims without current-turn execution evidence", () => {
    expect(() =>
      assertValidProviderProseResponse({
        assertValidTerminalAssistantText: (text) => text,
        availableTools: [
          {
            description: "Run a command",
            effect: "execute",
            inputSchema: {},
            name: "shell",
          },
        ],
        messages: [{ role: "user", content: "run the tests" }],
        text: "Tests passed successfully.",
      }),
    ).toThrow(/no execution tool evidence/u);
  });
});
