Skip to main content
Version: 1.16.0-dev

Use AgentWorks memory, evaluations, and release evidence

AgentWorks treats context, memory, tests, and release evidence as declared, inspectable inputs to an agent rather than state hidden inside a framework. That lets you explain why a run saw a piece of information, and why a release was allowed into an environment. In 1.16.0 these responsibilities are split: the runtime assembles context and keeps run memory and artifacts; the test kit runs tests on your machine; and Flightdeck, which hosts the AgentWorks control plane, owns evaluation records, signed release evidence, and promotion gates.

CapabilityWhere it lives in 1.16.0
Context assembly and its explanationThe runtime, for every run
Conversation and working memoryThe runtime, headless or connected
Entity memory (remember, recall)A headless runtime's own SQLite file; Flightdeck, for a runtime enrolled with it
Artifacts for large tool and sandbox resultsA headless runtime's data folder; a connected runtime keeps none
AgentTest and simulationsThe test kit, on your machine, with no server
Evaluation datasets, evaluators, baselinesFlightdeck's hosted AgentWorks control plane; not served by the runtime
Signed release evidence and promotion gatesFlightdeck signs and gates; the runtime only verifies

How is a run's context assembled?​

spec.context in the AgentSpec sets the budget and policy, and the release pins it:

spec:
context:
maxTokens: 64000
loadingPolicy: ON_DEMAND # ALWAYS, ON_DEMAND, SEMANTIC, TOOL_TRIGGERED, SKILL_TRIGGERED or NEVER_INLINE
cacheAware: true
compaction: {enabled: true, threshold: 0.8, strategy: summary}

Reusable material is valid only for the same workspace, release, deployment revision, policy, and dependencies, and run-specific input is rebuilt for every continuation. To see why a run received what it did, read GET /api/v1/runs/{id}/context: it lists the context compiler's decisions (included, excluded, and compacted items, their provenance, and token estimates against the budget) without the content itself, so the explanation never becomes a second copy of a prompt or of retrieved personal data. It needs WORKSPACE_READ.

What memory does an agent keep?​

spec.memory turns tiers on with enabled: true: conversation, working, semantic, and episodic.

  • Conversation and working memory work on both kinds of runtime. A headless runtime keeps them in its SQLite file, beside the runs, so back them up with that file.
  • Entity memory is facts about a subject, such as a lead id, saved and read with the built-in tools agentworks:remember:1.0.0 and agentworks:recall:1.0.0. Facts belong to the workspace, so every agent of the workspace reads what any of them saved, in any later run, and no other workspace reads them. A fact is masked before it is kept (a PAN becomes [PAN_1], a card number [CARD_1]) and lives for agentworks.memory.entity.time-to-live, 90 days by default. A headless runtime keeps the facts in its own SQLite file, never reads an expired one, and deletes expired facts every ten minutes; it serves no API to list or forget them. A runtime enrolled with Flightdeck keeps them in Flightdeck, which lists and forgets them.
  • Semantic retrieval: AgentWorks bundles no vector database and does not claim production vector retrieval. If you add a knowledge provider, document its authorization, retention, and failure behavior yourself.

An agent offers the memory tools through a capability pack, and a permission allows them, as for any tool:

capabilityPacks:
- id: memory
version: 1.0.0
tools:
- tool: agentworks:remember:1.0.0
effect: {resource: entity-memory, action: write, risk: low}
- tool: agentworks:recall:1.0.0
effect: {resource: entity-memory, action: read, risk: low}
permissions:
- {tool: "agentworks:remember:1.0.0", environment: production, resource: entity-memory, action: write, maximumRisk: low}
- {tool: "agentworks:recall:1.0.0", environment: production, resource: entity-memory, action: read, maximumRisk: low}

What happens to a large tool result?​

On a headless runtime, a tool's or a sandbox's result larger than 32 KiB is not handed to the model inline. The runtime keeps it as an artifact of the run and gives the model a reference instead:

{"artifactRef": "<artifact-id>", "mediaType": "text/plain", "bytes": 40960, "digest": "sha256:<content-digest>"}
  • The artifact belongs to the runtime file's workspace and names its run. Its content is stored once per digest, checked against that digest whenever it is read, and limited to 100 MiB.
  • The record is in the SQLite file and the content in the artifacts folder beside it, in the data folder. Back up both together: a record whose content is gone is quarantined.
  • Every five minutes the runtime removes uploads a crash left half written, quarantines an artifact whose content no longer matches its digest, and deletes content no artifact refers to.
  • Nothing in the runtime file turns this on or off.

A runtime enrolled with Flightdeck keeps no artifacts in 1.16.0: a large result is handed to the model inline, and a tool whose result must be an artifact is refused with TOOL_ARTIFACT_STORE_REQUIRED.

How do you test an agent without a server?​

The test kit is a JUnit library for agent tests and simulations. It replaces the model, tools, MCP and A2A peers, the clock, and the network with deterministic fakes, so the same seed reproduces the same trace. Expectations check the output, tool activity, policy decisions, usage, and failures, and the result is written as machine-readable evidence. Simulation recipes add seeded faults, such as timeouts, refusals, and malformed results, to test recovery and cleanup.

Run a project's tests with the CLI, which calls no server and passes the child process no AgentWorks credential:

agentworks test run
agentworks simulate run

The test kit is not in the released image or the published library set; using it requires authorized access to the private release tag. A passing simulation is engineering evidence, not evidence that a real provider or network was tested.

Where do evaluations run?​

Not on the runtime. In 1.16.0 the runtime serves no evaluation API, and the CLI has no evaluation commands. Evaluation datasets, evaluators, and baselines are records of the AgentWorks control plane that Flightdeck hosts, and Flightdeck's AgentWorks Features page lists them read-only. Treat deterministic checks in the test kit as the evaluation you can run yourself in this release.

How do evidence and promotion gates control a release?​

Releases, promotions, and their gates belong to Flightdeck. A release's page in Flightdeck creates a signed evidence bundle and an agent bill of materials (ABOM) for that exact release. An environment's page holds its promotion policy, a versioned JSON document of typed gates:

GateWhat it requires
REQUIRE_PRIOR_ENVIRONMENTThe release was deployed in the named environment first.
CHANGE_FREEZENothing; every promotion into the environment is denied.
TEST, EVALUATION, SECURITY, COST, LATENCYA recorded verdict of that kind, optionally with a status or a metric threshold.
HUMAN_APPROVAL, SEPARATION_OF_DUTIESAn approval, and an approver who is not the person who produced the release.
RELEASE_EVIDENCEA valid signed evidence bundle for this release.

A promotion whose required evidence is missing, revoked, or tied to another release fails closed, and the deployments already serving keep their release. A runtime never signs evidence. It verifies it against the keys in agentworks.release-evidence.trusted-public-keys.<id>, minus agentworks.release-evidence.revoked-key-ids, and a runtime given a signing setting (active-key-id, private-key, or required) refuses to start and names what replaced it. A headless runtime has no promotion: changing its runtime file is the change. See releases and deployments.

Next steps​