2.0 KiB
2.0 KiB
Evidence
Relevant History
executor-v2-output-contract: Executor emitsexecutor_evidence_v2and no longer emits final-expression fields.executor-gatekeeper-hook: Gatekeeper validates schema and invocation references before Verifier and persistsgatekeeper_result.chat-verifier-agent: Existing Verifier usedfacts_checked, low-confidence rendering, retry context, and verifier audit.
Code Evidence
src/main/resources/prompts/chat-verifier-prompt.md: Verifier prompt now makesexecutor_structured_output.claimsprimary and treatsexecutor_final_answeras debug/fallback only.src/main/java/com/superbiz/agent/service/ChatService.java: parsesclaim_checks, maps them to compatibilityfacts_checked, persists both, and applies effective verdict guardrails.src/main/java/com/superbiz/agent/hook/AgentLoggingHook.java: verifier thought summaries now includeclaim_checks.src/test/java/com/superbiz/agent/service/ChatServiceSequentialAgentTest.java: covers claim-check mapping, Gatekeeper downgrade, malformed output downgrade, and V2 PASS paths.
Evidence-Driven Conclusions
facts_checkedcannot be removed yet because existing low-confidence templates, retry context, trace tooling, and eval paths still consume it.- Prompt-only prevention is insufficient for Gatekeeper failures;
ChatServicemust enforce effective verdict downgrades in code. - No database schema migration is needed because
claim_checksis persisted inside existingdiagnosis_session.self_evaluation. - Composer remains stage four and must not be mixed into this stage.
Verification Evidence
Script verification passed:
mvn "-Dtest=ExecutorGatekeeperServiceTest,VerifierInputHookTest,ChatServiceSequentialAgentTest" test
cmd /c openspec validate executor-verifier-claim-checks
Known existing warnings:
- Maven reports duplicate
spring-boot-starter-testdependency inpom.xml. - Existing Lombok
@Builderdefault warnings remain.