ifc-0164
12.4 An executable OPTIC episode
At time \(t\), let
contain the current workflow sketch, skill document, semantic state, provenance-bearing trace, and remaining budget. The admissible actions include executing a registered section, requesting a paired-order probe, proposing a bounded program edit, constructing a typed sketch extension, requesting new evidence, and abstaining.
OPTIC skill-construction episode
Initialize the candidate-program set \(\mathcal P\leftarrow \varnothing \).
Type-check \(m_t\), compile it relative to environment \(E\), and load the current workflow sketch \(\mathbb S_t\).
Execute registered skills and record outputs, resources, invariants, and failures in \(H_t\).
If the failure is ambiguous under marginal skill diagnostics:
select paired-order or active execution probes that separate the registered explanations.
If the additional evidence leaves the failure unresolved:
persist the alternatives and return an evidence request or auditable abstention.
Estimate the involution/interchange witness with uncertainty and localize its support to skills, interfaces, resources, or control flow.
Execute the applicable controls in \(\mathsf{Ctl}_{\mathrm{OPTIC}}\) and retain their results in \(H_t\).
If a controlled repair exists inside \(\mathbb S_t\):
optimize or recompose the available skill sections and add each eligible program dossier to \(\mathcal P\).
Else if the defect is persistent, the control suite has ruled out its specified alternatives, and registered representability tests find no repair in the current skill language:
construct \(\Upsilon _{\mathrm{OPTIC}}\), including \(J_{\mathrm{skill}}:\mathbb S_t\to \mathbb S_t^+\) when the presentation changes, a versioned program \(m_t^+\), transported evidence, and new predictions.
add each well-typed extension dossier to \(\mathcal P\).
Else:
persist the unresolved record and return an evidence request or auditable abstention.
Test every candidate in \(\mathcal P\) with \(\gamma _{\mathrm{skill}}\) across multi-step execution, relevant route orderings, rollback, and transport; defer any candidate without a coherent finite realization.
Freeze the candidate before testing it on the independent admission suite; persist admitted and rejected versions separately.
Scalar scores may rank eligible programs, but eligibility is defined by the typed contract. A candidate with higher task reward but a failed invariant, malformed schema, or unregistered tool request is not an OPTIC improvement. Likewise, an extension that succeeds only on the traces that proposed it has not yet been admitted.