Onviction AgentOnviction Agent home

Monitoring and state

What happens after the investigation closes.

The monitoring loop

A monitored thesis re-reads only the metrics its conditions are bound to. Nothing new is invented to monitor, and no module is re-run wholesale. A core check costs 2 credits; every sixth cycle runs a deeper check at 5.

If the key runs out of credits, the job auto-pauses and records why, rather than silently reporting that all conditions still hold. A monitor that cannot read is distinguishable from a monitor that read and found nothing.

States

Thesis states

The state is derived, not stored. It is recomputed from the conditions and module stances on every read.

ConfirmedSUPPORTEDEvidence supports the thesis and no decisive contradiction is present
NeutralMIXEDEvidence is split across the research modules
DeterioratingUNDER_STRESSOne or more conditions show stress, but the thesis has not failed
At riskCHALLENGEDThe evidence is materially contradicting the thesis
InvalidatedINVALIDATEDA fatal condition has been met

Precedence

Order matters, and getting it wrong produces a genuinely misleading interface. A fatal trip outranks everything. But zero module support outranks a merely stressed condition. If no module supports the claim, the thesis is At risk, not Deteriorating.

if (fatalTripped) return 'INVALIDATED';

// No module supports the claim: the modules themselves contradict it,
// and that outranks "a condition is deteriorating".
if (support === 0 && challenge > 0) return 'CHALLENGED';

if (anyTripped || anyStressed) return 'UNDER_STRESS';

Before this ordering existed, a thesis with zero support and four challenges rendered as Deteriorating, which reads as “intact but losing force” when the correct reading was “the evidence contradicts this.”

Observed in operation

The central promise is that a verdict changes on its own. It does. Two monitored theses moved from Deteriorating to Invalidated on live data after their investigations had closed, and a third recovered from tripped back to stressed, confirming the state machine is not a one-way ratchet toward bad news.