Compare commits

..

36 commits

Author SHA1 Message Date
github-actions[bot]
104bc1909c Auto-format code with fourmolu 2026-10-23 15:35:00 +00:00
Anthony Alaribe
a49a8328ef Consolidate agent workflows and derive structural boilerplate 2026-10-23 17:11:51 +02:00
Anthony Alaribe
2bed031eb4 Bound worker protocol records and support Podman guest builds 2026-10-23 09:46:51 +02:00
Anthony Alaribe
1d3a61a1fc Format with CI's fourmolu 2026-10-22 22:23:49 +02:00
Anthony Alaribe
80addfd556 Compile AgentWorkspace without OverloadedLists in doctests too 2026-10-22 22:11:41 +02:00
Anthony Alaribe
dcb5ad464b Merge remote-tracking branch 'origin/master' into work/impact-worker-floor
# Conflicts:
#	docs/plans/2026-10-22-project-wiki-followups.md
#	monoscope.cabal
#	src/Pages/CodeContext.hs
2026-10-22 21:23:29 +02:00
Anthony Alaribe
4fa7925cb5 Make impact-review specs and doctests pass in the Linux CI image
- Checkout drains a large instruction blob and waits for git before its
  process bracket closes; leaving early raced typed-process's waiter and
  failed with ECHILD in the CI container.
- The media spec pins an absolute app origin instead of inheriting the
  developer's .env, and goes pending when FFmpeg/Graphviz are absent.
- Package-qualify base64 and cryptonite imports that the doctest session
  sees from several packages.
2026-10-22 21:20:47 +02:00
Anthony Alaribe
fb0dc0e897 Declare filepath and http-api-data for the integration test suite
The spec imports them; test-dev saw them through the library dependency
list, so only the CI-built suite failed.
2026-10-22 20:57:49 +02:00
Anthony Alaribe
7a60c47613 Merge origin/master into the host-owned agent VM work
Master merged the shared PNG renderer and the project wiki separately
(#688-#690). Their newer versions win; the impact-review repository tabs
(issue fixes, usage) are kept on top of master's wiki, and the agents' wiki
tools adapt to path-aware writes. Migrations 0229-0247 keep their names:
production applied them on 2026-10-20/21.
2026-10-22 19:35:28 +02:00
Anthony Alaribe
3e9ff8c64d Format with CI's fourmolu 0.19 2026-10-22 19:20:10 +02:00
Anthony Alaribe
eb8365f6d7 Fold the production child into pi-host.mjs and type the submission envelope
pi-host.mjs replaces cli.mjs: it runs the Pi session, meters it and forwards
Pi's tools to the host. Its runPi core (metering, skills, policy tool
contracts, submission, session lifecycle, bash full-output handling) is
shared with review.mjs, which now only boots the research runners' own VM
and supplies VM-backed tools. The admission/peer submission envelope is a
derived Envelope sum instead of an untyped JSON value.
2026-10-22 19:16:59 +02:00
Anthony Alaribe
d567fd5125 Nest fix progress instead of repeating it per stage; trim worker plumbing
A fix's state is optional progress holding an optional proposal holding an
optional verification, so later stages can no longer exist without earlier
ones and the projection helpers disappear. Production stops passing skills
as child arguments, guest reads stop at the 8 MiB limit in the guest, agent
logs are no longer fsynced before being read back and deleted, and the
worker's edit/write tools follow the policy's builtins.
2026-10-22 19:08:15 +02:00
Anthony Alaribe
661bc9e00a Type the host's guest replies and surface refused receipts
A refused phase or receipt now ends the run with the host's own reason
instead of a generic failure; withCheckout reports only preparation
failures and rethrows its action's exceptions. Shell results are a derived
record, built-in tool names an enum, verified fixes carry their retained
test digest directly, and guest command output keeps the bridge's LogExit.
Guest reads reuse the common output path; receipts share one journal-and-
acknowledge step.
2026-10-22 18:55:43 +02:00
Anthony Alaribe
4cb1624fad Record the host-owned agent VM status in the impact-review plan 2026-10-22 18:45:24 +02:00
Anthony Alaribe
4e847663dc Review ReviewBench calibration against a host Calibration policy
reviewbench.mjs took its review criteria, grounding text and run_regression
description from local copies of production prompts. A Calibration role in
Policy now supplies them, with a submit_findings contract in ReviewBench's
format, through the Haskell-prepared checkout metadata both modes already
read. The calibration spec asserts both modes receive that policy text.

review.mjs also stops re-checking a host-owned checkout's identity.
2026-10-22 18:45:09 +02:00
Anthony Alaribe
c3032447c9 Require a host-owned VM in the worker and delete the child fix path
Every production role now runs in a Haskell-owned VM, so cli.mjs drops its
guest image, cache, workspace and pinned-image handling, and fix.mjs and the
Propose message are gone.
2026-10-22 18:05:41 +02:00
Anthony Alaribe
7c5a761b80 Run the issue-fix agent's VM and workflow in Haskell
Reproduction, candidate capture, verification and submission are host tool
handlers over a typed Repair stage. Haskell locks the workspace, records
RestartReproduction before the agent sees its checkout, admits and replays
the frozen test, unlocks editing, and composes the verified FixResult from
the agent's summary. Pi's edit/write calls become guest operations; the
policy now names the built-in tools each role receives.

Only reproduction, which asks the host to admit a test, spends the request
budget; Observe and ProposeCandidate phases are host consequences of the
verifier's own budget. A rejected phase still ends the run.

reproduce_issue's oneOf branches are now complete object schemas: the
openapi3 validator checks only the matching branch and rejects keys absent
from a schema's properties, so the host never accepted the tool before.
2026-10-22 17:55:45 +02:00
Anthony Alaribe
db343ac052 Resume host-owned agent VMs from leased prepared checkpoints
Every host-owned role now leases its pinned checkpoint in-process, resumes
the agent VM from the private copy, fetches only the pinned revision, and
replays regressions against the same baseline. A configured dependency
archive without a prepared hit fails before model work. The npm spec now
proves the agent VM resumed by reading installed dependencies in the guest,
replacing a child stderr event.
2026-10-22 16:42:27 +02:00
Anthony Alaribe
a3eff17b81 Run the advisory reviewer's VM and regressions in Haskell
Advisory reviews without a prepared workspace now run in a host-owned VM.
run_regression is a host tool handler that calls the native verifier
in-process, acknowledges its journaled check receipts and copies the logs
into the agent VM; it spends the verifier's own budget, not the request
budget. Gondolin mounts are root-only, so skills are copied into a guest-owned
/skills like the checkout. An interrupted run journals its allocation
without acknowledging it, as the child did. Tool errors now reach the model
unquoted.
2026-10-22 16:32:07 +02:00
Anthony Alaribe
b40579ae8a Select the test hypervisor through the fixture bridge, not a host field
test/fixtures/native-sandbox.sh already picks libkrun on macOS, so the
backend override on Host and withSandbox was redundant.
2026-10-22 16:11:41 +02:00
Anthony Alaribe
8307bf2ed6 Hoist workspace verification, lookup and lease to top-level functions
The effect arms now decode their request files and delegate, so the host
can lease checkpoints and replay regressions in-process. No behaviour change.
2026-10-22 16:07:56 +02:00
Anthony Alaribe
58c26b8ebc Run the independent fix reviewer's VM in Haskell
Haskell places the verified candidate's recorded evidence read-only in its
own VM and supplies the submission envelope, so peer evidence no longer
crosses the child protocol and the child-owned peer branch is gone.
2026-10-22 16:01:08 +02:00
Anthony Alaribe
383e276a35 Delete the child-owned admission workflow
Admission always runs in a host-owned VM now, so admit.mjs and its
validation hook are unreachable.
2026-10-22 15:49:53 +02:00
Anthony Alaribe
e5b810720e Run the admission agent's VM in Haskell
Haskell now creates the admission VM through the SDK bridge, prepares the
locked workspace and admitted patch, and serves Pi's bash/read calls as
Guest operations, so the child no longer needs a guest image for this role.
The allocation receipt is measured by the host and journaled before
acknowledgement. Other roles keep their child-owned VM until migrated.

The bridge gains a discard-on-overflow log mode so a chatty agent command
no longer closes the session; verifier logs still close at their limit,
including from callers that omit the mode. withSandbox takes explicit
Gondolin overrides, and JSONL records are bounded per message rather than
by cumulative stdin.
2026-10-22 15:48:41 +02:00
Anthony Alaribe
1dfbda9ebf Report early agent exit as a protocol failure, not a checkout failure
The receive loop runs inside withCheckout, so an EOF from a dead child was
swallowed there and reported as an unprepared repository.
2026-10-22 14:59:56 +02:00
Anthony Alaribe
ae2e3951dd Frame worker JSONL on LF only and name missing submit contracts
readline also splits on U+2028/U+2029, which aeson emits raw, so a
telemetry or wiki reply containing either code point broke the record and
aborted the run. The SDK evaluation spec now sends both in a query reply.
A submit tool absent from the host policy now fails with its name instead
of a property read on undefined.
2026-10-22 14:55:29 +02:00
Anthony Alaribe
6516e3a5d4 Sequence wiki paths and tree navigation before rich-text editing 2026-10-22 13:50:14 +02:00
Anthony Alaribe
36e155e436 Prepare peer-review evidence in Haskell and reuse the SDK runner 2026-10-22 13:50:14 +02:00
Anthony Alaribe
7bbd411bff Move agent prompts, tool contracts and candidate capture into Haskell 2026-10-22 13:10:10 +02:00
Anthony Alaribe
d3031af9fb Use typed wiki pages and shared repository navigation 2026-10-22 11:37:06 +02:00
Anthony Alaribe
a817343f82 Make wiki views exhaustive and disclose bounded history 2026-10-22 11:23:44 +02:00
Anthony Alaribe
9817685c8e Record merged PNG work and independent wiki pull request 2026-10-22 11:16:16 +02:00
Anthony Alaribe
67e6a6db65 Close wiki type bounds and verify browser edits in CI 2026-10-22 11:15:27 +02:00
Anthony Alaribe
08225699a3 Validate project wiki independently of impact agents 2026-10-22 09:57:29 +02:00
Anthony Alaribe
52a010216f Add signed widget PNG regression and apply review fixes 2026-10-22 09:41:11 +02:00
Anthony Alaribe
3514dcd349 Checkpoint Haskell impact agents, project memory and sandbox reuse 2026-10-22 09:19:53 +02:00
730 changed files with 72116 additions and 88674 deletions

4
.gitignore vendored

Can't render this file because it contains an unexpected character in line 1 and column 39.

File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show more