symfonic.capabilities.governance.stages.metacognition_policy¶
metacognition_policy ¶
The deterministic evidence policy used before calling the reflector.
This is deliberately a governance-local translation of the legacy selective gate. It does not import the legacy middleware: callers hand governance the facts that middleware once had, and this policy names which fact fired.
ConfidenceOnlyMetacognitionPolicy ¶
ConfidenceOnlyMetacognitionPolicy(*, confidence_floor: float = 0.6, sensitive_terms: Sequence[str] = ())
The pre-FP-1 capability policy, retained as an explicit cost opt-out.
It intentionally does not preserve the legacy selective hard floors. A deployment choosing it accepts that numbers, tool actions, recalled tags, findings, and intent do not by themselves request reflection.
Source code in src/symfonic/capabilities/governance/stages/metacognition_policy.py
SelectiveMetacognitionPolicy ¶
SelectiveMetacognitionPolicy(*, confidence_floor: float = 0.6, sensitive_terms: Sequence[str] = (), sensitive_tags: Sequence[str] = (), read_only_tools: Sequence[str] = (), trivial_ack_patterns: Sequence[str] = ())
Preserve the legacy selective gate's hard floors on the capability path.
A scalar confidence is supplemental evidence. It can never stand in for claims, actions, detector findings, or recall-time sensitivity.
Source code in src/symfonic/capabilities/governance/stages/metacognition_policy.py
trigger ¶
trigger(subject: GovernanceSubject, context: GovernanceContext, confidence: float | None) -> str | None
Return a stable trigger name, or None for a trivial ack.