Skip to content

Add agent episodic memory store and deterministic-run harness#223

Merged
JE-Chen merged 2 commits into
devfrom
feat/agent-memory-batch
Jun 19, 2026
Merged

Add agent episodic memory store and deterministic-run harness#223
JE-Chen merged 2 commits into
devfrom
feat/agent-memory-batch

Conversation

@JE-Chen

@JE-Chen JE-Chen commented Jun 19, 2026

Copy link
Copy Markdown
Member

Round-2 web-research follow-up (multi-agent), batch 5 — two pure-stdlib tools surfaced by the agent/QA research, each wired through all five layers (facade, AC_*, MCP, Script Builder) with headless tests + EN/Zh v15 docs + README sections.

Features

  • Agent episodic memory (utils/agent_memory) — AgentMemory/Episode: SQLite store of (goal → trajectory → outcome) episodes; remember/get/forget/recent/stats + recall(query) (dependency-free term-frequency / BM25-stand-in scoring) to inject past experience into the planner's context. AC_memory_* + ac_memory_*.
  • Deterministic run (utils/deterministic) — DeterministicRun context manager pins the RNG seed (restored on exit) and freezes time.time/time.time_ns (monotonic left intact), recording the choices via manifest(); seed_everything helper (AC_seed_everything + ac_seed_everything). Pure-stdlib — no freezegun dependency.

Why these

Surfaced by a multi-agent web-research round (AI-agent/MCP + QA angles) as genuine gaps verified against the codebase. Skipped near-redundant candidates (per-action latency capture overlaps the existing ActionProfiler).

Verification

  • test/unit_test/headless/test_agent_memory_batch.py — 10 tests pass.
  • ruff clean; radon no CC≥C; bandit clean; import je_auto_control PySide6-free.

@codacy-production

codacy-production Bot commented Jun 19, 2026

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 85 complexity · 1 duplication

Metric Results
Complexity 85
Duplication 1

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@JE-Chen JE-Chen merged commit 4ba1f46 into dev Jun 19, 2026
16 checks passed
@JE-Chen JE-Chen deleted the feat/agent-memory-batch branch June 19, 2026 03:12
@sonarqubecloud

Copy link
Copy Markdown

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