chore(memory): delete internal/memory (unification slice 5) (#889)

Deletes internal/memory (Manager, builtin.Provider, memory_edit tool) now
that slices 2-4 built the CRUD engine family and its per-turn read/write
seams. Also deletes internal/infrastructure/memory/builtin/provider.go (the
memory_edit adapter over the old package -- its markdown store already
relocated in slice 2), internal/tools/provider/memory (the old tool
registration, redundant with slice 4's memory_create/update/delete/list),
config.Memory.{Provider,ProviderConfig} and the validateMemory rejection
that existed only to complain about Provider, and webui.MemoryStatus/
MemoryProviderHandle plus its dashboard page -- never wired in production
(s.Memory was always nil), confirmed by /api/capabilities always reporting
"memory": false.

Rewrites ARCHITECTURE.md's "Memory engine family" section to describe the
current engine (internal/domain/memory contract, internal/infrastructure/
memory builtin engine + its builtin/ markdown store, the per-turn read seam
in gateway/turn_memory.go, the per-turn write tools in
gateway/turn_memory_tool.go) instead of the deleted Manager. Fixes two
docs/architecture/configuration.md rows that described the deleted
manager's literals and SaveConfig mechanism.
This commit is contained in:
sam authored and GitHub committed 2026-09-19 13:43:16 +10:00
1 parent a18067d85d
commit 04d4d8f1d8
43 files changed
+92 -5619

No files matched your search

-1
View File
@@ -60,7 +60,6 @@ const READS = [
["captures", [10]],
["mappings", []],
["bindings", []],
["memory", []],
["chatSessions", []],
["chatMessages", ["s"]],
["chatTurns", ["s"]],
+2 -2
View File
@@ -5,7 +5,7 @@ import { hiddenRoutes } from "../src/capabilities.jsx";
const routes = [
{ path: "/", label: "Dashboard" },
{ path: "/logs", label: "Logs", section: "logs" },
{ path: "/memory", label: "Memory", section: "memory" },
{ path: "/skills", label: "Skills", section: "skills" },
{ path: "/tasks", label: "Tasks" },
];
@@ -13,7 +13,7 @@ const routes = [
// section the serving process cannot back renders as permanently empty, which
// reads as "nothing has happened" rather than "not served here".
test("a section the server cannot serve is hidden", () => {
assert.deepEqual(hiddenRoutes({ logs: false, memory: true }, routes), ["/logs"]);
assert.deepEqual(hiddenRoutes({ logs: false, skills: true }, routes), ["/logs"]);
});
test("sections with no capability entry stay visible", () => {