nx_asset_page_lib.nx
buildroot/runtime/nx_asset_page_lib.nx
about
nx_asset_page_lib.nx -- the asset page's decisions a gate can drive in-process (2026-09-17). First resident: does this
manifest show a live GLB viewer canvas at all? The emitter wrote the viewer script tag on EVERY page, so an image-only
page (a judged photograph, a media-judge report) carried a reference to a script it never uses, and nx_page_verify
reads that reference BROKEN while the viewer file is absent (debt 1787785512, superseded by 1787786411: the GLB half of
that debt stays open, this lib only stops image-only pages from referencing a script they never needed). The predicate
reads the FORMAT column of tasset and tasset2 rows, never a substring: a label that says "glb" is not a canvas.
Consumers: nx_asset_page (the emitter), nx_asset_page_gate (planted manifests).
license_tier: ORIGINAL No hw writes (Rule 26).
dependencies 1 imports · 2 importers
imports: nx_syscalls.nx
imported by: nx_asset_page.nxnx_asset_page_gate.nx
structs
| none |
consts
| 11 | const APL_TAB: i64 = 9 |
| 12 | const APL_NL: i64 = 10 |
| 13 | const APL_CR: i64 = 13 |
| 14 | const APL_COL_TYPE: i64 = 0 |
| 15 | const APL_COL_FORMAT: i64 = 2 // tasset \t <tier> \t <format> \t <href> \t <label>: the format is the third column |
| 16 | const APL_SPAN_SLOTS: i64 = 2 |
| 17 | const APL_I64: i64 = 8 |
functions
| 20 | func apl_is(buf: *u8, a: i64, b: i64, lit: *u8) -> i64 called by 1: apl_has_glb |
| 32 | func apl_col(buf: *u8, ls: i64, le: i64, k: i64, span: *i64) -> i64 |
| 55 | func apl_has_glb(m: *u8, mn: i64) -> i64 |