diff --git a/skills/intake/intake.md b/skills/intake/intake.md index 991cefe9..5e8c36a5 100644 --- a/skills/intake/intake.md +++ b/skills/intake/intake.md @@ -37,11 +37,18 @@ Shared routing context: `PyAutoBrain/skills/COMMANDS.md`. ```bash cd "${PYAUTO_MIND:-$(test -d "$PYAUTO_MAIN/organs/PyAutoMind" && echo "$PYAUTO_MAIN/organs/PyAutoMind" || echo "$PYAUTO_MAIN/PyAutoMind")}" - pyauto-brain intake --apply dashboard # writes dashboard.md + dashboard.html + pyauto-brain intake --apply dashboard # writes dashboard.md + dashboard.html + state.json pyauto-brain intake dashboard --check # must print "…are current" - source scripts/prompt_sync.sh && prompt_sync_push "intake: file " + source scripts/prompt_sync.sh && prompt_sync_push "intake: file " \ + dashboard.md dashboard.html state.json ``` + `` is the file `--apply` wrote (e.g. `draft///.md`); + for `formalise` or the `ideas` sweep, list every prompt file it changed. The + helper commits only the paths it is given and refuses, committing nothing, + if anything else in the tree has changed, if a changed file holds conflict + markers, or if a changed `state.json` does not parse. + One commit carrying the prompt **and** the regenerated pages. This is not optional tidying: the dashboard is how a task is picked up β€” tap πŸ“‹, get `/start_dev ` β€” so a prompt filed without it is invisible on the phone @@ -69,7 +76,8 @@ dev workflow (issue, branch, plan). Do not bypass the Brain. into a session. `--apply` also writes `dashboard.html`, the one-tap-copy twin GitHub Pages serves (real clipboard buttons; PyAutoMind's `pages_dashboard.yml` deploys it), with links derived from `repos.yaml`. - Dry-run prints it, `--apply` writes it (commit via `prompt_sync_push`), + Dry-run prints it, `--apply` writes it (commit via + `prompt_sync_push "" dashboard.md dashboard.html state.json`), `--check` exits 1 if the committed page has drifted. PyAutoMind's `dashboard_refresh.yml` self-heals a stale **render** on pushes to main β€” that is a backstop for a page nobody rebuilt, not a reason to skip step 4 above: diff --git a/skills/prm/closeout.md b/skills/prm/closeout.md index 54fc5904..311e3f7c 100644 --- a/skills/prm/closeout.md +++ b/skills/prm/closeout.md @@ -131,12 +131,14 @@ in step 6. Order is forced by the tooling, so do not reorder: changed" exit, only a `--check` that says the render is current: ```bash - pyauto-brain intake --apply dashboard # writes dashboard.md + dashboard.html + pyauto-brain intake --apply dashboard # writes dashboard.md + dashboard.html + state.json pyauto-brain intake dashboard --check # must print "…are current" ``` Never hand-edit either page. Commit the render **with** the record, then - `lifecycle.py check` and push Mind. `git show --stat HEAD` must name both + `lifecycle.py check` and push Mind with the `prompt_sync_push` line `close` + printed, plus any sweep paths ([reference.md](reference.md) β†’ "4. Mind: leave + the page true"). `git show --stat HEAD` must name both dashboard files beside the record, or leg 3 did not happen. **Push the branch you are on β€” never force `main`.** On a laptop that branch diff --git a/skills/prm/reference.md b/skills/prm/reference.md index 4597d96a..cd04e4ac 100644 --- a/skills/prm/reference.md +++ b/skills/prm/reference.md @@ -326,7 +326,7 @@ sweep and the reconcile above may both come back empty, this does not: `lifecycle.py record` alone changes what the page shows. ```bash -python3 "$BRAIN" --mind . --apply dashboard # writes dashboard.md + dashboard.html +python3 "$BRAIN" --mind . --apply dashboard # writes dashboard.md + dashboard.html + state.json python3 "$BRAIN" --mind . dashboard --check # "…are current"; exit 1 = drift python3 scripts/lifecycle.py check ``` @@ -343,15 +343,32 @@ to guess whether it is needed. `--apply` prints (Brain/Mind version skew) β€” a non-1 code is not a stale page, so read the message rather than re-rendering. -Then commit + push. `prompt_sync_push` runs `git add -A`, so check for unrelated -work first and use explicit pathspecs if any exists: +Then commit + push. `prompt_sync_push` commits only the paths it is given, and +refuses, committing nothing, when anything else in the tree has changed (another +session's work, or a path you forgot), when a changed file holds conflict +markers, or when a changed `state.json` does not parse. + +`lifecycle.py close` prints the exact call as its last line, built from what it +wrote: the record, the prompt it removed (`active/` **or** `draft/`, as the dry +run's `remove:` line says), `complete/index.md`, every registry it pruned +(`active.md`, plus `planned.md` / `parked.md` whenever the dry run's `registry:` +lines name them), `autonomy_log.md` whenever it wrote the glance shadow row, and +the render's `dashboard.md dashboard.html state.json`. Run that line, adding +every file the sweep and reconcile above changed (retired prompts, their +records, repointed `epics.md` / `draft/` references): ```bash -git status --short # unrelated work? -source scripts/prompt_sync.sh && prompt_sync_push "complete: " +git status --short # every line: close's list or your sweep +source scripts/prompt_sync.sh && prompt_sync_push "complete: " \ + complete///.md complete/index.md \ + active.md [planned.md] [parked.md] [autonomy_log.md] \ + dashboard.md dashboard.html state.json [sweep paths…] # [..] = when close named it git show --stat HEAD # names dashboard.md + dashboard.html? ``` +On a refusal for changes outside the paths, add the ones that are this +close-out's; leave another session's work alone and tell the human. + That last line is the leg's own check: a close-out commit that does not carry `dashboard.md` and `dashboard.html` beside the record did not regenerate, and the ledger's dashboard line would be a claim you cannot back. diff --git a/skills/ship_library/reference.md b/skills/ship_library/reference.md index 2c36f740..fde8dcb3 100644 --- a/skills/ship_library/reference.md +++ b/skills/ship_library/reference.md @@ -74,7 +74,8 @@ what the human validates instead of the pre-approval they didn't give: After PR-open, append the calibration row (`PyAutoMind/autonomy_log.md`, schema in that file's header; outcome starts `parked`/blank and is set at the human's merge decision) and push Mind with -`prompt_sync_push "mind: autonomy_log β€” at PR-open"`. +`prompt_sync_push "mind: autonomy_log β€” at PR-open" autonomy_log.md active.md` +(`active.md` carries the row's awaiting-merge status and PR keys). **Which table.** The calibration row goes in the **first** table of that file β€” the five-cell `| date | task | effective level | gates | outcome |` @@ -151,7 +152,8 @@ Options (i) new scripts and (ii) migration both route to `/start_workspace`; **Progress (option i/ii) β€” workspace work to follow:** post a "Library PR Created" comment (PR URLs, "Next: /start_workspace", API-change summary), set the `active.md` status to `library-shipped, workspace-pending`, add `library-pr:`, -push Mind. Do **not** record completion yet. +push Mind (`prompt_sync_push "prompt: library shipped (#)" active.md`). +Do **not** record completion yet. **The PR keys are schematised** β€” `PyAutoMind/REFERENCE.md` β†’ "The PR keys". Write one `- library-pr: ` line **per PR** (the key is repeatable; the @@ -192,5 +194,5 @@ ledger (issues #71/#81): (all the state `lifecycle.py check` drift-checks): `python3 "${PYAUTO_MIND:-$(test -d organs/PyAutoMind && echo organs/PyAutoMind || echo PyAutoMind)}/scripts/lifecycle.py" record --date --from-file --prompt --apply` -Then push Mind with -`prompt_sync_push "prompt: ship (#) β†’ complete"`. +Then push Mind with the paths `record` changed: +`prompt_sync_push "prompt: ship (#) β†’ complete" active.md active/ complete/index.md complete///.md`. diff --git a/skills/ship_workspace/reference.md b/skills/ship_workspace/reference.md index f2bef9de..bcf9e2e1 100644 --- a/skills/ship_workspace/reference.md +++ b/skills/ship_workspace/reference.md @@ -125,7 +125,8 @@ SHIP_EOF python3 "${PYAUTO_MIND:-$(test -d organs/PyAutoMind && echo organs/PyAutoMind || echo PyAutoMind)}/scripts/lifecycle.py" record --date --from-file --prompt --apply ``` -Push Mind: `prompt_sync_push "prompt: ship (#) β†’ complete"`. +Push Mind with the paths `record` changed: +`prompt_sync_push "prompt: ship (#) β†’ complete" active.md active/ complete/index.md complete///.md` (the same `` passed to `record`). If the task is not fully finished (e.g. only the library half shipped), leave it in `active.md` with an updated `status:` instead of moving it β€” any later session, diff --git a/skills/start_dev/start_dev.md b/skills/start_dev/start_dev.md index 360e0594..750ec0e9 100644 --- a/skills/start_dev/start_dev.md +++ b/skills/start_dev/start_dev.md @@ -155,9 +155,15 @@ Push the routing registration from step 6 (`/create_issue` pushed the rest): ```bash source "${PYAUTO_MIND:-$(test -d organs/PyAutoMind && echo organs/PyAutoMind || echo PyAutoMind)}/scripts/prompt_sync.sh" -prompt_sync_push "prompt: route (#) β†’ " +prompt_sync_push "prompt: route (#) β†’ " active.md +# planned.md instead of active.md when step 6 hit a conflict ``` +The helper commits only the paths it is given (relative to the Mind root). It +refuses, committing nothing, when no paths are given, when anything else in the +tree has changed, when a changed file holds conflict markers, or when a changed +`state.json` does not parse. Another session's edits are left to that session. + ## Notes - Always present the issue body for review before creating it. diff --git a/skills/start_dev_for_user/reference.md b/skills/start_dev_for_user/reference.md index 7018da5c..6db4971e 100644 --- a/skills/start_dev_for_user/reference.md +++ b/skills/start_dev_for_user/reference.md @@ -66,7 +66,7 @@ choice. If clear, proceed to the plan. If unclear: ``` 5. Tell the developer to re-run once the reporter replies. **Stop** (no plan, branch survey, or routing). The push carries the partial registration: - `prompt_sync_push "prompt: register (#) awaiting reporter info [user-facing]"`. + `prompt_sync_push "prompt: register (#) awaiting reporter info [user-facing]" active.md`. ## Plan comment (milestone #2) diff --git a/skills/start_dev_for_user/start_dev_for_user.md b/skills/start_dev_for_user/start_dev_for_user.md index a6529b9f..ced3485b 100644 --- a/skills/start_dev_for_user/start_dev_for_user.md +++ b/skills/start_dev_for_user/start_dev_for_user.md @@ -97,7 +97,8 @@ repo, branch, classification, plus the user-facing reminder ```bash source "${PYAUTO_MIND:-$(test -d organs/PyAutoMind && echo organs/PyAutoMind || echo PyAutoMind)}/scripts/prompt_sync.sh" -prompt_sync_push "prompt: route (#) β†’ [user-facing]" +prompt_sync_push "prompt: route (#) β†’ [user-facing]" active.md +# planned.md instead of active.md when step 6 hit a conflict ``` ## Notes diff --git a/skills/start_library/start_library.md b/skills/start_library/start_library.md index 2cac39d5..61fed54b 100644 --- a/skills/start_library/start_library.md +++ b/skills/start_library/start_library.md @@ -105,7 +105,8 @@ informational and may be omitted. Then: ```bash source "${PYAUTO_MIND:-$(test -d organs/PyAutoMind && echo organs/PyAutoMind || echo PyAutoMind)}/scripts/prompt_sync.sh" -prompt_sync_push "prompt: register library repos in active.md" +prompt_sync_push "prompt: register library repos in active.md" active.md +# add planned.md when step 2 promoted the entry from it ``` ### 6. Explore key files + present "ready to develop" diff --git a/skills/start_workspace/reference.md b/skills/start_workspace/reference.md index 94134e62..62c9b609 100644 --- a/skills/start_workspace/reference.md +++ b/skills/start_workspace/reference.md @@ -71,7 +71,8 @@ The ` - ` bullets are the claim `worktree_check_conflict` reads. Both informational and may be omitted. Standalone mode β€” same shape without `library-pr:` and with only workspace repos. -Push with `prompt_sync_push "prompt: register workspace repos in active.md"`. +Push with `prompt_sync_push "prompt: register workspace repos in active.md" active.md`, +adding `planned.md` when the entry was promoted from it. ## "Ready to develop" summary