Repository navigation
Closed as not planned
Description
Findings on the memory PRs that were declined or deferred under the merge rule (fix ordinary-use bugs; log the rest here). One line each: link, class, reason.
From #104 (M1, memory skill and ~/.agent/memory script):
Round 1:
- Namespace project memory beyond the display name (edge case). Two projects share a name only across separate
--storesetups on one machine, or asFoo/fooon a case-insensitive Mac. Keying memory by store plus a stable project id is the fix if that ever happens; today a project's name is its identity in the app. - Install the memory helper on remote hosts (feature gap). Windows opened with
--hostrun tools on the SSH host, where~/.agent/memoryand the skill are not installed, so memory is local-only for now. Belongs with the remote daemons work, which also has to decide whose memory a remote bot reads. - Support worktrees whose common directory is not .git (edge case). Repositories made with
--separate-git-diror worktrees of a bare repository fall back to the worktree's own folder and getproject_unknown;--project NAMEworks there. The app's own task worktrees come from ordinary clones.
Round 2 (all need fact or index files written by hand, outside the script, or a race with a read-only diagnostic). If these ever matter, one pass should make every command go through a single "render, check limit, write" step and make facts validate files fully:
- Duplicate save rewrites an index already past 4 KiB (hand-edited input).
- rm can write an index still past 4 KiB (hand-edited input; refusing rm would also block the way out).
- show returns an oversized index unbounded (hand-edited input).
- A FIFO named NAME.md blocks open under the lock (hostile input).
- A fact file with no body passes parse (hand-edited input).
- verified is not checked as a real date (hand-edited input).
- check treats an unreadable index as missing (corruption).
- check without the lock can report a transient out-of-date index (race; check is a read-only diagnostic and a rerun clears it).
Round 3:
- show treats an unreadable index as empty (corruption; same fix as check's: ignore only NotFound).
From #120 (M2, memory indexes composed into a new agent's instructions):
- Pass the planned project when composing a new coordinator (edge case). New project composes before
.agents/project.tomlis written, so its coordinator gets only the person's index. A brand-new project has no project memory; this only matters when facts were saved under the name first or a project is re-created. Fix: letcomposetake the planned name.
From #121 (M3, Memory sheet and memory lines in task updates):
- Preserve removals that happen before the first memory read (edge case). A fact deleted after the app opens but before a lead's first task update is not reported as removed; the agent sees it missing when it reads memory. Fix: take a baseline per lead at window open.
- Count project scopes beyond the enumeration cap (edge case). The "N more projects" count stops at 1024 entries in
~/.agents/memory/projects. Fix: count every entry, list the first 100. - Preserve enough timestamp precision to detect rewrites (edge case). A fact rewritten within the same millisecond as the reported version is not re-reported. Fix: send a content hash with each fact.
- Freeze task news before taking its memory snapshot (race). A task that saves a fact and finishes during the memory read is reported without that fact; nothing later re-tells it unless another update comes. Fix: pick the task batch before reading memory.
- Surface failures while enumerating project memories (filesystem failure). An unreadable
~/.agents/memory/projectsshows as no projects at Home. Fix: report a non-NotFound read_dir error. - Retain removals beyond the notification cap (edge case). With more than 20 facts removed between two task updates, removals past the 20-line cap are never named. Fix: keep undelivered removals pending in
memSeen.
Generated by Claude Code
Metadata
Metadata
Assignees
Labels
No labels
Activity
Memory: a skill and a ~/.agent/memory script for facts later agents r…
Memory: a new agent starts with the person's and its project's memory…
lydakis commentedon Oct 10, 2026
From #123 (nightly memory cleanup):
Generated by Claude Code
lydakis commentedon Oct 10, 2026
From #123, round 2:
.cleanupwrite. Declined: the facts stay committed until the next save starts a cleanup that covers them.savekilled between writing the fact and writing the index. Declined:checkreports the stale index andindexrewrites it.Generated by Claude Code
lydakis commentedon Oct 10, 2026
From #123, round 4:
.cleanupis script-written JSON at 0600. Declined; the original start commit stays in git.eol=crlf. Declined; a CRLF fact would surface asmemory_invalid. The fix, if wanted later, isGIT_ATTR_NOSYSTEM=1in memory'sgit().Generated by Claude Code
lydakis commentedon Oct 10, 2026
From #126 (memory eval, decision 7):
~/.awsforwarded into each bot's HOME.chatgptruns getCODEX_HOME. Achatgptrun needs it, and its bots have the same full-access reach to Codex's login as any bot on that Mac.Generated by Claude Code
lydakis commentedon Oct 10, 2026
From #126, round 4 (merged after this round):
chatgptspec rebound to a custom URL and key hits it. Fix: giveCODEX_HOMEonly to the barechatgptspec.turn_budget_tokensandtimeout_sto the result.Generated by Claude Code
Memory eval: one command for decision 7, checked with no model (#126)
lydakis commentedon Oct 31, 2026
Closing as part of a backlog cleanup. Most entries point at code that no longer exists: the Python
~/.agent/memoryscript (memory is nowclient/src/memory.rs), and the app's Memory sheet and Home. The rest are crash windows and hand-edited files, declined under the merge rule. The one that matters more now that so much runs overnight, a save during a cleanup being reverted with it by the loss guard, has its own issue: #471. Bedrock forwarding for the memory eval stays out, since we don't run Bedrock evals.Generated by Claude Code