fix(cognition): break ContractAssessment import cycle in pipeline
Lazy-import ContractAssessment inside geometry contract assessment so problem_frame_contracts → chat → cognition → problem_frame_contracts cannot form a partial-init cycle. Unblocks GSM8K rat1/wave_a runners. [Verification]: rat1+wave_a+pipeline+surface 38 passed; import path ok
This commit is contained in:
parent
120e9554ab
commit
6ffea249ec
1 changed files with 5 additions and 2 deletions
|
|
@ -38,7 +38,6 @@ from generate.intent_ratifier import (
|
|||
RatifiedIntent,
|
||||
ratify_intent,
|
||||
)
|
||||
from generate.problem_frame_contracts import ContractAssessment
|
||||
from generate.graph_planner import (
|
||||
GraphNode,
|
||||
PropositionGraph,
|
||||
|
|
@ -809,11 +808,15 @@ class CognitiveTurnPipeline:
|
|||
return inject(token_list, vocab)
|
||||
|
||||
@staticmethod
|
||||
def _geometry_contract_assessment(F) -> ContractAssessment:
|
||||
def _geometry_contract_assessment(F):
|
||||
"""Build contract assessment from active versor + GoldTether residuals.
|
||||
|
||||
Closed only when versor_condition(F) < 1e-6 and R_GoldTether ≤ 1e-6.
|
||||
Local import avoids chat → cognition → problem_frame_contracts cycles
|
||||
(problem_frame_contracts imports chat.pack_resolver).
|
||||
"""
|
||||
from generate.problem_frame_contracts import ContractAssessment
|
||||
|
||||
if F is None:
|
||||
return ContractAssessment(
|
||||
candidate_organ="shadow_coherence_gate",
|
||||
|
|
|
|||
Loading…
Reference in a new issue