Merge pull request 'fix: fix: planner formula — MEMORY.md should be committed in PR, not gitignored (#397)' (#401) from fix/issue-397 into main
This commit is contained in:
commit
6f5888c561
3 changed files with 6 additions and 8 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -18,6 +18,3 @@ metrics/supervisor-metrics.jsonl
|
|||
.DS_Store
|
||||
dev/ci-fixes-*.json
|
||||
gardener/dust.jsonl
|
||||
|
||||
# Planner persistent memory (local only)
|
||||
planner/MEMORY.md
|
||||
|
|
|
|||
|
|
@ -166,7 +166,7 @@ resource+leverage gap analysis — reasons about VISION.md, RESOURCES.md,
|
|||
formula catalog, and project state to create up to 5 total issues (including
|
||||
promotions) prioritized by leverage. Phase 3 (journal-and-memory): write
|
||||
daily journal entry (committed to git) and update `planner/MEMORY.md`
|
||||
(gitignored, local only). Phase 4 (commit-and-pr): one commit with all file
|
||||
(committed to git). Phase 4 (commit-and-pr): one commit with all file
|
||||
changes, push, create PR. AGENTS.md maintenance is handled by the
|
||||
[Gardener](#gardener-gardener).
|
||||
|
||||
|
|
@ -183,7 +183,7 @@ issues — the planner is a nervous system component, not work.
|
|||
prediction-triage, strategic-planning, journal-and-memory, commit-and-pr)
|
||||
with `needs` dependencies. Claude executes all steps in a single interactive
|
||||
session with tool access
|
||||
- `planner/MEMORY.md` — Persistent memory across runs (gitignored, local only)
|
||||
- `planner/MEMORY.md` — Persistent memory across runs (committed to git)
|
||||
- `planner/journal/*.md` — Daily raw logs from each planner run (committed to git)
|
||||
|
||||
**Future direction**: The [Predictor](#predictor-planner) already reads `evidence/` JSON and files prediction issues for the planner to triage. The next step is evidence-gated deployment (see `docs/EVIDENCE-ARCHITECTURE.md`): replacing human "ship it" decisions with automated gates across dimensions (holdout, red-team, user-test, evolution fitness, protocol metrics, funnel). Not yet implemented.
|
||||
|
|
|
|||
|
|
@ -259,7 +259,7 @@ Format:
|
|||
|
||||
Keep each entry concise — 30-50 lines max.
|
||||
|
||||
### 2. Memory update (gitignored, local only)
|
||||
### 2. Memory update (committed to git)
|
||||
|
||||
Write to: $FACTORY_ROOT/planner/MEMORY.md (replace the entire file)
|
||||
|
||||
|
|
@ -287,7 +287,7 @@ title = "One commit with all file changes, push, create PR"
|
|||
description = """
|
||||
Collect all file changes from this run into a single commit.
|
||||
API calls (issue creation, prediction triage) already happened during the
|
||||
run — only file changes (journal entries) need the PR.
|
||||
run — only file changes (journal entries, MEMORY.md) need the PR.
|
||||
|
||||
1. Check for staged or unstaged changes:
|
||||
cd "$PROJECT_REPO_ROOT"
|
||||
|
|
@ -299,8 +299,9 @@ run — only file changes (journal entries) need the PR.
|
|||
a. Create a branch:
|
||||
BRANCH="chore/planner-$(date -u +%Y%m%d-%H%M)"
|
||||
git checkout -B "$BRANCH"
|
||||
b. Stage journal entries:
|
||||
b. Stage journal entries and planner memory:
|
||||
git add planner/journal/ 2>/dev/null || true
|
||||
git add planner/MEMORY.md 2>/dev/null || true
|
||||
c. Stage any other tracked files modified during the run:
|
||||
git add -u
|
||||
d. Check if there is anything to commit:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue