Durable memory for disposable agents

Clone this repo:
  1. 750581a Merge pull request #96 from apache/feat/long-timescales by Sander Striker · 4 days ago main
  2. 86db852 fix: sync the claim epoch file through a handle that writes, and compare the scratch root as resolved by Sander Striker · 4 days ago
  3. aa0413e fix: answer the adversarial pass on the merge of main by Sander Striker · 4 days ago
  4. 39b4179 chore: merge main, with packages 11 to 14, into feat/long-timescales by Sander Striker · 4 days ago
  5. 3059a50 docs: name the pull request of package 15 in the plan by Sander Striker · 4 days ago

Durable memory for disposable agents

This project gives shared memory and coordination to fleets of agents. Its design aims to make the record continue to exist after every agent, harness, model and vendor that it was written with. This repository holds the reference implementation and the plan to build it.

The paper in docs/ gives the design. PLAN.md gives the plan: what the paper asks for that the code does not have, and the order in which that gets built. docs/reference-stack.md gives the stack that this implementation grows into.

This is a proof of concept

This repository proves the paper's contracts. It does not prove a system that scales. These contracts are built, and real harnesses on real models test them from end to end:

  • the entry format and its frontmatter
  • the ledger's rules: one holder, leases, dedup by origin and upstream event, and recursive invalidation
  • the MCP surface
  • trust tiers and review clocks
  • summaries first
  • the hook protocol
  • the egress as the only way out
  • the containment set: canaries, an independent auditor, and reversible writes

The conformance suite in crates/memory/tests states these contracts. The paper's other commitments, beyond the read path, are also built and tested from end to end, by real harnesses on real models:

  • trust tiers that move only when a person approves
  • policy as memory, with scoped exceptions
  • the write gates and the quarantine
  • the task fabric's rubric
  • the curation of the curators, and their telemetry
  • prefetch and the read metrics
  • vendor-drift probes
  • transcripts kept as sources
  • spend limits at the egress
  • frozen-context replay

Each backend behind those contracts is the simplest one that can hold them on one laptop:

  • The record is files under one directory.
  • The index, the ledger and the metering are each a SQLite file.
  • The read log is a JSONL file.
  • One process holds every lock.
  • There is one host.

This is deliberate. This shape let the project try the contracts against ten harnesses in two weeks. It is also the reason that none of it is the production shape.

What the paper asks for that is not built

  • Replay, in part. Frozen-context replay is built: amem replay runs on the decision contexts that the egress records. Live re-execution is also built: amem reenact runs a prompted session again on its prompt, at its commit. A tape of what its memory tool calls returned answers those calls, until the run diverges. Each decision context and each tape holds a replay manifest: the log offset of each domain, the policy version, the grants and the session settings that the session began with. amem reenact state compares the manifest with the record as it is now. A run that left its tape is marked incomplete when that state moved. These limits apply:

    • The manifest holds ids and log offsets. amem does not serve the record as it was at an offset, so an incomplete run stays incomplete.
    • The index checkpoint of the manifest is a count of entries for each domain. It holds no screening state and no registry.
    • An interactive session has no prompt to run again.
    • The tape of a session that works a task does not yet carry the prompt of that task.
    • A session on a login that runs through a tunnel has no decision contexts, because the egress cannot see into the tunnel. Its replay uses the harness's own transcript, which is a self-report, and says so.

    Re-enactment ran on Codex through the gateway (demo act 8). It did not run on the other harnesses yet.

  • The platform as a domain, in part. The grants may name a platform domain. Its entries carry artifacts in fenced platform <kind> <name> blocks:

    • an agent definition and a template, which open the prompt of a task
    • an eval suite, which amem golden --platform scores
    • the default model of a harness

    Each artifact loads only from an active entry that a person verified. In the same way, the policy enforces a policy rule only after it is verified. amem platform list says why the other artifacts do not load. These are not built yet:

    • harness settings other than the model
    • decomposition templates for the board
    • the authoring of agent definitions
    • the loop that proposes changes to them from cost and telemetry
  • Identity. There is one principal: the owner of a root. Other people appear only as a class of claimant (human), and as approvers by convention. An identifier of a person can carry the authority that issued it and a date: human:<authority>,<YYYY-MM-DD>:<user-id>. Nobody authenticates.

  • Federation. There are no cross-domain request tasks, no interface summaries between domains, and no portfolio orchestration. A cross-domain dependency is visible, and that is all.

  • The event log, in part. Each write, read and send of a session goes into the append-only log of its domain, with a label. A write goes into the log before the scan. Thus the log also holds a write that the scan refused. The log holds ids and digests, and never bodies. Each domain has one writer. A writer feeds the index from the log before its write returns. amem log freshness measures the index against a bound of 60 seconds. One materializer per domain builds the index again from the log and the record (amem log materialize). These parts are not built:

    • The ledger writes each event to its own table first. The log of the domain gets a copy of the event, and the copy can be late.
    • No reader feeds the index. A version that a stopped writer left in the log waits for the next write, or for amem log feed.
    • A read event names the entries, and not their versions. The version of an entry is the last version that the log holds before the read.
    • A demotion and a restore are in the log. A merge and a rewrite of a summary are not in the log as curation events.
    • An erasure does not rewrite the log. The events of an erased entry keep its id, its author and its session.
  • Drift over many runs. The detectors read answers and also metadata: fingerprint digests, flip rate, formats and refusals. Logprob divergence and change-point detection over many runs are missing. The probes run in each curation cycle with --drift, against fixed thresholds. Confirmed drift opens a drift window for the destination and the model, and the owner can open one by hand (amem drift window). The freeze is built: nothing that an agent wrote inside a window is promoted. The freeze holds every entry that an agent wrote inside a window, on any model. An entry records its session and not its model, and the freeze does not read the session.

  • Costing, in part. amem measures and prices these (amem cost, amem usage, the evaluation):

    • tokens and calls
    • the time of each call
    • the wall clock, CPU time and peak memory of each harness run, added up for each session

    These are not built yet:

    • accelerator time, which only the gateway can count
    • bytes stored
    • CPU or memory limits on the sandbox
  • The task record, in part. A claim has a generation, and the ledger refuses a holder that gives an earlier one. A task can be blocked on a task that it depends on. A claim and a completion can carry an attempt key. A holder can give a task up until an outside event comes, and a task with an external action that is not settled goes to no other session. These parts are not built: an attempt key for the other operations, a connector that makes external actions in sequence and settles them, and taps that report the events. The generation does not prove who the caller is.

  • Task definitions, in part. A task can name a task definition. It then takes the checks of the definition, and its holder can call only the tools that the definition declares. Triage requires a definition only when the grants say so, because the tasks that the system files name none. The data scope is not enforced.

  • Positions, in part. A verified entry of type position gives a standing role a charter and an authority envelope, and a task can be pinned to that position. Only a session that fills the position claims a pinned task, and that session gets the position's commitments and handoff cache first in T0.

    These parts are not built:

    • the platform's standing roles as positions, made when a domain is registered
    • a position that a curator proposes, and an unused position sent to its owner
    • a session that the memory server starts when a pinned task is admitted: a launcher with --wake starts it, and not on the wslc sandbox backend
    • a record of a live session other than the lease that it holds, and one session in a position at a time
    • the position in the principal chain and in the input of the policy
    • a tap that posts for a position
    • a check that a separation pin names a position other than the author's
    • the data scope of the authority envelope
    • a version in force while its next version waits for review
    • a retirement that a second person approves
    • the pin on a retry of a pinned task
    • the writes of a subagent kept out of the history of its parent's position
    • a check on the entries that an import brings with a citation of a position
  • Approvals, in part. An approval is an event on the ledger. It names the person, the action, the entry, the version, the principal that it is for, and an expiry. The policy checks the approval when an erasure or a declassification runs. A declassification lands a copy at the lower label. The copy cites the entry and names the guard. The copy of a raw entry keeps the reach and the task of the entry. These parts are not built:

    • The copy of an approval in the event log of the domain names the approver, the entry and the time. The action, the version, the scope and the expiry stay in the event of the ledger.
    • A copy at a lower label has no write event in the event log. Lineage does not name the copy as made from its source. An erasure of the source withholds the copy, because the copy cites the source.
    • No approval gates an external action of a task, a change that leaves the fleet, or a higher spend limit.
    • A guard that is not the owner cannot approve, because the command line acts only as the owner.
    • The memory tool approve approves only in a session of a person, which the owner starts with amem serve --person. Nobody authenticates there. Thus the tool is as strong as the command line, and it stops an agent only when the harness is confined.
    • The erasure of a transcript makes no approval.
  • The surface of Appendix A, in part. get takes an address: an entry id, an id with #<anchor> for one section, or an id with @<version> for one version. A fetch carries the related entries, each with a weight. search takes filters by type, lowest trust tier, author and time, and each hit has a snippet from the index. recall takes the answer kind and the tokens in the context of the caller, and it plans the size of the answer from them. approve, approvals and export are memory tools. These parts are not built:

    • No cheap model expands the query or ranks the hits again inside search.
    • The size of a recall comes from the answer kind and the context of the caller only. The model of the caller and the results of a recall suite do not change it.
    • Nothing checks that the deputy kept its brief under the planned length. No replay checks the choice that the read log holds.
    • The weight of a related entry is the share of the searches that returned both entries. It is not the share of the sessions that opened the second entry after the first. A fetch never carries the body of a related entry.
    • approve takes the sign-off task and an expiry. It does not take an action, a version and a scope, because the task names them.
    • A bundle that the export tool writes stays under the root. Nothing sends it to a destination under the ceiling of that destination.
    • get by version checks the creation time of the entry against the snapshot of a session, and not the time that the version was written.
    • get by version reads each earlier version of the entry to find one digest.
    • get serves no version of a demoted entry. The archive reads only the current version of such an entry.
    • A citation names an entry for lineage only when the id starts with mem-.
    • No audit counts the citations that name no version.
    • write has no fast lane for a handoff.
  • The rule lifecycle, in part. check_policy gives all the rules in force for a domain. It does not select rules by the action. The lint reports a rule after its review date and an unused rule, from the full decision log and not from one review period. The approver of an exception is a name in the answer. amem does not check that this person approves. A new version of a rule is the newest rule under the ceiling. While the next version of a rule waits for its review, the rule is in no decision. When the module of an enforced rule fails in a decision, that decision fails. An imported rule keeps the author and the date of its entry.

  • Lineage, in part. Each entry names the session that wrote it. amem lineage and the lineage memory tool read the event logs, for the owner and the security role. Back from an entry, they give the entries that its session read before the write. Forward, they give the entries and the sends that came after a session read it. An erasure withholds the entries that are one step forward, and its receipt lists the sends. A session that read the erased entry can write after the erasure. Each such write is withheld too, and the receipt names it. These parts are not built:

    • An erasure does not withhold a verified rule of the policy. A rule refuses, so the rule stays in force, and the receipt lists it for the owner.
    • A release from quarantine does not look at what the session of the held write read.
    • A model call that fails, or that goes through a tunnel, is not a send event.
    • A request from a tool to an outside host is not a send event.
    • An erasure lists the entries that are two steps or more forward. It does not withhold them.
    • No task is filed for a withheld entry.
    • The reads of a helper session count for its parent only through the entries that the helper wrote.
  • Raw reach, in part. Each entry has a reach: chain, fleet or tap. Each read filter has a raw reach: chain, fleet or all. By default, an agent reads the raw entries of its task chain and each raw entry whose reach is not tap. When a session reads content from authors outside the fleet, the event log records it. Each entry that the session writes after the read is raw with tap reach. Until such an entry is curated, only the task chain, triage and curators read it. Only a person, or a session on a task of a curator or of the auditor, can make it curated. A write replaces only an entry that its session reads. A raw write with tap reach replaces only a raw entry with tap reach that names the same task. amem log outside and the outside_readers memory tool list those sessions with their writes and their sends. These parts are not built:

    • By default, an agent also reads a raw entry with chain reach that names a task outside its task chain. A root policy that sets raw_reach to chain stops this.
    • The policy sets the raw reach of a principal for all its domains, and not for one domain.
    • Triage is the owner and the other people. No triage agent has a role of its own.
    • The task chain comes from the held task that the launcher sets. A session that only claims a task with the claim memory tool has no task chain.
    • A task that another process files from the held task joins the task chain only when the session holds the task again.
    • When a session reads a task from outside, the log gets no event at the read. The record is on the next event of the session.
    • A turn of the transcript of a session that read outside content is served by citation. The reader of the turn gets no record.
    • What a subagent returns to its parent inside the harness does not go through the memory server.
    • The memory files of a harness are not read as outside content.
    • No task of the auditor reads the list of outside_readers yet.
    • A request task for the part of an item that belongs to another domain is not built, because coordination across domains is not built.
    • A session of the web launcher keeps the record for one request, as it keeps its session label.
    • A re-run from a tape does not restore the record.
    • A session that read outside content can name the event that its task waits on, and the id of an external action. Each is one token. The task does not become outside content.
  • Curation and audit, in part. A demotion puts an entry behind a tombstone, and a person can restore the entry. An agent demotes only a dead entry, on a task of a curator or of the auditor. The convention checks cover freshness, ownership, cross-links and citations of a replaced entry, and each failure becomes a task. A person records the outcome of a task, and a corrected result becomes a task for a curator. The curator proposes a merge of overlapping rules, and a task definition for repeated work. The auditor qualifies on ten planted cases. It then runs on another model, or in a fresh session with a larger human sample. A curation cycle also checks each curation against the entries that it cites, tests entries together, and reads a sample of handoffs. These parts are not built:

    • A second person does not approve a tombstone redirect, a change of a domain boundary or a distillation into the platform domain.
    • No library function splits an entry that is too large. The split stays a task for a curator run.
    • Nothing checks the answer of the curator on a correction: method, knowledge or dispute.
    • Only a person records an outcome. A revert or a rejection in an outside tracker is not recorded.
    • An outcome event and a work outcome are two records. An outcome event rejected or reverted does not lower an autonomy level. A work outcome, and a verdict that rejects the work, make no correction.
    • A correction that puts the method at fault ends as a task. No loop tests the proposed change.
    • The qualification calls a model only through a gateway key. Without a key, the auditor stays a fresh session that is not qualified.
    • A fresh session is a new session of the cycle. The check for another model compares the model names, and not the vendors of the base models.
    • The auditor does not sample the handoffs that left search, because handoffs do not leave search yet.
    • The task for a failed convention check requires a person and names the owner in its text. The ledger does not route it to that one person.
    • A cross-link to an entry of a domain that the session cannot read is reported as broken.
    • The unused-rule check does not run over one review period. Overlapping rules get only a proposal to their owners.
    • The alarms for each curator on summary drift and on skew in the search results are as before. Only the count of demotions now comes from the event log.
    • No task of the auditor traces a bad outcome back to the entries that fed it. The lineage tool gives that trace.
  • Access freshness, in part. Any change to the grants file stops each open session, not only a session that the change affects. The files that a session rendered before the change stay on disk. A harness that a stopped session started continues to run, and each of its memory calls and model calls is refused. A read that waits does not check again before it gives its answer. Some commands of the owner do not do the check. A grant has no expiry of its own.

  • Autonomy and the improvement loop, in part. Each version of a task definition earns an autonomy level on a held-out suite, and a reverted or rejected task lowers the level. A candidate version passes a safety gate and a performance gate, and repeated refusals of one agent raise a probing alarm (demo act 7). These parts are open:

    • The evaluator's check is a substring test. No model grades.
    • amem does not run the scenarios. Nothing checks that a graded handoff was written under the graded version.
    • The level review compares principals. The server does not know the model or the vendor of a session.
    • A task that names no definition has no level.
    • A reverted task stays done, and its dependents are not sent back.
    • A work outcome comes from a person, not from a tap.
    • A prompt, an agent definition and a harness setting have the review of a person only, with no suite of their own. A ranking or rubric change has no canary.
    • The safety gate compares tools, scope and declared autonomy. It runs no red-team suite.
    • Every session that reads the platform domain reads its raw entries.
    • Probing counts refusals for each principal and clock hour against a fixed number. It counts neither a lineage of several principals nor queries that walk the index.
    • The owner at the command line reads the held-out suites and writes into every domain.
    • The server does not log a task that it hides as a refusal, so probing does not count it.
    • Two processes on one ledger can each make a check and then append. A raise can then follow an outcome that it did not read, two outcomes can lower the level one step, and a verdict can complete a task that was rejected in the same moment.
    • The event log of the platform domain takes a copy of each definition record: the version, who recorded it and the time, at the highest label. The level, the run and the work outcome stay in the event of the ledger.
    • The copy of a raise to the level review names nobody. The ledger does not record who raised.
    • The event of a completion on a verdict names nobody. No record says who accepted the work.
    • The definition records are not in a bundle.
    • A lineage answer leaves out the event log of the held-out domain for a session that does not read that domain. The answer does not say so.
    • The sign-off for the highest level is a field of the ledger record, not an approval event.
  • Measurement, in part. amem metrics prints the 21 rows of the metric table of the paper and the published targets. amem limits lists the five limits, and a person raises one with an approval. A change lands through a landing queue. These points are still open:

    • No log here answers these rows: the omissions in summaries, the entries that were found but misleading, the agreement between reviewers, missed commitments, the cost of verification, pinned tasks, and the queue of each position. The first two need a model or paired replays. Missed commitments and the last two are about positions, and this table reads no position.
    • Only the command line gives the cost of a completed task. The memory server cannot read the meter of the egress.
    • The search latency is the only target that is measured. The other targets are published, and nothing is measured against them.
    • The memory server checks the share of throughput, the outbound rate and the share of upkeep in its own code. No policy module decides them.
    • A spend limit is raised by a change to the grants file, not by an approval.
    • A session does not see its running cost. Nothing tells a principal that it used a fraction of its spend limit.
    • The share of upkeep counts tasks. It does not count tokens or time.
    • The ceiling on upkeep holds at admission. It does not hold at the claim.
    • A part of a person's task that an agent files and completes itself counts as upkeep. The ceiling does not hold that part back at admission, because the root of a task decides there.
    • At the ceiling on upkeep, an agent is told that its task is not admitted. The ceiling counts tasks that the agent possibly cannot read, so that answer tells the agent one fact about them.
    • Only a person at the command line gets the four rows of the metric table that come from the read log. A line of the read log has no domain and no label, so no agent session gets those rows.
    • Two processes on one ledger can each count the claims of one agent and then claim. The agent can then pass its share of throughput by one claim for each process.
    • The count for the share of throughput reads every event of the domain at each claim of an agent.
    • Nothing sends a task to the landing queue of its domain. Its holder can complete it, and then no person lands the change.
    • A person lands a change at the command line. No tap reports a landing, and the landing queue lands no change in a repository.
    • A task that is queued for landing does not wait for the verdict of its task definition.
    • The price vector is a file under the root, with a version. It is not an entry of the record. No setting is computed again when the price vector changes.
    • Accelerator time and bytes stored are not measured.
  • Evaluation, in part. The five arms are built as session settings that only the launcher gives (amem launch --arm). A plan fixes the arms, the seeds and the margin before the runs. The scorer pairs each arm with the baseline across tasks and seeds, checks the five replay traps, and keeps a scorecard in the platform domain (amem eval, demo act 6). These parts are open:

    • A run reads the record through a snapshot bound on the read filter. It does not get a copy of the record as it was. An entry that was replaced or demoted after the snapshot stays hidden, and a write of a run goes to the record.
    • The raw-only arm leaves out each entry above raw. It does not serve the raw version of a promoted entry.
    • The disclosure depth has two values, T0 and full. A depth of summaries only is not built.
    • A seed is the number of a repeated run. Nothing passes it to the model.
    • The only judge is the regular expression of each task. A judging model that is held fixed is not built.
    • The scorer takes success and cost from the caller. It does not read the cost from the egress, and it does not charge the cost of writes and curation to an arm.
    • An evaluation run is a launch. It is not a task in the platform domain with a budget of its own, and amem cost counts it with production.
    • The plan is a file with a digest. Nothing makes a person review a change to the frozen task set.
    • The demo's task set has no task with a recorded failure, so the survivorship trap stays open and each verdict of the demo is inconclusive.
    • The snapshot bounds entries and transcripts only. A run reads the tasks of the ledger as they are now, so text that one run files as a task can reach a later run in any arm. The leakage trap does not see this.
    • The tape of a transcript-replay run does not hold the replayed text or its digest.
    • The standing holdout is not built. A scorecard compares arms only, not a change of model or of harness.
    • The arm flags do not reach the wslc sandbox backend or amem work.
  • Long timescales, in part. The registry (registry.toml) names the unit and the owners of each domain, and amem registry check flags a domain with no owner. A write to a personal domain by another author is a proposal, which the owner admits, refuses or lets expire. amem recover makes a recovery bundle, restores it with the erasure journal and the next claim epoch, and runs a restore drill (demo act 10). In a declared outage, a session works from the T0 that it loaded, and its handoff waits on a queue (demo act 4). Each curation cycle files an evidence task for the horizon scanner of a unit. These parts are not built:

    • The restore drill always reports one of the five cases as absent: the cross-domain dependency. For the uncertain external action, the drill checks only that the restored ledger holds the task back. No connector reconciles the action.
    • A restore takes the drift windows that are in force from the kept journal. A restore without that journal has only the drift windows of the bundle.
    • Only the ledger refuses a claim of an earlier claim epoch. No tap and no outside tracker reads a generation.
    • The record is not encrypted. Thus there is no key for erased content to keep apart from a recovery bundle.
    • The erasure journal is a copy of the receipts that a person makes with a command. A restore keeps the reason of an erasure, and gives the new receipt the time of the restore. The same command copies the refusal journal.
    • An erasure does not change a recovery bundle under the root. The receipt names each such bundle that holds the body, and a person deletes it.
    • The receipt of the early erasure of a transcript names no recovery bundle under the root that holds the transcript. A restore of such a bundle erases the transcript again only when it gets the erasure journal.
    • A session that a harness reaches makes no recovery bundle and runs no restore drill, whatever its author. The owner uses the command line or amem serve --person.
    • The restore drill of a root with a PostgreSQL ledger is refused when two domains hold an event with the same number. The drill restores into a file ledger.
    • A recovery bundle that is made in the middle of a write can hold an event of the log for a version that its record does not hold.
    • A queued handoff that fails at the end of an outage is kept in a file. No command reads that file.
    • Nothing detects an outage. The owner declares one, and it is one state for the ledger and for retrieval. In an outage, a tap and a spawn are refused, and nothing buffers them.
    • The owner of a root is compared as text. A person under an earlier identifier is not the owner. These follow an assertion: the registry check, the gate of a personal domain, and the rule that nobody gives the verdict on its own work. No other comparison of two principals follows an assertion.
    • A change to the registry stops each open session, as a change to the grants does.
    • No clock runs the registry check, the restore drill or the schedule of the horizon scanner. A curation cycle or a command runs them.
    • A team split with tombstone redirects, a lazy merge, and an import of an acquisition into a quarantined low tier are not built.
    • A personal domain is a domain of the same root. It does not live on the machine of the person, and no view of it is shared under a grant. A proposer does not read the policy of the owner first.
    • The strategy review, the protected exploration budget and proposals that change the L1 strategy are not built.
    • A drill restores into a file ledger. A restore onto PostgreSQL needs an empty database.
  • Smaller pieces. The search tool ran only against a fake of Brave's API. It never ran against the live provider.

  • Platforms. Confinement on macOS ran only on a CI runner. CI runs the Seatbelt tests there. No harness ran under Seatbelt yet. The bridge to Gofannon is built against the Gofannon REST surface and a fake of it. It did not connect to a live deployment yet. It uses the Gofannon session cookie, which is the only credential that Gofannon issues. A Gofannon agent makes its own model calls, outside the egress, so the egress does not meter them.

What is built but works only at demo scale

These parts do what the paper says, on one laptop. Each item names what replaces it.

  • The record is files under one directory on one disk. Production: an object store with versioning, through OpenDAL, as the reference stack says.

  • The index is one SQLite FTS5 file, with BM25 in process. Production: a search engine sharded by domain. In production, OPA compiles the read filter into its query.

  • The ledger is on SQLite by default, with one writer under a mutex per process. On PostgreSQL, it has a schema per domain and a SKIP LOCKED claim. Each append takes the lock of its domain first, so the appends of one domain run one at a time. It has one connection per process, and no pool. Production: the PostgreSQL shape, with a pool, as a projection of the log.

  • The logs are JSONL and SQLite files under state/. They hold the reads, the writes, the decisions and the metering of the egress. Everything that amem computes from them reads them whole:

    • the curator's retrieval signals and telemetry
    • the read metrics
    • the policy rates
    • the relay and write-rate alarms
    • the co-retrieval of prefetch

    Production: the same events as OpenTelemetry spans, into a collector and analytics tables. amem already emits these spans.

  • The event log is a JSONL file per domain under state/log, behind a file lock. The feed, lineage and an erasure read the file whole. Only a writer feeds the index. No reader feeds it, and no task feeds it on a schedule. Production: a partitioned log, with a partition per domain. The reference stack uses Kafka. In production, the feed and the materializer are consumers of the log.

  • Curation surveys a domain: it reads every entry. It looks for contradictions pair by pair through search. It runs as a cycle that someone starts. Production: event-driven, for each write, on a schedule with a budget per domain.

  • The rubric's rescore reads every open task of a domain in each cycle. It settles the edges with repeated passes. This is sufficient for hundreds of tasks. Production ranks incrementally.

  • The policy is Rego in process, through regorus. amem compiles it again when a policy entry changes. It reads the record rules from files at open. Production: OPA as a sidecar, partial evaluation for the read filter, and decision logs to telemetry.

  • The quarantine keeps the body of each held write as a file under state/. The event log holds the event, and not the body. A model reviews the held writes on request. The owner releases them by hand.

  • Transcripts' citations: amem finds them on every lookup, with a read of all the entries of a domain. It finds the citations that keep a tool's source past its clock in the same way.

  • Positions: amem reads every entry of type position in a domain to find the position in force. It does this on each claim, each read, each tool call and each T0 of a session in a position. A read of the handoff cache looks at the newest 200 handoffs of the domain only. Production: a lookup in the index, by the name of the position and by citation.

  • Tools fetch and search in one of these ways:

    • from the launcher's own machine, with one compiled component for each call. The component connects to the address that the policy checked.
    • from a tool server (amem tool-server), which runs the same components for launchers on other hosts.
    • natively, when no component is installed, behind the same gate. This way only fetches.

    A call to a tool server goes through the egress like a model call. The egress holds it to the tool‘s ceiling, and meters and times it under the tool’s name. The egress also puts the server‘s bearer on it. Every source records where the tool fetched it from. The owner releases a held answer by hand (amem source release). Production: the tool servers, registered in the Foundation’s gateway and found by name, not by URL.

  • Cost comes from a price table that the owner keeps by hand. The share of a task is the spend, wall clock and CPU of its session, divided equally among the tasks that the session completed. amem counts the CPU and memory of a harness process when it reaps that process (wait4). One session can have several such processes. wait4 sees a process tree only as far as each level reaps its children. Peak memory is that of the largest process, not the sum of the tree. Production: the per-key spend of the gateway, with each call tagged with its task and trace.

  • The evaluation is four questions, graded by regular expression. It runs them under the five arms of a plan with two seeds, or under four older conditions:

    • with this memory
    • with an empty one
    • the bare harness
    • the bare harness with its own tools off

    It runs on any number of harnesses, but on one model per run. A scorecard is JSON of this project's own shape. Production: runs in a copy of the record at a snapshot, on a budget of their own, with spans in the OpenTelemetry conventions for generative AI.

  • The registry and the outage are files that the owner edits or makes: registry.toml beside the grants, and state/outage.json. The claim epoch is a number in a file beside the root. Production: the registry in the identity system of the institution, an outage that the ledger and the log report themselves, and the claim epoch in a store that no restore rolls back.

  • The web launcher listens on loopback for the one owner.

The code hides none of this:

Production backends go in behind the same crates, and they must pass the same suite. The evaluation harness and amem savings give the numbers for each swap. The purpose is that no part of the move depends on personal preference.

What it is

The design is several parts around one record. No one part is the safety boundary alone.

  • The memory server is the part that a harness connects to over MCP. It serves the record with summaries first. It holds the ledger. It checks every read and write against the policy. In a launch, it gives the harness nothing above the ceiling of the destination of its model. The ceiling is the highest label that may go to that destination.
  • The launcher runs a harness in a sandbox. The sandbox has no network. The harness can reach only the egress.
  • The egress carries the MCP of the memory server to the harness. It forwards the model calls of the harness to a provider or a gateway. It holds each call to the ceiling of its destination. When the egress forwards a call, it also meters the call, holds it to its spend limit, and records it with its decision context. The egress tunnels some calls, as for Copilot, for the ChatGPT login of Codex, and for the Grok Build and Antigravity logins. For a call that it tunnels, the egress checks the ceiling when the tunnel opens, and does not meter the call. The egress holds the credentials, unless the harness runs on its own subscription login.
  • The tools are fetch, search and the other tool taps. They run outside the sandbox: in the amem process, on a tool server through the egress, or in the owner's browser. Each tool decides every request against the session label.
  • The perimeter is the policy over grants.toml and the record's policy entries. The memory server, the egress and the tools all enforce it.

An agent starts empty. It loads a small index called T0, works a task that it claimed, and writes a handoff when it stops. The next agent continues from the handoff, not from a transcript. In addition, the curator curates the record on a budget. A person promotes what the system may rely on.

  person ──▶ amem: web launcher, CLI, profiles
               │ launch / work (a claimed task)
               ▼
  ┌─ sandbox: harness, no network ───────┐
  │ Claude Code, Codex, Gemini CLI, ...  │──MCP──▶ memory server ──▶ record/   entries, transcripts, contexts, tapes
  └──────────────┬───────────────────────┘          │  policy:  ├──▶ index    SQLite FTS5, BM25
                 │ model calls                      │  Rego     ├──▶ ledger   SQLite, or PostgreSQL
                 ▼                                  │           └──▶ logs     the event log; reads, writes, decisions
              egress ──▶ provider or gateway        │
       metered, spend-limited, contexts recorded    └── curator: curation, auditor, canaries, drift

The diagram shows the MCP arrow straight to the memory server. But MCP also goes through the egress, which is the one way out of the harness.

Everything is under one root. The root is ~/memory unless --root or MEMORY_ROOT names another. The process touches nothing outside the root:

PathWhat
grants.tomlThe perimeter's data: security for the authors in the security role, domains and their labels, destinations and their ceilings, [gates], [spend.<destination>], [taps.<name>] for taps and tools (hosted for a tool that a tool server serves), platform = "<domain>", and [ledger] for PostgreSQL
credentials.envAPI keys, LLMAO_KEY, GH_TOKEN, as NAME=value, mode 600. The environment overrides this file
profiles.tomlNamed launches: harness, auth, model, subagents
prices.tomlThe price vector: USD per million tokens per model, and per CPU-hour and GiB-hour under [resources], for amem cost and for a spend limit in money. It has a version: the key version, or the digest of the file
policy/*.regoOptional: replaces the built-in policy
record/<domain>/The entries, as Markdown with frontmatter. Nothing edits an entry in place. Beside them: .history, .erasures, .transcripts, .contexts and .tapes (re-enactment‘s tapes, which are the owner’s alone)
state/Operational data. All of it is rebuildable, except the event log. It holds: log/<domain>.jsonl, the event log, which is the order of record that the index is rebuilt from; index.db, ledger.db, telemetry.db; the read, write and decision logs as JSONL; the quarantine; drift, replay and re-enactment runs

Build and run

Get Rust stable. Then:

cargo install --path crates/memory --locked   # or `make install`; puts `amem` on the PATH
amem init --domain dom-me                     # a root at ~/memory
amem doctor                                   # what this host can run, and what is missing
amem                                          # the web launcher, opened in the browser

amem with no command starts the web launcher over the root, or finds the web launcher that already runs. Then it opens the browser on a link for pairing. The link holds a code that is good for one use, for two minutes. The page exchanges the code for a key of its own. Run amem from the directory that you want as the working tree, or give --workdir. The web launcher listens on loopback only. Without a key, it serves its static pages and answers nothing else. amem doctor names each credential that it finds, and where it found it. It never shows their values. LLMAO_KEY alone points at a local LiteLLM on port 4000. For the Foundation‘s gateway, put the PAT in LLMAO_KEY, and set LLMAO_URL=https://llm.apache.org beside it. A launch uses the gateway with --auth gateway (AUTH=gateway with make). The default is --auth subscription. With --server-auth gateway (SERVER_AUTH=gateway), only the memory server’s own model calls use the gateway. On the wslc backend, the gateway is a LiteLLM in the session VM, with LITELLM_MASTER_KEY from the environment or the root's credentials.env (make reads local/.env). That backend does not use LLMAO_URL or LLMAO_KEY.

The page has a companion. The companion is a browser extension in crates/web/companion. It fetches for a session with the browser‘s own logins. It is for Chrome. Load it unpacked from chrome://extensions. A [taps.fetch] grant with browser = true sends the fetches of that tool to the companion. Thus a page that you are signed in to answers the session as it answers you, and no credential goes into a grant. The policy still decides every URL before the browser gets the request. It also decides every URL that answered, before amem keeps anything. The extension holds its requests to the session’s hosts with the browser‘s own request rules. Thus the browser stops a redirect to a host outside the session’s hosts before the redirect occurs. A fetch with render opens the page in a tab instead. It reads the page as the page's scripts built it. This is for a page that is empty without its scripts. The page shows whether the companion is connected. The companion works only while amem runs and the page is open in that browser.

A profile names the flags of a launch, so the name is the whole command. Each harness is a profile, for example amem claude. profiles.toml adds more profiles:

[nightly]
harness = "codex"
auth = "gateway"
model = "qwen3.8-27b"
subagents = "board"

amem nightly launches it. amem work nightly works the ledger with it. A flag that you type after the name overrides the file. The launcher runs ten harnesses: Claude Code, Codex, Gemini CLI, Qwen Code, Grok Build, Copilot CLI, OpenCode, Antigravity, Muse and pi. It runs them in one of these:

  • in native Linux namespaces from the harness image, after make unpack puts the image in place. Every harness except Antigravity is in the harness image.
  • under WSL containers
  • under Seatbelt on macOS. This ran only on a CI runner, and with no harness.

Auth is key, gateway, or subscription. subscription is the harness's own login, which the egress passes through. Where the egress forwards and does not tunnel, it meters the login as plan quota. local/README.md is the full guide.

Or point a harness at the memory server alone, over stdio, with no confinement:

claude mcp add memory -- /path/to/amem --root ~/memory serve --author "agent:claude-code"

The agent gets t0, search, get, write, list, recall, promote, the ledger‘s memory tools, transcript_turn, settings and scorecards. The owner also gets score_evaluation. Its writes go in at raw trust, under the author that you give. Such a harness has no sandbox, and its model calls do not go through an egress. The policy still decides what it reads and writes over MCP. But the harness keeps its own network and credentials. Nothing meters its model calls. No model’s ceiling applies to what it may read. amem launch --unconfined is the middle case. At this time it is only for Claude Code and Codex. It gives no sandbox, but the model calls still go through the egress. A harness with no sandbox has a shell on the host. From that shell, an agent can run amem approve as the owner, because nobody authenticates at the command line. It can also start amem serve --person and call approve there. Thus an approval stops an agent only when the harness is confined.

The parts, and their commands

local/README.md describes most parts, each under its own heading. At this time, only the register in spikes/plan-2026-10 describes re-enactment, the platform domain and the Gofannon bridge.

PartWhat it doesCommands
The read pathT0, BM25 search with summaries first, filters and a snippet for each hit. One body on get, or one section or one version of it by address, with the related entries and their weights. Recall as a cited brief or a pack, sized from the answer kind and the context of the caller. Prefetch on claim and at fetcht0, search (with --type, --min-tier, --author, --since), get (<id>, <id>#<anchor>, <id>@<version>, --json), list, recall (with --answer-kind, --context-tokens), write
The task fabricTasks with leases and handoffs. A rubric from the L1 strategy ranks along the ledger's edges, at admission and in the triage cycle. Workers only claim. Subagents go on the board as children, with a continuationtask create (with --position and --pin-reason for a pinned task), task admit, claim-next, complete, release, tree, retry, rescore, stats, work (with --position or --wake for a session in a position)
PositionsA standing role as a verified entry: a charter and an authority envelope. A task pinned to a position goes only to a session that fills it. That session gets the position's commitments and handoff cache first in T0. A session under another agent definition is seconded. The owner retires a positionposition list, show, retire, write --kind position, serve --position; MCP position, positions, retire_position
Trust tiersRaw, curated, verified. Only a person who did not propose an entry can make it verified. Review clocks and decay. Raw reach: a raw entry from a session that read outside content is served only to its task chain, to triage and to curatorspromote, approve; reach and task in the answers of write, search and get
ApprovalsAn erasure and a declassification run only under an approval: a person approves one action on one version of one entry, for one principal, until an expiry. An action without an approval is refused, and a sign-off task asks the owner or the guardapprove, approvals, declassify, erase, serve --person; MCP erase, declassify, approvals, and approve in a session of a person
The perimeterRego over grants.toml and policy entries in the record (L0 to L3, enforced after they are verified, with scoped exceptions). Admission, the read filter, the write scan and quarantine, and blast-radius gates. A log of every decisionpolicy show, eval, list, lint, quarantine
The curatorA survey of what needs curation, an independent auditor, a search for contradictions, canaries, its own telemetry and alarms, and a cycle on a budgetcurator, curate, audit, canary
The duties of the curator and the auditorDemotion of a dead entry behind a tombstone, and its restore. Convention checks, each failure a task. Outcome events on a task, and corrections for a curator. Overlapping rules and repeated work. The qualification of the auditor on planted cases, and its mode. A curation against the entries that it cites, entries tested together, and a sample of handoffsdemote, restore, dead, conventions, task outcome, outcomes, corrections, policy curate, auditor mode, qualify, case, together, handoffs; MCP demote, restore, dead, check_conventions, record_outcome, outcomes, corrections, policy_curation, auditor_mode, curation_case, test_together
The egressIt forwards, meters and times model calls, holds spend limits per destination, and records decision contexts. It keeps the wall clock, CPU and peak memory of each session beside the session's tokenslaunch, usage, cost
Sources and replayTranscripts, kept in the record, reached by citation and swept on a clock. Frozen-context replay on the recorded decision contexts. Re-enactment of a session at its commit, against the tape of its memory tool calls. The tapes use the transcripts' clock unless they are pinned. A replay manifest on each decision context and tape, and the replay state of a tapetranscript, replay, reenact run, report, state, tapes, show, pin, unpin
The event logEach write, read and send goes into the append-only log of its domain, with a label, and with ids and digests only. The log feeds the index, against a bound of 60 seconds. A materializer builds the index again from the log and replays the ledger's events. Lineage reads the log back and forward. An erasure withholds the entries that are one step forward. The log marks each event of a session that read outside contentlog show, feed, freshness, materialize, outside, lineage, withheld list, release; MCP log, lineage, outside_readers
The platformAgent definitions, templates, eval suites and harness defaults as artifacts in a platform domain. They load only after a person verifies themplatform list, show, golden --platform
Long timescalesDated identifiers and the registry of units, owners and personal domains, with its check. Proposals to a personal domain. A recovery bundle, its restore with the erasure journal and a claim epoch, and the restore drill. A declared outage, in which a session works from its loaded T0 and its handoff waits on a queue. Evidence tasks for the horizon scannerregistry check, resolve, proposal list, admit, refuse, expire, recover bundle, journal, drill, restore, outage status, declare, end, horizon schedule
Autonomy levelsEach version of a task definition has a level: person, review or checks. Work that is handed in below checks waits for a verdict. The evaluator grades handoffs on a held-out suite, and a passed run lets the level go up one step. A work outcome puts it down one step. A candidate version passes a safety gate and a performance gate. Repeated refusals of one agent are a probing alarm of the curatortask verdict, outcome, platform level, grade, raise, gates, curator --telemetry; MCP verdict, autonomy, grade, raise_autonomy, candidate_gates
Vendor driftA pinned probe set per model, checked against a baseline, detector by detector. Confirmed drift opens a drift window, and nothing that an agent wrote inside a window is promoteddrift probe, drift check, drift window open, close, list
MeasurementThe read-path claims on this record, a golden recall suite, and the evaluation with memory against without memory. The metric table of the paper with its targets, and the times of a tasksavings, golden, scripts/eval.py, metrics, task times; MCP metrics, task_times
Limits and landingThe five limits, each in its own unit, and the raise of a limit by an approval. A landing queue, in which the change of a task waits until a person lands itlimits, limits raise, task queue-landing, landing show, land; MCP limits, landing, queue_landing
EvaluationThe five arms as session settings that the launcher gives. A plan with a margin and seeds, runs paired with a baseline arm, the replay traps, and a scorecard kept in the platform domaineval arms, plan, score, scorecards, launch --arm --as-of --eval-plan --eval-task --eval-seed, serve --arm --as-of, scripts/eval.py; MCP settings, scorecards, score_evaluation
InterchangeBundles at or below a label, erasure with a stub and a receipt, and taps as WASI components. An export without a destination stays under the root, and its answer names no entryexport, import, erase, tap; MCP export
ToolsFetch and search as taps that an agent calls in a turn. The policy decides every request at the session label. The answers are scanned and kept as sources. Or hosted: a tool server serves the same components, and another launcher calls it through its egress. This path reaches only the hosts that the calling session may reach, and says where it went. The source keeps thattool, source, tool-server; MCP fetch, web_search
GofannonIts deployed agents as a tool tap on the same terms: listed, run and read back. Also a worker that runs one of them on the ledger's tasks and files its result as the handoffgofannon agents, gofannon work; MCP gofannon
TracesOpenTelemetry spans for model calls, reads, policy decisions and task transitions, to any OTLP collectorOTEL_EXPORTER_OTLP_ENDPOINT

From the command line:

echo "Stopped at step 3. Next: digests." | amem write --kind handoff --title "Import, step 3"
amem search digests
amem search digests --type handoff --since 2026-11-01T00:00:00Z
amem get mem-me-xxxxxxxx
amem get mem-me-xxxxxxxx#decision          # one section, by its anchor
amem get mem-me-xxxxxxxx --json            # with its version and the related entries
amem task create "Finish the import" --priority 5
amem task admit task-me-xxxxxxxx
amem work --harness claude                 # claim the top task, run the harness on it
amem recall "how does the import retry?" --provider anthropic
amem recall "how does the import retry?" --answer-kind fact --context-tokens 120000
amem curate --auth gateway --contradictions  # one curation cycle
amem quarantine list
amem lineage mem-me-xxxxxxxx               # what was written and sent after a read of a bad entry
amem lineage mem-me-xxxxxxxx --back        # what the session read before it wrote the entry
amem replay <session> --model gemma4-26b   # the same decisions, another model
amem reenact run <session> --auth gateway --model qwen3.8-27b --runs 3   # the same task again
amem reenact report <session>              # each harness and model against the tape
amem cost                                  # spend, wall clock, CPU and memory per session and task
amem savings                               # the paper's read-path claims, measured
amem savings --judge-provider anthropic   # with a small model judging what was "used"
amem metrics                               # the paper's metric table and its targets
amem limits                                # the five limits, each in its own unit
amem limits raise upkeep --to 40           # your approval raises a limit for 24 hours
amem landing show main                     # the changes that wait to land

crates/memory/tests/cli.rs runs the paper's first milestone from end to end against the built binary. scripts/conformance.py runs the same steps over MCP against any server that exposes the surface (make conformance). A serving layer that passes it serves the harnesses that this one serves.

The demo

make demo-all HARNESS=claude runs the whole demo, in acts, on one record. The record is DEMO_ROOT, ~/memory-demo by default. The demo seeds it from the Markdown directories in DEMO_FROM. The acts that need a model use local/.virtual-key on llm.apache.org, so they need the network. Act 9 reads api.github.com. ACTS="1 4" runs a subset. Act 7 gives the record a second domain, the platform domain. Thus, run the acts in order on a new record. Each act and each step starts with a rule, a number and a sentence about what it shows. TRANSCRIPT=demo.txt also writes the whole run to that file as plain text. You can read it back with docs/demo-narrative.md, which holds the presenter's cues and a handout keyed to the step numbers. DEMO_FROM is examples/decisions docs by default: a small fictional decision register and the papers. The demo and the evaluation set ask about the decision register.

Run make demo-ready HARNESS=claude first. It makes the demo ready to run:

  • It seeds the record when there is no record. RESET=1 starts a new demo record in place of the old one.
  • It builds the harness image at its pins when the unpacked image is not at its pins. Then it unpacks the image into the record.
  • It checks that the gateway answers with the key.
  • It shows the logins that amem doctor finds.

It says what is missing and how to fix it. At the end, it shows the command to run. Where wslc.exe builds the image, the demo needs no podman. The local stack needs podman. make local-up now says how to fix a shell that has no /run/user/<uid>.

  1. The read path. The demo seeds a few hundred entries. A harness works a real task from T0 and a handoff. The demo measures the savings.
  2. Curation, and the trust tiers. A curation cycle. A curator run whose rewrite goes in at curated. A person approves an entry for verified.
  3. The perimeter. The policy holds in quarantine a write that speaks to agents. Then lineage from the event log, policy as memory with a scoped exception, and the read filter. An erasure and a copy at a lower label wait for a person's approval of one version. A spend limit refuses a call.
  4. The task fabric. The rubric, compiled from a strategy. A position, a task pinned to it, a seconded session and a retirement. A rescore along the edges. Subagents go on the board. A follow-up task brings back their reports, and its completion closes the task that delegated.
  5. Watching it. Traces in a collector, the read metrics, the metric table of the paper, the limits with a ceiling on upkeep and a landing queue, drift probes, transcripts by citation, and replay. Then the freeze: a drift window, and a promotion that it stops.
  6. The evaluation. The five arms, and one question under each arm. A plan that fixes the margin and the seeds. Then the same questions go to a harness under each arm. The demo grades the answers, counts their tokens, and keeps a scorecard with the replay traps.
  7. The platform. An agent definition, an eval suite and a default model as entries in a platform domain. They load only after a person verifies them. A harness works a task under the definition. The demo scores the suite and gives the cost of the run in every resource that the host counts.
  8. Run it again. The demo re-enacts a session from act 6 from its tape, on its own model and on another model. It scores each run on how far it kept to the original.
  9. From outside. The GitHub tap files the open issues of a real Apache repository as proposed tasks. Its grant reaches one host. The tap files each issue once, and a person admits it.
  10. The record moves. The event log, and the index fed and rebuilt from it. An export at a label. An import under another owner. An erasure that refuses the text when the bundle comes again. An erasure that follows lineage: it withholds the entry written after a read, and its receipt names the send.
  11. What this is not, yet. The demo reads the two lists from the top of this page.

Checks

make init installs the pre-commit hook. The hook runs make check. When a commit stages only Markdown, the hook runs only the guard's tests. make check runs these:

  • formatting
  • clippy with -D warnings
  • the workspace‘s tests, which include the browser reader’s tests under a Chrome from CHROME or Playwright's image
  • the conformance script's own test against a fake server, with one defect switched on in each run
  • the guard and docs-only scripts
  • unsafe-code and taps checks

make verify adds cargo deny, machete, coverage with a minimum of 90% on lines, and the WebAssembly build. CI runs these checks on each pull request that changes more than Markdown, and it runs the tests on Linux, macOS and Windows.

Two of those tests reach outside the workspace. A host can cause either of them to fail for reasons that are not related to the change that you make.

The PostgreSQL half of the conformance suite starts an embedded server. On some hosts, this server comes without the UTC zone. It then stops with invalid value for parameter "TimeZone": "UTC". MEMORY_PG_URL names a different server to use instead. Each test gets a database of its own on that server, and drops the database after the test:

docker run -d --name pg-test -e POSTGRES_PASSWORD=pg -p 55432:5432 postgres:17
until docker exec pg-test pg_isready -q; do sleep 1; done
export MEMORY_PG_URL='postgres://postgres:pg@127.0.0.1:55432/postgres'

Select a port that nothing else holds. A host with its own PostgreSQL clusters has 5432 in use, and often 5433 also. Then the container cannot bind. It stays in Created and logs nothing. But the port still answers. Thus the test reports a server that does not authenticate, not a server that is absent.

The companion test loads the extension unpacked. Branded Google Chrome refuses this (--load-extension is not allowed in Google Chrome, ignoring). Chrome is first in the search, and it starts, so the test selects it. Then the test waits for its full two minutes, and does not fail immediately. Point CHROME at a Chromium. You can use Playwright's Chromium:

npx playwright install chromium        # if there is none already
export CHROME="$(ls -d ~/.cache/ms-playwright/chromium-*/chrome-linux64/chrome | head -1)"

Layout

PathWhat
crates/coreEntries, frontmatter, bundles, digests, labels. No I/O
crates/storeThe record over OpenDAL
crates/indexSQLite FTS5 index, summaries first
crates/ledgerTasks, leases, origin dedup, the rubric; SQLite and PostgreSQL
crates/policyThe grants file, the Rego policy through regorus, the write scan and the gates
crates/serverThe MCP surface, prefetch, transcripts and decision contexts, the event log, tapes, the platform and sources
crates/egressThe way out: forwarding, metering, spend limits, recorded decision contexts
crates/sandboxConfinement in Linux namespaces, and a Seatbelt profile for macOS
crates/mountThe projection as a live mount, where the host has FUSE. The memory server itself serves the record as files. Every open of an entry is a get
crates/clientA typed MCP client for the ledger and the record, which the launcher and an orchestrator use
crates/otelOpenTelemetry traces over OTLP
crates/tapsTaps as WASI components, with exactly the access that their grant allows. The native fetch, behind the same gate
crates/fetchWhat fetch does with a page, which its component and the native fetch share: the URL split, redirects resolved, HTML made text, the answer shaped
crates/readerThe core crate for the browser reader, compiled to WebAssembly
crates/webThe web launcher: sessions in pseudo-terminals, a reading pane, the board, and the companion extension that fetches with the browser's logins
crates/wslc-apiThe WSL containers C API, bound by hand, Windows only
crates/memoryThe binary, amem: the launcher, the curator, the command line
taps/The taps: GitHub issues and comments, fetch, search and Gofannon
probes/drift.tomlThe pinned vendor-drift probe set
images/harnessThe harness image: the harnesses, Node, Python and amem, pinned by version, and Muse by its release channel
scripts/The demo and its acts, the evaluation, conformance
docs/The paper, the reference stack, the design book, seeding a foundation, proposals for llm.apache.org, the demo's narrative

Status

On 12 October 2026, the contracts that the paper had on that date were built and tested from end to end on one laptop. The paper gained more parts in November 2026, and the first list above names them. The demo runs them live against real harnesses, on the Foundation's gateway and a Claude login. Until now, a few parts ran only against stand-ins:

  • the Gofannon bridge, against a fake of its service
  • the search tool, against a fake of its service
  • Seatbelt, which ran only on a CI runner, with no harness

The first list above says this, with the rest of what is not built. The list after it gives what works only at demo scale. PLAN.md holds the decisions, the order of the work that is not built, and the order in which production backends go in.

docs/llm-apache-org.md gives what we propose to the Foundation's gateway, llmao at llm.apache.org, and why, from one trace across the wrapper and the gateway to the tool servers that the gateway hosts.