1.3 KiB
1.3 KiB
1. Gatekeeper Core
- 1.1 Add a Gatekeeper validation service with a small result shape:
status,failed_rules,warnings,errors. - 1.2 Implement
schema.executor_v2rule. - 1.3 Implement
evidence.invocation_refrule using current-sessiontool_invocationrows. - 1.4 Keep recommended action evidence bindings out of hard-fail validation for this phase.
2. Hook Integration
- 2.1 Inject Gatekeeper into
VerifierInputHook. - 2.2 Add
gatekeeper_resultto Verifier payload. - 2.3 Store
gatekeeper_resultinVerifierContextHolder. - 2.4 Preserve parse-only boundary in
VerifierInputHook.
3. Persistence
- 3.1 Persist
gatekeeper_resultunderdiagnosis_session.self_evaluation.verifier_evaluation. - 3.2 Preserve existing verifier evaluation fields.
4. Prompt Compatibility
- 4.1 Update
chat-verifier-prompt.mdminimally so Verifier seesgatekeeper_resultand must not output PASS when it fails.
5. Tests And Verification
- 5.1 Add Gatekeeper unit tests for schema failures and pass cases.
- 5.2 Add hook tests proving payload contains
gatekeeper_result. - 5.3 Add tests for fabricated invocation id and tool name mismatch.
- 5.4 Add ChatService persistence test for
gatekeeper_result. - 5.5 Run targeted tests.
- 5.6 Validate this OpenSpec change.