nx_pipeline_route.nx
buildroot/runtime/wiki/nx_pipeline_route.nx
about
nx_pipeline_route.nx -- V2.0 P-3: /wiki/pipeline HTTP route.
Renders NxArtifactStore (V2.0 P-2) as a tabular pipeline view. Operator
visits /wiki/pipeline and sees all ~230 substrate artifacts classified
by 5-stage pipeline (UNSTRUCTURED..REPEATABLE) with operator-existing
6-field V5 taxonomy (Quadrant + Topic Type + Status + Trust + Competitive).
COMPOSES:
wiki/nx_artifact_store (V2.0 P-2; data source)
nx_html_escape (safe value emission)
nx_syscalls (sys_mmap)
COMPOSED BY:
wiki/nx_wiki_routes.nx (dispatches /wiki/pipeline + /wiki/pipeline/<stage>)
V2.0 SCOPE:
- GET /wiki/pipeline -> all artifacts; stage histogram + per-stage counts
- GET /wiki/pipeline/<stage-name> -> filter by stage (uppercase stage name)
- V1 page format conformant HTML (wiki chrome + nishi-* meta)
- Bounded by NX_PROUTE_MAX_ROWS_RENDER per page
V3+ SCOPE (TODO):
- Pagination + sort
- Filter combos (stage + kind + trust + competitive)
- JSON API at /wiki/pipeline.json for ops scrapers
- Auto-refresh on file change (V2.5 inotify hook)
Status: V2.0. 2026-05-27.
dependencies 3 imports · 1 importers
imports: nx_syscalls.nxnx_html_escape.nxnx_artifact_store.nx
imported by: nx_wiki_routes.nx
structs
| none |
consts
| 35 | const NX_PROUTE_OK: i64 = 0 |
| 36 | const NX_PROUTE_BAD_INPUT: i64 = 2970 |
| 37 | const NX_PROUTE_RESP_OVERFLOW: i64 = 2971 |
| 38 | const NX_PROUTE_BAD_STAGE_FILTER: i64 = 2972 |
| 41 | const NX_PROUTE_BODY_CAP: i64 = 524288 // 512 KB body |
| 42 | const NX_PROUTE_MAX_ROWS_RENDER: i64 = 500 // hard cap per page |
| 43 | const NX_PROUTE_INT_BUF_CAP: i64 = 32 |
| 46 | const NX_PROUTE_HEAD: *u8 = |
| 48 | const NX_PROUTE_HEAD_N: i64 = 1107 |
| 50 | const NX_PROUTE_FOOT: *u8 = "</main></body></html>" as *u8 |
| 51 | const NX_PROUTE_FOOT_N: i64 = 21 |
functions
| 55 | func nx_proute_int_to_dec(v: i64, out: *u8, cap: i64) -> i64 |
| 78 | func nx_proute_put_raw(out: *u8, cap: i64, off: i64, |
| 87 | func nx_proute_put_z(out: *u8, cap: i64, off: i64, s: *u8) -> i64 |
| 96 | func nx_proute_put_escaped(out: *u8, cap: i64, off: i64, |
| 110 | func nx_proute_parse_stage_filter(suffix: *u8, suffix_n: i64) -> i64 |
| 134 | func nx_proute_render_histogram(out: *u8, cap: i64, off: i64, |
| 160 | func nx_proute_render_table(out: *u8, cap: i64, off: i64, |
| 206 | func nx_proute_render_row(out: *u8, cap: i64, off: i64, |
| 248 | func nx_pipeline_route(s: *NxArtifactStore, |