code wiki / ts
topic: ts
18 modules sharing the ts name family (derived from the tree's prefix discipline).
The 'ts' topic family in the Nishi sovereign ecosystem focuses on handling time-sensitive data and media processing within the MPEG-TS format. Modules like _ts_diag provide diagnostic insights into scoring mechanisms, while nx_ts enables precise time conversions between Unix epoch and ISO-8601 standards. nx_ts_drain_gate ensures processes continue serving after termination, supporting robust resource management in distributed systems.
auto-narrated by the local model from this topic's module headers; links verified against the wiki index.
narrated overview -- maintained by the narration lane, module links verified against this wiki.
| module | description | lines | funcs |
|---|---|---|---|
| _ts_diag.nx | prints the KAT4 score comparison values (3-layer score). | 26 | 3 |
| nx_ts.nx | Unix epoch <-> calendar / ISO-8601 conversion. | 210 | 6 |
| nx_ts_drain_gate.nx | TS2: THE PROCESS MUST KEEP SERVING AFTER TERM. | 395 | 13 |
| nx_ts_drain_lib.nx | TS2: COOPERATIVE DRAIN ON TERM, with a DERIVED deadline. | 199 | 6 |
| nx_ts_dur.nx | MPEG-TS total duration via FIRST + LAST PCR (no full-file scan; reads only an | 102 | 5 |
| nx_ts_es.nx | MPEG-TS -> H.264 elementary-stream helpers, LIFTED VERBATIM from | 100 | 3 |
| nx_ts_handoff_gate.nx | TS1: KEEP THE SOCKET, REPLACE THE PROCESS. | 413 | 14 |
| nx_ts_index.nx | SOVEREIGN media index ("NXVI", our own format) for an MPEG-TS recording. | 252 | 8 |
| nx_ts_lumadiff.nx | VISUAL dead-air measurement. | 231 | 7 |
| nx_ts_marks.nx | sovereign CLIP-ANALYSIS markers for a media asset (the first "clip analysis" payload | 374 | 13 |
| nx_ts_marks_gate.nx | unit gate for the dead-air (silence) clip-analysis logic. Tests the pure | 146 | 3 |
| nx_ts_nal.nx | codec-aware NAL classification for MPEG-TS elementary streams. | 140 | 9 |
| nx_ts_nal_gate.nx | proof for the HEVC indexing hole (2026-07-31). | 177 | 2 |
| nx_ts_partial_gate.nx | proves PARTIAL-BITFIELD seeding: ts_load_have reads download.done (sibling of the | 32 | 3 |
| nx_ts_probe.nx | Rung 1 of the sovereign MPEG-TS -> fMP4 remuxer. Parses an MPEG-TS file (188-byte | 187 | 5 |
| nx_ts_slot_lib.nx | TS3: THE SLOT-FLIP DECISION CORE (importable, no main). | 215 | 10 |
| nx_ts_slot_router.nx | TS3: THE FRONT DOOR ITSELF (the thin daemon around nx_ts_slot_lib). | 74 | 1 |
| nx_ts_slot_router_gate.nx | TS3: A FLIP THE CLIENT CANNOT SEE, AND A COLD SLOT IT REFUSES. | 419 | 11 |