Skip to content

Commit 132d799

Browse files
committed
Resolve worktree-aware Mnemosyne collection names
Add resolveProjectCollectionName which uses git rev-parse --git-common-dir to find the durable project directory from any linked worktree, preventing memory loss across worktree switches.\n\n- Replace naive basename(cwd) lookup with git-common-dir resolution\n- Add normalizedProjectCollectionName helper\n\nDocs:\n- Document Attached Workflow persistence and Verified Plan semantics in CONTEXT\n- Update TODO memory bug description from stale install.sh entry\n- Reset 05-phone-ideation plan to ready_for_work with abandoned worktree\n- Add attached-mode-prd.md
1 parent ec71a18 commit 132d799

5 files changed

Lines changed: 590 additions & 12 deletions

File tree

CONTEXT.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,12 @@ command definition, prompt command
474474
- During an **Attached Workflow**, the **External Agent Host** supplies every model call while RunWield remains the
475475
authority for durable Plans, Plan Lifecycle, review, validation outcomes, recovery evidence, Work Records, and
476476
organizational memory.
477+
- An **Attached Workflow** persists structured workflow evidence and durable artifacts without copying the **External
478+
Agent Host** conversation transcript; ordinary host conversations remain outside RunWield entirely.
479+
- Planned implementation in an **Attached Workflow** uses a RunWield-owned worktree by default and may use an **External
480+
Agent Host** worker while preserving the invoking host conversation.
481+
- A **Verified Plan** has the same meaning in Attached, Managed, and Native experiences; host limitations cannot weaken
482+
Workflow Validation semantics.
477483
- **Attached Mode** is a durable first-class product mode; movement to Managed or Native experiences is an optional
478484
progression rather than a prerequisite for complete Attached workflows.
479485
- An **External Work Source** owns demand management, while RunWield owns planning, execution, Plan Lifecycle, and

TODO.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
## Bugs
44

5-
- [ ] Install.sh should init mnemosyne global collection with `mnemosyne init --name global`
5+
- [ ] Memories are being stored and then lost in worktrees, mnemosyne is full of collections named after work trees. the
6+
memory_* tools should be worktree aware and store in the projects;s collection not a worktree's collection
67
- [ ] CONTEXT-FORMAT file is not extracted on a fresh install.
78

89
- [ ] P0 before marking a plan as verified we need to check that: all changes in the worktree were actually committed,

0 commit comments

Comments
 (0)