Jump to content

Principia Machina/Progress/Phase 3: Difference between revisions

From The Invariance Itself
PMA Progress (talk | contribs)
Progress pages rendered from the Principia Machina source
PMA Progress (talk | contribs)
Progress pages rendered from the Principia Machina source
Line 23: Line 23:
* 2026-11-02: a coworking agent no longer writes the staging page directly; the gatekeeper is its only writer. Lean proves that a Coworker's write or append on a staging page is refused whatever the gatekeeper knows of the page.
* 2026-11-02: a coworking agent no longer writes the staging page directly; the gatekeeper is its only writer. Lean proves that a Coworker's write or append on a staging page is refused whatever the gatekeeper knows of the page.
* 2026-10-31: the Calculator runs a successor's re-audit in one call: it reads which checks the changed zones and parameters require, re-checks every inherited record that still stands or is held, holds a record whose re-check fails (nothing is struck) and opens a gap record for it, re-promotes what may be re-promoted, and writes the record of that promotion. A refusal of any step refuses the whole call. It is proved that the status a failed re-check sets is the one the status table gives on a hold, and that a hold never strikes. The re-audit job that calls it follows.
* 2026-10-31: the Calculator runs a successor's re-audit in one call: it reads which checks the changed zones and parameters require, re-checks every inherited record that still stands or is held, holds a record whose re-check fails (nothing is struck) and opens a gap record for it, re-promotes what may be re-promoted, and writes the record of that promotion. A refusal of any step refuses the whole call. It is proved that the status a failed re-check sets is the one the status table gives on a hold, and that a hold never strikes. The re-audit job that calls it follows.
* 2026-11-03: the gatekeeper answers an admission refusal with exactly the wait the Calculator's governor states.


== Open ==
== Open ==

Revision as of 18:57, 3 November 2026

Principia Machina: map
Reading the program
The move to Lean
The prototype
Status
Nightly runs
Terminology: the words of both versions
Builder Contract: for outside builders
Development
The parts and how they fit
Work units: for outside builders
Acceptance: the checks and the ladder
Lean itself
Lean theorem prover
Principia Machina in Lean
Version 1
The Principia Machina
its specification

Phase 3: Custos

Goal: the wiki's thin gatekeeper, Custos, built against a rehearsal wiki running the host's software: its page classes, its API module, its jobs run outside the web request, its call into the Calculator with the binary's digest checked, the governor's meter, the derivation class written at landing and the kernel checker, and version 1's landing scenarios replayed with the Calculator as the only calculator.

Done

  • 2026-10-20: the wiki's gatekeeper now calls the Calculator through the wiki's own command framework and checks the binary's digest before every call; a binary that differs is refused and never started. Tested on a rehearsal copy of the wiki's software; the job that makes the call on the wiki follows.
  • 2026-10-21: the rehearsal wiki: made when a release needs one, on a fresh server, by the same provisioning script that built the wiki's server, running the same software. The standing rehearsal copy used before the move is retired.
  • 2026-10-21: the wiki's gatekeeper now also checks where the Calculator's binary resides before it checks the binary's digest: the binary and every folder above it must belong to the system's administrator and be writable by no one else, or the call is refused and the binary never started. Tested on a rehearsal copy of the wiki's software.
  • 2026-10-22: the wiki's gatekeeper now knows the title of every page it writes and reads each title back as its page class; a page in its keeping whose title fits no known form is refused. The machine text on its pages is written and read in one fixed form. Tested without the wiki.
  • 2026-10-24: the wiki's gatekeeper now takes an agent's petition, push and release over the wiki's API: it checks only the request's shape in the web request, writes one ticket with the request as received, queues the job that will do its work, and answers at once with the ticket; the agent then polls the ticket for its state and, once the job has written it, its answer. No calculation runs inside a web request. Tested without the wiki and on a rehearsal wiki over HTTP.
  • 2026-10-25: the step that places a released Calculator at its residence on the wiki's server is written: one command by the Operator, which checks the binary's digest and its residence there and prints the line the release records.
  • 2026-10-24: the wiki's gatekeeper now does a request's work outside the web request: a job takes the request, asks the Calculator whether to admit it now, and then grants the lock, lands the records or frees the lock. Before a single page is written it checks that the research project's founding pages are the ones the badge names, and has the Calculator check every record; one bad record stops the whole batch. The records land with the fields the gatekeeper owns, each with its digest, and the badge is written last. Every outcome, a refusal included, is the answer the agent reads back. A tampered Calculator stops every landing and leaves the pages as they were. Tested without the wiki on the built Calculator and on a rehearsal wiki, where an agent account takes the lock, lands two records, reads them back from the register page and frees the lock.
  • 2026-10-24: the wiki's gatekeeper now writes a landing's pages in one batch, each page saved once and only if no one changed it since it was read, the index and badge page last as the mark that the landing is complete; it writes the lock, a register volume and the index and badge in a fixed block form and reads them back unchanged; and a permission check on the wiki refuses every direct edit of a page it keeps to anyone but the gatekeeper itself, and every read of a restricted page to anyone but the Declarer and the Operator. A new research project's pages can be set up in one step from its draft. Tested without the wiki and on a rehearsal wiki, where a direct edit of a register by an agent account is refused.
  • 2026-10-26: the landing job now writes each result's derivation class into the record before its digest is taken, so the digest covers the class and the check at landing reads it; a result whose derivation the Calculator does not credit lands as checked by inspection, and a record of another kind carries no class.
  • 2026-10-25: the wiki's gatekeeper now spreads the waits it tells agents by the governor's random jitter, and a request whose queued work was lost is queued again when its agent asks after it; no request is ever landed twice. Tested without the wiki on the built Calculator and on a rehearsal wiki, where a request written with no work queued is answered after its agent asks after it, and a second agent refused while the lock is held is told a wait within a tenth of the base.
  • 2026-10-25: the gatekeeper's admission now counts an agent's seats under a lock, so two pieces of work can never both spend the last seat; a wiki installed before the seat table gains it on its next update. Tested without the wiki on the built Calculator, with two pieces of work run as two processes racing for one agent's last seat, and on a rehearsal wiki, where a second wiki installed with the request table alone gains the seat table by its update.
  • 2026-10-29: the rehearsal wiki's setup, run as root, now checks before any download or install that every folder above its scratch folder and its MediaWiki folder can be entered by the user PHP runs as, and when one cannot it stops with one line naming that folder instead of an install failure that names no cause.
  • 2026-10-29: the volunteer channel's rate limit is now proved, not only tested: the share of a window a volunteer call is admitted under never exceeds its cap unless nothing is admitted, the admitted weight is the call's weight times a share between 0 and 1, and a token is taken from a bucket exactly when it holds one, removing exactly one and never leaving the bucket below zero.
  • 2026-10-28: the landing job refuses what version 1's landing refused: a record whose identifier is not the next free one under the UWC's own prefix, a record citing what the register does not hold or does not stand, a record carrying SUPERSEDES while the withdrawal is not built, and, on a CLOSED UWC, an account off its access list, both at the petition and at the push. Each refusal is the Calculator's check; nothing is written on a refusal.
  • 2026-10-31: the landing job runs the strike rule's mechanical tests on every push, through the Calculator: a batch holding two measurements the test finds in contradiction, or citing a record such a pair holds, is refused whole with the reason that the strike is not written at landing yet, and nothing is written. Measurements the test clears land as before.
  • 2026-11-02: a coworking agent no longer writes the staging page directly; the gatekeeper is its only writer. Lean proves that a Coworker's write or append on a staging page is refused whatever the gatekeeper knows of the page.
  • 2026-10-31: the Calculator runs a successor's re-audit in one call: it reads which checks the changed zones and parameters require, re-checks every inherited record that still stands or is held, holds a record whose re-check fails (nothing is struck) and opens a gap record for it, re-promotes what may be re-promoted, and writes the record of that promotion. A refusal of any step refuses the whole call. It is proved that the status a failed re-check sets is the one the status table gives on a hold, and that a hold never strikes. The re-audit job that calls it follows.
  • 2026-11-03: the gatekeeper answers an admission refusal with exactly the wait the Calculator's governor states.

Open

  • Custos: the withdrawal (SUPERSEDES carried out, WITHDRAWAL records, the cascade); until then a record carrying SUPERSEDES is refused.
  • Custos: the bibliography's landed entries; until then a record's LITERATURE member is refused.
  • Custos: the register's volume roll; until then a UWC whose open volume is not the first is refused at the push.
  • Custos: the seed script writes the UWC's access policy and access list from the Initiator's selection.
  • Custos: the strike at landing (the order of the strike rule, the REFUTED status, the withdrawal and its gap, the audit blocks); until then a batch the strike rule would strike is refused at the push.

Next

The built units land in order: the page writer, the landing job, the real residence, the refusal scrub, the jittered waits and the lost-ticket sweep, the atomic seat charge, the permission hook over the permits table, and the governor's meter; then the landing scenarios replayed in three parts, the structure test, and the derivation class at landing with the kernel checker. The nights build about a dozen units each; what moves a row is the landing, and the landing path was repaired three nights running, so the likely date assumes it holds from here.

as of 2026-11-03