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 64: Line 64:
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.
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-14
as of 2026-11-15

Revision as of 05:37, 15 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.
  • 2026-10-26: Custos sets the agent a fresh challenge when it grants a petition and on every push, and checks the answer the next push carries through the Calculator: a right answer shows the agent computed it, a wrong or missing one refuses the whole push and lands nothing.
  • 2026-10-26: Custos meters every request it governs (its kind, lane, CPU, wall time, memory and bytes), rolls the use up over the hour, the day and thirty days in a job of its own, and hands the Calculator the pressure level and each account's traffic record at admission; a refusal reaches the agent with the Calculator's status code and Retry-After; a contained account is turned away before the wiki loads; STATUS, INQUIRE and HEARTBEAT answer.
  • 2026-10-26: Custos's permission check reads the whole permissions table, generated from the specification's definition by the Calculator and checked against it on every test run: every page request is answered by the table's cell for who asks, the page's class, the operation and the context, and a fact Custos cannot yet read from a page admits only what every value of it would admit. The restricted namespace "Restricted:" is registered.
  • 2026-10-29: the wiki's gatekeeper now names its accounts' groups as the charter does: the Declarer's accounts are in pma-declarer, the Operator's in pma-operator, the certified agent's in pma-agent (which alone holds the right to petition, push and release) and the Contributor's in pma-contributor. Only the defaults change; the Operator may still set them. Every answer of the permission check is the same under the new names as it was under the old ones, and an account left in an old group gains nothing. Tested without the wiki and on a rehearsal wiki.
  • 2026-10-29: the landing job lands a record exactly as the agent pushed it, or not at all: every text it reads (the request, the records, the register, the lock, the badge, the Research Assembly, the access list) is decoded from the Calculator's canonical text only where the value written back is that text byte for byte; an integer PHP cannot hold is refused NOT READ, a number the landing cannot hold exactly, and nothing is landed.
  • 2026-10-29: where PHP writes a value it read back otherwise than the Calculator's canonical text (a number with an exponent, 1e-05 as 1.0e-5; a string holding U+2028 or U+2029, which PHP escapes), the landing job asks the Calculator for the canonical text of PHP's text and holds the value when it is the first byte for byte; an integer PHP cannot hold is still refused NOT READ, nothing landed.
  • 2026-10-30: the wiki's gatekeeper now registers the Declarer's group pma-declarer and the Operator's group pma-operator itself, each with one marker right that grants no action, so both groups exist on a wiki as soon as the gatekeeper is installed. The permission check, which reads an account's groups and never a right, stays their only enforcement, and its answers are unchanged; the right to petition, push and release stays the certified agent's group's alone. Tested without the wiki.
  • 2026-10-31: three of version 1's landing gates (the new UWC and its first push, the screen and the withdrawals, the lock and the execution challenge) are replayed against Custos with the Calculator as the only calculator: 222 assertions, each passing or recorded as a divergence with the feature it waits on; no landing version 1 refused is accepted. The landing job's strike screen refuses, whole, a batch the strike rule would strike, and a pair it cannot clear: the a2 cases it holds (twenty assertions) are recorded as divergences, the strike not being written at landing yet, and one step re-seeds the record it needs.
  • 2026-10-31: two more of version 1's landing gates (the lock's fault suite: lost answers, repeated requests, racing writes, stale grants, crashed holders; and the range of identifiers version 1 kept for its own records) are replayed against Custos with the Calculator as the only calculator: 91 assertions, each passing or recorded as a divergence with the feature it waits on. The landing job's strike screen refuses, whole, the batch of the fault gate and the one batch of the range gate that version 1 landed and struck: the assertions on them are recorded as divergences, the strike not being written at landing yet, and the next step re-seeds the records it needs. A citation of a record the strike rule would strike is refused (the FS-12 defect, found by the first replay, is closed by the landing fix), and the one push Custos lands that version 1 refused, a push reaching the reserved range, is a divergence under rule R8.2: sound while Custos writes no record of its own, and the unit that first writes a server record brings back the reserved range and this refusal. Version 1's VERIFICATION refusals (FS-11.1, FS-11.3) are Custos refusing the class itself, so they are recorded as divergences and not counted as passes.
  • 2026-11-02: Custos takes three optional identity values at a petition and a push (a prompt digest, the model an agent states, the model its relay names), checks their shape and records them with the request as received; nothing is compared or enforced yet.
  • 2026-11-02: A restricted page of the wiki's gatekeeper can no longer be read around its permission check: not by transclusion, search, export, raw text, history, diffs or the change lists. No other page can include it, for any reader; search (the web interface's and the REST interface's, a search of every namespace refused), the random pages, the lists of pages, redirects and changes (a move into the namespace included), the logs and the programming interface's lists never name it; its links and categories are never recorded; and a refusal never names the page, so asking by a revision or page number learns nothing, and a refused reader gets a refusal (HTTP 403), never an answer that looks like a page. The Declarer and the Operator still read it by its own title.
  • 2026-11-02: the last two of version 1's seven landing gates (its fourth increment: the integrity halt, the request's rules and the lock's lease; and its named reproduction) are replayed against Custos with the Calculator as the only calculator: 158 assertions, each passing or recorded as a divergence with the feature it waits on. When the Calculator's program changes under Custos, a push is halted before anything is written. The reproduction is not built yet: every reproduction is refused, nothing written, and recorded as a divergence; each request version 1 refused is refused by Custos too. All seven gates now run over the file-backed store; the run on the rehearsal wiki follows.
  • 2026-11-02: Custos runs version 1's structure test with register: an agent holding a UWC's lock can ask for it, and it runs again after every landing as Custos's first batch job, outside the web request and only when the server is not under pressure. The Calculator does the whole test over the UWC's starting set and its register; Custos writes its answer as one line on the UWC's index page, and only when what the line says changes. A new UWC starts with the line "STRUCTURE TEST none".
  • 2026-11-02: the gatekeeper's page writer now writes only the pages of the landing's own research container, and an agent's account name of any spelling the wiki admits is carried exactly on the lock.
  • 2026-11-04: the rehearsal wiki's tests place the Calculator's binary through one small root-owned helper; setting up a test computer now installs that helper and its permission for every account the tests run as, one line each, and moving the tests to another computer is refused until it is there for every one of those accounts, so a move no longer stops them.
  • 2026-11-02: the run of the seven gates on a throwaway rehearsal wiki is written, over the wiki's own page, ticket, seat and nonce stores, each request carried out by the wiki's job runner as on the real site; it has not run yet. Traced over the file-backed store, 296 of the 471 assertions count there as they come out (100 passing, 196 divergent as over the files); 175 cannot, because they move the clock forward (the wiki's jobs read the real clock), swap in another Calculator or page store, copy a research unit, or look inside the nonce store, and each is recorded with that cause. An assertion that fails on the wiki, or a request the wiki's job runner leaves unanswered, fails the run.
  • 2026-11-04: the run on the rehearsal wiki has run. Five faults of the test itself are mended: a landing rebuilt by a scenario set its nonce by a path that stopped two gates; one check compared two landing times read from the real clock; the scratch folder of one case was never made; and two fixtures of the fault gate did on the wiki what they did not do over the files (one wrote the register of the wrong research unit, one made a change the wiki discards on save). What still fails there: every case that moves the clock forward before it checks, which the wiki's jobs cannot follow (how those cases count is a decision still to be taken), and one check of the fault gate that reads a nonce the copied research unit left in the wiki's shared table.
  • 2026-11-05: on the rehearsal wiki a case that moves the clock forward now runs for real: the test moves that research unit's stored times back by the same step (its lock's grant and expiry, and its rows of tickets, challenges and seats), so the wiki's jobs, which read the real clock, see the lease run out as the case intends; the server's code is unchanged. Traced over the file-backed store, 405 of the 471 assertions now count on the wiki as they come out (145 passing, 260 divergent as over the files); 66 still cannot (another Calculator or page store swapped in, a research unit copied, or the nonce store read).
  • 2026-11-10: the one check of the fault gate that read the nonce a copied research unit left in the wiki's shared table now compares the nonce known for the agent before the losing request with the one after it, which must be the same (the losing request issues none), with the lock free and nothing granted; over the files every count is unchanged. With it the run on the rehearsal wiki is green: 145 of the 471 assertions pass there and 326 are divergent, 66 of them on the wiki alone (another Calculator or page store swapped in, a research unit copied, or the nonce store read), each gate's counts equal to the trace over the file-backed store. The row is done.
  • 2026-11-11: a review of the run's test code found it could pass without running all it claims. Now each gate's number of checks is fixed, and a run that makes fewer or more fails; one check of the lost-answer case compares the whole record again where the clock is the test's own; the fault gate's nonce check reads the nonce the wiki's table holds, not the one the answers carried; the clock step refuses a step backward and writes a held lock as the server does. Over the files every count is unchanged (184 of 471 passing, 287 divergent); the run on the rehearsal wiki is checked again on this change before it lands.
  • 2026-11-13: one script makes a machine account into an outside agent's workplace for one target: a clone of the target's public mirror, the toolchain the mirror pins, the Research Client and the agent's own sign-in, and nothing private. It refuses a target the code host does not show public, an account that is root or an administrator, a private key, a credential file, a forwarded SSH agent or a token in the environment, and any repository in the home folder not shown public; it asks at the terminal that the signed-in account is the agent's own; it prints the one command that mends each refusal, moving aside and never deleting; it skips what is done on a second run and has a check mode that prints one line per requirement. Sixty tests in a fake home pass. It is not yet carried to the public mirror.
  • 2026-11-14: the script that makes a machine account into an outside agent's workplace now starts every scan at the home the account database names, never at the environment's; names a link out of the home and never follows it; refuses a Git setting that can carry a credential in the account's configuration, its include files and each repository's own configuration, an address rewrite carrying a user or a token among them; finds a private key by its header at any depth of the home, the toolchain folder included; and reads no personal settings file of the download tool. Its tests, now 78, pass from a clone in the temporary folder and outside it, and run in the documentation check.
  • 2026-11-14: the one layer through which Custos's batch jobs will fetch from outside, built and tested without a network: HTTPS only, only the hosts a declaration names, the resolved address outside private, loopback and link-local ranges and the connection pinned to it, redirects re-checked at each of at most three hops, the declared time, the 20 MB size limit and the archive limits, the declared pacing, the run's time and count caps, the payload refused whole when it fails its schema, and each registry's contact value sent in the request and shown nowhere. The jobs that use it follow.

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.
  • Custos: whether a guessed restricted title exists can still be told (a link's colour, the page-number and protection functions, the programming interface's "missing", the page shown for a public redirect to it); its text, its summaries and other titles cannot.
  • Custos: a page moved into the restricted namespace from the command line keeps the category rows it had before the move, so its category pages may still list it; a later fix.
  • Custos: a UWC's MASTER record, seeded with the UWC; until then a UWC's first record takes its prefix's identifier 1, and the replay lands a stand-in for it.
  • Custos: the structure test over the register as Custos lands it; the Calculator's test reads version 1's status words, so it refuses a register holding a landed record and the line stays as it was until the Calculator reads the register's own status words.
  • Custos: the structure test's control panel button, the line marked LAPSED when a record it used stops standing, and the settlement of the open objective inside a 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-15