Framework
WALEntry
Interface: WALEntry
Complete WAL entry structure.
Stored at: _flashcore:wal:entry:{id} Optional segments at: _flashcore:wal:seg:{id}:{n}
Properties
| Property | Type | Description |
|---|---|---|
auth | WalAuthoritativeDelta[] | Authoritative deltas (applied first). These are the "source of truth" changes. |
derived | WalDerivedDelta[] | Derived deltas (applied after authoritative). Best-effort; can be skipped in favor of rebuild. |
id | string | Unique entry ID (generated). |
model | string | Model name. |
namespace? | string | Model namespace (optional). |
op | WalOp | Operation type. |
phase | WalPhase | Current phase of the operation. |
segmented? | WalSegmentInfo | Optional segmentation info for large entries. If present, deltas are stored across segment keys. |
timestamp | number | Timestamp when entry was created (Date.now()). |
undo | WalAuthoritativeDelta[] | Inverse deltas (only for rollback paths). Used to undo the operation if recovery decides to roll back. |
