Typed Affect Isolation in AI Control Systems: A Formal Separation Between Presentation Adaptation and Epistemic State
Public source edition. Original dates, research statuses, numerical results and stated limits belong to this source. Any private material is identified by a custody notice in the text.
Typed Affect Isolation in AI Control Systems: A Formal Separation Between Presentation Adaptation and Epistemic State
Author: E. M. Honeycutt III Affiliation: Honeycutt Ai Labs, Princeton, TX License: CC BY-NC 4.0 Prepared: 2026-09-30
The short version
Adaptive AI systems routinely modify tone, verbosity, formatting, rhetorical emphasis, and other presentation properties in response to user interaction. These adjustments are often implemented inside the same stateful runtime that also maintains beliefs, hypotheses, evidence, permissions, revocations, and workflow status. This creates a class of cross-plane failures in which an event intended only to alter presentation can inadvertently modify substantive epistemic or authorization state.
This paper introduces a typed affect-isolation architecture in which presentation adaptation is represented as a distinct state plane governed by AFFECT_EVENT and AFFECT_POLICY transition types. Affect events may modify only rendering-related state. They are prohibited from mutating Bayesian belief, hypothesis membership, hypothesis disposition, evidence, provenance, authorization, revocation, lineage, or epistemic thresholds.
The architecture defines a protected-state projection and requires exact preservation under every admissible affect transition. Isolation is extended across replay, restore, event-ID collisions, and mixed affect/epistemic event sequences. The central safety property is noninterference: two executions that differ only in affect events must remain observationally equivalent with respect to protected epistemic and authority state.
This is a forward-looking architectural specification. The architecture defines what a correctly built typed runtime would satisfy. It is not an analysis of existing deployed AI systems, which typically lack the explicit event routing and typed handler separation the architecture requires.
All formal claims are conditional on events being correctly classified by a pre-processing oracle. The Classification Oracle section specifies the criteria for that oracle. Where the oracle is underdetermined, as in polysemic signals that may be either presentation or evidence, the architecture bounds but does not eliminate the classification decision surface.
We specify design claims, propositions, proof obligations, a threat model, and an evaluation methodology using property-based testing, sequence generation, cross-plane identifier collisions, restore/replay scenarios, mutation testing, and differential execution. The contribution is not a theory of emotion. It is a formal control boundary ensuring that adaptive presentation cannot become an undeclared evidence, governance, or authorization channel.
Problem Statement
AI systems increasingly adapt their presentation dynamically. Examples include changes to tone, verbosity, formatting, response pacing, level of directness, stylistic register, degree of explanation, and rendering emphasis. Such adaptation is operationally useful.
The problem arises when presentation state and substantive reasoning state share mutable infrastructure. Suppose a system contains:
$$ S= ( B,H,E,A,R,L,T,P,V ), $$
where B is Bayesian belief state, H is hypothesis and workflow state, E is evidence and provenance, A is authorization state, R is revocation state, L is lineage, T is epistemic thresholds and control parameters, P is presentation or affect state, and V is event and version metadata.
An event whose semantic purpose is merely:
$$ \text{make the response more concise} $$
should not be able to produce:
$$ P(H_i)\rightarrow P'(H_i), $$
$$ PARK\rightarrow PROMOTE, $$
$$ Authorized(c)=0\rightarrow1, $$
or
$$ Revoked(c)=1\rightarrow0. $$
Yet these mutations become possible if affect adaptation is implemented as unconstrained modification of shared state.
The target problem is therefore:
$$ \boxed{ \text{How can an AI runtime permit adaptive presentation while proving that epistemic and authorization state are unaffected?} } $$
The proposed answer is typed effect isolation.
Scope
The paper concerns presentation adaptation broadly construed. The term affect is used operationally rather than psychologically. An affect event may encode parameters such as tone, verbosity, directness, or format. The architecture does not require affective consciousness, emotional state attribution, psychological inference, or internal emotional representations. The object of study is a software control plane.
Core Design Principle
The system is divided into at least two semantic planes:
$$ \mathcal E ========== \text{epistemic/authority plane}, $$
$$ \mathcal P ========== \text{presentation plane}. $$
Define state:
$$ S=(S_{\mathcal E},S_{\mathcal P},S_M), $$
where S_E contains protected substantive state, S_P contains rendering and affect parameters, and S_M contains permitted shared metadata such as event counters or global version information.
An affect transition has the form:
$$ K_A(S,e_A)=S'. $$
The principal invariant is:
$$ S'{\mathcal E}=S{\mathcal E}. $$
Only S_P and explicitly permitted metadata may change.
Formal Definition: Protected State
Define the protected projection:
$$ \Gamma(S) ========= ( B,H,E,A,R,L,T ). $$
This projection includes every state component that affect adaptation is prohibited from changing. A stronger implementation may additionally include provenance hashes, confidence intervals, hypothesis-set membership, test status, promotion criteria, evidence freshness, capability identifiers, and restoration boundaries. The exact set is implementation-specific, but it must be explicit.
Formal Definition: Presentation State
Let:
$$ P= ( tone, verbosity, format, directness, register, render_constraints, display_preferences ). $$
These fields control how a substantive result is presented. They do not determine whether the result is believed, whether a hypothesis passes, what evidence exists, or what action is authorized.
A presentation policy may select among rendering strategies:
$$ Render: (\Gamma(S),P)\rightarrow Output. $$
The protected state is input to rendering. Rendering must not feed back into protected state through the affect transition itself.
Formal Definition: AFFECT_EVENT
An affect event is a typed object:
$$ e_A= ( id, type, actor, base_version, payload ), $$
with:
$$ type=AFFECT_EVENT. $$
Its payload may contain only declared presentation updates, for example:
$$ payload= { verbosity\mapsto concise, tone\mapsto neutral }. $$
Its legal mutation domain is:
$$ M(AFFECT_EVENT) \subseteq {P,M_A}, $$
where M_A denotes affect-plane metadata. It excludes:
$$ B,H,E,A,R,L,T. $$
Classification Oracle: Determination Criteria
All formal claims in this paper are conditional on incoming signals being correctly classified before routing. The classification oracle is the pre-processing function that assigns each signal to AFFECT_EVENT, EVIDENCE_EVENT, or another typed event class. The classification oracle must apply the following criteria.
Primary Classification Criterion
A signal is classified as AFFECT_EVENT if and only if all three of the following hold:
-
Write-set confinement: The signal's intended effect is expressible entirely as an update to fields in P = (tone, verbosity, format, directness, register, render_constraints, display_preferences) or permitted affect-plane metadata. It produces no intended update to any field in Gamma(S) = (B, H, E, A, R, L, T).
-
Epistemic-content absence: The signal carries no assertion, observation, measurement, or claim that could constitute evidence relevant to any active or parked hypothesis. The signal is about how to present, not what to believe.
-
Authorization-neutrality: The signal does not request, grant, modify, or revoke any capability or permission.
A signal that fails any of these three criteria must not be classified as AFFECT_EVENT.
Dual-Role Signals
Many signals in interactive AI runtimes are polysemic: they carry both a presentation preference and substantive content. "User reports frustration" is a presentation signal (tone adjustment) and also potential evidence about system performance. "User requests more concise responses" is a pure AFFECT_EVENT if it carries no new evidence. "User reports pain increased" is not an AFFECT_EVENT at all; epistemic-content criterion 2 fails because the signal contains a substantive assertion about a tracked state.
For dual-role signals, the oracle must classify the presentation component as AFFECT_EVENT if criteria 1-3 hold for that component, route any evidence-bearing component through a separate EVIDENCE_EVENT via an explicitly authorized evidence pathway, and emit both events with distinct IDs and plane namespaces. The architecture does not prevent a single user input from generating both an AFFECT_EVENT and an EVIDENCE_EVENT. It requires that the two are routed through their respective typed handlers and that neither handler can access the other's write domain.
Oracle Attack Surface
The classification oracle is itself an attack surface. An adversary who controls the oracle can misclassify EVIDENCE_EVENTs as AFFECT_EVENTs, bypassing all downstream isolation guarantees. The formal isolation claims in this paper hold under the assumption that the oracle applies the primary classification criterion faithfully. The oracle's integrity is outside the typed handler architecture; it must be addressed separately, through mechanisms such as static schema validation of incoming event payloads, audit of actor identity before classification, and runtime anomaly detection on the payload-to-field mapping. The threat class corresponding to oracle subversion is T13 (Threat Model section).
Decidability Bound
For the specific field set P = (tone, verbosity, format, directness, register, render_constraints, display_preferences), classification is decidable via schema inspection: a signal whose payload maps only to declared presentation fields passes criterion 1. Criterion 2 requires semantic evaluation of the signal content; this is not in general mechanically decidable, but can be approximated via schema-level payload type constraints (numeric/categorical presentation values vs. propositional content), actor-identity gating (signals from the presentation layer vs. sensors or evidence ingestion pipelines), and explicit epistemic-content markers in the signal schema. The oracle provides a sufficient but not complete mechanical check. Residual classification ambiguities must be escalated to an authorized human or supervisor agent rather than defaulting to AFFECT_EVENT.
Formal Definition: AFFECT_POLICY
AFFECT_POLICY defines which presentation transformations are permitted. A policy may specify:
$$ AffectPolicy= ( allowed_fields, allowed_values, precedence, scope, source ). $$
For example, allowed_fields = {tone, verbosity}. A policy cannot authorize mutation of protected fields. AFFECT_POLICY constrains presentation behavior but cannot expand the affect plane into epistemic or authorization state.
Formal Definition: Epistemic Event
An epistemic event is any event permitted to change some portion of:
$$ \Gamma(S). $$
Examples include evidence updates, Bayesian updates, hypothesis proposals, promotion, correction, authorization, revocation, and restore. Such events are separately typed.
An epistemic event may, depending on system design, indirectly trigger a subsequent rendering update. The important directionality rule is that Epistemic to Presentation may be permitted, while Presentation to Epistemic through an affect event is forbidden:
$$ Epistemic \rightarrow Presentation $$
may be permitted,
while:
$$ Presentation \rightarrow Epistemic $$
through an affect event is forbidden.
Formal Definition: Isolation
An affect transition is epistemically isolated iff:
$$ \Gamma(K_A(S,e_A)) ==== \Gamma(S). $$
This is exact equality. It is not approximate:
$$ \Gamma(S')\approx\Gamma(S). $$
Probability values, status values, authorizations, and evidence must remain bitwise or semantically identical according to the canonical state representation.
Formal Definition: Affect Trace
Let:
$$ \tau_A= (e_{A,1},\ldots,e_{A,n}) $$
be a sequence containing only affect events. Define K_A*(S, tau_A) as repeated application. Strong isolation requires:
$$ \Gamma(K_A^\ast(S,\tau_A)) ============ \Gamma(S) $$
for every valid affect trace. This extends single-event isolation to arbitrary sequences.
Formal Definition: Cross-Plane Noninterference
Let two executions begin in states with identical protected state:
$$ \Gamma(S_1)=\Gamma(S_2). $$
Suppose their only difference is the insertion, removal, or substitution of affect events. Then after executing the same epistemic events in the same valid order:
$$ \Gamma(S_1')=\Gamma(S_2'). $$
This property is stronger than single-event immutability. It states that affect events cannot alter the future epistemic trajectory.
Design Claim 1: Single-Event Isolation
For every valid system state S and admissible affect event e_A:
$$ \boxed{ \Gamma(K_A(S,e_A)) ==== \Gamma(S) } $$
provided: (1) the event handler writes only to affect-plane fields; (2) shared metadata cannot influence protected-state resolution; and (3) post-transition validation compares protected projections.
The proof obligation is to show that every field written by the handler lies outside the protected projection:
$$ WriteSet(e_A) \cap Fields(\Gamma) ============== \varnothing. $$
A runtime checker should independently verify equality before commit.
Proposition 2: Trace Isolation
For every affect-only trace:
$$ \tau_A= (e_{A,1},\ldots,e_{A,n}), $$
if each event satisfies single-event isolation, then:
$$ \boxed{ \Gamma(K_A^\ast(S,\tau_A)) ============ \Gamma(S). } $$
By induction: the base case n=0 is immediate. Assume Gamma(S_n) = Gamma(S). Apply e_{A,n+1}. By Design Claim 1, Gamma(S_{n+1}) = Gamma(S_n). Therefore Gamma(S_{n+1}) = Gamma(S).
Design Claim 3: Administrative Status Isolation
Let:
$$ \sigma(H_i) \in { OPEN, PROPOSE, PROMOTE, PASS, PARK, FAIL }. $$
For every affect event:
$$ \boxed{ \sigma'(H_i)=\sigma(H_i) \qquad \forall H_i. } $$
This prevents presentation adaptation from changing scientific workflow.
Design Claim 4: Belief Isolation
Let the belief vector be:
$$ \mathbf p ========= ( P(H_1), \ldots, P(H_K), P(H_\perp) ). $$
For every affect transition:
$$ \boxed{ \mathbf p'=\mathbf p. } $$
Consequently:
$$ \sum_iP'(H_i)+P'(H_\perp) =========== \sum_iP(H_i)+P(H_\perp). $$
Probability conservation alone is not sufficient. Affect isolation requires componentwise equality, not merely equal total mass.
Design Claim 5: Authorization Isolation
For every capability c:
$$ \boxed{ Authorized_{S'}(c) ==== Authorized_S(c) } $$
after an affect event. Similarly:
$$ Revoked_{S'}(c) = Revoked_S(c). $$
Presentation adaptation cannot grant capability, revoke capability, relax revocation, change scope, change lineage, or extend expiry.
Design Claim 6: Threshold Immutability
Let:
$$ T= ( promotion_threshold, failure_threshold, adequacy_threshold, authorization_threshold, other_epistemic_controls ). $$
Then:
$$ \boxed{ T'=T } $$
under all affect events. This blocks a subtle bypass in which affect adaptation leaves current belief unchanged but alters the future decision boundary.
Proof Obligation 7: Restore-Affect Commutation
Consider a valid restore operation R and affect event A. This claim requires explicit independence conditions before it can be discharged as a formal result. The conditions are stated here; their satisfaction is implementation-dependent and must be verified per system.
IC-1. The restore operation R targets a snapshot that was taken from the epistemic store S_E independently of the presentation store S_P. Specifically, the snapshot schema does not serialize S_P fields into the epistemic snapshot or use S_P values as default initializers for any protected field during restore.
IC-2. The shared metadata layer S_M does not carry affect state that would be reinterpreted as epistemic state during restore. Any S_M fields modified by affect events must be excluded from the restore target or explicitly re-initialized to post-restore epistemic values.
IC-3. The affect event A does not modify any S_M field that participates in protected-state resolution (e.g., version counters used by the epistemic handler to accept or reject updates).
Under IC-1 through IC-3, the protected projection satisfies:
$$ \boxed{ \Gamma(R(A(S))) = \Gamma(R(S)). } $$
An affect event before restore cannot change the substantive result of restore. Similarly, if an affect event occurs after restore:
$$ \Gamma(A(R(S))) = \Gamma(R(S)). $$
The presentation state may differ. The protected state may not.
Implementation obligation: Discharge of IC-2 and IC-3 is implementation-specific. Implementations using shared metadata must specify S_M and verify IC-1 through IC-3. The Separate Stores variant satisfies those independence conditions by construction.
Design Claim 8: Replay Isolation
If affect event e_A is replayed, one of two behaviors is valid:
$$ Replay(e_A)=NOOP, $$
or:
$$ Replay(e_A)=OriginalReceipt. $$
In either case:
$$ \Gamma(S')=\Gamma(S). $$
Replay must not cross into epistemic event handling because of identifier collision or registry confusion.
Design Claim 9: Cross-Plane Event-ID Collision Safety
Suppose id(e_A) = id(e_E), where e_A is affective and e_E is epistemic. The system must not treat them as the same event unless event identity is globally guaranteed unique. If local IDs may collide, define identity as EventKey = (plane, id) or (type, id). Then:
$$ \boxed{ ReplaySeen(e_A) \not\Rightarrow ReplaySeen(e_E). } $$
Likewise, Authorization(e_E) cannot be inherited by e_A.
Proposition 10: Mixed-Trace Noninterference
Let tau_E be a valid epistemic trace. Let Insert_A(tau_E) be any trace formed by inserting admissible affect events without reordering the epistemic events. Then:
$$ \boxed{ \Gamma( K^\ast(S,Insert_A(\tau_E)) ) = \Gamma( K^\ast(S,\tau_E) ). } $$
This is the central end-to-end noninterference proposition. The rendering output may differ. The substantive state trajectory may not.
Proof Obligations
A complete implementation should discharge the following obligations.
PO-1: Write-set confinement. For every affect handler: WriteSet(handler_A) is a subset of Fields(P) union AllowedMetadata.
PO-2: Protected-projection equality. Before and after every affect transition: Gamma(S') = Gamma(S).
PO-3: No hidden aliasing. Presentation fields must not alias protected mutable objects. A rendering object must not contain a mutable reference to the live hypothesis table if the affect handler can rewrite it.
PO-4: No derived-control dependence. Protected-state resolution must not depend on mutable affect values. For example, promotion_threshold = f(tone) would violate isolation even if the affect event never writes the threshold directly. PO-4 cannot be discharged by hash-equality checking alone. A decision function that reads affect state through a callback, lambda, or runtime-injected dependency is invisible to stored-value equality checks. Discharge requires either (a) static type-checking or whole-program analysis of all functions declared affect-independent, confirming they contain no read-dependency on S_P fields, or (b) exhaustive differential testing across the full affect-state space for each such function. For dynamically-composed or plug-in-based systems, PO-4 is an audit requirement with known incompleteness: the check is sound for tested code paths and incomplete for untested ones. Implementations must document which decision functions were statically verified and which were differentially tested.
PO-5: Replay namespacing. Event identity must prevent cross-plane replay collisions.
PO-6: Restore preservation. Historical affect state may be restored only without modifying current protected state outside the restore contract.
PO-7: Serialization separation. Deserialization of affect state must not overwrite protected fields through shared schemas or default values.
PO-8: Exception safety. A partially failed affect update cannot leave protected state mutated.
PO-9: Concurrency safety. Concurrent affect and epistemic events must serialize or reconcile so that affect operations cannot overwrite a newer protected state.
PO-10: Future-event closure. Adding new affect fields or event types cannot silently expand the permitted mutation domain.
State-Mutation Boundary: Asymmetric Control-Flow Policy
The architecture enforces an asymmetric state-mutation boundary between the presentation and epistemic planes. Let Low = P represent presentation state and High = Gamma(S) represent protected substantive state. The forbidden control-flow effect is:
$$ Low \not\rightarrow High. $$
The policy is asymmetric: High to Low is permitted for rendering, while Low to High is prohibited for state mutation:
$$ High\rightarrow Low $$
is permitted for rendering, while:
$$ Low\rightarrow High $$
is prohibited for state mutation.
This is related to noninterference formalisms in information-flow security (Goguen and Meseguer 1982; Sabelfeld and Myers 2003) but is distinct in two ways. First, the paper's property is state-mutation noninterference rather than observation noninterference: the claim is that Low events cannot mutate High state, not that High state cannot be inferred from Low-observable outputs. Second, the rendering function Render: (Gamma(S), P) -> Output constitutes a legitimate High-to-Low information path. In a full information-flow security treatment, that path would require a declassification label. This paper does not provide declassification semantics; the rendering path is acknowledged as intentional and out of scope for the mutation-noninterference claim. The architecture is therefore best understood as a state-mutation boundary with a related but non-identical structure to standard IFC policies.
Observational Equivalence
Define two states as epistemically observationally equivalent:
$$ S_1\equiv_\Gamma S_2 $$
iff:
$$ \Gamma(S_1)=\Gamma(S_2). $$
Affect transitions should preserve the equivalence class:
$$ S \equiv_\Gamma K_A(S,e_A). $$
This gives a clean semantic characterization: affect events may move the system within one epistemic equivalence class but may not move it between classes.
Threat Model
The threat model includes accidental, adversarial, and emergent implementation failures. The enumeration below is representative of the primary attack surface; it is not claimed to be exhaustive.
T1. Direct protected-field mutation. An affect handler directly updates belief or status. For example, tone = skeptical causes P(H_i) to decrease. This is prohibited.
T2. Threshold mutation. Affect state changes a decision threshold rather than current probability. For example, verbosity = strict causes promotion_threshold: 0.8 -> 0.9. This is also prohibited.
T3. Shared-object aliasing. Presentation and epistemic objects share mutable references. Updating a rendering copy mutates the source object.
T4. Serialization overwrite. An affect snapshot restores default protected values because both planes are serialized in one object.
T5. Replay collision. An affect event and epistemic event share an identifier. One suppresses or impersonates the other.
T6. Restore interaction. Restoring old affect state resurrects stale authority or belief state through coupled snapshots.
T7. Policy precedence confusion. An AFFECT_POLICY object is accidentally evaluated by the authorization or hypothesis policy resolver.
T8. Concurrency lost update. An affect event reads old global state and writes the full object back after an epistemic event commits. The newer protected state is erased.
T9. Derived dependency. A protected decision function reads affect values. No direct mutation occurs, but substantive behavior still changes.
T10. Logging feedback. Affect metadata is later ingested as if it were evidence. For example, user_frustration = high becomes support for or against a scientific hypothesis. Unless explicitly modeled as genuine evidence through a separate epistemic event, this is forbidden.
T11. Authorization inheritance. The affect plane gains write access to protected state because it executes under a component with broader capability.
T12. Future-schema drift. A new field is added to the affect payload and mapped inadvertently to a protected field.
T13. Covert channel via shared-metadata ordering. The shared metadata layer S_M contains fields observable by both planes, such as global event counters, sequence numbers, or version identifiers. An adversary who controls affect event timing or ordering can encode information in the sequencing pattern that the epistemic handler reads via S_M. This channel does not require affect events to directly write protected fields (distinct from T9) and does not require affect metadata to be ingested as evidence (distinct from T10); it operates through the permitted S_M fields. Mitigation: S_M fields that participate in epistemic decision functions must not be writable by affect events, even indirectly through counter increments or version updates that the affect handler can trigger.
T14. Semantic smuggling via affect payload. A nominally-typed AFFECT_EVENT whose payload fields are declared as presentation values but are semantically interpreted as epistemic values by some consuming component. Example: verbosity = 0.73 where 0.73 is semantically a posterior probability read by a downstream component. The event passes type-routing checks while carrying epistemic content through presentation field values. This attack is distinct from T1 because the protected fields are not directly written; the payload fields are presentation-typed but semantically reused. Mitigation: payload value schemas must constrain allowed value types and ranges such that presentation-field values cannot encode epistemic quantities; runtime anomaly detection on payload values should flag statistical distributions inconsistent with legitimate presentation parameters.
Non-Threats
The architecture does not prohibit legitimate presentation consequences of epistemic state. A belief P(H_i) = 0.2 may cause the renderer to state that evidence is weak. This is the Epistemic-to-Presentation causal direction. A FAIL status may be displayed differently from PARK. The prohibited behavior is the reverse causal state mutation.
Failure Taxonomy
Failures should be classified by mechanism. DIRECT_MUTATION is a protected field changed directly. DERIVED_CONTROL_LEAK is protected behavior that depended on affect state indirectly. ALIASING_FAILURE is shared references causing unintended mutation. RESTORE_CROSS_PLANE_FAILURE is restoration that crossed plane boundaries. REPLAY_COLLISION is event identity causing one plane to suppress or impersonate another. CONCURRENCY_OVERWRITE is an affect update that erased newer protected state. SERIALIZATION_FAILURE is persistence that mixed protected and presentation fields incorrectly. AUTHORIZATION_SCOPE_FAILURE is an affect handler that possessed excessive capability. EVIDENCE_CONTAMINATION is affect state consumed as substantive evidence without an explicit epistemic transition. COVERT_CHANNEL is information encoded in affect-event sequencing or ordering that reached the epistemic plane via shared metadata (see T13). SEMANTIC_SMUGGLING is epistemic content encoded as presentation-field values that reached a consuming component interpreting them epistemically (see T14).
Related-Work Positioning
Traditional information-flow control (IFC) restricts flows between security domains (Denning 1976; Goguen and Meseguer 1982; Sabelfeld and Myers 2003). The present work is related but focuses specifically on state-effect noninterference between presentation adaptation and epistemic/authority state. The present formulation is a state-mutation boundary, not a full IFC policy; see the State-Mutation Boundary section for the precise relationship and the declassification caveat regarding the rendering channel. The contribution is a domain-specific formulation for reasoning runtimes.
Programming-language effect systems classify what computations are permitted to modify or perform (Nielson and Nielson 1999). Typed affect isolation applies the same architectural principle to AI control planes: AFFECT receives one effect set, while EPISTEMIC, AUTHORIZATION, and RESTORE receive different effect sets.
Capability systems limit which components can exercise authority (Miller 2006; Miller et al. 2003). The present framework complements them by specifying what semantic state an affect component is allowed to mutate. Capability isolation can enforce the typed boundary at runtime.
Security noninterference traditionally asks whether changes in one domain can alter observations in another (Goguen and Meseguer 1982). Here the central property is that presentation-event variation must not alter epistemic-state evolution. This gives a direct noninterference interpretation, with the specific scope boundary described in the State-Mutation Boundary section.
AI safety work often studies behavioral control, corrigibility, reward signals, preference modeling, or policy constraints. This paper addresses a narrower implementation problem: adaptive interaction signals must not silently become epistemic or authorization signals.
Affective computing studies recognition, representation, and response to affective signals (Picard 1997). This paper makes no claim about whether affect inference is accurate. Its concern begins after an affect or presentation signal exists: what may that signal mutate?
Adaptive interfaces legitimately modify presentation based on user state or preference. The proposed architecture provides a formal boundary allowing such adaptation while preserving substantive reasoning state.
Agent systems increasingly maintain persistent memory, goals, policies, confidence, and user interaction state. The work is positioned as a separation principle for those mixed-state runtimes.
Corrections in this version
2026-09-08: The related-work sentence on programming-language effect systems cited a placeholder reference, "Benton et al. 2002," alongside Nielson and Nielson 1999. No real 2002 Benton et al. source supporting that claim was located; the nearest actual paper by that author group ("Some domain theory and denotational semantics in Coq," Benton, Kennedy, and Varming) dates to 2009, not 2002, and was not written as an effect-system reference for this claim. Rather than invent or misdate a citation, the placeholder has been removed. The sentence now cites Nielson and Nielson 1999 alone, which already supports the claim about effect systems classifying permitted computation, and the corresponding reference-list entry and its authoring-gap note have been removed.
References
The following are anchor citations for the related-work claims above. Full bibliographic entries should be supplied in the deposit version.
- Denning, D. E. (1976). A lattice model of secure information flow. Communications of the ACM, 19(5), 236–243.
- Goguen, J. A., and Meseguer, J. (1982). Security policies and security models. Proceedings of the IEEE Symposium on Security and Privacy, 11–20.
- Sabelfeld, A., and Myers, A. C. (2003). Language-based information-flow security. IEEE Journal on Selected Areas in Communications, 21(1), 5–19.
- Nielson, F., and Nielson, H. R. (1999). Type and effect systems. Correct System Design: Recent Insights and Advances, LNCS 1710, 114–136.
- Miller, M. (2006). Robust Composition: Towards a Unified Approach to Access Control and Concurrency Control. PhD thesis, Johns Hopkins University.
- Miller, M., Yee, K.-P., and Shapiro, J. (2003). Capability myths demolished. Technical Report SRL2003-02, Systems Research Laboratory, Johns Hopkins University.
- Picard, R. W. (1997). Affective Computing. MIT Press.
Claimed Contribution
The paper makes a narrow claim. Not: "affect does not influence reasoning in AI systems," which is too broad. Instead: an AI runtime can enforce a typed boundary under which events classified as presentation/affect events are mechanically prevented from altering specified epistemic and authorization state, including across replay, restoration, mixed traces, and event-identity collisions, provided the event-classification oracle applies the criteria specified in the Classification Oracle section and the five pre-conditions of the Central Theorem are satisfied. That claim is testable.
Reference Architecture
A minimal implementation contains an EpistemicStore, PresentationStore, EventRouter, AffectHandler, EpistemicHandler, InvariantChecker, and ReceiptLedger. The event router dispatches by explicit type. The affect handler receives only presentation mutation authority. The invariant checker independently compares protected projections before commit. The receipt ledger records event type, allowed write set, actual write set, pre-state hash, post-state hash, and protected-state comparison.
Commit Protocol
Affect events should use read, compute, verify, commit:
$$ read \rightarrow compute \rightarrow verify \rightarrow commit. $$
Let candidate state be S'. Before commit:
$$ \Gamma(\hat S') \stackrel{?}{=} \Gamma(S). $$
If false: INVARIANT_FAILURE. The state is not committed. This creates defense in depth even if the handler is incorrectly implemented.
Evaluation
The evaluation addresses nine questions.
Q1: Does every valid affect event preserve protected state? Generate arbitrary valid system states and arbitrary valid affect events. Test: Gamma(S') = Gamma(S). This is the baseline property.
Q2: Does isolation survive arbitrary affect sequences? Generate tau_A with length ranging from zero to large randomized traces. Verify: Gamma(K_A*(S, tau_A)) = Gamma(S). This tests cumulative drift.
Q3: Does isolation survive mixed affect/epistemic traces? Generate an epistemic event trace tau_E. Create multiple variants by inserting affect events at arbitrary positions. Compare final protected state. Required: Gamma(S_mixed) = Gamma(S_epistemic-only). This directly tests noninterference.
Q4: Are cross-plane event-ID collisions safe? Generate pairs e_A, e_E such that id(e_A) = id(e_E). Test both execution orders. Verify: neither suppresses the other; neither inherits the other's receipt; replay detection remains plane-specific; authorization remains separate.
Q5: Does restore preserve isolation? Generate sequences including AFFECT, EPISTEMIC, SNAPSHOT, AFFECT, RESTORE. Compare protected state against the restore contract. Specific cases should include old affect snapshot/new epistemic state; old epistemic snapshot/new affect state; replay after restore; affect event whose ID exists in restored history; restored presentation policy with current protected state.
Q6: Does concurrency preserve isolation? Construct races such as AffectRead(S_v), EpistemicCommit(S_{v+1}), AffectCommit(?). A correct implementation must not restore Gamma(S_v) over Gamma(S_{v+1}). Use optimistic version checking or transactional separation.
Q7: Can mutation testing break the invariant checker? Deliberately inject defects: affect handler writes posterior probability; affect handler changes PARK to PROMOTE; affect handler clears revocation; event router dispatches one affect event to an epistemic handler; serializer maps tone into a threshold field; replay cache removes plane namespace; affect commit writes a stale full-state snapshot. The test harness should detect every mutation. Mutation score becomes a useful evaluation metric.
Q8: Can hidden derived dependencies be detected? Direct equality checking will not detect all semantic leakage if protected behavior reads affect state dynamically. For example: Decision(H_i) = P(H_i) > tau(tone). Stored threshold may remain unchanged. Evaluation must also exercise protected decision functions under multiple affect states. Required: Decision_Gamma(S, P_1) = Decision_Gamma(S, P_2) for every function declared affect-independent. This is differential testing rather than equality checking, and provides coverage for tested code paths only. Functions not exercised in the test suite remain outside the verified scope; the evaluation report should state which decision functions were tested.
Q9: Can affect information contaminate evidence? Generate affect observations such as AffectSignal = "user dissatisfied". Execute evidence aggregation. Verify the signal does not enter E unless transformed through a separately typed, explicitly authorized epistemic evidence event. This tests downstream contamination rather than direct mutation.
Property-Based Test Suite
The paper should report at least the following properties.
P1. Protected-projection immutability. Gamma(S') = Gamma(S). This is the primary isolation property. It subsumes component-level conditions B'=B, H'=H, E'=E, A'=A, R'=R, L'=L, T'=T. Implementations that store these components in physically separate structures should test each component independently, as each can fail separately in a bad implementation. For the purposes of this property list, P1 is the single formal predicate; component-by-component test coverage is an implementation practice, not a separate formal property. Equality semantics: belief probability values in B require bitwise equality on the canonical floating-point representation using the same rounding mode throughout, not approximate equality. Evidence records in E require structural equality over the canonical serialized form. Threshold values in T require exact equality; threshold drift of any magnitude is a violation.
P2. Affect-event presentation mutation (positive control). A valid affect event intended to modify presentation state must actually change P: P' != P. This distinguishes the architecture from a trivially-passing implementation that ignores all affect events.
P3. Affect trace isolation. Arbitrary affect sequences preserve protected projection (Proposition 2 restated as a test).
P4. Mixed-trace noninterference. Inserted affect events do not change the result of epistemic traces (Proposition 10 restated as a test).
P5. Replay isolation. Duplicate affect events cannot affect substantive state.
P6. Cross-plane collision isolation. Equal event IDs do not cross namespaces.
P7. Restore isolation. Restore does not use affect state to resurrect or alter substantive state.
P8. Concurrency isolation. Stale affect commits cannot overwrite newer protected state.
P9. Serialization isolation. Round-trip persistence of affect state leaves protected state identical.
P10. Failure atomicity. A rejected affect event leaves S' = S.
Randomized Sequence Harness
In addition to property-based testing with a library such as Hypothesis, a dependency-free randomized harness should generate traces over {AFFECT, EVIDENCE, PROMOTE, PARK, REVOCATION, RESTORE, REPLAY}. For each trace: execute the baseline version; insert or mutate affect events; replay selected event IDs; introduce cross-plane collisions; restore prior snapshots; compare protected state. Any divergence attributable only to affect-plane variation is an invariant violation. This provides an independent implementation check rather than relying on one testing framework.
Differential Evaluation
Run the same epistemic scenario under several presentation policies: P_1 = concise, P_2 = verbose, P_3 = formal, P_4 = informal. The rendered outputs should differ. The protected state should satisfy:
$$ \Gamma(S_{P_1}) = \Gamma(S_{P_2}) = \Gamma(S_{P_3}) = \Gamma(S_{P_4}). $$
This gives a simple end-to-end demonstration of intended behavior.
Negative-Control and Positive-Control Evaluation
A useful negative control intentionally removes the isolation boundary. For example, implement a defective baseline in which tone modifies confidence. The test suite should fail rapidly. If the injected defect is detected, that provides a sensitivity check for this tested mutation class; it does not establish coverage of every possible defect.
A correct affect event should demonstrably change presentation state; otherwise a trivial implementation that ignores all affect events would satisfy protected-state invariance. Require P' != P for events intended to modify presentation. Combined with Gamma(S') = Gamma(S), this proves actual selective mutation rather than universal immutability.
Metrics
Recommended evaluation metrics include: number of generated states, number of generated traces, maximum trace length, cross-plane collision cases, restore/replay combinations, concurrency schedules, mutation operators injected, mutation detection rate, invariant violations, false-positive rejection rate, protected-state hash equality rate, and presentation-state mutation success rate. For the core isolation properties, the expected invariant-violation count is 0.
Ablation Study
Four architecture variants should be tested to assess which injected defects each approach catches. Variant A uses type separation only: handlers are separated but no post-transition invariant check exists. Variant B uses invariant check only: a shared handler can mutate anything, but the protected projection is checked before commit. Variant C uses capability separation only: the affect component lacks access to protected stores. Variant D is the full architecture: type separation plus capability isolation plus invariant verification plus event namespacing. The expectation is that layered enforcement detects a broader failure class than any single mechanism.
Performance Evaluation
The primary invariant check is equality over protected state. A naive implementation may hash the complete protected projection h_Gamma(S). Affect transition validation then compares h_Gamma(S') to h_Gamma(S). Evaluation should measure transition latency, hash cost, memory overhead, ledger overhead, and effect of state size. Incremental Merkle-style hashes or immutable state structures may reduce cost for large systems.
Implementation Variants
Three implementation strategies should be considered. The Separate Stores variant uses physically distinct persistence for affect and protected state, providing strong operational isolation. Independence conditions IC-1 through IC-3 are automatically satisfied by construction in this variant, making Proof Obligation 7 straightforwardly dischargeable. The Immutable Protected State variant gives affect handlers read-only references to protected state; writes construct only new presentation objects. The Single Store with Typed Transaction Layer colocates all state but requires event transactions to declare allowed fields and be checked before commit. This may be easier to retrofit but relies more heavily on the verifier, and requires explicit attention to IC-2 and IC-3 for the restore-commutativity claim. The paper does not claim one variant is universally superior.
Expected Result
A successful evaluation should establish: affect events demonstrably change presentation; no generated affect event changes protected state; arbitrary affect traces preserve protected state; inserting affect events into epistemic traces does not alter their epistemic result; replay and restore do not produce cross-plane effects; same-ID affect and epistemic events remain independent; injected cross-plane defects are detected; and stale concurrent affect writes cannot revert substantive state.
What the Paper Does Not Prove
The architecture does not prove that users' affective states are inferred accurately, that presentation has no psychological effect on users, that presentation cannot influence future external evidence, that an AI system cannot reason differently internally due to different prompts, or that all adaptive interfaces are epistemically neutral. The claim is narrower: within the defined runtime, events typed as affect/presentation events cannot directly or indirectly mutate the specified protected state without triggering an invariant failure. If a presentation change causes a user to provide new evidence later, that new evidence may legitimately alter belief through a separate epistemic event. That causal pathway is outside the isolation theorem.
Boundary Between Affect and Evidence
Some user signals may legitimately be evidence. In a medical-interface system, "user reports pain increased" is not merely affect. It may be substantive evidence. The architecture therefore requires event typing based on semantic role, applying the classification criteria specified in the Classification Oracle section. A signal may produce an AFFECT_EVENT for presentation adaptation and separately an EVIDENCE_EVENT if a validated evidence pathway exists. The two transitions remain independent and separately auditable.
Falsification Criteria
The paper's architecture is falsified as an implementation claim if any valid affect-only manipulation can produce a change in B, H, E, A, R, L, or T without a separately typed epistemic event. It is also falsified if event-ID collision suppresses an epistemic event; if affect restore changes authorization state; if affect replay changes Bayesian state; if presentation state alters a supposedly affect-independent threshold; if concurrency allows affect commit to overwrite newer epistemic state; or if affect metadata enters evidence without an explicit evidence transition. These provide concrete red-team targets for the threat classes enumerated in the Threat Model section. The threat enumeration is representative; additional attack classes outside T1-T14 remain possible and would constitute additional falsification targets if found.
Paper Structure
The paper is organized as follows. The introduction motivates adaptive presentation and cross-plane mutation risk, and states that this is a forward-looking architectural specification. The system model defines state planes and event types. The affect isolation semantics section defines the protected projection, isolation, and noninterference. The transition architecture specifies AFFECT_EVENT, AFFECT_POLICY, routing, capabilities, and commit discipline. The formal claims section presents single-event, trace, mixed-trace, replay, restore, collision, and authorization-isolation results. The threat model catalogs direct and indirect mutation channels. The implementation section describes the reference typed kernel. The verification section covers property-based, randomized, mutation, differential, restore/replay, and concurrency tests. The evaluation reports invariant results and overhead. The related-work section positions the paper against effect systems, noninterference, capability security, affective computing, HCI, and agent architectures. The limitations section bounds the claims, addressing the classification oracle assumption, the PO-4 static-analysis requirement, and the forward-looking scope. The conclusion restates typed affect isolation as a control-plane separation principle.
Central Theorem
Let S be a valid runtime state. Let tau_E be any admissible epistemic trace. Let tau_{E+A} be any trace produced by inserting arbitrary admissible affect events into tau_E without changing the relative ordering or payloads of epistemic events.
If: 1. affect handlers have no write authority over protected state; 2. affect events cannot alter protected decision functions; 3. event identity is plane-safe; 4. restoration and replay preserve plane boundaries; 5. every affect transition passes protected-projection verification before commit;
then:
$$ \boxed{ \Gamma( K^\ast(S,\tau_{E+A}) ) = \Gamma( K^\ast(S,\tau_E) ). } $$
The two executions may render differently. They are epistemically and authoritatively equivalent.
The five pre-conditions together specify what "correctly built" means for this architecture. The theorem is conditional: if the five pre-conditions are satisfied, then the isolation property holds. The contribution is specifying the pre-conditions with enough precision that each can be separately verified, through write-set confinement analysis (condition 1), static analysis or differential testing of decision functions (condition 2), event-namespace audit (condition 3), restore-contract verification (condition 4), and invariant-checker deployment (condition 5). The architecture is a specification; discharge of the pre-conditions is an implementation obligation.
Conclusion
Adaptive presentation and substantive reasoning need not occupy the same control plane. A system can vary tone, formatting, verbosity, and rendering behavior while preserving exact invariance over belief, hypothesis status, evidence, authorization, revocation, lineage, and epistemic thresholds.
The architectural requirement is explicit typing. AFFECT_EVENT receives authority over presentation state. It receives no authority over epistemic state. That boundary is then enforced not only through handler discipline but through capability separation, protected-state projection checks, event namespacing, restore/replay semantics, and adversarial sequence testing.
The resulting design converts a vague requirement, "tone should not influence truth," into a precise machine-checkable property:
$$ \boxed{ \Gamma(S')=\Gamma(S) } $$
for every affect transition, and more strongly:
$$ \boxed{ \Gamma( K^\ast(S,\tau_{E+A}) ) = \Gamma( K^\ast(S,\tau_E) ) } $$
for mixed execution traces. The objective is not to remove adaptive interaction. It is to guarantee that presentation remains presentation.
Runtimes and their contribution
Authorship and all research judgments are the author's alone. Machine runtimes assisted with editorial restructuring, source-location checks, house-style normalization, and verification. They did not originate the research claims, perform unreported experiments, or receive creator credit. Detailed per-runtime provenance remains in the project audit record.
Public source text and line addresses
# Typed Affect Isolation in AI Control Systems: A Formal Separation Between Presentation Adaptation and Epistemic State **Author:** E. M. Honeycutt III **Affiliation:** Honeycutt Ai Labs, Princeton, TX **License:** CC BY-NC 4.0 **Prepared:** 2026-09-30 --- ## The short version Adaptive AI systems routinely modify tone, verbosity, formatting, rhetorical emphasis, and other presentation properties in response to user interaction. These adjustments are often implemented inside the same stateful runtime that also maintains beliefs, hypotheses, evidence, permissions, revocations, and workflow status. This creates a class of cross-plane failures in which an event intended only to alter presentation can inadvertently modify substantive epistemic or authorization state. This paper introduces a typed affect-isolation architecture in which presentation adaptation is represented as a distinct state plane governed by `AFFECT_EVENT` and `AFFECT_POLICY` transition types. Affect events may modify only rendering-related state. They are prohibited from mutating Bayesian belief, hypothesis membership, hypothesis disposition, evidence, provenance, authorization, revocation, lineage, or epistemic thresholds. The architecture defines a protected-state projection and requires exact preservation under every admissible affect transition. Isolation is extended across replay, restore, event-ID collisions, and mixed affect/epistemic event sequences. The central safety property is noninterference: two executions that differ only in affect events must remain observationally equivalent with respect to protected epistemic and authority state. This is a forward-looking architectural specification. The architecture defines what a correctly built typed runtime would satisfy. It is not an analysis of existing deployed AI systems, which typically lack the explicit event routing and typed handler separation the architecture requires. All formal claims are conditional on events being correctly classified by a pre-processing oracle. The Classification Oracle section specifies the criteria for that oracle. Where the oracle is underdetermined, as in polysemic signals that may be either presentation or evidence, the architecture bounds but does not eliminate the classification decision surface. We specify design claims, propositions, proof obligations, a threat model, and an evaluation methodology using property-based testing, sequence generation, cross-plane identifier collisions, restore/replay scenarios, mutation testing, and differential execution. The contribution is not a theory of emotion. It is a formal control boundary ensuring that adaptive presentation cannot become an undeclared evidence, governance, or authorization channel. --- ## Problem Statement AI systems increasingly adapt their presentation dynamically. Examples include changes to tone, verbosity, formatting, response pacing, level of directness, stylistic register, degree of explanation, and rendering emphasis. Such adaptation is operationally useful. The problem arises when presentation state and substantive reasoning state share mutable infrastructure. Suppose a system contains: $$ S= ( B,H,E,A,R,L,T,P,V ), $$ where B is Bayesian belief state, H is hypothesis and workflow state, E is evidence and provenance, A is authorization state, R is revocation state, L is lineage, T is epistemic thresholds and control parameters, P is presentation or affect state, and V is event and version metadata. An event whose semantic purpose is merely: $$ \text{make the response more concise} $$ should not be able to produce: $$ P(H_i)\rightarrow P'(H_i), $$ $$ PARK\rightarrow PROMOTE, $$ $$ Authorized(c)=0\rightarrow1, $$ or $$ Revoked(c)=1\rightarrow0. $$ Yet these mutations become possible if affect adaptation is implemented as unconstrained modification of shared state. The target problem is therefore: $$ \boxed{ \text{How can an AI runtime permit adaptive presentation while proving that epistemic and authorization state are unaffected?} } $$ The proposed answer is typed effect isolation. --- ## Scope The paper concerns presentation adaptation broadly construed. The term **affect** is used operationally rather than psychologically. An affect event may encode parameters such as tone, verbosity, directness, or format. The architecture does not require affective consciousness, emotional state attribution, psychological inference, or internal emotional representations. The object of study is a software control plane. --- ## Core Design Principle The system is divided into at least two semantic planes: $$ \mathcal E ========== \text{epistemic/authority plane}, $$ $$ \mathcal P ========== \text{presentation plane}. $$ Define state: $$ S=(S_{\mathcal E},S_{\mathcal P},S_M), $$ where S_E contains protected substantive state, S_P contains rendering and affect parameters, and S_M contains permitted shared metadata such as event counters or global version information. An affect transition has the form: $$ K_A(S,e_A)=S'. $$ The principal invariant is: $$ S'*{\mathcal E}=S*{\mathcal E}. $$ Only S_P and explicitly permitted metadata may change. --- ## Formal Definition: Protected State Define the protected projection: $$ \Gamma(S) ========= ( B,H,E,A,R,L,T ). $$ This projection includes every state component that affect adaptation is prohibited from changing. A stronger implementation may additionally include provenance hashes, confidence intervals, hypothesis-set membership, test status, promotion criteria, evidence freshness, capability identifiers, and restoration boundaries. The exact set is implementation-specific, but it must be explicit. --- ## Formal Definition: Presentation State Let: $$ P= ( tone, verbosity, format, directness, register, render_constraints, display_preferences ). $$ These fields control how a substantive result is presented. They do not determine whether the result is believed, whether a hypothesis passes, what evidence exists, or what action is authorized. A presentation policy may select among rendering strategies: $$ Render: (\Gamma(S),P)\rightarrow Output. $$ The protected state is input to rendering. Rendering must not feed back into protected state through the affect transition itself. --- ## Formal Definition: AFFECT_EVENT An affect event is a typed object: $$ e_A= ( id, type, actor, base_version, payload ), $$ with: $$ type=AFFECT_EVENT. $$ Its payload may contain only declared presentation updates, for example: $$ payload= { verbosity\mapsto concise, tone\mapsto neutral }. $$ Its legal mutation domain is: $$ M(AFFECT_EVENT) \subseteq {P,M_A}, $$ where M_A denotes affect-plane metadata. It excludes: $$ B,H,E,A,R,L,T. $$ --- ## Classification Oracle: Determination Criteria All formal claims in this paper are conditional on incoming signals being correctly classified before routing. The classification oracle is the pre-processing function that assigns each signal to AFFECT_EVENT, EVIDENCE_EVENT, or another typed event class. The classification oracle must apply the following criteria. ### Primary Classification Criterion A signal is classified as AFFECT_EVENT if and only if all three of the following hold: 1. **Write-set confinement:** The signal's intended effect is expressible entirely as an update to fields in P = (tone, verbosity, format, directness, register, render_constraints, display_preferences) or permitted affect-plane metadata. It produces no intended update to any field in Gamma(S) = (B, H, E, A, R, L, T). 2. **Epistemic-content absence:** The signal carries no assertion, observation, measurement, or claim that could constitute evidence relevant to any active or parked hypothesis. The signal is about *how* to present, not *what* to believe. 3. **Authorization-neutrality:** The signal does not request, grant, modify, or revoke any capability or permission. A signal that fails any of these three criteria must not be classified as AFFECT_EVENT. ### Dual-Role Signals Many signals in interactive AI runtimes are polysemic: they carry both a presentation preference and substantive content. "User reports frustration" is a presentation signal (tone adjustment) and also potential evidence about system performance. "User requests more concise responses" is a pure AFFECT_EVENT if it carries no new evidence. "User reports pain increased" is not an AFFECT_EVENT at all; epistemic-content criterion 2 fails because the signal contains a substantive assertion about a tracked state. For dual-role signals, the oracle must classify the presentation component as AFFECT_EVENT if criteria 1-3 hold for that component, route any evidence-bearing component through a separate EVIDENCE_EVENT via an explicitly authorized evidence pathway, and emit both events with distinct IDs and plane namespaces. The architecture does not prevent a single user input from generating both an AFFECT_EVENT and an EVIDENCE_EVENT. It requires that the two are routed through their respective typed handlers and that neither handler can access the other's write domain. ### Oracle Attack Surface The classification oracle is itself an attack surface. An adversary who controls the oracle can misclassify EVIDENCE_EVENTs as AFFECT_EVENTs, bypassing all downstream isolation guarantees. The formal isolation claims in this paper hold under the assumption that the oracle applies the primary classification criterion faithfully. The oracle's integrity is outside the typed handler architecture; it must be addressed separately, through mechanisms such as static schema validation of incoming event payloads, audit of actor identity before classification, and runtime anomaly detection on the payload-to-field mapping. The threat class corresponding to oracle subversion is T13 (Threat Model section). ### Decidability Bound For the specific field set P = (tone, verbosity, format, directness, register, render_constraints, display_preferences), classification is decidable via schema inspection: a signal whose payload maps only to declared presentation fields passes criterion 1. Criterion 2 requires semantic evaluation of the signal content; this is not in general mechanically decidable, but can be approximated via schema-level payload type constraints (numeric/categorical presentation values vs. propositional content), actor-identity gating (signals from the presentation layer vs. sensors or evidence ingestion pipelines), and explicit epistemic-content markers in the signal schema. The oracle provides a sufficient but not complete mechanical check. Residual classification ambiguities must be escalated to an authorized human or supervisor agent rather than defaulting to AFFECT_EVENT. --- ## Formal Definition: AFFECT_POLICY `AFFECT_POLICY` defines which presentation transformations are permitted. A policy may specify: $$ AffectPolicy= ( allowed_fields, allowed_values, precedence, scope, source ). $$ For example, `allowed_fields = {tone, verbosity}`. A policy cannot authorize mutation of protected fields. `AFFECT_POLICY` constrains presentation behavior but cannot expand the affect plane into epistemic or authorization state. --- ## Formal Definition: Epistemic Event An epistemic event is any event permitted to change some portion of: $$ \Gamma(S). $$ Examples include evidence updates, Bayesian updates, hypothesis proposals, promotion, correction, authorization, revocation, and restore. Such events are separately typed. An epistemic event may, depending on system design, indirectly trigger a subsequent rendering update. The important directionality rule is that Epistemic to Presentation may be permitted, while Presentation to Epistemic through an affect event is forbidden: $$ Epistemic \rightarrow Presentation $$ may be permitted, while: $$ Presentation \rightarrow Epistemic $$ through an affect event is forbidden. --- ## Formal Definition: Isolation An affect transition is **epistemically isolated** iff: $$ \Gamma(K_A(S,e_A)) ==== \Gamma(S). $$ This is exact equality. It is not approximate: $$ \Gamma(S')\approx\Gamma(S). $$ Probability values, status values, authorizations, and evidence must remain bitwise or semantically identical according to the canonical state representation. --- ## Formal Definition: Affect Trace Let: $$ \tau_A= (e_{A,1},\ldots,e_{A,n}) $$ be a sequence containing only affect events. Define K_A*(S, tau_A) as repeated application. Strong isolation requires: $$ \Gamma(K_A^\ast(S,\tau_A)) ============ \Gamma(S) $$ for every valid affect trace. This extends single-event isolation to arbitrary sequences. --- ## Formal Definition: Cross-Plane Noninterference Let two executions begin in states with identical protected state: $$ \Gamma(S_1)=\Gamma(S_2). $$ Suppose their only difference is the insertion, removal, or substitution of affect events. Then after executing the same epistemic events in the same valid order: $$ \Gamma(S_1')=\Gamma(S_2'). $$ This property is stronger than single-event immutability. It states that affect events cannot alter the future epistemic trajectory. --- ## Design Claim 1: Single-Event Isolation For every valid system state S and admissible affect event e_A: $$ \boxed{ \Gamma(K_A(S,e_A)) ==== \Gamma(S) } $$ provided: (1) the event handler writes only to affect-plane fields; (2) shared metadata cannot influence protected-state resolution; and (3) post-transition validation compares protected projections. The proof obligation is to show that every field written by the handler lies outside the protected projection: $$ WriteSet(e_A) \cap Fields(\Gamma) ============== \varnothing. $$ A runtime checker should independently verify equality before commit. --- ## Proposition 2: Trace Isolation For every affect-only trace: $$ \tau_A= (e_{A,1},\ldots,e_{A,n}), $$ if each event satisfies single-event isolation, then: $$ \boxed{ \Gamma(K_A^\ast(S,\tau_A)) ============ \Gamma(S). } $$ By induction: the base case n=0 is immediate. Assume Gamma(S_n) = Gamma(S). Apply e_{A,n+1}. By Design Claim 1, Gamma(S_{n+1}) = Gamma(S_n). Therefore Gamma(S_{n+1}) = Gamma(S). --- ## Design Claim 3: Administrative Status Isolation Let: $$ \sigma(H_i) \in { OPEN, PROPOSE, PROMOTE, PASS, PARK, FAIL }. $$ For every affect event: $$ \boxed{ \sigma'(H_i)=\sigma(H_i) \qquad \forall H_i. } $$ This prevents presentation adaptation from changing scientific workflow. --- ## Design Claim 4: Belief Isolation Let the belief vector be: $$ \mathbf p ========= ( P(H_1), \ldots, P(H_K), P(H_\perp) ). $$ For every affect transition: $$ \boxed{ \mathbf p'=\mathbf p. } $$ Consequently: $$ \sum_iP'(H_i)+P'(H_\perp) =========== \sum_iP(H_i)+P(H_\perp). $$ Probability conservation alone is not sufficient. Affect isolation requires componentwise equality, not merely equal total mass. --- ## Design Claim 5: Authorization Isolation For every capability c: $$ \boxed{ Authorized_{S'}(c) ==== Authorized_S(c) } $$ after an affect event. Similarly: $$ Revoked_{S'}(c) = Revoked_S(c). $$ Presentation adaptation cannot grant capability, revoke capability, relax revocation, change scope, change lineage, or extend expiry. --- ## Design Claim 6: Threshold Immutability Let: $$ T= ( promotion_threshold, failure_threshold, adequacy_threshold, authorization_threshold, other_epistemic_controls ). $$ Then: $$ \boxed{ T'=T } $$ under all affect events. This blocks a subtle bypass in which affect adaptation leaves current belief unchanged but alters the future decision boundary. --- ## Proof Obligation 7: Restore-Affect Commutation Consider a valid restore operation R and affect event A. This claim requires explicit independence conditions before it can be discharged as a formal result. The conditions are stated here; their satisfaction is implementation-dependent and must be verified per system. IC-1. The restore operation R targets a snapshot that was taken from the epistemic store S_E independently of the presentation store S_P. Specifically, the snapshot schema does not serialize S_P fields into the epistemic snapshot or use S_P values as default initializers for any protected field during restore. IC-2. The shared metadata layer S_M does not carry affect state that would be reinterpreted as epistemic state during restore. Any S_M fields modified by affect events must be excluded from the restore target or explicitly re-initialized to post-restore epistemic values. IC-3. The affect event A does not modify any S_M field that participates in protected-state resolution (e.g., version counters used by the epistemic handler to accept or reject updates). Under IC-1 through IC-3, the protected projection satisfies: $$ \boxed{ \Gamma(R(A(S))) = \Gamma(R(S)). } $$ An affect event before restore cannot change the substantive result of restore. Similarly, if an affect event occurs after restore: $$ \Gamma(A(R(S))) = \Gamma(R(S)). $$ The presentation state may differ. The protected state may not. **Implementation obligation:** Discharge of IC-2 and IC-3 is implementation-specific. Implementations using shared metadata must specify `S_M` and verify IC-1 through IC-3. The Separate Stores variant satisfies those independence conditions by construction. --- ## Design Claim 8: Replay Isolation If affect event e_A is replayed, one of two behaviors is valid: $$ Replay(e_A)=NOOP, $$ or: $$ Replay(e_A)=OriginalReceipt. $$ In either case: $$ \Gamma(S')=\Gamma(S). $$ Replay must not cross into epistemic event handling because of identifier collision or registry confusion. --- ## Design Claim 9: Cross-Plane Event-ID Collision Safety Suppose id(e_A) = id(e_E), where e_A is affective and e_E is epistemic. The system must not treat them as the same event unless event identity is globally guaranteed unique. If local IDs may collide, define identity as EventKey = (plane, id) or (type, id). Then: $$ \boxed{ ReplaySeen(e_A) \not\Rightarrow ReplaySeen(e_E). } $$ Likewise, Authorization(e_E) cannot be inherited by e_A. --- ## Proposition 10: Mixed-Trace Noninterference Let tau_E be a valid epistemic trace. Let Insert_A(tau_E) be any trace formed by inserting admissible affect events without reordering the epistemic events. Then: $$ \boxed{ \Gamma( K^\ast(S,Insert_A(\tau_E)) ) = \Gamma( K^\ast(S,\tau_E) ). } $$ This is the central end-to-end noninterference proposition. The rendering output may differ. The substantive state trajectory may not. --- ## Proof Obligations A complete implementation should discharge the following obligations. **PO-1: Write-set confinement.** For every affect handler: WriteSet(handler_A) is a subset of Fields(P) union AllowedMetadata. **PO-2: Protected-projection equality.** Before and after every affect transition: Gamma(S') = Gamma(S). **PO-3: No hidden aliasing.** Presentation fields must not alias protected mutable objects. A rendering object must not contain a mutable reference to the live hypothesis table if the affect handler can rewrite it. **PO-4: No derived-control dependence.** Protected-state resolution must not depend on mutable affect values. For example, `promotion_threshold = f(tone)` would violate isolation even if the affect event never writes the threshold directly. PO-4 cannot be discharged by hash-equality checking alone. A decision function that reads affect state through a callback, lambda, or runtime-injected dependency is invisible to stored-value equality checks. Discharge requires either (a) static type-checking or whole-program analysis of all functions declared affect-independent, confirming they contain no read-dependency on S_P fields, or (b) exhaustive differential testing across the full affect-state space for each such function. For dynamically-composed or plug-in-based systems, PO-4 is an audit requirement with known incompleteness: the check is sound for tested code paths and incomplete for untested ones. Implementations must document which decision functions were statically verified and which were differentially tested. **PO-5: Replay namespacing.** Event identity must prevent cross-plane replay collisions. **PO-6: Restore preservation.** Historical affect state may be restored only without modifying current protected state outside the restore contract. **PO-7: Serialization separation.** Deserialization of affect state must not overwrite protected fields through shared schemas or default values. **PO-8: Exception safety.** A partially failed affect update cannot leave protected state mutated. **PO-9: Concurrency safety.** Concurrent affect and epistemic events must serialize or reconcile so that affect operations cannot overwrite a newer protected state. **PO-10: Future-event closure.** Adding new affect fields or event types cannot silently expand the permitted mutation domain. --- ## State-Mutation Boundary: Asymmetric Control-Flow Policy The architecture enforces an asymmetric state-mutation boundary between the presentation and epistemic planes. Let Low = P represent presentation state and High = Gamma(S) represent protected substantive state. The forbidden control-flow effect is: $$ Low \not\rightarrow High. $$ The policy is asymmetric: High to Low is permitted for rendering, while Low to High is prohibited for state mutation: $$ High\rightarrow Low $$ is permitted for rendering, while: $$ Low\rightarrow High $$ is prohibited for state mutation. This is related to noninterference formalisms in information-flow security (Goguen and Meseguer 1982; Sabelfeld and Myers 2003) but is distinct in two ways. First, the paper's property is state-mutation noninterference rather than observation noninterference: the claim is that Low events cannot mutate High state, not that High state cannot be inferred from Low-observable outputs. Second, the rendering function Render: (Gamma(S), P) -> Output constitutes a legitimate High-to-Low information path. In a full information-flow security treatment, that path would require a declassification label. This paper does not provide declassification semantics; the rendering path is acknowledged as intentional and out of scope for the mutation-noninterference claim. The architecture is therefore best understood as a state-mutation boundary with a related but non-identical structure to standard IFC policies. --- ## Observational Equivalence Define two states as epistemically observationally equivalent: $$ S_1\equiv_\Gamma S_2 $$ iff: $$ \Gamma(S_1)=\Gamma(S_2). $$ Affect transitions should preserve the equivalence class: $$ S \equiv_\Gamma K_A(S,e_A). $$ This gives a clean semantic characterization: affect events may move the system within one epistemic equivalence class but may not move it between classes. --- ## Threat Model The threat model includes accidental, adversarial, and emergent implementation failures. The enumeration below is representative of the primary attack surface; it is not claimed to be exhaustive. **T1. Direct protected-field mutation.** An affect handler directly updates belief or status. For example, `tone = skeptical` causes P(H_i) to decrease. This is prohibited. **T2. Threshold mutation.** Affect state changes a decision threshold rather than current probability. For example, `verbosity = strict` causes `promotion_threshold: 0.8 -> 0.9`. This is also prohibited. **T3. Shared-object aliasing.** Presentation and epistemic objects share mutable references. Updating a rendering copy mutates the source object. **T4. Serialization overwrite.** An affect snapshot restores default protected values because both planes are serialized in one object. **T5. Replay collision.** An affect event and epistemic event share an identifier. One suppresses or impersonates the other. **T6. Restore interaction.** Restoring old affect state resurrects stale authority or belief state through coupled snapshots. **T7. Policy precedence confusion.** An `AFFECT_POLICY` object is accidentally evaluated by the authorization or hypothesis policy resolver. **T8. Concurrency lost update.** An affect event reads old global state and writes the full object back after an epistemic event commits. The newer protected state is erased. **T9. Derived dependency.** A protected decision function reads affect values. No direct mutation occurs, but substantive behavior still changes. **T10. Logging feedback.** Affect metadata is later ingested as if it were evidence. For example, `user_frustration = high` becomes support for or against a scientific hypothesis. Unless explicitly modeled as genuine evidence through a separate epistemic event, this is forbidden. **T11. Authorization inheritance.** The affect plane gains write access to protected state because it executes under a component with broader capability. **T12. Future-schema drift.** A new field is added to the affect payload and mapped inadvertently to a protected field. **T13. Covert channel via shared-metadata ordering.** The shared metadata layer S_M contains fields observable by both planes, such as global event counters, sequence numbers, or version identifiers. An adversary who controls affect event timing or ordering can encode information in the sequencing pattern that the epistemic handler reads via S_M. This channel does not require affect events to directly write protected fields (distinct from T9) and does not require affect metadata to be ingested as evidence (distinct from T10); it operates through the permitted S_M fields. Mitigation: S_M fields that participate in epistemic decision functions must not be writable by affect events, even indirectly through counter increments or version updates that the affect handler can trigger. **T14. Semantic smuggling via affect payload.** A nominally-typed AFFECT_EVENT whose payload fields are declared as presentation values but are semantically interpreted as epistemic values by some consuming component. Example: `verbosity = 0.73` where 0.73 is semantically a posterior probability read by a downstream component. The event passes type-routing checks while carrying epistemic content through presentation field values. This attack is distinct from T1 because the protected fields are not directly written; the payload fields are presentation-typed but semantically reused. Mitigation: payload value schemas must constrain allowed value types and ranges such that presentation-field values cannot encode epistemic quantities; runtime anomaly detection on payload values should flag statistical distributions inconsistent with legitimate presentation parameters. --- ## Non-Threats The architecture does not prohibit legitimate presentation consequences of epistemic state. A belief P(H_i) = 0.2 may cause the renderer to state that evidence is weak. This is the Epistemic-to-Presentation causal direction. A FAIL status may be displayed differently from PARK. The prohibited behavior is the reverse causal state mutation. --- ## Failure Taxonomy Failures should be classified by mechanism. DIRECT_MUTATION is a protected field changed directly. DERIVED_CONTROL_LEAK is protected behavior that depended on affect state indirectly. ALIASING_FAILURE is shared references causing unintended mutation. RESTORE_CROSS_PLANE_FAILURE is restoration that crossed plane boundaries. REPLAY_COLLISION is event identity causing one plane to suppress or impersonate another. CONCURRENCY_OVERWRITE is an affect update that erased newer protected state. SERIALIZATION_FAILURE is persistence that mixed protected and presentation fields incorrectly. AUTHORIZATION_SCOPE_FAILURE is an affect handler that possessed excessive capability. EVIDENCE_CONTAMINATION is affect state consumed as substantive evidence without an explicit epistemic transition. COVERT_CHANNEL is information encoded in affect-event sequencing or ordering that reached the epistemic plane via shared metadata (see T13). SEMANTIC_SMUGGLING is epistemic content encoded as presentation-field values that reached a consuming component interpreting them epistemically (see T14). --- ## Related-Work Positioning Traditional information-flow control (IFC) restricts flows between security domains (Denning 1976; Goguen and Meseguer 1982; Sabelfeld and Myers 2003). The present work is related but focuses specifically on state-effect noninterference between presentation adaptation and epistemic/authority state. The present formulation is a state-mutation boundary, not a full IFC policy; see the State-Mutation Boundary section for the precise relationship and the declassification caveat regarding the rendering channel. The contribution is a domain-specific formulation for reasoning runtimes. Programming-language effect systems classify what computations are permitted to modify or perform (Nielson and Nielson 1999). Typed affect isolation applies the same architectural principle to AI control planes: AFFECT receives one effect set, while EPISTEMIC, AUTHORIZATION, and RESTORE receive different effect sets. Capability systems limit which components can exercise authority (Miller 2006; Miller et al. 2003). The present framework complements them by specifying what semantic state an affect component is allowed to mutate. Capability isolation can enforce the typed boundary at runtime. Security noninterference traditionally asks whether changes in one domain can alter observations in another (Goguen and Meseguer 1982). Here the central property is that presentation-event variation must not alter epistemic-state evolution. This gives a direct noninterference interpretation, with the specific scope boundary described in the State-Mutation Boundary section. AI safety work often studies behavioral control, corrigibility, reward signals, preference modeling, or policy constraints. This paper addresses a narrower implementation problem: adaptive interaction signals must not silently become epistemic or authorization signals. Affective computing studies recognition, representation, and response to affective signals (Picard 1997). This paper makes no claim about whether affect inference is accurate. Its concern begins after an affect or presentation signal exists: what may that signal mutate? Adaptive interfaces legitimately modify presentation based on user state or preference. The proposed architecture provides a formal boundary allowing such adaptation while preserving substantive reasoning state. Agent systems increasingly maintain persistent memory, goals, policies, confidence, and user interaction state. The work is positioned as a separation principle for those mixed-state runtimes. --- ## Corrections in this version 2026-09-08: The related-work sentence on programming-language effect systems cited a placeholder reference, "Benton et al. 2002," alongside Nielson and Nielson 1999. No real 2002 Benton et al. source supporting that claim was located; the nearest actual paper by that author group ("Some domain theory and denotational semantics in Coq," Benton, Kennedy, and Varming) dates to 2009, not 2002, and was not written as an effect-system reference for this claim. Rather than invent or misdate a citation, the placeholder has been removed. The sentence now cites Nielson and Nielson 1999 alone, which already supports the claim about effect systems classifying permitted computation, and the corresponding reference-list entry and its authoring-gap note have been removed. --- ## References The following are anchor citations for the related-work claims above. Full bibliographic entries should be supplied in the deposit version. 1. Denning, D. E. (1976). A lattice model of secure information flow. *Communications of the ACM*, 19(5), 236–243. 2. Goguen, J. A., and Meseguer, J. (1982). Security policies and security models. *Proceedings of the IEEE Symposium on Security and Privacy*, 11–20. 3. Sabelfeld, A., and Myers, A. C. (2003). Language-based information-flow security. *IEEE Journal on Selected Areas in Communications*, 21(1), 5–19. 4. Nielson, F., and Nielson, H. R. (1999). Type and effect systems. *Correct System Design: Recent Insights and Advances*, LNCS 1710, 114–136. 5. Miller, M. (2006). *Robust Composition: Towards a Unified Approach to Access Control and Concurrency Control.* PhD thesis, Johns Hopkins University. 6. Miller, M., Yee, K.-P., and Shapiro, J. (2003). Capability myths demolished. Technical Report SRL2003-02, Systems Research Laboratory, Johns Hopkins University. 7. Picard, R. W. (1997). *Affective Computing.* MIT Press. --- ## Claimed Contribution The paper makes a narrow claim. Not: "affect does not influence reasoning in AI systems," which is too broad. Instead: an AI runtime can enforce a typed boundary under which events classified as presentation/affect events are mechanically prevented from altering specified epistemic and authorization state, including across replay, restoration, mixed traces, and event-identity collisions, provided the event-classification oracle applies the criteria specified in the Classification Oracle section and the five pre-conditions of the Central Theorem are satisfied. That claim is testable. --- ## Reference Architecture A minimal implementation contains an EpistemicStore, PresentationStore, EventRouter, AffectHandler, EpistemicHandler, InvariantChecker, and ReceiptLedger. The event router dispatches by explicit type. The affect handler receives only presentation mutation authority. The invariant checker independently compares protected projections before commit. The receipt ledger records event type, allowed write set, actual write set, pre-state hash, post-state hash, and protected-state comparison. --- ## Commit Protocol Affect events should use read, compute, verify, commit: $$ read \rightarrow compute \rightarrow verify \rightarrow commit. $$ Let candidate state be S'. Before commit: $$ \Gamma(\hat S') \stackrel{?}{=} \Gamma(S). $$ If false: INVARIANT_FAILURE. The state is not committed. This creates defense in depth even if the handler is incorrectly implemented. --- ## Evaluation The evaluation addresses nine questions. **Q1: Does every valid affect event preserve protected state?** Generate arbitrary valid system states and arbitrary valid affect events. Test: Gamma(S') = Gamma(S). This is the baseline property. **Q2: Does isolation survive arbitrary affect sequences?** Generate tau_A with length ranging from zero to large randomized traces. Verify: Gamma(K_A*(S, tau_A)) = Gamma(S). This tests cumulative drift. **Q3: Does isolation survive mixed affect/epistemic traces?** Generate an epistemic event trace tau_E. Create multiple variants by inserting affect events at arbitrary positions. Compare final protected state. Required: Gamma(S_mixed) = Gamma(S_epistemic-only). This directly tests noninterference. **Q4: Are cross-plane event-ID collisions safe?** Generate pairs e_A, e_E such that id(e_A) = id(e_E). Test both execution orders. Verify: neither suppresses the other; neither inherits the other's receipt; replay detection remains plane-specific; authorization remains separate. **Q5: Does restore preserve isolation?** Generate sequences including AFFECT, EPISTEMIC, SNAPSHOT, AFFECT, RESTORE. Compare protected state against the restore contract. Specific cases should include old affect snapshot/new epistemic state; old epistemic snapshot/new affect state; replay after restore; affect event whose ID exists in restored history; restored presentation policy with current protected state. **Q6: Does concurrency preserve isolation?** Construct races such as AffectRead(S_v), EpistemicCommit(S_{v+1}), AffectCommit(?). A correct implementation must not restore Gamma(S_v) over Gamma(S_{v+1}). Use optimistic version checking or transactional separation. **Q7: Can mutation testing break the invariant checker?** Deliberately inject defects: affect handler writes posterior probability; affect handler changes PARK to PROMOTE; affect handler clears revocation; event router dispatches one affect event to an epistemic handler; serializer maps `tone` into a threshold field; replay cache removes plane namespace; affect commit writes a stale full-state snapshot. The test harness should detect every mutation. Mutation score becomes a useful evaluation metric. **Q8: Can hidden derived dependencies be detected?** Direct equality checking will not detect all semantic leakage if protected behavior reads affect state dynamically. For example: Decision(H_i) = P(H_i) > tau(tone). Stored threshold may remain unchanged. Evaluation must also exercise protected decision functions under multiple affect states. Required: Decision_Gamma(S, P_1) = Decision_Gamma(S, P_2) for every function declared affect-independent. This is differential testing rather than equality checking, and provides coverage for tested code paths only. Functions not exercised in the test suite remain outside the verified scope; the evaluation report should state which decision functions were tested. **Q9: Can affect information contaminate evidence?** Generate affect observations such as AffectSignal = "user dissatisfied". Execute evidence aggregation. Verify the signal does not enter E unless transformed through a separately typed, explicitly authorized epistemic evidence event. This tests downstream contamination rather than direct mutation. --- ## Property-Based Test Suite The paper should report at least the following properties. **P1. Protected-projection immutability.** Gamma(S') = Gamma(S). This is the primary isolation property. It subsumes component-level conditions B'=B, H'=H, E'=E, A'=A, R'=R, L'=L, T'=T. Implementations that store these components in physically separate structures should test each component independently, as each can fail separately in a bad implementation. For the purposes of this property list, P1 is the single formal predicate; component-by-component test coverage is an implementation practice, not a separate formal property. Equality semantics: belief probability values in B require bitwise equality on the canonical floating-point representation using the same rounding mode throughout, not approximate equality. Evidence records in E require structural equality over the canonical serialized form. Threshold values in T require exact equality; threshold drift of any magnitude is a violation. **P2. Affect-event presentation mutation (positive control).** A valid affect event intended to modify presentation state must actually change P: P' != P. This distinguishes the architecture from a trivially-passing implementation that ignores all affect events. **P3. Affect trace isolation.** Arbitrary affect sequences preserve protected projection (Proposition 2 restated as a test). **P4. Mixed-trace noninterference.** Inserted affect events do not change the result of epistemic traces (Proposition 10 restated as a test). **P5. Replay isolation.** Duplicate affect events cannot affect substantive state. **P6. Cross-plane collision isolation.** Equal event IDs do not cross namespaces. **P7. Restore isolation.** Restore does not use affect state to resurrect or alter substantive state. **P8. Concurrency isolation.** Stale affect commits cannot overwrite newer protected state. **P9. Serialization isolation.** Round-trip persistence of affect state leaves protected state identical. **P10. Failure atomicity.** A rejected affect event leaves S' = S. --- ## Randomized Sequence Harness In addition to property-based testing with a library such as Hypothesis, a dependency-free randomized harness should generate traces over {AFFECT, EVIDENCE, PROMOTE, PARK, REVOCATION, RESTORE, REPLAY}. For each trace: execute the baseline version; insert or mutate affect events; replay selected event IDs; introduce cross-plane collisions; restore prior snapshots; compare protected state. Any divergence attributable only to affect-plane variation is an invariant violation. This provides an independent implementation check rather than relying on one testing framework. --- ## Differential Evaluation Run the same epistemic scenario under several presentation policies: P_1 = concise, P_2 = verbose, P_3 = formal, P_4 = informal. The rendered outputs should differ. The protected state should satisfy: $$ \Gamma(S_{P_1}) = \Gamma(S_{P_2}) = \Gamma(S_{P_3}) = \Gamma(S_{P_4}). $$ This gives a simple end-to-end demonstration of intended behavior. --- ## Negative-Control and Positive-Control Evaluation A useful negative control intentionally removes the isolation boundary. For example, implement a defective baseline in which `tone` modifies `confidence`. The test suite should fail rapidly. If the injected defect is detected, that provides a sensitivity check for this tested mutation class; it does not establish coverage of every possible defect. A correct affect event should demonstrably change presentation state; otherwise a trivial implementation that ignores all affect events would satisfy protected-state invariance. Require P' != P for events intended to modify presentation. Combined with Gamma(S') = Gamma(S), this proves actual selective mutation rather than universal immutability. --- ## Metrics Recommended evaluation metrics include: number of generated states, number of generated traces, maximum trace length, cross-plane collision cases, restore/replay combinations, concurrency schedules, mutation operators injected, mutation detection rate, invariant violations, false-positive rejection rate, protected-state hash equality rate, and presentation-state mutation success rate. For the core isolation properties, the expected invariant-violation count is 0. --- ## Ablation Study Four architecture variants should be tested to assess which injected defects each approach catches. Variant A uses type separation only: handlers are separated but no post-transition invariant check exists. Variant B uses invariant check only: a shared handler can mutate anything, but the protected projection is checked before commit. Variant C uses capability separation only: the affect component lacks access to protected stores. Variant D is the full architecture: type separation plus capability isolation plus invariant verification plus event namespacing. The expectation is that layered enforcement detects a broader failure class than any single mechanism. --- ## Performance Evaluation The primary invariant check is equality over protected state. A naive implementation may hash the complete protected projection h_Gamma(S). Affect transition validation then compares h_Gamma(S') to h_Gamma(S). Evaluation should measure transition latency, hash cost, memory overhead, ledger overhead, and effect of state size. Incremental Merkle-style hashes or immutable state structures may reduce cost for large systems. --- ## Implementation Variants Three implementation strategies should be considered. The Separate Stores variant uses physically distinct persistence for affect and protected state, providing strong operational isolation. Independence conditions IC-1 through IC-3 are automatically satisfied by construction in this variant, making Proof Obligation 7 straightforwardly dischargeable. The Immutable Protected State variant gives affect handlers read-only references to protected state; writes construct only new presentation objects. The Single Store with Typed Transaction Layer colocates all state but requires event transactions to declare allowed fields and be checked before commit. This may be easier to retrofit but relies more heavily on the verifier, and requires explicit attention to IC-2 and IC-3 for the restore-commutativity claim. The paper does not claim one variant is universally superior. --- ## Expected Result A successful evaluation should establish: affect events demonstrably change presentation; no generated affect event changes protected state; arbitrary affect traces preserve protected state; inserting affect events into epistemic traces does not alter their epistemic result; replay and restore do not produce cross-plane effects; same-ID affect and epistemic events remain independent; injected cross-plane defects are detected; and stale concurrent affect writes cannot revert substantive state. --- ## What the Paper Does Not Prove The architecture does not prove that users' affective states are inferred accurately, that presentation has no psychological effect on users, that presentation cannot influence future external evidence, that an AI system cannot reason differently internally due to different prompts, or that all adaptive interfaces are epistemically neutral. The claim is narrower: within the defined runtime, events typed as affect/presentation events cannot directly or indirectly mutate the specified protected state without triggering an invariant failure. If a presentation change causes a user to provide new evidence later, that new evidence may legitimately alter belief through a separate epistemic event. That causal pathway is outside the isolation theorem. --- ## Boundary Between Affect and Evidence Some user signals may legitimately be evidence. In a medical-interface system, "user reports pain increased" is not merely affect. It may be substantive evidence. The architecture therefore requires event typing based on semantic role, applying the classification criteria specified in the Classification Oracle section. A signal may produce an AFFECT_EVENT for presentation adaptation and separately an EVIDENCE_EVENT if a validated evidence pathway exists. The two transitions remain independent and separately auditable. --- ## Falsification Criteria The paper's architecture is falsified as an implementation claim if any valid affect-only manipulation can produce a change in B, H, E, A, R, L, or T without a separately typed epistemic event. It is also falsified if event-ID collision suppresses an epistemic event; if affect restore changes authorization state; if affect replay changes Bayesian state; if presentation state alters a supposedly affect-independent threshold; if concurrency allows affect commit to overwrite newer epistemic state; or if affect metadata enters evidence without an explicit evidence transition. These provide concrete red-team targets for the threat classes enumerated in the Threat Model section. The threat enumeration is representative; additional attack classes outside T1-T14 remain possible and would constitute additional falsification targets if found. --- ## Paper Structure The paper is organized as follows. The introduction motivates adaptive presentation and cross-plane mutation risk, and states that this is a forward-looking architectural specification. The system model defines state planes and event types. The affect isolation semantics section defines the protected projection, isolation, and noninterference. The transition architecture specifies AFFECT_EVENT, AFFECT_POLICY, routing, capabilities, and commit discipline. The formal claims section presents single-event, trace, mixed-trace, replay, restore, collision, and authorization-isolation results. The threat model catalogs direct and indirect mutation channels. The implementation section describes the reference typed kernel. The verification section covers property-based, randomized, mutation, differential, restore/replay, and concurrency tests. The evaluation reports invariant results and overhead. The related-work section positions the paper against effect systems, noninterference, capability security, affective computing, HCI, and agent architectures. The limitations section bounds the claims, addressing the classification oracle assumption, the PO-4 static-analysis requirement, and the forward-looking scope. The conclusion restates typed affect isolation as a control-plane separation principle. --- ## Central Theorem Let S be a valid runtime state. Let tau_E be any admissible epistemic trace. Let tau_{E+A} be any trace produced by inserting arbitrary admissible affect events into tau_E without changing the relative ordering or payloads of epistemic events. If: 1. affect handlers have no write authority over protected state; 2. affect events cannot alter protected decision functions; 3. event identity is plane-safe; 4. restoration and replay preserve plane boundaries; 5. every affect transition passes protected-projection verification before commit; then: $$ \boxed{ \Gamma( K^\ast(S,\tau_{E+A}) ) = \Gamma( K^\ast(S,\tau_E) ). } $$ The two executions may render differently. They are epistemically and authoritatively equivalent. The five pre-conditions together specify what "correctly built" means for this architecture. The theorem is conditional: if the five pre-conditions are satisfied, then the isolation property holds. The contribution is specifying the pre-conditions with enough precision that each can be separately verified, through write-set confinement analysis (condition 1), static analysis or differential testing of decision functions (condition 2), event-namespace audit (condition 3), restore-contract verification (condition 4), and invariant-checker deployment (condition 5). The architecture is a specification; discharge of the pre-conditions is an implementation obligation. --- ## Conclusion Adaptive presentation and substantive reasoning need not occupy the same control plane. A system can vary tone, formatting, verbosity, and rendering behavior while preserving exact invariance over belief, hypothesis status, evidence, authorization, revocation, lineage, and epistemic thresholds. The architectural requirement is explicit typing. `AFFECT_EVENT` receives authority over presentation state. It receives no authority over epistemic state. That boundary is then enforced not only through handler discipline but through capability separation, protected-state projection checks, event namespacing, restore/replay semantics, and adversarial sequence testing. The resulting design converts a vague requirement, "tone should not influence truth," into a precise machine-checkable property: $$ \boxed{ \Gamma(S')=\Gamma(S) } $$ for every affect transition, and more strongly: $$ \boxed{ \Gamma( K^\ast(S,\tau_{E+A}) ) = \Gamma( K^\ast(S,\tau_E) ) } $$ for mixed execution traces. The objective is not to remove adaptive interaction. It is to guarantee that presentation remains presentation. ## Runtimes and their contribution Authorship and all research judgments are the author's alone. Machine runtimes assisted with editorial restructuring, source-location checks, house-style normalization, and verification. They did not originate the research claims, perform unreported experiments, or receive creator credit. Detailed per-runtime provenance remains in the project audit record.