Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions skills/intake/intake.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <name>"
source scripts/prompt_sync.sh && prompt_sync_push "intake: file <name>" \
<prompt-path> dashboard.md dashboard.html state.json
```

`<prompt-path>` is the file `--apply` wrote (e.g. `draft/<type>/<target>/<slug>.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 <path>` — so a prompt filed without it is invisible on the phone
Expand Down Expand Up @@ -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 "<msg>" 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:
Expand Down
6 changes: 4 additions & 2 deletions skills/prm/closeout.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
27 changes: 22 additions & 5 deletions skills/prm/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand All @@ -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: <task>"
git status --short # every line: close's list or your sweep
source scripts/prompt_sync.sh && prompt_sync_push "complete: <slug>" \
complete/<YYYY>/<MM>/<slug>.md <removed-prompt-path> 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.
Expand Down
10 changes: 6 additions & 4 deletions skills/ship_library/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 — <task> at PR-open"`.
`prompt_sync_push "mind: autonomy_log — <task> 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 |`
Expand Down Expand Up @@ -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: <task-name> library shipped (#<issue>)" active.md`).
Do **not** record completion yet.

**The PR keys are schematised** — `PyAutoMind/REFERENCE.md` → "The PR keys".
Write one `- library-pr: <url>` line **per PR** (the key is repeatable; the
Expand Down Expand Up @@ -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 <slug> --date <completed> --from-file <tmp> --prompt <active-filename> --apply`

Then push Mind with
`prompt_sync_push "prompt: ship <task-name> (#<issue>) → complete"`.
Then push Mind with the paths `record` changed:
`prompt_sync_push "prompt: ship <task-name> (#<issue>) → complete" active.md active/<active-filename> complete/index.md complete/<YYYY>/<MM>/<slug>.md`.
3 changes: 2 additions & 1 deletion skills/ship_workspace/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ SHIP_EOF
python3 "${PYAUTO_MIND:-$(test -d organs/PyAutoMind && echo organs/PyAutoMind || echo PyAutoMind)}/scripts/lifecycle.py" record <slug> --date <YYYY-MM-DD> --from-file <tmp> --prompt <active-filename> --apply
```

Push Mind: `prompt_sync_push "prompt: ship <task-name> (#<issue>) → complete"`.
Push Mind with the paths `record` changed:
`prompt_sync_push "prompt: ship <task-name> (#<issue>) → complete" active.md active/<active-filename> complete/index.md complete/<YYYY>/<MM>/<slug>.md` (the same `<slug>` 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,
Expand Down
8 changes: 7 additions & 1 deletion skills/start_dev/start_dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <task-name> (#<issue>) → <next-skill>"
prompt_sync_push "prompt: route <task-name> (#<issue>) → <next-skill>" 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.
Expand Down
2 changes: 1 addition & 1 deletion skills/start_dev_for_user/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <task-name> (#<issue>) awaiting reporter info [user-facing]"`.
`prompt_sync_push "prompt: register <task-name> (#<issue>) awaiting reporter info [user-facing]" active.md`.

## Plan comment (milestone #2)

Expand Down
3 changes: 2 additions & 1 deletion skills/start_dev_for_user/start_dev_for_user.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <task-name> (#<issue>) → <next-skill> [user-facing]"
prompt_sync_push "prompt: route <task-name> (#<issue>) → <next-skill> [user-facing]" active.md
# planned.md instead of active.md when step 6 hit a conflict
```

## Notes
Expand Down
3 changes: 2 additions & 1 deletion skills/start_library/start_library.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <task-name> library repos in active.md"
prompt_sync_push "prompt: register <task-name> 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"
Expand Down
3 changes: 2 additions & 1 deletion skills/start_workspace/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ The ` - <repo>` 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 <task-name> workspace repos in active.md"`.
Push with `prompt_sync_push "prompt: register <task-name> workspace repos in active.md" active.md`,
adding `planned.md` when the entry was promoted from it.

## "Ready to develop" summary

Expand Down
Loading