Repository navigation
feat: remove the memory feature family and adopt agent-native session compaction - #710
Merged
Merged
Conversation
…gs command Drops the Knowledge OS app, /knowledge route, palette Knowledge domain and memory fan-out, and the Go palette Knowledge domain and settings.memory command. Unknown persisted apps are skipped by guarded window lookups. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…panels Deletes /settings/memory and its section plumbing, and trims Roles to coordinator and auto_title (ADR-002 drops dream, memory_extractor, memory_controller, checkpoint_summary). ROLE_SUPPORTS_AGENT and the empty advanced-field map collapse. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…, SOUL, and gateway copy Home System goes from six tiles to five, memory.* activity rows are no longer quiet, the Memory trigger group and memory.consolidated leave the catalog, profile delete loses its Memory entries row, the SOUL editor stops serializing memory_policy, and gateway consent copy omits memory. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…text-meter threshold warning Deletes the unused session-ledger adapter chain, drops the memory tool family icon so old compozy__memory_* calls render generically, removes the saved-memory rewind copy, and removes the meter warning state, tick, and threshold tooltip now that CompozyOS no longer compacts at a threshold. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Drops the Knowledge selectors, artifacts, and scenario contract, stops the runtime harness from enabling memory, retargets settings restart parity to Automation/Observability/Providers, moves the E2E-023 envelope to 11 apps, and adds E2E-008 for a saved layout holding a retired knowledge window. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Its only app consumer was the Knowledge detail panel. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…native compaction Delete the memory docs section, the generated CLI memory subtree, the landing Memory/Dream section and its orphaned images. Rewrite config, sessions, hooks, extensions, tools, skills, workspaces, and operations pages without memory or CompozyOS-side compaction. Add the sessions/compaction page for bounded rebuilds, observed native compaction, and Compact now. Extend the retired-surface guards and the docs-truth tests, and regenerate DESIGN.md. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… session compaction Delete skills/compozy references/memory.md and every memory or CompozyOS-compaction mention, document compozy__session_compact and Compact now, and retarget the bundled-reference and large-resource offload fixtures. Drop the knowledge/ lab seeding and the internal/memory migration-skill rows from the repo skills and internal/CLAUDE.md. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… release note Remove memory from README, PRODUCT, COPY, the glossary, the release header, and the README diagram (re-rendered); add the Compaction glossary entry, the Memory removal section to the root and site migration guides, a breaking release note, and the change-impact audit with the v0.6.0 shim deletion list. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Delete the memory-only scenarios, journeys, and charters, repair dangling references, update the role, schema-stream, and window-envelope scenarios, rewrite the compaction scenarios for bounded rebuilds and observed native compaction, extend the retirement canary with an upgrade leg, and add the upgrade walk, Compact now, and real-adapter compaction scenarios. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…oval Remove the Knowledge app, Memory tile, and memory rows from the live OpenDesign boards, align the session-context boards with observed agent compaction and Compact now, and drop the memory backend from the ecosystem provide-surface docs. Archived _done boards stay untouched. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… dropped The transcript frame carrying the reply after a requested compaction also carries its maintenance prompt_delivery, whose spans list is null (a literal /compact sends no sections). The strict event schema rejected the whole frame, so the reply never rendered. The schema now accepts null, and the thread suite covers the reply after a compaction item. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
pedronauck
force-pushed
the
memory-removal
branch
from
October 8, 2026 16:54
44cd0c5 to
c80ac5f
Compare
This was referenced Oct 8, 2026
Merged
Merged
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements the Memory removal spec (
.compozy/tasks/memory-removal:_spec.md,_dx.md,_uiux.md,_tests.md, ADR-001–004).The change does two things:
knowledge/augmenter are removed from the daemon, API, CLI, native tools, MCP, Host API, SDKs, config, Web, docs and the official skill.Upgrades never block: retired leftovers in user-owned files are archived or ignored losslessly, layouts reconcile, database state migrates, and no file on disk is deleted.
~1,515 files changed, ~+25k / −123k. Most of the diff is deletion:internal/memory/**(~19k prod / 17k test lines), 40 HTTP/UDS operations, thecompozy memoryCLI tree, 35 native tools, the Knowledge app and the memory docs.What changed
1. Bounded rebuilds replace CompozyOS compaction (ADR-002)
boundReplayis shared by every rebuild path: resume, runtime replacement, affinity switch, continue/fork, native-bind fallback and launch.[session.derive]budget (max_replay_bytes131072 /max_message_bytes16384) and protects the newest messages while they fit.[N earlier messages omitted to fit the context budget], adds the workspace-authority line to every header, and adds thecompozy__session_historypointer only when messages were omitted and the tool is available.session.replay.boundedonce per rebuild that omitted messages. Nested derives keep inherited omission evidence.compaction*.go, checkpoint runtime/summarizer), lifecycle continuation,ResumeContextProvider,TransientModel,LedgerMaterializer,AllowStoppedParent, thecheckpoint-summaryspawn role, and[session.compaction].00009_unarchive_compaction_spans.sql:baseline_stale);2. Native compaction over ACP (ADR-004,
experimental)compozy/acp-go-sdkbranchcompaction-unstableadds the UNSTABLE compaction schema; it is pinned viago.modreplace tov0.13.6-0.20261008041747-ebd00ee4ba87.clientCapabilities.session.compaction: {};session/updatekinds into rawsystemevents (never messages);compactionsnapshots with ACP patch semantics (omitted/null/value, chunks buffered until terminal, corrections in receive order, late chunks dropped), a 16 KiB summary cap, and a claim-token scrub across chunk boundaries even with redaction off.session.compaction_fired {compaction_id, trigger, context_used, context_size}and onecontext.pre_compactper id, and at most onecontext.post_compact;/historystays raw ledger rows;contextusageand the Goal readers: occupancy isunknownafter a terminal compaction until a genuine later report, and prompt totals never restore it;session_usage_changedfires on compaction.ContextCompactionPayload, a labels-only patch, and thecompaction_triggermatcher (requested|agent).Manager.RequestCompactionwith the sharedResolveCompactionCommand(compact, thencompress).session_busy,compaction_unsupported, not-active.POST /api/workspaces/{ws}/sessions/{id}/compacton HTTP and UDS (202receipt /409);compozy session compact(waits;-o json);compozy__session_compact(structural error codes);PrepareActionPromptpath (prompt id, fences, recovery) and sends/<command>in maintenance mode. The outcome follows the current terminal snapshot status; agents without the command go straight to reseed.3. Memory runtime and public surfaces removed (ADR-001, ADR-003)
<turn-recall>or<workspace-knowledge-snapshot>;bootMemorySessionRuntimebecomesbootSessionRuntime;internal/memory/**andinternal/sessions/ledger, along with the boundary pairs, the memory migration stream, events/observe/sse memory members, the automation Dream observer andmemory.consolidated.memorytag are gone;StatusSchemaVersionis2026-10-07;coordinatorandauto_titleroles;memory_entries,memory_policyand thedreamtype are removed;compozy memorytree,compozy_host__memory__*, Host APImemory/*,memory.backend,memory.read|writeand thememory-backend-tsscaffold are removed;[memory],[session.compaction], the four memory roles,HomePaths.MemoryDirand builtindreaming-curatorare removed. Explicitconfig setof retired keys is still refused.4. Upgrade state and non-blocking shims (one shim generation, deleted in v0.6.0)
00128_retire_memory.sql:goose_db_version_memory;memory.consolidatedtriggers with their overlays, catalog, resource records, ingress bindings and owned secrets (run history stays);dream/memory-extractor/checkpoint-summarysessions and their dependents;PRAGMA foreign_key_checkempty.archiveRetiredMemorySettings):[memory], the retired roles,[session.compaction],memory.consolidatedtrigger entries (including non-contiguous sub-tables) and the retired hook matcher keys;# Archived retired memory and compaction settings; these values are inactive.block;memory_policy;compozy__memory*tool IDs and toolsets in policies;memory.consolidatedtrigger resources;AGENT.mdandSKILL.mdhooks.window_layoutresources drop unregistered apps (Knowledge), rewrite/settings/memoryto/settings, persist once, and logwindowmanager.snapshot_reconciled.5. Web (
_uiux.mdS1–S18)/knowledge; the Settings Memory page and memory role panels; the Home Memory tile (6 → 5);@compozy/uiContextBox.compact/compressis advertised; disabled while busy; inlinesession_busy/compaction_unsupportederrors);context_after);cleared_by, with compaction-aware wording.6. Docs, skill, QA, release
memorysubtree and the landing Memory/Dream content are removed (bento has two cards);config-toml.mdxis rewritten;sessions/compaction.mdx;references/memory.mdis deleted; compaction and Compact now are documented.change-impact.md§Memory removal (including the v0.6.0 shim list) and the root + site migration guides#memory-removal..release-notes/retire-memory-and-session-compaction-*.md.How it was built
memory-removalby the controller.context_after/cleared_byfor the S14 markers.AGENT.md/SKILL.mdmatcher shims;00128also retirescheckpoint-summarysessions;CI fixes found on the PR
make go-lintis clean.sessionsis a palette view; the OS app issession), which the new load-time reconcile now correctly drops. The other expected the removedworkspace_knowledge/durable_memoryaugmenters.DeliveryManifest.Spansproducednull, becauseappend([]T(nil), empty...)returns nil. A maintenance prompt (/compact, no sections) therefore serialized"spans": null. The Web's strict transcript schema rejected the whole frame, which dropped the agent's reply in that turn.slices.Clonein the ACP clone and in transcript redaction, with a regression in the transcript codec contract suite.nullfor already-stored events.Compatibility (SD-013)
00128drops memory DB state, dead triggers and legacy internal sessions (ADR-001 sign-off).00009restores compaction-archived history. No file under the home or a workspace is deleted or rewritten, except the losslessconfig.tomlarchive.docs/_memory/change-impact.md). New compaction surfaces areexperimental.@compozy/ui, tests and fixtures are deleted with no stubs.Verification
go build ./...;go vet ./...andgo vet -tags=integration ./...;make codegen-check(OpenAPI, SDKs, native tool catalog, CLI docs, migration-guide parity);webandpackages/ui(6,546 + 816 tests);product-language-check.docs/qa/scenarios, markeduntested.Test plan
RT-upgrade-memory-removal-home(previous release home with memory enabled + compacted sessions → upgrade)RT-session-compact-real-adapters(Compact now + Goal compaction onclaude-agent-acpandcodex-acp)🤖 Generated with Claude Code