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.
admission_limitarchitecturebootcheckpointcheckpoint_candidate_limitcpudeterminismdeviceeffectsentropygeometryinstance_limitinstruction_admissionkindmissing_rootroot_semanticsschedulingschema_majorschema_minortimetransport
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
Audit
| Definitions | 1 |
|---|---|
| Public names | 3 |
| Members | 21 |
| Version | 26.7.0 |
| Revision | daab053ee433 |