Implementation and qualification are tracked separately. The durable application lifecycle, memory services, policy host, evaluation and migration, captured views, and episode dispatcher have reference/native implementations. The shared application and CLI parity drivers gate their common behavior. The completion review records the design-to-evidence map, adversarial repairs, and remaining research limitations; the adaptive inventory application exercises a second domain. Live coding/memory qualification resumes only after deterministic gates, under the user's $20 incremental paid-inference cap. No model-quality benefit is inferred from deterministic fixtures or the earlier cancelled pilot.
ALGAL: programmable organisms
Build program, 2026-09-20. This expands the coding-harness memory spike into a reusable application architecture. The harness remains the first demanding user of that architecture and a continuing evaluation surface.
Product thesis
An ALGAL application should maintain a persistent, inspectable account of what exists, what it has observed, what it currently believes, what it can do, and why its selected behavior applies. Its procedures, schemas, queries, views, goals, experiments, and history should be addressable data. It should acquire experience, revise its conclusions, propose changes to itself, evaluate those changes, and activate compatible revisions while preserving identity and effect history.
The intended outcome is accumulated executable competence outside a frozen model. Models supply interpretation and proposals; deterministic programs handle routine execution, dependency checks, storage, propagation, admission, and accounting.
The shared representation preserves distinct types. An observation differs from a hypothesis, a derivation differs from an execution receipt, and a declaration of required authority cannot grant that authority.
Existing foundation
The current repository already contains canonical content-addressed values, typed organism graphs, bounded expression programs, admitted tool effects, native positive Datalog queries and witnesses, foundry evaluation/search, named durable processes, checkpoints, conservative journals, mailboxes, durable host events, and passive evidence workbenches. These mechanisms are the substrate.
The application lifecycle joins these objects through one expected-head commit. Process definitions stay immutable; activation selects a new revision for future work. Foundry ranking alone is insufficient: the application host replays bound evaluation evidence and rejects failed or regressing candidates. The existing first-witness query proof is not a complete truth-maintenance graph.
Architectural shape
application identity
|
one atomic state head
|
+-----------------+-----------------+
| | |
program revision memory revision durable intents
| | |
procedures/schema/views sources/claims investigations
| scopes/proofs episode bindings
+-----------------+-----------------+
|
existing process/effect VM
|
host-admitted capabilitiesSeparate the application program revision from memory updates. One application state captures both references atomically, so a view or newly admitted episode cannot combine unrelated latest versions.
An application revision names procedure bindings, their executable manifests, query/rule and schema versions, view definitions, its parent, and the evaluation policy. Accepted evaluation/compatibility evidence belongs to the activation transition, avoiding a content-addressing cycle. An application state names that revision, the current memory snapshot, predecessor state, and committed transition intents. Stable names identify applications and concepts; digests identify immutable versions. Large object bodies live in the existing store.
The first record family is closed and bounded: observations, hypotheses, procedures, queries, derivations, schemas, views, goals, investigation requests, candidate revisions, evaluations, activation transitions, and episode bindings. Do not introduce unrestricted executable host text as a record type.
Parallel implementation tracks
| Track | Responsibility | First join criterion |
|---|---|---|
| Shared contracts and parity | Exact typed objects, identities, references, bounds, compatibility and authority rules | Closed parsers, golden examples, malformed-reference/type rejection; reference/native parity before a new kernel contract graduates |
| Memory and dependencies | Source admission, scoped projections, corrections, alternative support, pure queries, explicit uncertainty | Correction invalidates current applicability without erasing history; full recomputation remains the reference |
| Application lifecycle | Durable head, expected-parent commits, revision activation, writer fencing, process bindings | Crash-safe publication; stale activation rejected; old episodes retain original definitions |
| Investigation and execution | Unknown/stale premises become durable bounded work intents; explicit probes create observations | Commit-to-wakeup crash recovery has no lost or duplicate logical work; uncertain effects remain uncertain |
| Adaptation and evaluation | Propose, compare with incumbent, verify, reject regressions, retain alternatives, activate | All-failing winner cannot activate; evaluation binds parent state, cases, capabilities, and exact candidate |
| Views and reflection | Pure declarative views of procedures, applicability, proofs, history, proposed actions, running work | A visible explanation and the action's applicability resolve the same captured application state |
| Harness and experiments | Coding application integration, semantic tests, live calibration, longitudinal comparisons, cost accounting | Reproducible scenarios and honest benefit/regression measurements; no hidden labels enter memory |
Run independent owners concurrently against a root-owned contract. Use all available worker slots and launch the next bounded work as slots free. The current task supports three simultaneous workers plus the integrator, so the seven tracks run in overlapping waves rather than spawning beyond that limit. Each writer owns explicit files. Shared exports, CLI wiring, schemas, and final validation have one integration owner. Parallel implementation is separate from any later runtime parallelism inside ALGAL applications.
First integrated milestone
Build a development-workspace organism with this real, inspectable sequence:
The demonstration uses deterministic cases and recorded adapters first. Real model proposal and coding evaluation follow on the same interfaces, using the existing backend and the standing $20 incremental paid-inference cap.
Non-negotiable operational rules
Subsequent milestones
algal.application-comparison.v1 joins several reproduced evaluations for one entrypoint under an explicit environment label on the evaluation request, keeps losing or incomplete alternatives as evidence, and allows selection only from accepted verdicts. Both runtimes produce and verify the record identically, and the default host fences cited comparisons to the committing application and parent state. Still open: expressing the investigation/retrieval procedures themselves as application programs that generate candidate revisions, and environment-keyed selection policies.Reference/native parity is a gate throughout this program. An exploratory host application may initially use Bun and a native query adapter, but it must be labeled accordingly. Stable kernel guarantees cannot be advertised on both runtimes before both implementations pass the shared cases.
The kernel remains focused on identity, admission, execution, custody, resources, and revision boundaries. Domain concepts, exploration policies, candidate generation, and most evaluation logic should themselves be ALGAL programs.
Checkpoint retained from the harness spike
The continuation repaired the runner and persisted mutation/observation scope across terminal boundaries, task changes, and reconstruction. Deterministic regressions now cover those boundaries, proposal/receipt binding, storage corruption, and probe/frontier changes. Final validation and any subsequent live measurements belong in the completion review; earlier focused counts describe the checkpoint, not the current tree.
At the user's pause, one calibration trial was cancelled and retained as invalid, without retry. Seven backend calls completed, with zero incremental paid API spend. The second calibration task and controlled comparison did not run. The VM stopped and its original configuration was restored. No solving or memory benefit is claimed from that interrupted calibration.
Research grounding
The propagator model motivates accumulating partial information and retaining premise-dependent alternatives (Radul and Sussman). Self-adjusting computation motivates explicit dependency tracking and updating affected computations (Acar). Proof-tree inspection offers a concrete model for explanation tied to derivation (Souffle provenance). These are design inputs, not proof that ALGAL inherits their formal guarantees. The implemented contracts and tested claims are described in the completion review.