SpillStore class final
Writes the full redacted body to .fah/spills/<sessionId>/<n>.txt,
unique per-session counter names (AC7). Returns the relative spill
path, or null when the write failed (AC6 fallback) or no session id is
known yet.
Constructors
- SpillStore({required ExecutionEnv env, required String? sessionId()})
-
Creates a store over
env;sessionIdis resolved lazily per write (the hook attaches before the session exists).
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
write(
String body) → Future< String?> -
Writes
bodyas raw UTF-8 bytes (nothing is re-cut or sanitized on disk — the body arriving here is already redacted, AC4/AC5) and returns the path written. Null on any write failure (the caller falls back inline, AC6). Counter resets when the session changes.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited