code wiki / _hdl_build / nx_receipt.nx

nx_receipt.nx

buildroot/runtime/_hdl_build/nx_receipt.nx

3673 B75 linesdepth 3pulls 4 transitivereach 4 importersview sourcekind library
docsdependenciesstructsconstsfunctions

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

nx_framed_append.nx nx_site_lock_lib.nx nx_receipt.nx nx_aw_hostctl.nx nx_aw_send.nx nx_receipt_gate.nx nx_receipts.nx

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

12const RCPT_MAGIC_1024: i64 = 1024
14const RCPT_LEDGER: *u8 = "knowledge/receipts/orchestration.tsv" // workstation-side ledger ALL teammates read

functions

17func rcpt_emit_to(ledger: *u8, ts: i64, actor: *u8, op: *u8, target: *u8, verdict: *u8, detail: *u8) -> i64
31func rcpt_emit(actor: *u8, op: *u8, target: *u8, verdict: *u8, detail: *u8) -> i64
35func rcpt_read(path: *u8, out: *u8, cap: i64) -> i64
called by 1: main calls 1: sys_read
51func rcpt_count(buf: *u8, n: i64) -> i64
called by 2: mainmain calls 2: slk_line_endslk_field
62func rcpt_count_verdict(buf: *u8, n: i64, verdict: *u8, vlen: i64) -> i64