feat(graph): add diagnosis real nodes

This commit is contained in:
zhuyongxin
2026-07-17 16:44:05 +08:00
parent 42ba204532
commit 1460dd1e99
57 changed files with 4380 additions and 710 deletions
@@ -74,7 +74,7 @@ Executor SHALL route only COMPLETED output to Gatekeeper and SHALL never retry.
### Requirement: Verifier routing SHALL separate technical retry from evidence retry
Verifier INVALID_OUTPUT and RETRYABLE_FAILED SHALL self-retry once with the same verified input. COMPLETED PASS or REJECT SHALL route to Composer. COMPLETED LOW_CONFID SHALL route to one Evidence Retry only when all frozen guards are true; otherwise it SHALL route to Composer. Other outcomes SHALL fail closed.
Verifier INVALID_OUTPUT and RETRYABLE_FAILED SHALL self-retry once with the same verified input. COMPLETED PASS or REJECT SHALL route to Composer. COMPLETED LOW_CONFID SHALL route to one Evidence Retry only when all frozen guards are true, including at least one critical evidence gap; otherwise it SHALL route to Composer. Other outcomes SHALL fail closed.
#### Scenario: Verifier first technical failure
@@ -94,14 +94,14 @@ Verifier INVALID_OUTPUT and RETRYABLE_FAILED SHALL self-retry once with the same
#### Scenario: LOW_CONFID qualifies for evidence retry
- **WHEN** Verifier completes LOW_CONFID with ceiling PASS, valid no_evidence or indirect_support facts, and `evidence_retry_count=0`
- **WHEN** Verifier completes LOW_CONFID with ceiling PASS, at least one fact having `is_critical=true` and verification `no_evidence` or `indirect_support`, and `evidence_retry_count=0`
- **THEN** Evidence Retry SHALL run once and return to a new Planner stage
- **AND** `planner_retry_count` SHALL reset to 0
- **AND** `evidence_retry_count` SHALL become 1
#### Scenario: LOW_CONFID does not qualify for evidence retry
- **WHEN** ceiling is LOW_CONFID, facts contain no valid gap, or evidence retry count is already 1
- **WHEN** ceiling is LOW_CONFID, facts contain no critical valid gap, or evidence retry count is already 1
- **THEN** Composer SHALL run without another Planner cycle
### Requirement: Composer routing SHALL allow one technical retry and then terminate safely