nx_twincard.nx
buildroot/runtime/nx_twincard.nx
about
nx_twincard.nx -- CLI over nx_twincard_lib (aesthetictwin AT23, 2026-09-16): the twin card the operator asked for, "more
comprehensive than the illusion cards" -- and unlike those, every value carries its side, unit, method and source, and the card
prints how much of itself is still eyeball and how many of its rulers exist.
nx_twincard axes -> the sections the schema declares (face from the canon) with their value counts, and the
RULER CENSUS: every ruler row judged by the estate's one symbol ruler (present/absent/unjudged)
nx_twincard check <slug> -> validate knowledge/twincard/<slug>.card: every refusal named; coverage per section;
method partition (measured + observed + declared + generated = valid); completed L/R pairs
nx_twincard new <slug> <display> <class> <sex> <licence> -> write a header-only card (refuses to clobber an existing card)
exit: 0 ok | 2 usage | 3 schema or canon unreadable | 4 no such card | 6 card refused (defects named) | 7 card exists
license_tier: ORIGINAL No hw writes (Rule 26).
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_twincard_lib.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 14 | const TCC_EXIT_USAGE: i64 = 2 |
| 15 | const TCC_EXIT_SCHEMA: i64 = 3 |
| 16 | const TCC_EXIT_NOCARD: i64 = 4 |
| 17 | const TCC_EXIT_REFUSED: i64 = 6 |
| 18 | const TCC_EXIT_EXISTS: i64 = 7 |
| 19 | const TCC_ARGC_NEW: i64 = 7 |
| 20 | const TCC_A_SLUG: i64 = 2 |
| 21 | const TCC_A_DISPLAY: i64 = 3 |
| 22 | const TCC_A_CLASS: i64 = 4 |
| 23 | const TCC_A_SEX: i64 = 5 |
| 24 | const TCC_A_LIC: i64 = 6 |
| 25 | const TCC_CENSUS_N: i64 = 4 |
functions
| 27 | func tcc_usage() -> i64 called by 1: main |
| 32 | func tcc_coverage(schema: *u8, sn: i64, canon: *u8, kn: i64, card: *u8, cn: i64, tot: *i64) -> i64 called by 2: tcc_checkmain calls 6: sys_mmaptc_sectionstc_list_attc_declared_counttc_filled_counttc_permil |
| 55 | func tcc_rulers(schema: *u8, sn: i64) -> i64 |
| 66 | func tcc_ruler_coverage(schema: *u8, sn: i64, canon: *u8, kn: i64) -> i64 |
| 76 | func tcc_check(schema: *u8, sn: i64, canon: *u8, kn: i64, slug: *u8) -> i64 |
| 132 | func tcc_new(argv: *i64) -> i64 |
| 173 | func main(argc: i64, argv: *i64) -> i64 |