Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# | baseline-production-private-addendum | command | |
# | baseline-production-synthetic | command | |
# | baseline-soak-docker | command | |
# | local-agent-loop | command | |
# | openmemory-ui-export-readback | command | |
# | parity-docker | command | |
# | real-world-first-generation-oss | composite | |
Expand Down Expand Up @@ -153,6 +154,13 @@ args = [
"soak",
]

[tasks.local-agent-loop]
workspace = false
command = "bash"
args = [
"scripts/local-agent-loop.sh",
]

[tasks.openmemory-ui-export-readback]
workspace = false
command = "bash"
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ ELF is a memory service for LLM agents that stores short, evidence-linked facts
Use the canonical setup runbook:

- `docs/runbook/getting_started.md`
- For coding/research agents that want a deterministic local first-value loop, use
[docs/runbook/agent-setup.md](docs/runbook/agent-setup.md) or run
`cargo make local-agent-loop`.
- For single-user production operation, backup, restore, and Qdrant rebuild, use
[docs/runbook/single_user_production.md](docs/runbook/single_user_production.md).

Expand Down
100 changes: 100 additions & 0 deletions docs/evidence/2026-06-23-local-agent-loop-drift-audit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
---
type: Drift Audit
title: "Local Agent Loop Drift Audit"
description: "Drift audit for the one-command local setup and agent integration recipes."
resource: docs/evidence/2026-06-23-local-agent-loop-drift-audit.md
status: active
authority: current_state
owner: docs
last_verified: 2026-06-23
tags:
- docs
- drift-audit
- agent-setup
source_refs: []
code_refs:
- Makefile.toml
- scripts/local-agent-loop.sh
- config/local/elf.docker.toml
- apps/elf-api/src/routes.rs
- apps/elf-mcp/src/server.rs
related:
- docs/runbook/agent-setup.md
- docs/runbook/agent_skills_cookbook.md
- docs/runbook/getting_started.md
drift_watch:
- Makefile.toml
- scripts/local-agent-loop.sh
- config/local/elf.docker.toml
- apps/elf-api/src/routes.rs
- apps/elf-mcp/src/server.rs
---
# Local Agent Loop Drift Audit

Purpose: Anchor the one-command local setup and agent integration recipe to the
current task, config, HTTP, and MCP surfaces.
Read this when: You need evidence behind `cargo make local-agent-loop`, the local
agent memory+knowledge demo, or the Codex/Claude/Cursor/MCP/CLI recipes.
Not this document: Production deployment, benchmark interpretation, or hosted
provider quality evidence.

## Watched Claims

- `cargo make local-agent-loop` is a repository-native entrypoint for the local
agent memory+knowledge loop.
- The deterministic local recipe uses `config/local/elf.docker.toml`, local Docker
Postgres/Qdrant, and local deterministic embedding/rerank providers.
- The local recipe imports source evidence, writes a source-linked memory candidate,
creates and applies a reviewable proposal, recalls approved memory, inspects recall
debug, and exercises correction/rollback.
- The deterministic path does not call `elf_events_ingest`, LLM query expansion, or a
hosted extractor.
- MCP client recipes use the current `elf-mcp` tool surface for agent-facing docs,
note ingest, search, and recall-debug calls.

## Evidence Anchors

- `Makefile.toml` defines `local-agent-loop`.
- `scripts/local-agent-loop.sh` owns the runnable local loop and writes artifacts
under `tmp/local-agent-loop/`.
- `config/local/elf.docker.toml` binds local HTTP/admin/MCP services to loopback and
configures local deterministic embedding/rerank providers with query expansion off.
- `apps/elf-api/src/routes.rs` exposes the demo HTTP routes:
- `POST /v2/docs`
- `POST /v2/notes/ingest`
- `POST /v2/searches`
- `POST /v2/recall-debug/panel`
- `POST /v2/admin/consolidation/runs`
- `POST /v2/admin/consolidation/proposals/{proposal_id}/review`
- `POST /v2/admin/notes/{note_id}/corrections`
- `apps/elf-mcp/src/server.rs` exposes the agent-facing MCP tools:
- `elf_docs_put`
- `elf_notes_ingest`
- `elf_searches_create`
- `elf_recall_debug_panel`

## Reverse Checks

- Run `bash -n scripts/local-agent-loop.sh` after script changes.
- Run `cargo make check-docs` after docs or task-name changes.
- Run the registered repository gate before handoff.

## Verdict

pass

## Required Updates

- Update `docs/runbook/agent-setup.md`, this drift audit, and
`docs/runbook/agent_skills_cookbook.md` if the local config, MCP tool names, or
demo route sequence changes.
- Do not convert the deterministic local recipe into a provider-backed quality claim
unless provider credentials, corpus ownership, and scored evidence are supplied.

## Citations

- `Makefile.toml`
- `scripts/local-agent-loop.sh`
- `config/local/elf.docker.toml`
- `apps/elf-api/src/routes.rs`
- `apps/elf-mcp/src/server.rs`
2 changes: 2 additions & 0 deletions docs/evidence/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,7 @@ Routes to: Drift audits and evidence concepts under `docs/evidence/`.
- `2026-06-22-knowledge-watch-rebuild-drift-audit.md`: Drift audit for the
changed-source Knowledge Workspace rebuild and reviewable memory-candidate
proposal contract.
- `2026-06-23-local-agent-loop-drift-audit.md`: Drift audit for the one-command
local setup and agent integration recipes.
- `external_memory_pattern_radar_latest.md`: Latest weekly external memory pattern
radar summary.
3 changes: 3 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ The split below is by question type, not by human-versus-agent audience.
`docs/spec/agent_memory_knowledge_system_v1.md`
- Need runbooks, migrations, validation steps, troubleshooting, or operational sequences ->
`docs/runbook/`
- Need one-command local setup, the minimal memory+knowledge demo loop, or
Codex/Claude/Cursor/MCP/CLI agent integration recipes ->
`docs/runbook/agent-setup.md`
- Need the single-user production backup, restore, and Qdrant rebuild path ->
`docs/runbook/single_user_production.md`
- Need benchmark commands or interpretation steps -> `docs/runbook/benchmarking/`
Expand Down
5 changes: 5 additions & 0 deletions docs/log.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,8 @@ logs.
checked-in snapshot that reruns adversarial, source-library, knowledge, and
production-readiness slices while preserving private/provider blockers and keeping
P5 queue labels unapplied pending main-thread acceptance.
- Added the one-command local agent loop for XY-1076, plus agent setup recipes for
Codex, Claude/Cursor-style MCP clients, generic MCP clients, and CLI workflows.
The new drift audit anchors the deterministic source import -> proposal approval
-> recall/debug -> correction/rollback route to current HTTP, MCP, config, and
task surfaces.
Loading