Skip to content

The barest agent seat: a standalone VM, c1f language foundations, apps and layers, dead-code removal (#1143) - #1145

Merged
chedim merged 791 commits into
mainfrom
memo-hotfix-0753
Nov 16, 2026
Merged

chedim merged 791 commits into
mainfrom
memo-hotfix-0753

Conversation

@chedim

@chedim chedim commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

Nothing here waits on a decision. One change to act on after merge: the standalone VM's launch line is now cliffvm run membrane/packs/boot.c1f membrane/packs (trust is by position: the first argument is the root of trust). Nothing is deployed, and the Python seat still runs as before.

One PR for the whole line of work (squash-merge). It is large (275 commits, 373 files); the topics are independent enough to read one at a time.

What it adds

  • The language (c1f), in the Rust engine: nulls that carry a reason, Why, casts, None('why'); scoped blocks with locals; unquoted entity literals with [key] and constructors (the assignment target is the identity); a computed-property write <target>.[expr] = value; a step budget (100,000) and a 10 ms self-time allowance per getter/setter evaluation, with trip entities so replay is exact; a type-inference report; class-aware getter ordering in linear time (levels on the shipped packs: 3.3 s to 54 ms); the loader refuses a setter that reads a getter of its own trigger.
  • Apps, layers, ownership, privilege: an app is a folder <name>.c1f/; layers stack (top-layer arms first, same-name setter replaces, first write wins and a shadowed write is skipped); a layer overrides only what it imports (direct imports); privileged packs (exempt from the write rule only) are granted by a write, the first app is the root of trust. Design: docs/c1f-layers.md.
  • A standalone VM (cliffvm, name pinned): a binary behind a bin feature (no Python), a Rust host loop with an outside-writes-only journal and replay, a plain door (no security, binds 127.0.0.1), boot through the plan, Pack entities with hot reload and last-good fallback, an MCP door (/mcp) with three field tools, one chat with a Claude turn through the claude CLI in the no-tools, no-history mode, the barest doctrine, and the barest seat itself: a graph viewer and a chat as plain static JavaScript in membrane/apps/barest.c1f/ui/ (to be ported to c1f view packs later), started by scripts/seat. Docs: docs/cliffvm.md.
  • Door routes moved to c1f packs (voice read/state/log, feedback, decisions, models, static files, login, probes) with specs.
  • Golden fixtures for the semantic entity field (tests/golden/efield/), the target for a later Rust port.
  • Design docs: docs/c1f-layers.md, docs/semtext-and-legs.md, docs/doctrine-barest-draft.md, docs/c1f-stdlib.md.

What it removes

Dead modes and features (round-one and round-two inventories): COPROC, ROCKET_RUNS, massage, graphbanner, the native graph-banner engine, outcomes/wakes, orphan functions, eight membrane opencode ablation flags, eight old-path switches, env tuning knobs. Python in membrane/ is 158 modules and 88,976 lines (was 166 and about 92,800). Left on purpose: experiments/, Blurp, Couchbase, ANSWER/GAP_FILL.

Not done

The Python seat is not migrated (door cutover, the message turn and SSE for the Python seat, loops, the entity store). In the standalone VM: no SSE (the page polls), no Rust semantic field yet, no recall, the UI as c1f view packs (the current page is plain JavaScript), a why_layer tool. See the gaps list in docs/cliffvm.md.

Verification

  • Rust: cargo test --no-fail-fast in native/: 385 passed, 0 failed. Bin feature (--no-default-features --features bin, process tests against the real binary with a FAKE claude script): 23 passed, 0 failed.
  • Python (full suite, library rebuilt from this tree): 5,930 passed, 74 skipped, 1 failed: test_restarts::test_the_hold_is_capped, a known timing flake (a stray thread consumes its mocked clock); it passes alone (3 of 3) and the code it tests is unchanged.
  • The page was checked in headless Chrome against a seat started with a fake claude (desktop and a true 390 px width). The real claude CLI accepts every flag the chat passes (checked with -p and no input, so no model call and no login use).
  • No real claude was run and no seat was deployed; the real CLI flags (--max-turns, inline --mcp-config) are listed as "verify on a real run" in docs/cliffvm.md.
  • CI here (census, docker, publish, validate, wheels) does not run the test suites.

Refs #1143.

…(ownership by id, demand-driven subscriptions, frames, stages) (#1143)
…, imports the person chats in the background newest first in bounded memory, resumable, shown on the page and in Settings; background and absorbed sessions are skipped (#1143)
…TA_DIR told as the fact legacy_path; the dist has no shared ui folder (the page is the barest app's ui/) (#1143)
…ge cookie only for this machine's Host names (#1143)
…t can do (caps, report, Vm/Page), placement notes (#1143)
…uota), scrub the operator name from paths; docs/serve.md folds into auth.md (#1143)
…of one entity; an allow-list carries values, secret-bearing names read only 'set'; the history cutover searches MEMBRANE_DATA_DIR (#1143)
…no users, serve, cutover), doctrine-barest renamed (#1143)
…tored maximum); PASSWD and CREDENTIAL are secret names (#1143)
…ond, so the prompt is read while the turn is in flight (an instant CLI left a one-pump window that slower machines missed) (#1143)
…hares a display name with the model sensor; both stay (#1143)
…file busy" (a Linux race between a copy and a fork in another test thread) (#1143)
…re-release pushes only X.Y.Z (the pulls that follow latest keep their image) (#1143)
…-Assistant fixes) into memo-hotfix-0753 [skip ci]
…ersion bump everywhere, the Home Assistant add-on merged, the pre-release notes taken out of the README and the packaging plan (#1143)
…ves on its branch; the integration runs the seat itself): addon/, repository.yaml, its tests, its CI job and its mentions are taken out (#1143)
…rms, the options flow, the runner in the setup, 0.7.53 inside entries come back on their Ollama (#1143)
…ssistant's stop test reads the process before the cleanup (#1143)
… runs on the entry's model at every start; the smoke run drives the inside path on a real Home Assistant (#1143)
…with entity_write: the seat seeds them only at its first start) (#1143)
…onnect is the second; upgrading from 0.7.53, what is not verified (#1143)
# Conflicts:
#	README.md
#	docs/README.md
#	docs/packaging-plan.md
@chedim
chedim marked this pull request as ready for review November 16, 2026 04:43
@chedim
chedim merged commit a2f1c2a into main Nov 16, 2026
29 of 33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant