Expand description
Fail-closed core for final HashSigs U280 hardware-evidence promotion.
This crate owns canonical request/result models, exact integer performance
arithmetic, complete coordination-history replay checks, private promotion
state, and atomic no-overwrite publication. It deliberately does not
parse or accept the current Vitis route evidence: the checked-in raw format
profile is adaptation-required. AcceptedRouteEvidence now models the
exact policy output required from a future descriptor-retaining parser, but
its private descriptor guard remains uninhabited, no public or production
constructor is reachable, and the public result document remains
failure-only. The legacy schema-1 request can never produce a success
document.
RTL simulation, generated Verilog, out-of-context synthesis, a routed
xclbin, XRT exit status, and synthetic fixtures are not hardware evidence.
No API in this source slice can set a hardware-completion claim.
Structs§
- Accepted
Route Evidence - One opaque accepted 250 MHz route-policy proof.
- Atomic
Publication - Private hidden-sibling candidate that has not yet been published.
- Coordination
Chain - Verified global replay index for one complete genesis-rooted snapshot.
- Durable
Promotion Burn - Proof that one promotion identity was appended and fsynced before result publication. The retained nonblocking lock is held until this value drops.
- Performance
Assessment - Exact accepted p95 arithmetic. No floating-point or rounded rate is part of the decision.
- Preacceptance
Journal Record - One canonical preacceptance private-state journal record.
- Promotion
Error - One promotion failure with a stable code and contextual explanation.
- Promotion
Failure - Sealed nonterminal failure record. Its five terminal fields are always false and cannot be set by the caller.
- Promotion
Journal State - Reconstructed append position and global replay sets for private state.
- Promotion
Request - Opaque validated legacy schema-1 promotion request.
- Promotion
Transaction Identity - Opaque run/intent/burn identity shared by the request-derived document, durable state burn, and atomic publication transaction.
- Publication
Receipt - Receipt for one successful
RENAME_NOREPLACEpublication. - Verified
Coordination Burn - Opaque selected burn proven to be the exact last record and receipt for the requested run. It has no serde implementation or public constructor.
- Verified
Coordination Grant - One grant binding proven by a complete canonical coordination history.
Enums§
- Failure
Code - Machine-readable reason that a promotion transaction did not complete.
- Promotion
Document - The only document shape accepted by atomic publication in this source slice.
Constants§
- BASELINE_
CLOCK_ HZ - Clock used to normalize the baseline throughput claim.
- MAXIMUM_
CAPTURE_ CYCLES_ PER_ RESULT - Maximum p95 capture/core cycles per result.
- MAXIMUM_
DSPS - Absolute DSP ceiling for the U280 acceptance flow.
- MAXIMUM_
LUTS - Default LUT ceiling.
- MAXIMUM_
REGISTERS - Default register ceiling.
- MINIMUM_
MEASURED_ SAMPLES - Minimum number of measured performance samples.
- MINIMUM_
SIGNATURES_ PER_ SECOND - Minimum accepted sustained signatures per second.
- PERFORMANCE_
BATCH - Required performance batch size.
- PERFORMANCE_
PROFILE - Required HashSigs profile for this hardware-promotion path.
Functions§
- require_
accepted_ route - Fails closed until an immutable format probe has produced an exact parser contract and a later clean commit installs that parser.
- verify_
complete_ burn_ history - Verifies a complete, bounded, canonical JSONL history from sequence zero.
- verify_
promotion_ journal - Reparses a bounded legacy-plus-preacceptance private journal from genesis.
Type Aliases§
- Promotion
Result - Result type used throughout the promoter core.