Application boundary
If source data agrees with the route contract, an adapter is not necessary. If you use an adapter, translate only the observable interface. Do not supply the preferred answer or consequence relation.
State lifecycle
Before the first write, select a new state history or an existing state history.
Use the clear or reset route for the applicable state. Domain state, session state, and interval-policy state have different scopes. Do not clear state between interactions that share learning.
Use one writer for ordered online state. Concurrent writers can change the event order. This change can affect the evidence available to later calls.
Input contract
Version the parts of the application boundary that determine what Adapt-1 receives:- Domain and schema.
- Event boundary.
- Input and target paths.
- Numeric normalization and categorical representation.
- Grouping context.
- Adapter or feature extractor.
- Action dictionary.
- Consequence translation.
- response field consumed by the application.
Ordered provenance
Use stable identifiers that the selected request contract accepts. Keep an application interaction record:Transition-event admission
The API can store a Domain event that the structured-transition learner does not accept. Before you use transition output, confirm these contract fields:- Event or memory ID.
- Required input, target, action, and grouping paths.
- Accepted or skipped learner status.
- Sample-count change.
- Skip reason.
- learner or subsystem version.
Read-only inspection
Use the applicable Domain query and/explain to examine a result. Include the query and grouping context that the application normally supplies.
If the route supports these fields, disable exploration and memory-state updates:
- The result used by the application.
- Evidence memory IDs and support.
- Selection or abstention reason.
- Missing evidence and disagreement.
- Hypothesis evidence when configured.
- Domain, schema, model, and subsystem versions.
Ambiguous-write recovery
A gateway timeout can occur after the upstream service accepts an event or feedback write. Until the route specifies idempotency:- Send stable logical identifiers.
- Persist the last response confirmed by the client.
- Examine current state before you repeat a write that can cause two learner-state changes.
- Resume from the last confirmed logical interaction.
Generated language
Structured Adapt-1 workflows do not require generated text. If the application generates language, record that operation, latency, and cost separately.Workflow readiness checklist
- State lifecycle chosen explicitly
- Correct clear or reset route identified
- One writer for ordered state
- Domain, schema, adapter, and action contract versioned
- Application-private information kept outside the learner view
- Stable workflow, interaction, and event identifiers
- Complete route response preserved
- Returned value connected to application commitment
- Exact execution and observable consequence recorded
- Feedback returned to Adapt-1 kept separate from application-only consequence data
- Learner admission confirmed for transition events
- Read-only inspection leaves learner state unchanged
- Ambiguous writes reconciled before resubmission