Deep insight extraction for a specific gap — runs INSIGHT pipeline until 6-gate validation passes
STEP 1 — CALL INSIGHT TACTIC:
Call insight tactic with:
- gap: the Gap JSON (description, candidate root cause if any, domain context)
- evidence: accumulated evidence string from prior search/read steps
- knowledge: current knowledge string
STEP 2 — HANDLE VERDICT:
- PASS (6/6 gates passed):
Return ValidatedInsight immediately
revisionsAttempted = current count
- REVISE (partial gate failure, correctable):
Apply tactic's suggested revision to gap framing or evidence framing
Increment revisionsAttempted
If revisionsAttempted < 3: go to STEP 1 with refined inputs
If revisionsAttempted >= 3: return FAIL with reason "max_revisions_exceeded"
- FAIL (fundamental flaw, not correctable):
Return immediately with FAIL verdict and reason
No further revision attempts
<HARD-GATE>
Before accepting an insight as PASS, verify:
revisionsAttempted: counter, starts at 0, increments on each REVISE cyclegap, evidence, knowledge) may be refined between revision cycles based on tactic feedback5 Whys depth:
Stakeholder coverage:
Tension mining:
HMW quality:
If ANY checkbox fails → trigger one REVISE cycle with targeted instructions. This probe runs BEFORE the existing verdict check, not after. </HARD-GATE>
{
"insight": {
"rootCause": "Deep root cause of the gap...",
"stakeholderNeeds": ["need1", "need2"],
"coreContradiction": "The fundamental tension or conflict...",
"impliedSolution": "What closing this gap would require..."
},
"verdict": "PASS | FAIL",
"revisionsAttempted": 1,
"quality": "high | medium | low"
}