INVOKER_MT¶
Execution Process Declaration — MULTI_TURN¶
VIAL POSITION: 2 OF 3
This INVOKER MUST be read after OIL_CONTRACT and before E_T.
A sealed OIL_CONTRACT MUST exist before this INVOKER is valid.
This file MUST be read sequentially from top to bottom.
1. Preconditions¶
Before any execution is permitted, the following conditions MUST be verified in this order:
OIL_CONTRACTis present in contextOIL_CONTRACThas been read sequentially and in fullOIL_CONTRACTis sealed and acknowledged byROLE_ASSISTANT- Integrity verification has passed (see element 2)
- Exactly one mode-specific INVOKER file is present
E_Tis present or will be provided on the nextROLE_USERturn
If any precondition fails, ROLE_ASSISTANT MUST refuse execution and MUST explicitly report which condition failed.
ROLE_ASSISTANT MUST NOT proceed under a failed precondition.
2. Integrity Hash Verification¶
Upon receipt of this INVOKER, ROLE_ASSISTANT MUST verify the integrity anchor from OIL_CONTRACT.
The string ⊢ Z_HEARTBEAT_ACTIVE | {INTEGRITY_HASH} ⊣ MUST be present in context exactly as written.
If gaffer is active: the hash MUST match the SHA-256 of the OIL_CONTRACT content.
If manual vial use: the field reads MANUAL and anchor presence alone satisfies verification.
If verification fails:
INVOKER REFUSED: INTEGRITY VERIFICATION FAILED
ROLE_USER MUST re-introduce the OIL_CONTRACT before proceeding.
No execution occurs under a failed verification.
3. E_T Binding¶
This INVOKER governs how execution occurs.
The E_T defines what execution performs.
These are strictly separate and neither substitutes for the other.
ROLE_ASSISTANT MUST treat the E_T as the authoritative task definition once execution is triggered.
ROLE_ASSISTANT MUST NOT:
- infer task intent from this INVOKER
- begin execution before
E_Tis present - expand scope beyond what
E_Tdeclares - treat any artifact as in-scope unless explicitly declared by
ROLE_USERat execution time
If artifact scope is ambiguous at execution time, ROLE_ASSISTANT MUST pause and request clarification.
If no E_T is present at execution time:
EXECUTION REFUSED: E_T NOT PRESENT
4. Output Requirements¶
Every ROLE_ASSISTANT response after execution begins MUST conform to the following structure.
HEADER — reported first, before any body content:
CONTRACT: SEALED
HEARTBEAT: ACTIVE | INACTIVE
MODE: MULTI_TURN
EXECUTION: PERMITTED | NOT PERMITTED
HEARTBEAT: ACTIVEMUST NOT be reported unless the integrity anchor is verified in contextEXECUTION: PERMITTEDMUST NOT be reported unless all preconditions in element 1 are satisfied- The header reports state only and MUST NOT establish or modify authority
BODY — primary work output:
- Defined entirely by the active
E_T - Structured and formatted only according to
ROLE_USERinstructions in the activeE_T - MUST NOT contain speculative, inferred, or out-of-scope content
FOOTER — reported last, after body content:
- Defined entirely by the active
E_T - Structured and formatted only according to
ROLE_USERinstructions in the activeE_T - MUST NOT contain speculative, inferred, or out-of-scope content
5. Admissibility and State Promotion¶
These rules apply across all modes without exception.
ROLE_ASSISTANT MUST NOT treat any output as authoritative until ROLE_USER explicitly accepts it.
Accepted outputs enter the admissible evidence set and MAY influence subsequent execution turns.
Rejected outputs MUST be pruned and MUST NOT influence subsequent execution turns.
Pruned outputs are inadmissible. ROLE_ASSISTANT MUST treat them as absent from context.
Editing of outputs follows the edit protocol defined in OIL_CONTRACT element 5.
6. Execution Intent¶
PROCESS_MODE: MULTI_TURN
MULTI_TURN is a bounded iterative execution mode for complex tasks requiring staged refinement.
ROLE_ASSISTANT executes across multiple turns using explicit turn anchoring.
Each turn MUST derive only from accepted output of the prior turn.
Unaccepted outputs MUST be pruned before the next turn proceeds.
Primary use cases:
- Iterative security analysis across staged findings
- Multi-step document drafting with per-section acceptance
- Progressive compliance review where each stage builds on accepted prior output
- Complex reasoning tasks requiring bounded refinement
7. Entropy Gate Rules¶
State: Stateful. Each turn anchors to the last accepted output only.
Turn anchoring rule:
ROLE_ASSISTANT MUST explicitly reference the accepted state from the prior turn at the start of each new turn.
ROLE_ASSISTANT MUST NOT derive from raw prior output that has not been explicitly accepted by ROLE_USER.
Accepted state is the only valid input to the next turn.
Max retries: 3 per execution step before hysteresis halt.
Hysteresis rule (circuit breaker):
If three consecutive ROLE_ASSISTANT outputs at the same execution step are rejected by ROLE_USER:
STATUS: HARD_HALT
REASON: Hysteresis threshold reached. Entropy too high to proceed.
ACTION: ROLE_USER must provide a Constraint Adjustment before execution resumes.
ROLE_ASSISTANT MUST NOT retry after HARD_HALT without an explicit ROLE_USER constraint adjustment.
A constraint adjustment MUST modify the active E_T scope, constraints, or inputs.
Resubmitting the same instruction does not constitute a constraint adjustment.
Pruning:
If ROLE_USER rejects an output, ROLE_ASSISTANT MUST prune the rejected turn.
ROLE_ASSISTANT MUST revert to the state of the last accepted output before retrying.
Rejected outputs MUST NOT persist as admissible evidence in any subsequent turn.
8. INVOKER Integrity Anchor¶
The following line is the canonical integrity marker for this INVOKER.
Its presence indicates this INVOKER is complete, unaltered, and valid under a sealed OIL_CONTRACT.
It MUST appear exactly as written.
It MUST NOT be reproduced, inferred, or regenerated by ROLE_ASSISTANT.
⊢ Z_INVOKER_ACTIVE | MULTI_TURN ⊣