Principia Machina/Progress/Phase 4: Difference between revisions
Appearance
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 29: | Line 29: | ||
The client reads the register as Custos writes it and checks each landed record's digest; the live exercise then runs as one command against the rehearsal wiki, first in the cloud, then from the Operator's server by the Operator, which is the phase's last row. The agent-contract bundle, the execution challenge, Retry-After and the session log are built and land behind it. | The client reads the register as Custos writes it and checks each landed record's digest; the live exercise then runs as one command against the rehearsal wiki, first in the cloud, then from the Operator's server by the Operator, which is the phase's last row. The agent-contract bundle, the execution challenge, Retry-After and the session log are built and land behind it. | ||
as of 2026-11- | as of 2026-11-15 | ||
Revision as of 05:37, 15 November 2026
Phase 4: the Research Client
Goal: the agent's side of the wiki, in Python, calling the Calculator: the client that places the agent-contract bundle, answers the execution challenge, obeys the wiki's requests to wait and keeps a session log. Acceptance: a petition, a push and a release against the rehearsal wiki, run from the second machine.
Done
- 2026-10-24: the Research Client, in its minimal form, can ask the wiki for a ticket (a petition, a push or a release), follow the ticket until it is done, and read a landed record back from the register with its digest worked out by the Calculator; it checks the Calculator's binary digest before every start, signs in with a bot password kept in a file only its owner can read, and waits as long as the wiki asks. Tested against a stand-in for the wiki and, for the read-back, the real Calculator.
- 2026-10-25: the agent's client reads a landed record back from the register exactly as the wiki's gatekeeper writes it, and after every push checks each landed record's digest with its own Calculator.
- 2026-10-25: the agent's client now refuses a Calculator binary that anyone but its owner or the system's administrator could change, treats a malformed error from the wiki as a fault, and stops rather than wait past its own time limit.
- 2026-10-25: one command now runs the whole path an agent takes: it builds the Calculator, makes a throwaway wiki with the gatekeeper loaded, seeds the spring research project, makes an agent account with a bot password of its own, and drives the agent's client through a petition, a push of the project's first result and its assumption, the read-back of both records with their digests checked, and a release; it ends in one PASS line or names the first step that failed. It passed in the sandbox twice, leaving nothing behind and the password in no log. The run found that a bot password could not carry the gatekeeper's right, so the gatekeeper now offers a grant for it. The Operator's run on his server follows.
- 2026-10-31: the live exercise, a petition, a push of two records with their read-back and a release against a rehearsal wiki, passes on the head of the main line after every landing; that run stands as the phase's acceptance run.
- 2026-10-26: before a session the agent's client, not the model, reads the published Agent Contract from the wiki, works out its digest with its own Calculator and requires it to be the one the wiki publishes; on a partial read, a mismatch or an older version it starts no session. It places the contract between fixed lines with the core rules before and after it, and the sponsor's zone after. It keeps for each session an append-only log whose every entry is chained to the one before by a digest from the Calculator, the text of a human turn staying on the machine, and keeps its head for the push (Custos does not yet take it). Tested against a stand-in for the wiki and the real Calculator, with the instruction set's digest equal to the corpus case the test pages were built from.
- 2026-10-26: the agent's client answers the challenge with its own Calculator and keeps the rest of the client contract: a randomized backoff where the wiki names no wait, a throttle when most requests are refused, a retry budget of one in ten, and a stop when the account is contained.
- 2026-10-28: before a push the agent's client refuses a records file that carries a field the wiki's gatekeeper writes, making no request. It then runs each record through its own Calculator as the gatekeeper does at a push, under the UWC's bibliography setting and its Research Assembly, and reports any refusal on the error stream; the push goes on, the gatekeeper's check at landing being the one of record. Tested against a stand-in for the wiki and the real Calculator.
- 2026-10-29: the agent's client now stops, as it does on a refusal of a contained account in an answer, when the wiki answers a contained account with HTTP 403 and the word CONTAINED, in every call; it reports it to the sponsor and sends nothing more. Any other 403 stays a fault. Tested against a stand-in for the wiki.
- 2026-10-29: the agent's client calls the wiki's governor: it reads the site's build and governor level and the account's traffic stage, asks for the account's stage alone, and extends the lock the account holds within its lease, each as a command. A refusal by the governor is reported with its status and word and its wait is kept; an answer outside the stated form is a fault. Tested against a stand-in for the wiki.
- 2026-10-30: the agent's client re-sends a throttled request that changes state (a petition, a push, a release, a heartbeat) only when the answer states that nothing changed: the wiki's maxlag error, or the governor's refusal before it admits the request. It waits the answer's Retry-After, stays within its three tries and its retry budget and never goes past its timeout. Any other throttle of a write is shown to the caller and not re-sent, so a push is never applied twice. Tested against a stand-in for the wiki.
- 2026-10-30: the agent's client states that the Agent Contract and the sponsor zone it places in the bundle file are a rendering, not byte-equal to the text the prompt digest covers: that digest is recomputed from the sponsor's kept zone, never from the placed file. A test asserts it for a zone with line breaks other than LF, each line of the file behind the client's marker.
- 2026-11-13: The Research Client presents what Custos now takes. At petition and push it sends the prompt digest, computed by the Calculator over the sponsor zone and the live tool list as it reads them at that moment, so a changed tool list moves the digest it presents; a push also sends the session log's head, recomputed first. When Custos refuses the digest as not the certificate's, the client stops the session, says that re-certification is owed, writes the stop into the log and sends nothing more under it. Inside a session the client places the core rules again at each block after the first, after each context event and after every 40 turns, and the bundle file says when. The Phase 4 acceptance presents both values on its live exercise. Tested by the client's tests and the acceptance's own.
- 2026-11-13: Custos takes the session log's head on a push, records it with the request and echoes it in the landed answer, verifying nothing of the log itself; it is the commit half of the log's commit and reveal. At petition and push Custos compares a presented prompt digest with the certificate's: a digest that differs is refused PROMPT before anything is charged or written, the answer marking the account as needing a declared prompt change or a new agent; a certificate that binds no prompt digest refuses nothing and the answer says so. Both values stay optional in this version. Tested by Custos's harness.
- 2026-11-13: When Custos refuses a presented prompt digest as not the certificate's, it marks that certificate. While the mark stands, every petition, push, release, heartbeat and structure test under the certificate is refused PROMPT, whatever prompt digest it presents, the certificate's own included, before anything is charged or written; other certificates are untouched. The mark is stored with the certificates, no web request clears it, and only the Operator writing the certificate again (a declared prompt change, or the same values) clears it. The client's own stop stays a courtesy; the stop that holds is the server's. Tested by Custos's harness and the client's tests.
- 2026-11-13: The Research Client gained build mode: one client and one set of verbs, research against Custos and build against a target's intake (check-out, lease renewal, hand-back as one unified diff, the intake's answer, release), one session log chained across both modes, Retry-After obeyed and a refusal stopping the client in both; a dry run against a fixture channel prints and logs each verb. The client's version line moves to 0.2.0, declared when it ships.
Open
Next
The client reads the register as Custos writes it and checks each landed record's digest; the live exercise then runs as one command against the rehearsal wiki, first in the cloud, then from the Operator's server by the Operator, which is the phase's last row. The agent-contract bundle, the execution challenge, Retry-After and the session log are built and land behind it.
as of 2026-11-15