This is the program that stays awake. 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 it asks three seats whether anything deserves to be said. Mostly it decides no, and writes that down.
Nothing is summarized on this page. The core is below in three movements, quoted from the file; under it is every line of the file itself; under that, the file. Read it before you let it in the building.
A resident is not a model with a cron job 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. Everything else in the file is what it costs to do those three honestly.
// THE PROBE (verbatim frame, dial 0)
const uint64_t t_probe0 = wall_ms();
float margins[3];
for (int m = 0; m < 3; ++m) margins[m] = probe_one(m); // holds: silence, on the record, with its margin
for (int m = 0; m < 3; ++m) if (margins[m] <= 0.0f) { ++holds; write_verdict(judged_lane, m, "hold", margins[m], "", nullptr); } // THE WINDOW IN THE BLIND WINDOW. Percepts never wait for a sentence to finish — not even for
// the silent remainder after a kill.
const llama_pos np_before = npast;
const uint64_t frames_before = frames_completed;
drain_intake(); // ingests onto TRUNK; judgments are deferred (gen_depth > 0)
if (!g_run.load(std::memory_order_acquire)) break;
if (aborted) continue; // the world already answered; the rest is record, not decision
if (frames_completed != frames_before && npast != np_before) {
// A whole frame landed while this seat was mid-sentence (the rest of the line it was
// judging, or a newer line). Did the world answer first?
// (a) deterministic: the newest line ACCEPTS what this seat is saying → settled.
// (b) the seat itself, re-probed on a fresh fork of the UPDATED trunk: margin ≤ 0 → it
// would not have spoken now. Either kills the forming line. Only commits kill.
const std::string newest = !cur_tail_line.empty() ? cur_tail_line
: !tailq.empty() ? tailq.back().first : clause;
bool settled = looks_like_acceptance(newest) && content_overlap(newest, say) >= 1;
float m2 = margin;
if (!settled) m2 = probe_one(m);
if (settled || m2 <= 0.0f) {
aborted = true;
char c[96]; std::snprintf(c, sizeof(c), settled ? "settled_by_world" : "margin_flipped:%+.2f", m2);
cause = c;
if (surface_on) std::printf(" ⟵ [un-said: %s]", cause.c_str());
// no break: the remainder is generated silently (D2), the seam stays open for intake
}
} std::string put(const std::string& body) {
if (!f) return prev;
const std::string h = chain_hash(prev, body);
std::fprintf(f, "%s,\"prev\":\"%s\",\"h\":\"%s\"}\n", body.c_str(), prev.c_str(), h.c_str());
std::fflush(f); // durable as it goes, not at exit
prev = h; ++n;
return h;
}Click any line number to link to it. Press / to search, Enter for the next hit, Shift+Enter for the previous.
The file on this page and the file you download are the same bytes — the hash below is computed in your browser from what you just read, so you can check it against what lands on your disk. MIT: read it, run it, fork it, argue with it.
The substrate this kernel belongs to is FUSOR-1. What it is doing on an OPO floor is the residents; the record it watches is REGISTRAR.