Repository navigation
park and resume as installed user commands: one word finds the estate and drives its own verbs, and resume rebuilds it on the next workstation (#82) - #83
Conversation
… and drives its own verbs, and resume rebuilds it on the next workstation (#82) #82, under Brett Heap's RULING of 2026-09-09 — ruling 1: `--repo` matches a LOCAL clone by origin and only `resume` clones, from the manifest; ruling 2: `resume` fast-forwards each sibling's tracking branch with `--ff-only` and REFUSES BY NAME one that is dirty or on a feature branch; ruling 3: `park` with no `<Name>` and no estate around the cwd REFUSES and lists the estates it found; ruling 4: the commands are `park` and `resume` — and the claim of 2026-09-10T00:19Z. Follows #77's S1 (opensoft/openBenches#30, merged 1a1445b) and #80. The front door over #80's targets, the way the `openRepoShape` command is the front door over `setup.sh`: `park InkRouter` from any folder on workstation A, `resume InkRouter` on workstation B. Two bash files at the repository root, 755, and `openRepoShape --install` now places all three. THEY ADD NO MECHANICS, and that is the whole design. They find the estate and run its own `make park` / `make resume`, which run the Speckit git extension's `park.sh` / `resume.sh` — the one implementation of the WIP commit, the push, the `git worktree add`, the `.specify/feature.json` rewrite and the soft reset. `park` writes nothing at all; everything `resume` writes it writes with `git clone`, `git pull --ff-only`, the root's own `make bootstrap` and the holder's own `make siblings`. Nothing is reimplemented, so there is nothing here for the extension to start disagreeing with. ESTATE RESOLUTION, shared by both and NOT a new rule: `<Name>` is a folder under `$PROJECTS_DIR`, else `~/projects/<Name>` then `~/Projects/<Name>` — people spell it both ways, and the two are deduped by inode because on a case-insensitive filesystem they are one directory and listing every estate twice would read as two estates. A FAMILY FOLDER wins over a standalone root of the same name, because the holder is what drives the members and a family answered as one of its own members would park one project and report the estate parked. What makes a directory a family folder is read and never guessed from its name: `<dir>/<basename>/family.yaml`, `kind: family-manifest`, and a `name:` that agrees — `setup-project.py`'s own `family_folder_here`, doubled name and all. With no `<Name>` the NEAREST estate at or above `$PWD` is used, so `park` inside a member of a family parks that member. `--repo <owner/name>` matches the `origin` of a clone under the projects directory, two levels deep, in any url spelling and case-insensitively; a FILESYSTEM PATH is refused rather than parsed, for the reason the extension's own `workspace_org_from_url` refuses one — `/srv/remotes/Name.git` has a name and no owner. THE BLOCK IS DUPLICATED IN BOTH FILES, deliberately: each is one file a person has on PATH, and a shared library would be a fourth file for `--install` to place and a broken command the first time somebody copied only one of them. `park [<Name>] [--repo <owner/name>] [--dry-run] [--lane <name>] [-- ARGS...]` resolves, then runs `make park ARGS='...'` in the holder or the root, streaming it, then prints WHAT DID NOT PARK and why none of it is park's to touch: commits on a `main` that `origin` has never seen, per repository — the holder or root, each working clone beside a holder, and each of their legs out of `.gitmodules` — with both refs required to exist locally, so a detached pinned checkout and a remoteless clone are silent rather than wrong; a DIRTY ROOT, which is where a pin bump happens and which also answers for a dirty leg (`git status --porcelain` at a root reports one as ` M <leg>`); and the one-line reminder that ignored files never travel at all. `members/<Project>` is deliberately never read: that copy is pinned and DETACHED and holds nobody's work, the same reason #80's holder dispatches to the sibling. One summary line, and make's exit code passes straight through — GNU make flattens the extension's 1/2/3 to its own exit 2 and prints `Error <code>`, which this neither rewrites nor rescues. `resume [<Name>] [--repo <owner/name>] [--workspace <owner/name>] [--org <org>] [--dry-run] [-- ARGS...]` does five things in order. (1) The workspace record: `${AGENT_PROTOCOL_ROOT:-$HOME/.agents}/workspace.yaml`, pulled `--ff-only` when its checkout is there, cloned from the config's own `repository:` when it is not, and on a machine with NO config at all clonable only by `--workspace <owner/name>` — which then writes the file's two lines. That is the only write to that file anywhere in this standard, it happens only because somebody named the repository, and a config that already names a different one is a refusal rather than an overwrite. (2) The manifest: `workspaces/<org>/<Name>.yaml`, matched case-insensitively because a standalone project's file is named for its `project.yaml` id while the folder a person types is the repository name; two orgs recording one name is a refusal naming `--org`. A family file gives the holder repository by the DOUBLED-NAME RULE (`<org>/<Family>`, since `projects[]` are the members and the holder is not one of them); a standalone file gives `projects[0].repository` and its `root:`. (3) The estate: absent, `mkdir -p` the folder, `git clone --recurse-submodules`, `make bootstrap`, and for a family `make siblings`; present, the holder or root fast-forwarded and bootstrapped, `make siblings`, then each member's working clone that was ALREADY THERE fast-forwarded on its tracking branch and given its own `make bootstrap` — a clone `make siblings` has just placed is on its branch with its bootstrap run already. RULING 2 is here: a clone that is dirty or not on its tracking branch is named, skipped and left exactly as it was, and the rest of the estate still comes back. (4) `make resume ARGS='...'`. (5) `make siblings`' OWN layout table, reprinted from the run's log rather than recomputed, because two readings of what is beside the holder is how they start disagreeing. A refusal or a finding makes the exit non-zero even when the verb exited 0: a skip is not a pass. `openRepoShape --install` installs the three from ONE list, idempotently and per file (`installed at` / `updated at` / `unchanged`, 755 stamped every time). Run from a file it copies the siblings beside it — so a machine with no `gh` and no network still gets all three — and fetches only what is missing; run from stdin it fetches each at the same `$REF` through the same `fetch_from_repo`. The first four usage lines are byte-identical and `--version` is untouched. `$OPENREPOSHAPE_REMOTE_BASE` is `resume`'s documented OFFLINE TEST PATH: a directory of bare repositories named `<name>.git`, used as origins, exactly the concession `setup-project.py --local-remote-dir` and `family.py --local-remote-dir` make, and documented in the usage the way the shim documents `$OPENREPOSHAPE_SETUP_SH`. It grants no file-protocol permission of its own — a test that needs `protocol.file.allow` sets it in git's own environment, which keeps that a test's decision and not a tool's. Docs: the README's two install paragraphs say THREE commands, and a new `### park <Name> and resume <Name>, from anywhere` subsection carries the two words, the `--workspace` line typed once per machine, how the estate is found, what `--repo` does and does not do, and what they leave behind — an unpushed `main` commit, a dirty root, ignored files, a clone refused by name, and no agent session at all. The Windows warning now covers the commands too, which are bash like the `--install` line that places them. `AGENTS.md` gains the paragraph and two rules: `park` creates nothing and its refusal is not an invitation to pick an estate; `resume` resets nothing and its refusal is not a state to `git reset`, `git stash` or `git checkout -f` out of the way, because that clone holds the work the refusal exists to protect; and `--workspace` is never passed on an assistant's own initiative. Both caps move with dated entries in each function's style (AGENTS.md 342 -> 364, README.md 1141 -> 1197), and both files join `SHIPPED_BASH`, so the shebang, the mode bit, `set -euo pipefail` and `bash -n` are checked for them. Tests, `tests/test_park_resume_commands.py`, 44 of them and offline in three ways at once: the extension is #80's echoing STUB, every remote is a bare repository in a temporary directory reached through `$OPENREPOSHAPE_REMOTE_BASE`, and `$HOME` is temporary too, so both spellings of the projects directory and `~/.agents/workspace.yaml` are the test's own and never the developer's. Estate resolution has both spellings, `$PROJECTS_DIR`, family-beats-standalone, the walk-up from a subdirectory, nearest-wins inside a member, the ruling-3 refusal LISTING what it found, `--repo` in three url spellings and two levels deep, and its no-match refusal naming `git clone`. `park` drives the holder's verb with `ARGS`, reports an unpushed main commit and a dirty root by path, says so when it left nothing behind, never reads `members/`, and under `--dry-run` moves no HEAD and creates no file. `resume` is proved end to end on a FRESH machine — the workspace cloned, the config written to the byte, the holder cloned into `<Family>/<Family>`, the pinned copies arriving with `--recurse-submodules`, both members placed beside it on `main`, each member's own `make resume` run, and the layout table printed — and then on an estate one commit behind: the holder and both siblings fast-forwarded to `origin/main` with their own bootstraps run, a dirty sibling and a feature-branched sibling each refused BY NAME and left untouched while the other still comes back, a deleted member placed again by `make siblings`, a standalone project rebuilt from `projects[0]`, the missing config refusing and naming `--workspace`, and two orgs refusing until `--org` answers. The workspace manifest is written BY HAND at `schema_version: 1` — the schema `park.sh` writes as of S1 — because a test that needed a workBenches checkout beside this one would skip on every fork. `python3 -m pytest tests -q`: 781 passed, 1 skipped. `bash -n` on all three; `shellcheck` clean on `park` and `resume`, with the two intentional suppressions carrying their reasons (`SC2016`, where the single quotes are the literal `ARGS='...'` a person copies, and `SC2088`, where a leading `~` is being matched and not expanded — the extension's own `workspace-common.sh` carries the same one for the same reason). Lane: xfactory-2 (xFactory-2) Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
@codex review |
There was a problem hiding this comment.
Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days.
You can request another review in 22 hours and 29 minutes by commenting @sourcery-ai review. Upgrade to get a review now.
Reviewer's GuideThis PR adds Sequence diagram for safely resuming an estatesequenceDiagram
actor User
participant Resume as resume
participant Manifest as Workspace manifests
participant Workspace as Workspace repository
participant Estate as Estate repositories
participant Make as Estate make targets
User->>Resume: resume Name
Resume->>Manifest: Find workspace record
alt Workspace clone exists
Resume->>Workspace: git pull --ff-only
else --workspace provided
Resume->>Workspace: git clone
Resume->>Manifest: Write workspace.yaml
else No workspace clone or flag
Resume-->>User: Refuse and name --workspace
end
alt Estate exists
Resume->>Estate: git pull --ff-only
Resume->>Make: make bootstrap
Resume->>Make: make siblings
Resume->>Estate: Pull each clean main sibling
Resume->>Make: make bootstrap for each sibling
else Estate absent
Resume->>Estate: git clone --recurse-submodules
Resume->>Make: make bootstrap
Resume->>Make: make siblings
end
Resume->>Make: make resume ARGS
Resume-->>User: Layout and refusal summary
Sequence diagram for locating and parking an estatesequenceDiagram
actor User
participant Park as park
participant Resolver as Estate resolver
participant Estate as Holder or root repository
participant Make as make park
User->>Park: park Name or park --repo owner/name
Park->>Resolver: Locate estate or match existing origin
alt Estate found
Resolver-->>Park: Holder or root path
Park->>Estate: make park ARGS
Estate->>Make: Run existing park mechanics
Make-->>Park: Stream result
Park-->>User: Report unparked commits, dirty root, ignored files
else No estate
Resolver-->>Park: Refuse and list estates found
Park-->>User: Non-zero exit
end
File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
🟡 Changes recommended
The new scripts need small but important hardening/portability fixes (notably park missing a git prerequisite check and resume using a non-portable mktemp invocation and needing safer git clone argument termination).
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Adds park and resume as installed, user-facing commands (installed alongside openRepoShape) to locate an estate, drive its existing make park/make resume verbs, and (for resume) rebuild/refresh an estate on a new workstation, with expanded offline test coverage and updated documentation/hygiene caps.
Changes:
- Add new root-level Bash commands
parkandresume, and extendopenRepoShape --installto install/update all three commands idempotently. - Add comprehensive offline tests for estate resolution, refusal behavior, argument forwarding, and fresh-machine rebuild/refresh flows.
- Update README/AGENTS guidance and repo hygiene constraints (shipped-bash list and documentation line caps).
File summaries
| File | Description |
|---|---|
| tests/test_repo_hygiene.py | Expands shipped-bash coverage to include park/resume and updates doc line-count caps. |
| tests/test_park_resume_commands.py | New end-to-end offline tests for installed park/resume behavior and rulings. |
| tests/test_openreposhape_command.py | Updates install and help tests for three installed commands and offline fetch shims. |
| openRepoShape | Extends --install to install openRepoShape, park, and resume as a set. |
| park | New command to resolve an estate and invoke its make park, with reporting of what doesn’t travel. |
| resume | New command to ensure workspace record availability, rebuild/refresh the estate, then invoke make resume. |
| README.md | Documents the installed commands and their behavior/limits, plus updated install description. |
| AGENTS.md | Adds guidance to prefer installed park/resume and reiterates key safety rules. |
Review details
- Files reviewed: 8/8 changed files
- Comments generated: 3
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| command -v make >/dev/null 2>&1 || | ||
| die "no \`make\` on PATH, so the estate's own \`make park\` cannot be run. | ||
| Install it (\`xcode-select --install\` on macOS, \`sudo apt-get install -y | ||
| make\` on Debian and Ubuntu), then re-run \`$SELF_NAME\`." |
| else | ||
| say " cloning $CONFIG_REPO -> $WORKSPACE" | ||
| mkdir -p -- "$(dirname -- "$WORKSPACE")" | ||
| git clone "$(clone_url_for "$CONFIG_REPO")" "$WORKSPACE" |
| if [ "$DRY_RUN" -eq 1 ]; then | ||
| say " would run: make siblings ($ESTATE_ROOT)" | ||
| else | ||
| SIBLINGS_LOG="$(mktemp)" |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e3614556f4
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| while IFS= read -r member; do | ||
| [ -e "$ESTATE_DIR/$member/.git" ] || continue | ||
| EXISTING_SIBLINGS="$EXISTING_SIBLINGS$member " |
There was a problem hiding this comment.
Re-verify siblings before pulling them
When make siblings reports that <Family>/<member> is a clone of another repository, it deliberately leaves that directory in place and returns nonzero. This prepass nevertheless classifies every directory containing .git as an existing sibling, so the later loop calls pull_ff_only on the unrelated clone before the holder's verified make resume can skip it. Record only siblings that pass the origin/project-id verification, or repeat that verification before pulling, so another repository is not modified.
AGENTS.md reference: AGENTS.md:L286-L290
Useful? React with 👍 / 👎.
| pull_ff_only "holder $ESTATE_NAME" "$ESTATE_ROOT" || true | ||
| else | ||
| pull_ff_only "root $ESTATE_NAME" "$ESTATE_ROOT" || true | ||
| fi | ||
| run_make "$ESTATE_NAME" "$ESTATE_ROOT" bootstrap || { |
There was a problem hiding this comment.
Stop processing a refused root checkout
When the holder or standalone root is dirty or on a non-tracking branch, pull_ff_only returns failure after promising to skip it, but || true discards that result and immediately runs make bootstrap; the script later runs make resume there as well. Those targets can alter submodule checkouts or worktrees, so the refused checkout is not left exactly as it was. Abort further commands for a refused standalone root, and avoid running root-mutating targets for a refused holder while handling unaffected siblings separately.
AGENTS.md reference: AGENTS.md:L343-L347
Useful? React with 👍 / 👎.
| ESTATE_PRESENT=0 | ||
| if estate_by_name "$NAME"; then | ||
| ESTATE_PRESENT=1 |
There was a problem hiding this comment.
Match an existing estate to the selected repository
When the selected workspace manifest is for OrgA/Foo but ~/projects/Foo is an existing clone of OrgB/Foo, including when --org OrgA was used to disambiguate same-named projects, this lookup accepts the local directory solely by folder name. The refresh path then pulls, bootstraps, and invokes resume against OrgB's checkout instead of cloning or refusing OrgA's estate. After parsing the manifest, verify the existing root's origin against ROOT_REPOSITORY before treating it as present.
Useful? React with 👍 / 👎.
…king branch refuses the root, the family folder comes from root: not the lowercase id, --repo takes any spelling, the walk-up skips pinned copies and worktrees (review on #83) (#82) The adversarial review on PR #83, every finding reproduced against offline fixtures before it was fixed and every fix carrying a test that FAILS on e361455. Three of them lose or move somebody's work; the rest are refusals that fired when they should not have, or did not fire when they should. F1 — A REFUSED ROOT IS NEVER BOOTSTRAPPED. The holder and the standalone root were fast-forwarded with `pull_ff_only … || true` and then bootstrapped ANYWAY. The family holder's `make bootstrap` is `git submodule update --init --recursive`, which snaps every `members/<X>` back to the recorded gitlink — so a run that printed "nothing was fast-forwarded and nothing was reset" then reset exactly the thing the refusal was protecting: a half-finished `family.py bump`, which lives as a MOVED GITLINK in the holder's index. The sibling loop had it right (`|| continue`) and the root did not. Both now go through one `refresh_root`: the legs, then the fast-forward, then the bootstrap, and a refusal at any step skips the steps after it and says so. The test stages a moved gitlink plus a scratch file at the holder root and asserts the staged gitlink and the pinned copy's HEAD are untouched afterwards. F2 — THE FAMILY FOLDER COMES FROM `root:`, NOT FROM `family:`. `park.sh` writes the header's `family:` from `family.yaml`'s **`id:`** — that is what `workspace_family_name` reads — and an id is LOWERCASE by construction (`family.py`: `--id … or family.lower()`, checked against `PROJECT_ID_RE = ^[a-z0-9][a-z0-9-]*$`), and the manifest FILE is named for the same id. The folder, and the holder repository, are the family's CamelCase `name:` — which is what `is_family_folder` requires the directory to match. Deriving the folder from `family:` therefore cloned `<org>/inkrouter` into `~/projects/inkrouter/inkrouter` and then refused "not an estate" over the half-estate it had just made. The comment claiming there was nothing else in the file to read it from was wrong: `workspace_manifest_root_value` writes each member's `root:` as `<family folder>/<project folder>` with the real casing, so the first segment is the folder and — the holder repository being the family's own name in its org, #76 ruling 3's doubled-name layout — the repository name too. `family:` keeps the one job it is good for: saying the file is a family's at all. THE FIXTURE NOW WRITES WHAT `park.sh` WRITES (`family: testfam`, `workspaces/<org>/testfam.yaml`, `root: TestFam/Alpha`), mirrored key for key from `workspace-common.sh`'s writer, and on e361455 the fresh-machine test fails with `repository 'testfam.git' does not exist`. F3 — A LEG OFF ITS TRACKING BRANCH REFUSES THE ROOT. `templates/ assembly-root/scripts/bootstrap.py`'s `checkout_tracking_branch` runs `git checkout <tracking>` in a leg whose local tracking-branch tip equals the pin, and `checkout -b <tracking> <pin>` in a leg that has no local one — either of which MOVES A LEG'S HEAD. A leg sitting on a clean feature branch at the pin leaves the SUPERPROJECT clean, so the dirty and off-branch guards saw nothing, and `resume` walked that leg off `001-my-feature` onto `main` and exited 0. `root_legs_ok` now asks each leg `project.yaml` declares, before the pull and before the bootstrap, and refuses the root by name naming the leg. Detached AT the pin is not a refusal: that is the state a fresh clone arrives in and precisely what bootstrap exists to fix. The fixture ships the REAL `bootstrap.py` and a real submodule leg in one member, and a second test runs that script directly to show it does move the leg — the guard is not theatre. F4 — TWO CHECKOUTS OF ONE WORKSPACE ARE NOT TWO ORGS. `FOUND` counted manifest FILES, and `WORKSPACES=("$ORG_PATH" "$WORKSPACE")` was not deduped, so an `orgs:` override pointing at a second clone of the same private repository produced "2 workspace manifests record 'InkRouter'" — a refusal `--org` could not answer, because both rows named the same org. Candidates are deduped on `<org>` plus the file's basename, workspace paths on their PHYSICAL directory, and the refusal counts the orgs that are left. F5 — `--repo` TAKES ANY SPELLING. It accepted only a bare `owner/name`, so `TestOrg/Atlas.git`, a trailing slash and the https url a person copies out of the browser all refused — and the refusal then printed `git clone … https://github.com/https://github.com/TestOrg/Atlas.git.git`. The flag's value now goes through `repo_slug_of`, the same reader that reads a clone's `origin`, so both sides of the comparison come from one parser and the clone line is a url rather than a url wrapped round another one. `repo_slug_of` also stopped lowercasing: callers compare with `lower` on both sides, and a refusal prints back what a person can type. F6 — THE WALK-UP SKIPS A PINNED COPY AND A LINKED WORKTREE. Both are whole `project.yaml` roots, so the walk-up answered them: `<Family>/<Family>/ members/<X>`, which is DETACHED and pinned and where a write verb acts on the wrong copy of a member, and a single-repository project's feature worktree `<worktree_root>/<branch>`, which came back as an estate named after the branch and got the write verb run inside the very worktree the extension parks. `is_pinned_member` (the grandparent carries the `family.yaml`) and `is_linked_worktree` (git's own `--git-dir` != `--git-common-dir`, which distinguishes a worktree from a SUBMODULE, where both are the same path) are now part of `is_project_root`, so the walk-up passes them and reaches the family folder or the root that owns the worktree. F7 — A `root:` IS A NAME, NEVER A PATH. `root: ../../elsewhere/X` was joined to the projects directory and cloned outside it. `is_safe_folder_name` refuses an empty name, a leading dot, a slash and anything outside `[A-Za-z0-9_.+@-]`, checked BEFORE any path is built from it — and the same check is now on the `<Name>` both commands take, so `park ../x` and `resume /abs` refuse by name instead of being followed. F8 — THE WORKSPACE CHECKOUT GETS THE SAME GUARD. It was pulled with a bare `git pull --ff-only` whose failure was a WARNING, and then read as if it were current. It goes through `pull_ff_only` now and a refusal is a refusal: the record is what the whole run reads, and cloning an estate out of a manifest whose checkout is dirty or mid-conflict is the wrong thing to do quietly. The branch is passed in rather than derived, because a private repository declares no tracking branch and being on `master` is not a finding. F9 — A REFUSED MEMBER DOES NOT GET THE VERB. The holder's `make resume` is `siblings.py --make resume`, whose whole flag set is `--root`, `--dry-run`, `--make` and `--make-arg`: there is no exclusion to hand it, so a clone this run said it would not touch was getting the verb run in it anyway. With a refusal on the board the verb now runs per NON-REFUSED sibling, and the holder's own dispatch is used whenever there is nothing to exclude — every ordinary run. Adding an `--exclude` to `siblings.py` is a change to a PINNED template that reaches every holder through `update-shape.py`, and it is not this object's to make; the code says so where a reader will ask. F10 — `--install` PLACES ALL THREE OR NONE. It placed one file at a time and died on the first fetch that failed, leaving a NEW `openRepoShape` beside a missing `park` — a half-install that prints `installed at` — with nothing on screen to say which of the three were missing. `collect_commands` now stages every one in the temporary directory first (copying the siblings beside this file, fetching only what is not there) and places nothing until all three are in hand; a failure names what was not fetched and says that nothing already installed was replaced. A final `openRepoShape: 3 of 3 placed` line, because three lines on screen cannot tell a reader whether a fourth was meant to be there. `fetch_from_repo` returns instead of dying so a caller can collect a set; `fetch_or_die` is the one-file spelling `setup.sh` still uses. CI AND THE DUPLICATION CLAIM. `.github/workflows/tests.yml` parses `park` and `resume` with `/bin/bash` too: they are installed onto the same macOS PATH by the same `--install`, and a bash-4 construct in either would otherwise be found by the person who typed `park InkRouter`. And the PR body's claim that the two resolvers are duplicated byte for byte is now TRUE and TESTED — one `# --- BEGIN shared estate resolver` block, identical in both files, with a test that compares the two slices. It is duplicated for the reason it always was: each command is one file a person has on PATH, and a shared library would be a fourth file for `--install` to place. NITS TAKEN. `park`'s unpushed check reads each root's own `tracking_branch:` instead of a hard-coded `main`, and the report names the branch — a project that ships from `trunk` was being asked about a branch it does not have and answered "nothing". The README's "a green run is the only green run" was true of `resume` and false of `park`, which passes `make park`'s status through and can exit 0 with a report: the paragraph now says which of the two to read. `AGENTS.md` gains the leg refusal, because an assistant that read only "dirty or on a feature branch", looked at a clean root and concluded the refusal was spurious would run `git checkout main` in the leg — the exact loss the guard prevents, performed by hand. Both usage texts document the `--repo` spellings and the leg refusal. Caps move with dated entries: AGENTS.md 364 -> 368, README.md 1200 -> 1203. Lane: xfactory-2 (xFactory-2) Co-Authored-By: Claude Fable 5.1 <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
resume uses mktemp without a template (breaking BSD/macOS mktemp), so the new installed command can fail on stock macOS.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review details
Suppressed comments (1)
resume:1184
mktempis invoked with no template (BSD/macOSmktemprequires one), soresumewill fail when it tries to capturemake siblingsoutput on macOS. Use an explicit template under${TMPDIR:-/tmp}(as setup.sh already does) so the installed command works on stock macOS.
SIBLINGS_LOG="$(mktemp)"
- Files reviewed: 9/9 changed files
- Comments generated: 1
- Review effort level: Lite
| if [ "$head" != "$branch" ]; then | ||
| REFUSED=$((REFUSED + 1)) | ||
| say " REFUSED $label: HEAD is '$head', not its tracking branch '$branch'." | ||
| say " Nothing was fast-forwarded and nothing was reset. Your work is where you left it." | ||
| say " look: git -C $repo status --short --branch" | ||
| say " then: git -C $repo checkout $branch && $SELF_NAME $ESTATE_NAME" | ||
| return 1 | ||
| fi | ||
| dirty="$(git -C "$repo" status --porcelain 2>/dev/null || true)" | ||
| if [ -n "$dirty" ]; then | ||
| REFUSED=$((REFUSED + 1)) | ||
| say " REFUSED $label: uncommitted changes in $repo." | ||
| say " Nothing was fast-forwarded and nothing was reset." | ||
| say " look: git -C $repo status --short" | ||
| say " then: commit or stash them yourself, and re-run \`$SELF_NAME $ESTATE_NAME\`." | ||
| return 1 | ||
| fi | ||
| if [ "$DRY_RUN" -eq 1 ]; then | ||
| say " would fast-forward $label: git -C $repo pull --ff-only origin $branch" | ||
| return 0 | ||
| fi |
…S.md and the hygiene caps A merge rather than a rebase because the organisation's ruleset refuses a force-push to any branch. AGENTS.md merged cleanly; the one conflict was tests/test_repo_hygiene.py's AGENTS.md size cap, which #85 and this branch both raised with commentary — README.md's cap did not conflict, since #85 never touched README.md. Both dated entries are kept, #85's first, and the cap is the merged file's exact count (370). The squash on merge folds this commit away. Lane: xfactory-2 (xFactory-2) Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
There was a problem hiding this comment.
🟡 Changes recommended
The new resume script has a confirmed path-handling bug in array iteration and contains misleading “nothing was fetched” messaging in a refusal path.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review details
Suppressed comments (1)
resume:708
- Same as above: this message says "Nothing here was fetched" even though the preceding
git pull --ff-onlymay have fetched remote state before refusing. It should focus on the non-destructive guarantees (no reset / no bootstrap).
say " [$label] bootstrap skipped: refused above. Nothing here was fetched, moved or reset."
- Files reviewed: 9/9 changed files
- Comments generated: 2
- Review effort level: Lite
| physical="$(cd "$candidate" 2>/dev/null && pwd -P)" || physical="$candidate" | ||
| for existing in ${WORKSPACES[@]+"${WORKSPACES[@]}"}; do | ||
| [ "$existing" != "$physical" ] || return 0 | ||
| done | ||
| WORKSPACES+=("$physical") |
| refresh_root() { | ||
| local label="$1" root="$2" | ||
| root_legs_ok "$label" "$root" || { | ||
| say " [$label] bootstrap skipped: refused above. Nothing here was fetched, moved or reset." |
…he family workstation layout, --family, park/resume and the user commands, the workspace form; a guard that the page follows the README's outline (#89) (#90) * docs/handbook.html: the designed reading of the README at cbca5b4 — the family workstation layout, --family, park/resume and the user commands, the workspace form; a guard that the page follows the README's outline (#89) The page was cut from README.md at `c093813` (#69, PR #71) and #88 fixed one word in it. Everything the README gained in between was missing, so the designed page told a newcomer less than the file it is a reading of. This is the regeneration, at `cbca5b4`, in the page's own design and voice. WHAT THE PAGE GAINED - `#park`, a new section between "Keeping shape current" and "The degrade rule" — the whole of `## Carrying in-flight work to another workstation` (#80): the two root verbs and `ARGS=--dry-run`; `### park <Name>` and `resume <Name>`, from anywhere (#83) with the estate resolution, `--repo`, the fresh-machine `resume --workspace`, and what the two leave behind (including READ THE LINES, not the exit code); `### Who implements it, and what the record is` — the Speckit git extension rather than this repository, the person's record named once in `~/.agents/workspace.yaml`, `<user>-wip` with the home-org default and the opt-in `orgs:` map (#86), nothing under `worktrees/` ever committed, `resume` refusing on divergence, the family holder's dispatch into the WORKING clones, and native Windows parking nothing. One rail entry, `Park and resume`. - `#families` gained two `<h3>`s: "The workstation layout: a plain folder, and two copies of every member" (#79) — the plain `<Family>/`, the holder at `<Family>/<Family>`, `--into` as the PARENT and `--work-dir` as the override, `make siblings`, which copy you work in, and that nothing ever moves a checkout — and "The InkRouter example", whose five `family.py` commands and two trees are the README's current ones (the block it replaced still named `../InkRouter` as the holder). Plus the holder's own `make validate` and its COPY pin. - `#start` gained "Joining a family" (`--family <Family>`, and that standing in the folder needs no flag at all — AGENTS.md) and "What setup.sh actually runs", the seven-command flow including `mkdir -p <into>/<Family>` (#78), with the developer path from a checkout. The install step and the masthead's fastest path now say THREE commands, `unchanged` per file, and what `park` and `resume` are (#83). The rehearsal flag's Windows spelling is the README's own `py setup-project.py … --local-remote-dir .\rehearsal` (#70), replacing an aside that told the reader to go and read `--help`. - `#legs` links `<user>-wip` to where such a repository lives, and gained the paragraph a reader of `openDox` needs: a neutral product may elect the shape and be its own assembly root, `also_matches` recorded rather than thrown away. `#layout` lists `park` and `resume`. `#agents` gained the rule that a refused `park` or `resume` is never worked around with a reset, a stash or a force-push, and that `--workspace` is nobody else's flag to pass. FIDELITY. 39 code blocks on the page: 31 byte-identical to a README block (whole, or a contiguous run of its lines), 0 re-wrapped, 5 quoted from README prose, 2 from README inline code, 1 assembled by the page from three quoted commands (the masthead). Every one of the 13 GitHub anchors resolves to a real README or AGENTS.md heading, all 27 in-page hrefs resolve to an id on the page, and the file still parses with `html.parser` with every tag balanced: one file, inline CSS and one inline script, one Google Fonts link with real fallback stacks, no images and no other network call. THE GUARD. `tests/test_repo_hygiene.py::test_the_handbook_follows_the_readmes_outline` ties the two files together, because nothing did: an explicit `README_HEADING_TO_HANDBOOK_ID` maps every `## ` heading of README.md to the id of the page element that carries it, so a new README section with no entry fails NAMING THE HEADING and a heading deliberately folded into a neighbour is a named decision; `HANDBOOK_SECTION_WITHOUT_A_README_H2` accounts for the four page sections that are not a README `## ` at all, so a page section cannot become unexplained. And the page names the README commit it is a reading of, exactly once, whose README must be byte-identical to the one in the tree — `git diff <sha> -- README.md`, against the working tree, so the page goes stale the moment the README changes rather than one commit later. That last check is skipped, and only that one, when the named commit is not in the clone: a `fetch-depth: 1` CI checkout has one commit and the object is absent there, while the outline checks are tree-only and run everywhere. Evidence: `python3 -m pytest tests/test_repo_hygiene.py -q` 46 passed; `python3 -m pytest tests -q` 889 passed, 1 skipped (`SHAPE_MEDXEHR_CLONE` is unset — pre-existing and unrelated). The five ways the new guard can fail were each exercised in a throwaway clone. Docs and one test only; no README, script, template or workflow change, and both size caps are untouched. Lane: xfactory-2 (xFactory-2) Co-Authored-By: Claude Fable 5.1 <[email protected]> * tests.yml: fetch full history so the handbook's staleness check bites in CI (#89) Ruled by Brett Heap on 2026-09-10: *set fetch-depth 0 so the staleness check bites in CI.* `test_the_handbook_follows_the_readmes_outline` compares README.md against the commit `docs/handbook.html` says it is a reading of, which needs that commit's OBJECT present. `actions/checkout`'s default `fetch-depth: 1` fetches one commit, so the object was absent and that one check skipped itself: green in CI, red only on the machine where the page would be regenerated, which is the wrong way round. All three jobs — `tests`, `tests-windows`, `tests-macos`, the only three `actions/checkout` steps in the file — now check out with `fetch-depth: 0`, and each says why in a comment naming the test. The test's BEHAVIOUR is unchanged: the "skipped when the named commit is not in this clone" branch stays, because a `git clone --depth 1` still hits it and a failure about the clone is not a failure about the page. Only its docstring moves, to say that CI is no longer such a clone. Evidence: `python3 -m pytest tests/test_repo_hygiene.py -q` 46 passed (with tests/test_windows_paths.py, 84 passed). The workflow parses under PyYAML and compares equal to HEAD's parse with the three checkout `with:` blocks removed — nothing else in the file moved. No actionlint on this machine; CI's own actionlint step lints `templates/assembly-root/.github/workflows/validate.yml` only, which is untouched. Lane: xfactory-2 (xFactory-2) Co-Authored-By: Claude Fable 5.1 <[email protected]> --------- Co-authored-by: Claude Fable 5.1 <[email protected]>



Lane: xfactory-2 (xFactory-2)
Claim: #82 (comment) (2026-09-10, on Brett Heap's "claim 82 and start on it after S1 lands"; S1 landed as opensoft/openBenches#31 → 1a1445b)
Rulings: #82 (comment) (1
--repomatches a local clone by origin, onlyresumeclones and from the manifest; 2resumefast-forwards each sibling's main with--ff-onlyand refuses a dirty or off-branch clone by name; 3parkwith no name and no estate refuses and lists the estates found; 4 the names areparkandresume)Closes #82. The front door over #77: two bash files at the repository root,
parkandresume, installed by the sameopenRepoShape --install(which now places all three, idempotently). They ADD NO MECHANICS — they find the estate and run the holder's or root's ownmake park/make resume(#80), which run the Speckit extension's scripts (workBenches#31).park [<Name>] [--repo <owner/name>] [--dry-run] [--lane <name>] [-- ARGS…].<Name>→$PROJECTS_DIR/<Name>, else~/projects/<Name>then~/Projects/<Name>(people spell it both ways; the two are deduped by inode on a case-insensitive filesystem); a family folder (<Name>/<Name>/family.yaml) wins over a standalone root of the same name; no<Name>→ the nearest estate up from the cwd, so a member parks itself; nothing around → REFUSE and list the estates found (ruling 3).--repomatches a clone you already have by its origin in any url spelling and never clones (ruling 1). Thenmake park ARGS='…'in the holder or root, streamed, and a report of what park does NOT carry and why it is not park's to touch: commits onmainorigin has not seen (the root is PR-only), a dirty root mid pin-bump, and ignored files, which come back from a secrets manager and never from git. It creates nothing and moves nobody's HEAD.resume [<Name>] [--repo <owner/name>] [--workspace <owner/name>] [--org <org>] [--dry-run] [-- ARGS…]. The workspace repository first: present →pull --ff-only; absent and--workspacegiven → clone it and write~/.agents/workspace.yaml— the ONLY writer of that file in this standard, only when asked by name, and it refuses to overwrite a config that names another repository; absent and no flag → refuse naming the flag. Then the manifestworkspaces/<org>/<Name>.yaml(every workspace the config'sorgs:names is searched; two orgs recording one<Name>refuse unless--org), the holder's repository by the doubled-name rule or the standalone root's from the manifest, and the estate: absent →mkdir,git clone --recurse-submodulesinto<Name>/<Name>,make bootstrap,make siblings; present → holderpull --ff-only+make bootstrap,make siblings, then each sibling'spull --ff-only+ its ownmake bootstrap, with a dirty or off-branch clone REFUSED BY NAME and skipped, never reset (ruling 2; applied to the holder too). Thenmake resume ARGS='…', the layout table, the summary. Exit 1 whenever anything was refused, even ifmake resumeexited 0 — a skip is not a pass.OPENREPOSHAPE_REMOTE_BASE=<dir>is the offline test path (bare repositories named<name>.git), documented exactly as the shim documentsOPENREPOSHAPE_SETUP_SH.Install.
openRepoShape --installplacesopenRepoShape,parkandresumein$OPENREPOSHAPE_BIN_DIR(default~/.local/bin), 755,installed at/updated at/unchangedper file; from a file it copies its two siblings when present and fetches otherwise, from stdin it fetches all three. The first four usage lines are byte-identical.Tests: 44 in
tests/test_park_resume_commands.py(both spellings and$PROJECTS_DIR; family beats standalone; walk-up; the no-estate refusal and its list;--repoin three url spellings and its no-match refusal; park drives the holder's verb with ARGS, reports an unpushed main commit and a dirty root, never reads the pinned copy, dry-run creates nothing, passes the exit code through; resume on a fresh machine builds the whole estate from a bare workspace repository +OPENREPOSHAPE_REMOTE_BASE, writes the config only when asked, refuses to overwrite one, refuses two orgs, refuses an unrecorded name, dry-run clones nothing, standalone rebuild; estate present: fast-forwards holder and siblings, refuses a dirty sibling and an off-branch sibling by name and resumes the rest, skips a member with no working clone by name).test_openreposhape_command.py: the install tests parametrized over all three files; the fakeghserves all four paths.park/resumejoinSHIPPED_BASHin the hygiene test. Full suite: 781 passed, 1 skipped.bash -nand shellcheck clean on both new files.Decisions beyond the rulings, for the reviewer: the estate resolver is duplicated byte-for-byte in both files rather than a third file
--installwould have to place; a sibling's tracking branch is read from its own manifest, not the workspace record;--project/--nameare accepted as aliases for the positional (the issue's own quote);resume --dry-runwith no workspace checkout prints the plan and exits 0.docs/handbook.htmllags the README by the new commands block — follow-up.🤖 Generated with Claude Code
Summary by Sourcery
Install safe
parkandresumeestate commands that hand off to project-owned verbs while rebuilding or updating workspaces on another workstation.New Features:
parkandresumecommands that locate estates and invoke their corresponding project verbs.resumeto restore workspace records and rebuild or update standalone and family estates across workstations.openRepoShape --install.Bug Fixes:
Enhancements:
CI:
Documentation:
parkandresumeusage, installation, estate discovery, workspace configuration, refusal behavior, and Windows/WSL2 support.Tests: