FUSORD.CPP · THE RESIDENT KERNEL · REV 0 · MIT
The loop, the bus and the laws — as served. One process, one GPU thread, and one running memory that is never rebuilt. It reads the lanes of a working floor and, at every completed thought, asks three seats whether anything deserves to be said. Mostly it decides no, and writes that down.
Nothing on this page is summarized. The core is below in three movements, quoted from the file; under it is every line of the file; under that, the file. This listing is pre-rendered — it runs no JavaScript, fetches nothing, and cannot pretend to be alive.
§ 01 — The core
A resident is not a model with a scheduler around it. Three fragments carry the whole difference: it decides, it can take the decision back mid-word, and it cannot quietly edit what it did. The rest of the file is what those three cost when none of them is faked.
1913 // THE PROBE (verbatim frame, dial 0)1914 const uint64_t t_probe0 = wall_ms();1915 float margins[3];1916 for (int m = 0; m < 3; ++m) margins[m] = probe_one(m);
2013 // holds: silence, on the record, with its margin2014 for (int m = 0; m < 3; ++m) if (margins[m] <= 0.0f) { ++holds; write_verdict(judged_lane, m, "hold", margins[m], "", nullptr); }
1852 // THE WINDOW IN THE BLIND WINDOW. Percepts never wait for a sentence to finish — not even for1853 // the silent remainder after a kill.1854 const llama_pos np_before = npast;1855 const uint64_t frames_before = frames_completed;1856 drain_intake(); // ingests onto TRUNK; judgments are deferred (gen_depth > 0)1857 if (!g_run.load(std::memory_order_acquire)) break;1858 if (aborted) continue; // the world already answered; the rest is record, not decision1859 if (frames_completed != frames_before && npast != np_before) {1860 // A whole frame landed while this seat was mid-sentence (the rest of the line it was1861 // judging, or a newer line). Did the world answer first?1862 // (a) deterministic: the newest line ACCEPTS what this seat is saying → settled.1863 // (b) the seat itself, re-probed on a fresh fork of the UPDATED trunk: margin ≤ 0 → it1864 // would not have spoken now. Either kills the forming line. Only commits kill.1865 const std::string newest = !cur_tail_line.empty() ? cur_tail_line1866 : !tailq.empty() ? tailq.back().first : clause;1867 bool settled = looks_like_acceptance(newest) && content_overlap(newest, say) >= 1;1868 float m2 = margin;1869 if (!settled) m2 = probe_one(m);1870 if (settled || m2 <= 0.0f) {1871 aborted = true;1872 char c[96]; std::snprintf(c, sizeof(c), settled ? "settled_by_world" : "margin_flipped:%+.2f", m2);1873 cause = c;1874 if (surface_on) std::printf(" ⟵ [un-said: %s]", cause.c_str());1875 // no break: the remainder is generated silently (D2), the seam stays open for intake1876 }1877 }
765 std::string put(const std::string& body) {766 if (!f) return prev;767 const std::string h = chain_hash(prev, body);768 std::fprintf(f, "%s,\"prev\":\"%s\",\"h\":\"%s\"}\n", body.c_str(), prev.c_str(), h.c_str());769 std::fflush(f); // durable as it goes, not at exit770 prev = h; ++n;771 return h;772 }
§ 02 — Every line
Every line is addressable: click a number, or link straight to one. The source below is tokenized at build time and served as plain markup — there is no script on this page to read it for you.
§ 03 — The file
The listing above and the download below are the same bytes. The digest was taken at build time from the file this page serves — check it against what lands on your disk.
The substrate this kernel is the core of is FUSOR-1. What it is inert until fitted to, and what fitting means, are the fits.