code wiki / _hdl_build / nx_crew_scribe.nx

nx_crew_scribe.nx

buildroot/runtime/_hdl_build/nx_crew_scribe.nx

3895 B81 linesdepth 2pulls 2 transitivereach 4 importersview sourcekind librarytopic crew
docsdependenciesstructsconstsfunctions

about

nx_crew_scribe.nx -- how the areas COMMUNICATE + a team member DOCUMENTS it. Every handoff between organs is a structured DELIVERABLE with a fixed, unambiguous schema (clear symbols, like 1+1=2 -- each field has one meaning), and the SCRIBE (the Archivist organ) writes each one to a PARSEABLE log so the team can parse its own history to improve clarity + efficiency. The deliverable schema (one line, key=value, machine-parseable): CREWMSG seq=<n> from=<organ> to=<organ> kind=<kind> verdict=<verdict> subject=<sym> detail=<text> from/to identify the AREAS; kind = what is being handed over; verdict = the clear result; subject = the thing it is about; detail = human context. Areas only TALK via this protocol. license_tier: ORIGINAL

dependencies 1 imports · 3 importers

nx_syscalls.nx nx_crew_scribe.nx nx_crew_scribe_test.nx nx_overnight_conductor.nx nx_scribe_query.nx

imports: nx_syscalls.nx

imported by: nx_crew_scribe_test.nxnx_overnight_conductor.nxnx_scribe_query.nx

structs

none

consts

13const ORG_MAGIC_1024: i64 = 1024
16const ORG_ENGINEER: i64 = 1
17const ORG_DOCTOR: i64 = 2
18const ORG_BUILDER: i64 = 3
19const ORG_CONDUCTOR: i64 = 4
20const ORG_COUNCIL: i64 = 5
21const ORG_SCRIBE: i64 = 6
23const K_DETECT: i64 = 1
24const K_HEAL: i64 = 2
25const K_BUILD: i64 = 3
26const K_VERIFY: i64 = 4
27const K_ADMIT: i64 = 5
28const K_ESCALATE: i64 = 6
30const V_OK: i64 = 1
31const V_BAD: i64 = 2
32const V_HEALED: i64 = 3
33const V_UNFIXABLE:i64 = 4
34const V_NEEDBUILD:i64 = 5

functions

36func sc_org(o: i64) -> *u8
called by 1: scribe
44func sc_kind(k: i64) -> *u8
called by 1: scribe
52func sc_verdict(v: i64) -> *u8
called by 1: scribe
60func sc_app(buf: *u8, s: *u8) -> i64 { var oi: i64 = 0; while buf[oi] != (0 as u8) { oi = oi + 1 } var j: i64 = 0; while s[j] != (0 as u8) { buf[oi] = s[j]; oi = oi + 1; j = j + 1 } buf[oi] = 0 as u8; return 0 }
called by 1: scribe
61func sc_appn(buf: *u8, v: i64) -> i64 { var oi: i64 = 0; while buf[oi] != (0 as u8) { oi = oi + 1 } let t: *u8 = sys_mmap(28); var m: i64=v; var k: i64=0; if m==0 {t[0]=48;k=1} while m>0 {t[k]=48+(m%10); m=m/10; k=k+1} var z: i64=0; while z<k {buf[oi]=t[k-1-z]; oi=oi+1; z=z+1} buf[oi]=0 as u8; return 0 }
called by 1: scribe calls 1: sys_mmap
62func sc_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 1: scribe
66func scribe(seq: *i64, from: i64, to: i64, kind: i64, verdict: i64, subject: *u8, detail: *u8) -> i64