KbcStagedPatchInfo class

Read-only view of a KBC patch staged on disk — what SankofaDeploy.getStagedKbcPatchInfo returns. Lets dashboards / support / debug screens surface which patch a device is on without re-running the interpreter.

Constructors

KbcStagedPatchInfo({required String path, required int sizeBytes, required DateTime modifiedAt, required String? label, required String? engineCommit, required String? dartVersion, required String? targetBinaryVersion, required bool signed, bool parseError = false})
const

Properties

dartVersion String?
Dart SDK version the patch was built against (e.g. 3.11.5). Must match the engine's Platform.version minor for apply to succeed; ζ.1 enforces this.
final
engineCommit String?
Producer-set Sankofa engine fork commit. Useful for rolling "which engine revision shipped this patch?" up to dashboards.
final
hashCode int
The hash code for this object.
no setterinherited
label String?
Producer-set patch label from envelope metadata (e.g. tier-b-v2-signed-1). Null when metadata is missing or the envelope failed to parse.
final
modifiedAt DateTime
When the envelope file was last written (= when the most recent fetch + persist happened).
final
parseError bool
True when the envelope on disk failed to parse — the fields above are best-effort placeholders. Indicates the patch is unusable; the host should delete it and fall back to baseline.
final
path String
Absolute on-device path of the staged envelope.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
signed bool
True iff the envelope carries an Ed25519 signature in the trailer. (Whether that signature would VERIFY against the host's known pubkeys is a separate question — call applyKbcPatchFromBytes or tryApplyStagedKbcPatch to actually run the check.)
final
sizeBytes int
envelope file size in bytes (sha-256 NOT recomputed — that's a full applyKbcEnvelope call's job).
final
targetBinaryVersion String?
Host app binary version the patch is bound to (e.g. 1.0.0).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited