code wiki / _hdl_build / nx_receipt.nx
nx_receipt.nx
buildroot/runtime/_hdl_build/nx_receipt.nx
about
nx_receipt.nx -- the SOVEREIGN op ACCEPTANCE/RECEIPT ledger. The operator's "military acceptance + receipt":
every sovereign op (deploy, transport, recover, publish, supervise...) appends a durable, tamper-evident
RECEIPT of what was done + the verdict, so ANY teammate/workstream can validate orchestration is healthy --
the deploy/op "returns and reports a receipt back to the workstream," confirmable by all, not assumed.
Schema (TAB, 6 fields): ts <TAB> actor <TAB> op <TAB> target <TAB> verdict <TAB> detail
verdict in {ISSUED, ACCEPTED, COMPLETED, REJECTED, FAILED}. NO secrets ever (no passphrase/mnemonic/token).
Atomic + concurrent-safe via the proven fa_appendz floor (many op-organs append at once, zero torn rows).
Sovereign: composes fa_appendz (store) + slk_* (read/scan). license_tier: ORIGINAL
dependencies 2 imports · 4 importers
imports: nx_framed_append.nxnx_site_lock_lib.nx
imported by: nx_aw_hostctl.nxnx_aw_send.nxnx_receipt_gate.nxnx_receipts.nx
structs
| none |
consts
| 12 | const RCPT_MAGIC_1024: i64 = 1024 |
| 14 | const RCPT_LEDGER: *u8 = "knowledge/receipts/orchestration.tsv" // workstation-side ledger ALL teammates read |
functions
| 17 | func rcpt_emit_to(ledger: *u8, ts: i64, actor: *u8, op: *u8, target: *u8, verdict: *u8, detail: *u8) -> i64 |
| 31 | func rcpt_emit(actor: *u8, op: *u8, target: *u8, verdict: *u8, detail: *u8) -> i64 |
| 35 | func rcpt_read(path: *u8, out: *u8, cap: i64) -> i64 |
| 51 | func rcpt_count(buf: *u8, n: i64) -> i64 |
| 62 | func rcpt_count_verdict(buf: *u8, n: i64, verdict: *u8, vlen: i64) -> i64 |