1.5 KiB
1.5 KiB
MODIFIED Requirements
Requirement: Test migration design SHALL preserve safety behavior
The project SHALL replace Sequential/Hook implementation tests with authoritative DiagnosisGraphWorkflowTest, DiagnosisGraphNodeContractTest, and ChatServiceGraphIntegrationTest layers while retaining focused public/security contract tests. Fixed Agent call order and legacy Hook payload shape SHALL NOT remain correctness criteria.
Scenario: Old tests are replaced
- WHEN StateGraph tests become authoritative
- THEN
ChatServiceSequentialAgentTestSHALL NOT exist - AND
VerifierInputHookTestSHALL NOT exist after explicit Gatekeeper/Verified Input coverage is established - AND no replacement test SHALL restore fixed Sequential Agent order as a public requirement
Scenario: Safety tests are retained
- WHEN the new suite is assembled
- THEN Gatekeeper, Controller, Run/Trace, Repository, Composer, parser/projection, no-evidence, REJECT, Eval, and multi-run safety contracts SHALL remain covered
- AND Workflow and Node Contract matrices SHALL cover bounded retry, fail-closed routing, verified-only inputs, and deterministic Fallback
Scenario: Authoritative test layers are inspected
- WHEN a maintainer needs to locate ISS-011 orchestration verification
- THEN Workflow tests SHALL own route/loop/event behavior
- AND Node Contract tests SHALL own input/output/security projection behavior
- AND Chat integration tests SHALL own Run lifecycle and public result behavior