Skip to documentation
SLOP

tiny.machine.Contract

Reference tiny.machine Contract

Defined in profile.types.

Holds the rules for executing a guest that every backend of one canonical kind obeys, so a caller can compare contracts to know whether two runs obeyed the same rules.

API (21)

Fields and members

Public fields and members.

No direct callersNo direct callsprofile.typesContract
Static calls · unresolved targets: unknown · external targets: unknown.

Source

Source: lib/machine/src/profile/types.zig:115

zig
/// Holds the rules for executing a guest that every backend of one canonical kind/// obeys, so a caller can compare contracts to know whether two runs obeyed the/// same rules. Enum fields name versioned semantics: the CPU model, the admitted/// instructions, direct K0 boot, root handling, the device dialect, scheduling,/// time, entropy, the checkpoint format, and effect handling. Structured and numeric/// fields fix the geometry, the transport sizes, the determinism identity, and the/// capacity limits. The determinism identity is embedded here, so a change to the/// inventory changes every contract.pub const Contract = struct {    schema_major: u16,    schema_minor: u16,    kind: ProfileKind,    architecture: Architecture,    cpu: CpuContract,    instruction_admission: InstructionAdmission,    boot: BootDialect,    root_semantics: RootSemantics,    missing_root: MissingRoot,    device: DeviceDialect,    scheduling: Scheduling,    time: TimeSemantics,    entropy: EntropySemantics,    geometry: Geometry,    transport: Transport,    checkpoint: CheckpointFormat,    effects: EffectSemantics,    determinism: determinism.Identity,    instance_limit: u16,    checkpoint_candidate_limit: u16,    admission_limit: u32,};

Source: lib/machine/src/root.zig:82

zig
pub const Contract = profile.Contract;

Also reachable as

profile.Contract.

Audit

Definitions1
Public names3
Members21
Version26.7.0
Revisiondaab053ee433