fix: planner formula uses $FACTORY_ROOT for per-project artifacts — causes cross-repo contamination (#541)
Replace $FACTORY_ROOT/planner/ and $FACTORY_ROOT/vault/ references with $PROJECT_REPO_ROOT/planner/ and $PROJECT_REPO_ROOT/vault/ in the planner formula and planner-run.sh. Planner artifacts (journal, memory, prerequisite tree) and vault state are per-project, not factory-owned. The old paths caused cross-repo contamination when the planner ran for non-disinto projects. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
02fa38fdfd
commit
db69a79b2e
2 changed files with 12 additions and 12 deletions
|
|
@ -47,7 +47,7 @@ build_context_block VISION.md AGENTS.md RESOURCES.md planner/prerequisite-tree.m
|
|||
|
||||
# ── Read planner memory ─────────────────────────────────────────────────
|
||||
MEMORY_BLOCK=""
|
||||
MEMORY_FILE="$FACTORY_ROOT/planner/MEMORY.md"
|
||||
MEMORY_FILE="$PROJECT_REPO_ROOT/planner/MEMORY.md"
|
||||
if [ -f "$MEMORY_FILE" ]; then
|
||||
MEMORY_BLOCK="
|
||||
### planner/MEMORY.md (persistent memory from prior runs)
|
||||
|
|
@ -57,7 +57,7 @@ fi
|
|||
|
||||
# ── Read recent journal files ──────────────────────────────────────────
|
||||
JOURNAL_BLOCK=""
|
||||
JOURNAL_DIR="$FACTORY_ROOT/planner/journal"
|
||||
JOURNAL_DIR="$PROJECT_REPO_ROOT/planner/journal"
|
||||
if [ -d "$JOURNAL_DIR" ]; then
|
||||
# Load last 5 journal files (most recent first) for run history context
|
||||
JOURNAL_FILES=$(find "$JOURNAL_DIR" -name '*.md' -type f | sort -r | head -5)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue