code wiki / _hdl_build / nx_seat_hub.nx

nx_seat_hub.nx

buildroot/runtime/_hdl_build/nx_seat_hub.nx

4554 B104 linesdepth 4pulls 5 transitivereach 0 importersview sourcekind tooltopic seat
docsdependenciesstructsconstsfunctions

about

nx_seat_hub.nx -- S2b HUB-FRAME WRAPPER (agent-seat system, 2026-07-20). Fronts the LIVE hub's `nx_seat checkin/checkout` over sovereign MCP tools/call so a non-Claude seat's claim + kickoff/done frames land on the SAME board a Claude seat uses. Fits nx_seat_drive's hub-verb convention: <elf> <hubconf> <ws> <actor> hubconf = KEY=VALUE lines: mcpelf= url= capfile= verb=checkin|checkout ttl= note= outfile= (ttl required for checkin only; everything is config DATA -- rule 11/17.) FAIL-CLOSED BY BODY-PARSE (banked law: transport can lose RESPONSES and exit codes lie through relays -- only the hub's own printed markers count, probed LIVE 2026-07-20): checkin success marker = "claim=HELD" (contended prints claim=CONTENDED -> refuse) checkout success marker = "done=1" Missing marker, empty body, or transport failure -> exit 3 (the driver's refused-claim class). license_tier: ORIGINAL No hw writes (Rule 26).

dependencies 3 imports · 0 importers

nx_seat_drive_lib.nx nx_deploy_lib.nx nx_syscalls.nx nx_seat_hub.nx

imports: nx_seat_drive_lib.nxnx_deploy_lib.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sd_w sys_write sys_exit sys_mmap dp_read sys_openat_rd sys_read sys_close sd_val sys_mmap ↻ sd_cat dep_run_capture sys_fork sys_openat_wr sys_dup3 sys_mmap ↻ sys_execve_clean sys_close ↻ sys_execve sys_exit ↻ sys_wait4 sd_count

structs

none

consts

18const SH_CONF_CAP: i64 = 65536
19const SH_BODY_CAP: i64 = 262144
20const SH_FRAG_CAP: i64 = 4096

functions

22func main(argc: i64, argv: *i64) -> i64