code wiki / _hdl_build / nx_crew_scribe.nx
nx_crew_scribe.nx
buildroot/runtime/_hdl_build/nx_crew_scribe.nx
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
imports: nx_syscalls.nx
imported by: nx_crew_scribe_test.nxnx_overnight_conductor.nxnx_scribe_query.nx
structs
| none |
consts
| 13 | const ORG_MAGIC_1024: i64 = 1024 |
| 16 | const ORG_ENGINEER: i64 = 1 |
| 17 | const ORG_DOCTOR: i64 = 2 |
| 18 | const ORG_BUILDER: i64 = 3 |
| 19 | const ORG_CONDUCTOR: i64 = 4 |
| 20 | const ORG_COUNCIL: i64 = 5 |
| 21 | const ORG_SCRIBE: i64 = 6 |
| 23 | const K_DETECT: i64 = 1 |
| 24 | const K_HEAL: i64 = 2 |
| 25 | const K_BUILD: i64 = 3 |
| 26 | const K_VERIFY: i64 = 4 |
| 27 | const K_ADMIT: i64 = 5 |
| 28 | const K_ESCALATE: i64 = 6 |
| 30 | const V_OK: i64 = 1 |
| 31 | const V_BAD: i64 = 2 |
| 32 | const V_HEALED: i64 = 3 |
| 33 | const V_UNFIXABLE:i64 = 4 |
| 34 | const V_NEEDBUILD:i64 = 5 |
functions
| 36 | func sc_org(o: i64) -> *u8 called by 1: scribe |
| 44 | func sc_kind(k: i64) -> *u8 called by 1: scribe |
| 52 | func sc_verdict(v: i64) -> *u8 called by 1: scribe |
| 60 | func 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 |
| 61 | func 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 } |
| 62 | func sc_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } called by 1: scribe |
| 66 | func scribe(seq: *i64, from: i64, to: i64, kind: i64, verdict: i64, subject: *u8, detail: *u8) -> i64 |