Skip to content

templates/workspace-root: the <user>-wip template (lane protocol Amendment 9, act 1) - #154

Merged
brettheap merged 9 commits into
mainfrom
templates/workspace-root
Sep 13, 2026
Merged

brettheap merged 9 commits into
mainfrom
templates/workspace-root

Conversation

@brettheap

@brettheap brettheap commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

Lane: openrepoproject-1 (openRepoProject-1)
Claim: #153 (comment)

Closes #153.

Adds the fifth template, templates/workspace-root/, for the <user>-wip
naming form already classified in contracts/repository-naming.yaml as the
workspace family (#81): a person's own private, org-owned index of
unfinished work, holding no code and conferring nothing.

This is lane-collision-protocol Amendment 9, adoption act 1 —
brettheap/new-workstation#17 — which splits the lane tooling out of
<user>-wip into opensoft/openRepoTools and leaves the workspace
repository holding data only. openRepoTools wip init (a later act) will
materialize this template for a new person the same way scaffold-project.py
materializes templates/assembly-root/ for a new project today.

What landed

templates/workspace-root/ — README.md, AGENTS.md, CLAUDE.md,
.gitignore, .gitattributes, handoffs/README.md, lanes/LANES.md,
lanes/log/README.md and workspaces/.gitkeep — nine files at this PR's
head, reproducing opensoft/brett-wip's own docs minus its code and minus
its one-off history:

  • README.md / AGENTS.md generalise brett-wip's own copies to
    {{LOGIN}}/{{ORG}} placeholders in this repository's existing
    {{PLACEHOLDER}} style. AGENTS.md's rule 8 is rewritten: "no code, no
    exceptions: the lane tooling lives in opensoft/openRepoTools" — rules 1,
    2 and 7 are updated so they no longer point at a local
    lanes/lanes-edit.sh / lanes/lane-start / lanes/lane-end this template
    does not ship.
  • lanes/README-lanes.md is not shipped here — the DATA facts it would
    have carried (what LANES.md is, its row format, the lanes/log/
    layout) live instead as README-lanes in opensoft/openRepoTools,
    alongside the tooling that reads them.
  • lanes/LANES.md carries the live register's header block down through
    its table header, no rows, with the HAZARD comment kept and only its
    symlink sentence generalised (it no longer claims this file is itself a
    symlink into an orphan branch — under Amendment 5 it is the real file, and
    other estates' LANES.md symlinks to it instead).
  • No scripts and no repos.tsv: the lane tooling and the base alias table
    are opensoft/openRepoTools's to ship.

One line in this repository's own README.md ("Layout of this repository")
names the fifth template beside assembly-root, code-root, family-root
and spec-root.

python3 -m pytest tests -q passes (no script ships in this template, so
the existing template-materializer tests are not parametrized over it).
Its .gitattributes is instead covered by a new, dedicated test added in
the fix round, test_the_workspace_template_says_what_its_bytes_are in
tests/test_repo_hygiene.py, rather than as a third parameter on the
existing .gitattributes tests.

🤖 Generated with Claude Code

Summary by Sourcery

Add the data-only workspace-root template for creating a user's private work-in-progress workspace repository.

New Features:

  • Add a parameterized workspace-root template for private, org-owned <user>-wip repositories that store workspace manifests, handoffs, and lane-register data without code or tooling.

Enhancements:

  • Document the workspace template and its role in the repository layout and handbook.
  • Define workspace repository guidance, lane-register structure, handoff storage, symlink usage, and the separation of lane tooling into openRepoTools.

Documentation:

  • Update the root README and generated handbook layout documentation to include the fifth template.

Tests:

  • Add hygiene coverage ensuring the workspace template declares LF line endings and update the repository documentation length limit.

…ct 1)

The fifth template beside assembly-root, code-root, family-root and
spec-root: the skeleton for a person's workspace repository (the
`workspace` naming family, openRepoShape#81) - data only, no code, no
manifest, no CI. Reproduces opensoft/brett-wip's own README, AGENTS.md,
handoffs/, workspaces/ and lanes/ (LANES.md's header through its table
header, README-lanes.md pared to the register's data shape, and
lanes/log/), generalised to {{LOGIN}}/{{ORG}} placeholders and to
lane-collision-protocol Amendment 9: the lane tooling (lanes-edit.sh,
lane-start, lane-end, link-estates) moves to opensoft/openRepoTools, so
AGENTS.md's rule 8 now reads "no code, no exceptions."

Adds one line to this repository's own README naming the fifth template.

Closes #153.

Lane: openRepoProject-1 (Eagle)
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Copilot AI lite review requested due to automatic review settings September 12, 2026 18:32
@sourcery-ai

sourcery-ai Bot commented Sep 12, 2026

Copy link
Copy Markdown

Reviewer's Guide

Adds the fifth templates/workspace-root/ template for data-only <user>-wip repositories, including generalized workspace, handoff, manifest, and lane-register documentation while leaving lane tooling and initialization to opensoft/openRepoTools; the top-level README now lists the template.

Sequence diagram for workspace manifest parking

sequenceDiagram
    participant Lane
    participant Speckit
    participant Workspace as UserWip
    participant Git

    Lane->>Speckit: park
    Speckit->>Workspace: write project manifest
    Speckit->>Git: commit explicit workspaces path
    Speckit->>Git: pull --rebase
    Speckit->>Git: push
    Lane->>Speckit: resume
    Speckit->>Workspace: read project manifest
Loading

File-Level Changes

Change Details Files
Add a reusable, data-only <user>-wip workspace repository template with generalized documentation and placeholder-based identity/configuration.
  • Add README, AGENTS, CLAUDE, and ignore-file scaffolding for private, org-owned workspace repositories.
  • Document repository layout, discovery through ~/.agents/workspace.yaml, per-organization overrides, symlink targets, and direct registry commits.
  • Adapt operating rules to prohibit code and secrets while delegating lane tooling and initialization to opensoft/openRepoTools.
templates/workspace-root/README.md
templates/workspace-root/AGENTS.md
templates/workspace-root/CLAUDE.md
templates/workspace-root/.gitignore
Provide the workspace handoff and manifest data areas with their naming, schema, ownership, and concurrency contracts.
  • Define lane-scoped handoff paths, symlink hazards, and one-commit-per-write behavior.
  • Document speckit park/resume workspace manifests, naming rules, YAML schema, invariants, and concurrent-write semantics.
templates/workspace-root/handoffs/README.md
templates/workspace-root/workspaces/README.md
Add a clean lane-register template that preserves protocol data and explicitly moves lane operations to external tooling.
  • Seed LANES.md with protocol metadata, hazard guidance, column headers, and no live rows.
  • Document the register row format and per-lane append-only log grammar and ownership.
  • Add the log-directory README identifying the external writer and reader commands.
templates/workspace-root/lanes/LANES.md
templates/workspace-root/lanes/README-lanes.md
templates/workspace-root/lanes/log/README.md
Register the fifth workspace template in the repository's top-level layout documentation.
  • List templates/workspace-root/ alongside the existing root templates.
README.md

Assessment against linked issues

Issue Objective Addressed Explanation
#153 Add a fifth templates/workspace-root/ template for the <user>-wip workspace repository, using placeholders and containing only workspace data and documentation, with no product code or lane-tooling scripts. ✅
#153 Document the workspace repository's structure and operating rules, including handoffs, workspace manifests, lane-register data, symlink behavior, and the separation of lane tooling into opensoft/openRepoTools. ✅
#153 Update the repository's top-level documentation to identify templates/workspace-root/ as the fifth available template. ✅

Possibly linked issues


Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@brettheap

Copy link
Copy Markdown
Contributor Author

Status report (mid-task, posted ahead of a context swap on the orchestrating session).

Done: issue #153 created and claimed (LANES_LANE=openRepoProject-1 lanes-edit.sh claim opensoft/openRepoShape#153 — cross-repo warning fired as expected, since this lane's home is opensoft/openRepoProject; log line + comment posted at #153 (comment)). templates/workspace-root/ authored (9 files, 470 lines) and committed (a54d612), pushed, this draft PR opened.

Known issue — NOT yet fixed: python3 -m pytest tests -q on this branch is 2 failed, 1141 passed, 1 skipped, both failures caused by my one-line addition to this repository's own README.md (naming templates/workspace-root/ in "Layout of this repository"), which moved README.md's git blob hash:

  • tests/test_repo_hygiene.py::test_the_handbook_follows_the_readmes_outline — docs/handbook.html's footer pins the old README.md blob hash and now disagrees.
  • tests/test_repo_hygiene.py::test_readme_is_short_enough_to_be_read — need to re-check the exact cap/count this asserts on; was mid-diagnosis when the swap notice arrived.

Neither test was touched by this PR's actual deliverable (the template directory); both are hygiene checks on this repository's own README/handbook that any one-line README edit trips. Next step, if I'm still alive to continue: read both assertions precisely, regenerate docs/handbook.html's pinned hash (and its outline mapping, if the new line needs a section/entry there) per its own docstring's instructions (#89 is cited there as precedent), re-run the suite, then amend this same commit or add a follow-up one. Will not mark this PR ready for review until the suite is green.

Still to do after that: LANES_LANE=openRepoProject-1 lanes-edit.sh log OPENED opensoft/openRepoShape#154 ← opensoft/openRepoShape#153, then a comment on brettheap/new-workstation#17 recording PR OPENED, then the full final report to the orchestrator (file list/line counts, what was deliberately left out of the template and why, the cross-repo warning confirmation above).

🤖 Generated with Claude Code

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Unresolved critical tooling and workspace-routing findings block approval.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Adds a data-only workspace-root template for <user>-wip repositories, covering manifests, handoffs, lane registers, and external tooling ownership.

Changes:

  • Adds workspace, handoff, lane, and agent documentation.
  • Delegates lane tooling to openRepoTools.
  • Registers the new template in the repository layout.
File summaries
File Summary Final findings
templates/workspace-root/workspaces/README.md Documents manifest paths, schemas, and concurrency. Moderate (3 votes): include the organization path component. Moderate (1 vote): use the checkout root for workspace.yaml. Nits (1 vote each): use park/resume commands and document family manifests.
templates/workspace-root/README.md Documents workspace layout, discovery, and tooling. Critical (2 votes): resolve configured organization overrides. Critical (1 vote): provide or pin the referenced tooling. Moderate (1 vote each): make ruleset exemptions conditional and correct command names.
templates/workspace-root/lanes/README-lanes.md Documents lane-register data. Critical (2 votes): resolve lane targets from configured organization overrides.
templates/workspace-root/lanes/log/README.md Documents per-lane logs. No final comments.
templates/workspace-root/lanes/LANES.md Provides the initial lane register. Nits (3 votes): reference installed tooling instead of absent scripts. Nit (1 vote): remove repository-specific provenance.
templates/workspace-root/handoffs/README.md Documents handoff storage and symlinks. Critical (2 votes): resolve symlinks to the configured workspace. Moderate (1 vote): make direct commits conditional on repository policy.
templates/workspace-root/CLAUDE.md Points agents to AGENTS.md. No final comments.
templates/workspace-root/AGENTS.md Defines workspace operating rules. Moderate (1 vote): make direct commits conditional and forbid bypassing protections.
templates/workspace-root/.gitignore Ignores workspace artifacts. No final comments.
README.md Registers the workspace template. Moderate (1 vote): add the .gitattributes LF rule and hygiene coverage.
Review details

Suppressed comments (12)

README.md:1360

  • The new template has no .gitattributes, unlike the existing root templates, while the following inventory promises templates/*/.gitattributes and the repository's tests treat that as a root-template invariant. When wip init materializes this tree on Git for Windows, its Markdown/YAML data can be checked out with CRLF, so add the LF rule to this template and cover it in the hygiene checks.
templates/workspace-root/         the skeleton for <user>-wip

templates/workspace-root/AGENTS.md:54

  • Rule 6 repeats the same unconditional direct-to-main instruction for every {{ORG}}. Since this template does not establish a ruleset exemption, an agent following these instructions can violate an organisation's protected-branch policy; make direct commits conditional and explicitly forbid bypassing a refusal.
6. **Direct commits to `main` are the norm here, by design.** This
   repository is excluded from the organisation's PR-only ruleset precisely
   so a per-edit registry commit can land. Pull with `--rebase`, push; on a
   real conflict abort, leave the checkout clean, and report. Never
   force-push and never delete a remote branch.

templates/workspace-root/README.md:43

  • speckit park/speckit resume are described as user commands here, but the installed interface is park/resume, which dispatch to each estate's make park/make resume; Speckit is the underlying extension. Following this template literally will fail with command-not-found, so use the installed verbs here (the written_by schema label can remain provenance).
`speckit park` and `speckit resume` read that file; so does every lane
looking for where a handoff goes. By default this one repository, in this

templates/workspace-root/README.md:72

  • This is a reusable {{ORG}} template, but it asserts that every materialized workspace repository is exempt from the organisation's PR-only ruleset. No change here configures that exemption, and the standard's own AGENTS.md says never to bypass rulesets; on an organisation without this exception, following this instruction causes rejected or noncompliant direct pushes. Make the exemption a provisioning prerequisite/conditional, not a fact.
## Direct commits to `main`

Deliberate, and the reason this repository is excluded from the
organisation's PR-only ruleset. The register writes **one commit per edit**
(lane-collision-protocol Rule 9), from many concurrent lanes on more than one
workstation. A pull request per registry edit is not a workable shape, and
nothing here is product code that a review gate protects.

templates/workspace-root/handoffs/README.md:48

  • This handoff workflow also assumes every workspace repository accepts an immediate direct commit and push, although the template is parameterized for arbitrary organisations and does not provision a ruleset exemption. Make the direct-write requirement conditional and tell operators to use the organisation's approved PR flow when main is protected.
The lane that writes a handoff commits it immediately and pushes:

templates/workspace-root/lanes/LANES.md:25

  • lanes/LANES.md is shipped as the workspace repository's real register, and README-lanes.md says it is tracked on that repository's main. This copied block still directs readers to xFactory's orphan .lanes branch and says the register is never on main, so a materialized workspace describes the wrong source of truth.
This is the estate's permanent live-lane register, read at
`~/projects/xFactory/LANES.md`. Since 2026-09-09 that path is a **symlink** to
`.lanes/LANES.md`, the worktree of the **orphan `lanes` branch** of
`opensoft/xFactory`, and **every write is a commit** (Rule 9). It remains
operator-local working state: it is never committed to `main` of any repo,
never pinned, never swept. How the branch works, and how to adopt it on a
second workstation: `.lanes/README-lanes.md`.

templates/workspace-root/lanes/LANES.md:42

  • The template also preserves xFactory-specific workstation state: it hard-codes exactly Eagle and Raven, the opsXfactory-2 window, WSL2, and user brett. For another person or estate those values are false, and the initial register's instructions would teach the wrong owner format; replace them with the generic Rule 10 placeholders already used in README-lanes.md.
**Workstation designation (Rule 10).** Two workstations run lanes — **Eagle**
and **Raven** — and the same window name (`opsXfactory-2`) can exist on both.
So column 3 is `workstation / env / user`, spelled exactly
`<Workstation> / <env> / <user>`, e.g. `Eagle / WSL2 / brett`. A row whose
workstation is not yet established reads
`<workstation? — owner fills> / WSL2 / brett` and its **owner fills it in**.
Rule 6 lines carry the workstation on the session id:
`LANDING — lane X, session <uuid>@Eagle, <UTC>, PR #n into <repo> main` — and
likewise LANDED, RESUMED and PAUSED.

templates/workspace-root/lanes/LANES.md:45

  • This template is no longer the xFactory estate, so this copied instruction points readers at a non-existent ~/projects/xFactory checkout and .lanes/README-lanes.md. Use the materialized workspace checkout and its lanes/README-lanes.md; otherwise the only write procedure in this template is unusable.
**How to write to this file** (from `~/projects/xFactory`; details and the
`sed -i` hazard in `.lanes/README-lanes.md`):

templates/workspace-root/lanes/LANES.md:17

  • This generic workspace template still claims that the register was seeded by Brett's openxfactory-1d session from an inventory.md that the template does not contain. A materialized {{LOGIN}}-wip would publish false repository-specific provenance; keep only generic protocol provenance or make the seed metadata placeholders.
**In force — ratified by Brett Heap 2026-09-03 (in session, lane
openxfactory-1d; agreed in principle 2026-09-02 "i agree. lets do that.";
ratified "take 2").** Seeded 2026-09-02T18:4xZ by lane `openxfactory-1d`
(session `60342fd2`) from the Part-A lane map in `inventory.md`. The protocol
that prescribes this file is in force too:
`~/.agents/protocols/lane-collision-protocol.md`
(`Status: in force`), as amended 2026-09-09 by **Amendment 3 — Rule 9
(registry in git) and Rule 10 (workstation designation)**.

templates/workspace-root/workspaces/README.md:40

  • The canonical manifest documentation repeats the same command-name mismatch: speckit park/speckit resume are not the installed entry points, so a user following this section is told to invoke a command that is not present. Use park/resume here; retain written_by: speckit park only as a provenance value if that is the schema contract.
`speckit park` writes these files, and `speckit resume` reads them. **They
are never hand-edited.** A manifest is a record of git state (branches,

templates/workspace-root/workspaces/README.md:8

  • ~/.agents/workspace.yaml points at the workspace checkout root (path: ~/projects/{{LOGIN}}-wip in the root README), not at this workspaces/ subdirectory. As written, a reader can configure .../workspaces and make park/resume look in the wrong place.
branch, at which commit, in which leg, and pushed or not. It is the manifest
repository named by `~/.agents/workspace.yaml`, and this is where that
config's `path:` points.

templates/workspace-root/workspaces/README.md:50

  • This section documents only the standalone-project example, but family manifests are a distinct schema: the workspace tooling records a top-level family: value and uses workspaces/<org>/<Family>.yaml. Without documenting that required family field and structure, this template cannot be used to construct the family manifest it promises in the preceding section; add a family-shaped example or define those fields explicitly.
## Schema

Fixed key order, written by `park` in one pass so that re-parking unchanged
state produces a byte-identical file (no empty commit). A standalone-project
example, one leg parked:
  • Files reviewed: 10/10 changed files
  • Comments generated: 6
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread templates/workspace-root/README.md Resolved
Comment thread templates/workspace-root/README.md Resolved
Comment thread templates/workspace-root/lanes/LANES.md Resolved
…o README.md's new blob and raise the line cap for templates/workspace-root/ (#154)

a54d612 added one line to README.md's "Layout of this repository" naming
the fifth template, which moved README.md's own git blob hash and grew it
by one line. Two hygiene tests pin those facts and both went red:

- test_the_handbook_follows_the_readmes_outline: docs/handbook.html's
  footer pinned the old blob (a9e9a83)
  and now disagrees with the working tree
  (635980f). Regenerated the footer's
  provenance sentence (cites #154 alongside #97/#99) and added the
  templates/workspace-root/ row to the handbook's own Layout list,
  mirroring the README edit.
- test_readme_is_short_enough_to_be_read: raised the cap from 1375 to
  1376 lines, with a dated comment entry in the same shape as the
  existing history, since the new row is one line.

python3 -m pytest tests -q: 1143 passed, 1 skipped (was 2 failed, 1141
passed, 1 skipped before this commit).

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Copilot AI review requested due to automatic review settings September 12, 2026 19:08
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openRepoProject-1

Picked this PR up mid-task: the previous writer's status comment above left docs/handbook.html and tests/test_repo_hygiene.py modified but uncommitted, fixing the two hygiene failures it reported (a54d612's one-line README.md edit moved the file's blob hash and grew it by a line). Reviewed both diffs, ran the suite in the foreground once (python3 -m pytest tests -q), and it was green, so committed and pushed.

Head: 3c83e41563b037719945c21b5a6ae878aba6d2d4 (was a54d612)

Test result: 1143 passed, 1 skipped in 381.26s — up from the previously-reported 2 failed, 1141 passed, 1 skipped.

Fixes committed:

  • docs/handbook.html — re-pinned the footer's README.md blob hash (a9e9a83… → 635980f…), updated its provenance sentence to cite templates/workspace-root: the <user>-wip template (lane protocol Amendment 9, act 1) #154, and added the templates/workspace-root/ row to the handbook's own Layout list, fixing test_the_handbook_follows_the_readmes_outline.
  • tests/test_repo_hygiene.py — raised test_readme_is_short_enough_to_be_read's line cap from 1375 to 1376 (one new README.md row), with a dated history comment in the same shape as the existing entries.

Still a draft; not marking ready. Leaving the spec-conformance check (Amendment 9 vs. this template) to a separate report.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Address the unresolved moderate and nit findings before approval.

Review details

Suppressed comments (8)

Previously missed (2) — in code that hasn't changed since the last review.

templates/workspace-root/lanes/LANES.md:13

  • This reusable template still seeds Brett's xFactory-specific ratification/session provenance (openxfactory-1d, inventory.md, and fixed dates). A new person's <user>-wip would claim this history before any lane exists, despite the PR's stated removal of one-off history. Remove this estate-specific block or render only generic values during materialization.
    templates/workspace-root/lanes/LANES.md:25
  • This block still documents the pre-Amendment-5 storage model: xFactory/LANES.md points into an orphan .lanes branch and is never committed to main. In this template, lanes/LANES.md is the real file tracked on the workspace repository's main, with estate paths symlinking to it; leaving this text directs users to the wrong register.

templates/workspace-root/README.md:59

  • This table hardcodes the default ~/projects/{{LOGIN}}-wip target even though the preceding paragraph advertises an orgs: override. For an overridden organization, the estate symlinks must point into that organization's configured workspace checkout; the current table directs operators to the home-organization repository and omits the privacy boundary. Describe the target as the selected workspace path rather than the default path.
| the live path a lane already uses | points at |
|---|---|
| `~/projects/<estate>/handoffs` | `~/projects/{{LOGIN}}-wip/handoffs/<estate>` |
| `~/projects/<estate>/LANES.md` | `~/projects/{{LOGIN}}-wip/lanes/LANES.md` |

templates/workspace-root/lanes/LANES.md:39

  • The template hardcodes Eagle/Raven and brett as the actual workstation and user values. A new person's blank register would present those values as its identity and can cause rows to be attributed to the wrong operator; keep the column format and a generic placeholder/example instead.
**Workstation designation (Rule 10).** Two workstations run lanes — **Eagle**
and **Raven** — and the same window name (`opsXfactory-2`) can exist on both.
So column 3 is `workstation / env / user`, spelled exactly
`<Workstation> / <env> / <user>`, e.g. `Eagle / WSL2 / brett`. A row whose
workstation is not yet established reads
`<workstation? — owner fills> / WSL2 / brett` and its **owner fills it in**.

templates/workspace-root/lanes/LANES.md:53

  • These examples still invoke ./lanes-edit.sh from the xFactory checkout, but the workspace template intentionally ships no scripts. A fresh workspace therefore gets command not found when following the register instructions; invoke the installed lanes-edit.sh supplied by opensoft/openRepoTools instead.
./lanes-edit.sh verify-row        <lane>
./lanes-edit.sh append-row-status <lane> "<text>"        # appends to the state cell
./lanes-edit.sh replace-in-row    <lane> "<old>" "<new>" # must match exactly once
./lanes-edit.sh append-line       "LANDING — lane … @Eagle, …"
./lanes-edit.sh add-row           "| `<lane>` | … | Eagle / WSL2 / brett | … |"
LANES_LANE=<lane> ./lanes-edit.sh commit "<message>"     # commit a hand edit

templates/workspace-root/lanes/LANES.md:4

  • The hazard tells readers to run ./lanes-edit.sh, but Amendment 9 says this template carries no lane tooling. That relative path does not exist in a materialized workspace, so the documented safe-write path fails exactly where the symlink-preservation warning matters.
     the registry from git. Write with ./lanes-edit.sh, or with

templates/workspace-root/workspaces/README.md:30

  • The naming/override section establishes that the default repository stores manifests under workspaces/<org>/…, but these examples omit that required org directory. Following them puts files at the wrong paths and contradicts the per-org layout described above; include <org> in both manifest paths.
- `workspaces/<Family>.yaml` — one entry per member project of a family (the
  doubled `<Family>/<Family>` layout), so a family's whole set of parked
  features travels together.
- `workspaces/<Project>.yaml` — a standalone project not inside a family

templates/workspace-root/workspaces/README.md:43

  • speckit park and speckit resume are not commands exposed or documented by this repository's supported workflow. The documented entry points are make park/make resume in an estate, or the installed park/resume commands; as written, a new user following this template gets a command-not-found instead of updating or reading manifests. Use the supported spellings here.
`speckit park` writes these files, and `speckit resume` reads them. **They
are never hand-edited.** A manifest is a record of git state (branches,
commits, whether a leg pushed cleanly); editing it by hand can only produce
a value that does not match reality, and `resume`'s refusals depend on the
recorded `parked_commit` being trustworthy. If a manifest is wrong, the fix
  • Files reviewed: 12/12 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

…#154)

Applies the orchestrator's six review decisions in one pass:

1. workspaces/ ships .gitkeep only (clause (d)); deleted workspaces/README.md,
   its schema/invariants/concurrency content preserved in the PR comment for
   openRepoTools's own docs.
2. README.md: added "Adopting it on a second workstation" (clone,
   ~/.agents/workspace.yaml, installed link-estates) — the clause (d) item
   the template was missing.
3. lanes/LANES.md: table now has a header row AND a separator row (the
   separator was missing entirely); header block genericized — no
   ratification date, session id, Eagle/Raven, or ~/projects/xFactory;
   commands spelled `lanes-edit.sh`, never `./lanes-edit.sh` beside the file.
4. Removed lanes/README-lanes.md (clause (d)'s own "what it does not carry"
   list assigns it to clause (b), opensoft/openRepoTools). Repointed every
   cross-reference (AGENTS.md rules 2 and 8, lanes/log/README.md,
   lanes/LANES.md x2, README.md) to "README-lanes in opensoft/openRepoTools"
   in words, no path.
5. Copilot's three points: ruleset-exemption claims made conditional
   ("when the organisation's PR-only ruleset excludes this repository") in
   README.md, AGENTS.md rule 6, and handoffs/README.md; `speckit park` /
   `speckit resume` -> `park` / `resume` (the amendment text itself never
   says "speckit park/resume" - checked clauses (a),(b),(d) and the wider
   file); grep -rni xfactory templates/workspace-root now clean.
6. Hygiene: no changes needed to README.md's line cap or docs/handbook.html's
   pinned hash this round, since no edit here touches the top-level
   README.md. `python3 -m pytest tests -q`: 1143 passed, 1 skipped (378s),
   same count as the pre-existing baseline at 3c83e41.

Lane: openRepoProject-1

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Copilot AI review requested due to automatic review settings September 12, 2026 19:28
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openRepoProject-1

Fix round on the orchestrator's six decisions, applied in one commit: 4fb3d13 (was 3c83e41).

1. workspaces/ ships .gitkeep only. Deleted templates/workspace-root/workspaces/README.md; added templates/workspace-root/workspaces/.gitkeep. Its schema/invariants/concurrency content is preserved below so it is not lost.

2. README.md gains the missing clause (d) item. Added a "## Adopting it on a second workstation" section to templates/workspace-root/README.md (clone {{ORG}}/{{LOGIN}}-wip, write the two ~/.agents/workspace.yaml lines, run the installed link-estates), placed after "The link targets" and before "Direct commits to main".

3. lanes/LANES.md gets a valid table. templates/workspace-root/lanes/LANES.md previously had a header row with no separator row at all (an invalid markdown table) and no data rows — now it has both a header and separator row, still no data rows. The header block is genericized: no ratification date, session id, Eagle/Raven, or ~/projects/xFactory; every command reads lanes-edit.sh (found through ~/.agents/workspace.yaml), never ./lanes-edit.sh beside the file.

4. lanes/README-lanes.md removed. Deleted templates/workspace-root/lanes/README-lanes.md (clause (d)'s own "what it does not carry" list assigns it to clause (b), opensoft/openRepoTools). Repointed every cross-reference to "README-lanes in opensoft/openRepoTools" in words, no path:

  • templates/workspace-root/AGENTS.md rule 2 and the "Governing documents" list (rule 8's citation)
  • templates/workspace-root/lanes/log/README.md
  • templates/workspace-root/lanes/LANES.md (x2)
  • templates/workspace-root/README.md (Layout block)

5. Copilot's three points.

  • Ruleset-exemption claims made conditional ("when the organisation's PR-only ruleset excludes this repository") in templates/workspace-root/README.md ("Direct commits to main"), templates/workspace-root/AGENTS.md (rule 6), and templates/workspace-root/handoffs/README.md ("One commit per write") — each now also says what to do when no such exclusion is configured (use the organisation's approved PR flow instead), and AGENTS.md rule 6 now also forbids bypassing a ruleset that refuses a direct push.
  • speckit park/speckit resume → park/resume in templates/workspace-root/README.md and templates/workspace-root/AGENTS.md (rule 4). Checked: clauses (a), (b) and (d) of Amendment 9, and the rest of the amendment file, use park/resume throughout and never write "speckit park/resume" — so no amendment-text exception applies.
  • grep -rni xfactory templates/workspace-root is now clean (was 6 hits, all in lanes/LANES.md, resolved by decision 3's rewrite).

6. Hygiene re-run. No edit this round touches the top-level README.md, so its line cap (tests/test_repo_hygiene.py, still 1376) and docs/handbook.html's pinned blob hash needed no changes — confirmed via git diff --stat against both files (empty). python3 -m pytest tests -q: 1143 passed, 1 skipped in 378.40s, same count as the pre-existing baseline at 3c83e41.

Head: 4fb3d13c (was 3c83e41)


Content moved out of the template, for openRepoTools docs

The following is the Schema, Invariants and Concurrency material from the deleted templates/workspace-root/workspaces/README.md, preserved verbatim (including its speckit park provenance label, uncorrected, as a faithful record of what existed) so it can be folded into opensoft/openRepoTools's own manifest documentation:

Schema

Fixed key order, written by park in one pass so that re-parking unchanged
state produces a byte-identical file (no empty commit). A standalone-project
example, one leg parked:

schema_version: 1
kind: workspace-manifest
written_by: speckit park          # provenance, not authority
projects:
  - id: atlas
    repository: {{ORG}}/Atlas
    shape: single                  # three-leg | single
    root: Atlas                    # POSIX, RELATIVE to ~/projects
    tracking_branch: main
    parked_at: 2026-01-01T00:00:00Z
    parked_on: <workstation>
    parked_by_lane: <lane>
    active_feature: 001-example
    features:
      - branch: 001-example
        legs:
          - role: repo
            remote: origin
            parked_commit: <40-hex sha>
            wip: false
            wip_depth: 0
            pushed: true

A shape: three-leg entry carries one leg per role (assembly/spec/code)
and a feature_directory; shape: single carries one leg, role: repo, and
omits it.

Invariants

  • No absolute path anywhere in a value. A linked worktree's absolute path
    is machine plumbing; only branches, commits and a relative root are
    recorded.
  • parked_commit is always a full 40-hex sha — never abbreviated.
  • root is POSIX and relative — forward slashes, no drive letter, no
    leading / or ~.
  • wip_depth >= 1 if and only if wip: true.
  • One projects[] entry per id.

Concurrency

park treats this directory the way the lane tooling treats the lane
register beside it, for the same reasons:

  1. a mutex around the write, released on exit;
  2. any pre-existing uncommitted change under workspaces/ is committed
    first, as its own commit, so a peer's in-flight edit is never swept into
    yours;
  3. only the one project's block is rewritten;
  4. one commit per park, with an explicit pathspec — never git add -A,
    never a bare git commit;
  5. git pull --rebase before the push, retried on a race, and aborted
    (leaving the checkout clean) on a real conflict.

Two workstations parking the same project: last write wins, in this
person's own repository, and the write that "lost" is still in git log —
nothing is deleted. That is safe because this repository belongs to one
person alone.

🤖 Generated with Claude Code

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Two moderate documentation findings remain in templates/workspace-root/README.md.

Get a fresh assessment by requesting another Copilot review.

Review details

Suppressed comments (1)

templates/workspace-root/README.md:30

  • The PR description says this template adds both workspaces/README.md and lanes/README-lanes.md, but neither file exists under templates/workspace-root/ (only workspaces/.gitkeep and the external README-lanes references are present). A repository materialized from this template therefore lacks the promised workspace-manifest and local lane-data documentation; please add the two files or correct the PR scope and references before landing.
              Rule 9) — its data shape described by README-lanes in
              opensoft/openRepoTools, and the per-lane object logs under
              lanes/log/ (Amendment 7).
  • Files reviewed: 11/11 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread templates/workspace-root/README.md Resolved
)

Copilot's finding on README.md's "Layout of this repository" inventory
(the `templates/*/.gitattributes` line): the new template had no
.gitattributes, unlike its "-root" siblings assembly-root and family-root,
so a materialized `<user>-wip` checked out under Git for Windows'
core.autocrlf=true default would get CRLF where `lanes-edit.sh` needs to
match `lanes/LANES.md` a whole line at a time — the same failure this
repository's own root .gitattributes (#63) prevents for a clone of
openRepoShape itself.

Added templates/workspace-root/.gitattributes (`* text=auto eol=lf`), with
its own header rather than a copy of assembly-root/family-root's: this
template ships no contracts/shape-pin.yaml (clause (d) of lane-collision-
protocol Amendment 9 gives it no scripts, no manifest, no CI), so the
existing two templates' sha256-pin rationale doesn't hold for it — the
rationale here is `wip init`'s byte-for-byte copy and lanes-edit.sh's
line-based edits instead.

Covered it in the hygiene checks with a new, separate test,
test_the_workspace_template_says_what_its_bytes_are, rather than adding
"workspace-root" as a third parameter to the existing
assembly-root/family-root-parametrized tests (their docstrings are
specifically about the sha256-pin rationale, which doesn't apply here).

python3 -m pytest tests/test_repo_hygiene.py -q: 49 passed (was 48).

Lane: openRepoProject-1

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Copilot AI review requested due to automatic review settings September 12, 2026 22:33
…#154)

Copilot's finding on two threads (README.md:60, handoffs/README.md:24):
both hard-coded `~/projects/{{LOGIN}}-wip` as the symlink target the
moment after the preceding section documents an `orgs:` override that can
send an estate's handoffs and lane register into a different, org-owned
`<user>-wip` repository instead. Read only, to check: `~/.agents/
workspace.yaml` on this workstation (no `orgs:` entry configured here) and
`~/projects/brett-wip/scripts/link-estates` (no org-awareness in the
script itself — it links whatever `handoffs/<estate>/` subdirectories
exist in its OWN containing checkout, so which checkout you run it from is
what resolves the override, not a lookup inside link-estates). The
authoritative resolution order is `~/.agents/protocols/lane-collision-
protocol.md`'s Addendum to Amendment 4, clause (c): `--workspace` ->
`SPECKIT_WORKSPACE_PATH` -> `orgs.<org>` -> the default; clause (d): the
estate-folder symlink follows whichever repository that resolves to.

README.md ("The link targets") and handoffs/README.md ("The symlink")
now each say the target is whichever repository the estate's organisation
resolves to, citing clauses (c)-(d), with this repository's own path
marked as the default rather than asserted as the only outcome; an
overridden organisation's estate resolves into that other `<user>-wip`
checkout instead, wired up by running `link-estates` there, not this one.
handoffs/README.md's separate "An org placed under..." paragraph is folded
into the primary sentence instead of trailing it as an exception, per the
original finding's ask.

lanes/README-lanes.md carried the same finding (decision 4 of the prior
fix round already deleted that file, assigning its content to clause (b)/
opensoft/openRepoTools) and workspaces/README.md is likewise gone (decision
1); neither is reopened here.

Lane: openRepoProject-1

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@sonarqubecloud

Copy link
Copy Markdown

❌ The last analysis has failed.

See analysis details on SonarQube Cloud

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Critical concurrent register-editing risks and unresolved tooling and template-documentation inconsistencies remain.

Get a fresh assessment by requesting another Copilot review.

Review details

Suppressed comments (6)

Previously missed (1) — in code that hasn't changed since the last review.

templates/workspace-root/README.md:30

  • The template tree has no lanes/README-lanes.md and only workspaces/.gitkeep, although the PR description says both lanes/README-lanes.md and workspaces/README.md are shipped. A fresh wip init therefore cannot receive the promised local data-contract documentation. Please add those files and point these references at the local copies, or remove them from the claimed template contents.

templates/workspace-root/AGENTS.md:30

  • This template is intended to be usable on macOS, but BSD sed does not support GNU --follow-symlinks; a user following this documented alternative will get an option error. Mark it as GNU-sed-only (the redirect alternatives are portable) or remove it from the cross-platform instructions.
   `sed -i --follow-symlinks`, a `>` or `>>` redirect, `cat tmp > LANES.md`
   and python's `open(path,'w'|'a')` all preserve it. See

templates/workspace-root/AGENTS.md:93

  • The governing instructions repeat the dependency on wip init and the lane commands, but the referenced opensoft/openRepoTools main tree currently exposes only its four estate commands and no wip or lane-tool entry points. If this template intentionally precedes that later act, mark these as future dependencies and name the required tool revision so agents do not try unavailable commands.
- `opensoft/openRepoTools` — the lane tooling: `lanes-edit.sh`, `lane-start`,
  `lane-end`, `test_lane_helpers.sh`, `link-estates`, and `wip init` (what
  makes a repository like this one). Its own `AGENTS.md` is the operating
  manual; README-lanes there describes the register's data shape.

templates/workspace-root/README.md:18

  • This template directs users to lanes-edit.sh, lane-start, lane-end, link-estates, and openRepoTools wip init, but the current opensoft/openRepoTools repository only installs openRepoTools, park, resume, and status; its README describes those as the complete toolset. Because all register writes are delegated to those commands, a materialized workspace cannot follow these instructions until a coordinated openRepoTools change lands. Please land/update that dependency in the same rollout or label these commands as future and specify the required tool revision.
files — `lanes-edit.sh`, `lane-start`, `lane-end`, `link-estates` — is
`opensoft/openRepoTools`'s, not this repository's own; nothing in this
standard creates one of these repositories either, a person makes their own
by hand (or by `openRepoTools wip init`) and names it once.

templates/workspace-root/lanes/LANES.md:5

  • The same cross-platform instruction is repeated here: macOS's BSD sed rejects GNU --follow-symlinks, so this hazard block should qualify that command as GNU-sed-only or rely on the portable redirect alternatives.
     the registry from git. Write with `lanes-edit.sh`, or with
     `sed -i --follow-symlinks`, or with a `>` / `>>` redirect. NEVER write

tests/test_repo_hygiene.py:228

  • The rationale says unname_everywhere() is blind on CRLF, but that helper explicitly matches \r?\n (tests/test_update_shape_add.py:101-115) and is designed to handle CRLF. Please describe the workspace helper's actual LF-sensitive line matching instead; otherwise this new test documents the wrong reason for the .gitattributes requirement.
    `lanes/LANES.md`, is then edited a WHOLE LINE at a time by the installed
    `lanes-edit.sh` — exactly the match `unname_everywhere()` makes blind on
    a CRLF checkout of THIS repository, in
    `test_the_repository_root_carries_the_rule_too` above. No digest pins
    this template's copies, so nothing else would ever catch it (#154).
  • Files reviewed: 12/12 changed files
  • Comments generated: 2
  • Review effort level: Lite

Comment thread templates/workspace-root/AGENTS.md Resolved
Comment thread templates/workspace-root/lanes/LANES.md Resolved
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openRepoProject-1

Fix round on the three Copilot findings still open after 4fb3d13, applied
in two commits: 1bb7452, then 400f3d1. (Replies posted on the two
threads that have their own inline comment ids; points 1 and 3 below were
raised only inside a review body's "Suppressed comments" text, with no
separate thread to reply on, so they are recorded here instead.)

1. .gitattributes / LF invariant (README.md:1360's suppressed finding:
"the new template has no .gitattributes... add the LF rule to this
template and cover it in the hygiene checks"). Added
templates/workspace-root/.gitattributes (* text=auto eol=lf), with its
own header rather than a copy of assembly-root/family-root's: this template
ships no contracts/shape-pin.yaml (clause (d) of lane-collision-protocol
Amendment 9 gives it no scripts, no manifest, no CI), so the existing two
templates' sha256-digest-pin rationale doesn't hold for it. The rationale
here instead: openRepoTools wip init copies this template byte for byte
(the same way scaffold-project.py copies assembly-root), and the
register it seeds, lanes/LANES.md, is edited a whole line at a time by the
installed lanes-edit.sh — a CRLF checkout would go blind the same way
unname_everywhere() does on this repository's own tests, the reason the
repository's own root .gitattributes (#63) exists. Covered by a new,
separate test, test_the_workspace_template_says_what_its_bytes_are in
tests/test_repo_hygiene.py — not added as a third parameter to the
existing assembly-root/family-root tests, whose docstrings are specifically
about the sha256-pin rationale.

2. orgs: overrides in symlink targets (README.md:60 and
handoffs/README.md:24 — replied on both threads directly). Both hard-coded
~/projects/{{LOGIN}}-wip immediately after documenting an orgs: override
that can send an estate elsewhere. Read-only check of
~/.agents/workspace.yaml and ~/projects/brett-wip/scripts/link-estates
(the script has no org-lookup of its own — it links whatever
handoffs/<estate>/ subdirectories its own containing checkout has; which
checkout you run it from is what resolves an override) plus the
authoritative rule in ~/.agents/protocols/lane-collision-protocol.md's
Addendum to Amendment 4 — clause (c)'s resolution order (--workspace ->
SPECKIT_WORKSPACE_PATH -> orgs.<org> -> the default) and clause (d) (the
estate-folder symlink follows whichever repository that resolves to). Both
sections now describe the target as "whichever repository this estate's
organisation resolves to," this repository's own path marked as the default
rather than the only outcome. lanes/README-lanes.md and
workspaces/README.md carried the same finding on other threads; both files
are already gone (the prior fix round's decisions 1 and 4) and are not
reopened here.

3. Family-manifest schema example (a suppressed finding on the
now-deleted workspaces/README.md:50: "This section documents only the
standalone-project example, but family manifests are a distinct schema...
add a family-shaped example or define those fields explicitly"). Clause (d)
gives templates/workspace-root/ only workspaces/.gitkeep — no schema doc
ships in the template — and decision 1 of the prior fix round already moved
that content out of the template to this PR's own comment thread, for
opensoft/openRepoTools's docs, on purpose. Restoring it to a template file
would reopen that decision, so the missing example is added here instead,
alongside the standalone one already posted. Taken (read-only) from the real
schema in ~/projects/brett-wip/workspaces/README.md — the document the
template's deleted copy was itself generalised from, and which already
carries a family-shaped example the template's copy had dropped — anonymised
to placeholders, and with the written_by: speckit park -> written_by: park correction the prior fix round already made everywhere else in this
template:

schema_version: 1
kind: workspace-manifest
family: <Family>                    # omitted in a standalone-project file
written_by: park                    # provenance, not authority
projects:
  - id: <project>
    repository: {{ORG}}/<Project>
    shape: three-leg                # three-leg | single
    root: <Family>/<Project>        # POSIX, RELATIVE: to the family folder
                                     # for a family file, to ~/projects for
                                     # a standalone file
    tracking_branch: main
    worktree_root: worktrees        # provenance only; resume uses the LOCAL
                                     # config
    parked_at: 2026-01-01T00:00:00Z
    parked_on: <workstation>
    parked_by_lane: <lane>
    active_feature: 001-example
    active_feature_source: state_file   # state_file | worktree_root_fallback
                                         # | stale-feature-json
    features:
      - branch: 001-example
        feature_directory: worktrees/001-example/spec/specs/001-example
        legs:
          - role: spec
            remote: origin
            parked_commit: <40-hex sha>
            wip: true
            wip_depth: 1
            pushed: true
          - role: code
            remote: origin
            parked_commit: <40-hex sha>
            wip: false
            wip_depth: 0
            pushed: true

A family entry's doubled layout: root: <Family>/<Project>, matching
workspaces/<Family>.yaml's own name — one file per family, one
projects[] entry per member project. A standalone entry (already posted
above, in the prior comment) omits family: entirely, uses
root: <Project> (relative to ~/projects instead of the family folder),
and is shape: single, one leg, role: repo, no feature_directory.

Head: 400f3d1 (was 4fb3d13)

Tests: python3 -m pytest tests -q: 1144 passed, 1 skipped in
326.74s
— one more passed than the 4fb3d13 baseline (1143 passed, 1
skipped), the one new hygiene test from point 1.

Nothing left unresolved from the three points assigned this round.

🤖 Generated with Claude Code

@brettheap brettheap left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lane: openRepoProject-1

Checklist RE-VERIFICATION at 400f3d1 (two commits past the 4fb3d13 the #18 text and the prior fix round measured against: 1bb7452 adds .gitattributes, 400f3d1 resolves orgs: overrides in symlink targets). python3 -m pytest tests -q (1144 passed, 1 skipped) taken as already confirmed per the brief, not re-run.

File list and placeholders, measured directly (not from either PR's table)

find templates/workspace-root -type f | sort
  .gitattributes  .gitignore  AGENTS.md  CLAUDE.md  README.md
  handoffs/README.md  lanes/LANES.md  lanes/log/README.md  workspaces/.gitkeep
  -> 9 files
{{LOGIN}}: 17   {{ORG}}: 4   {{SHAPE_REPOSITORY}}: 2

This confirms, rather than merely repeats, the dying reviewer's unverified note: the template now has nine files and placeholder counts that differ from #18's substitution table (which says eight files / seven items, {{LOGIN}}=14, {{ORG}}=3). That mismatch is against #18's text, which is now stale relative to this PR's current head — filed as RV-T1 on that PR's review, not repeated here as a defect in this one.

The six decisions and the first two "later Copilot points" — confirmed

  • workspaces/ ships only .gitkeep (199 bytes) — confirmed, ls -la.
  • README.md carries ## Adopting it on a second workstation — confirmed present.
  • lanes/LANES.md ends on the column header and its separator row (|---|---|---|---|---|---|---|), no data rows, and zero occurrences of Eagle, Raven, xFactory, brettheap, brett-wip, or any ratifying session id anywhere in the template (grep -rniE over the whole tree) — confirmed clean.
  • No lanes/README-lanes.md anywhere in the tree; six cross-references correctly name README-lanes in opensoft/openRepoTools instead (AGENTS.md:31,93, README.md:28, lanes/LANES.md:18,39, lanes/log/README.md:6) — confirmed.
  • Hygiene re-pin: suite green per the brief (1144/1 skipped, up from 1143/1 at 3c83e41 — the one new hygiene test from point 1 below).
  • .gitattributes (LF invariant, added at 1bb7452) — present, * text=auto eol=lf, with its own from-scratch rationale rather than a copy of the other templates' sha256-pin rationale (correct, since this template ships no digest pin). See RV-S5 below for one factual error in its accompanying test's docstring.
  • Family-manifest schema example (PR comment 5649172032, point 3) — confirmed added to that comment thread as a read-only doc contribution, not to a template file (correctly not reopening the prior round's decision to keep it out of the shipped template).

Remaining findings

RV-S1 — BLOCKING. The third "later Copilot point," orgs: override wording (400f3d1), overreaches: it applies per-organisation resolution to the register (lanes/LANES.md), not only to handoffs, and nothing supports that extension. README.md's "The link targets" section now reads: "Every path an estate already uses keeps resolving... into whichever repository that estate's organisation resolves to (Addendum to Amendment 4, clauses (c)-(d))... in which case link-estates run from that other checkout is what places the pair below, not this one" — and the table's second row is ~/projects/<estate>/LANES.md → ~/projects/{{LOGIN}}-wip/lanes/LANES.md. Three independent checks all say this row should not be there:

  1. The cited authority, ~/.agents/protocols/lane-collision-protocol.md's "Addendum to Amendment 4" clauses (c)-(d), names only "that org's manifests AND handoffs" and "the estate-folder symlink ~/projects/<estate>/handoffs" — never the register.
  2. Amendment 9's own text (#18 @ a49e819) explicitly defers this exact question. Clause (a): "Which workspace repository holds the register of a person whose work is split across organisations is left open below." The Open section: "a organisation whose work must not be indexed outside it has that organisation's manifests and handoffs in a second repository — and one register, in the first." — i.e. the register is explicitly NOT supposed to follow an org override, and whether it ever should is stated as unresolved.
  3. Mechanically, live ~/projects/brett-wip/scripts/link-estates treats the two links completely differently: handoffs are placed in a loop over every handoffs/<estate>/ subdirectory (:107-116), but the register link is a single hard-coded target, link "$repo_dir/lanes/LANES.md" "$projects_root/xFactory/LANES.md" (:122) — there is no per-estate loop for it, consistent with Amendment 9(a)'s own description of the register as "one person's live-lane index across all their lanes," not scoped per estate or per org.

A person reading this template's shipped README.md would believe the register moves with an orgs: override; per (2) and (3) it does not, and whether it ever should is explicitly unsettled elsewhere. Fix: scope "The link targets" wording and its table to the handoffs row only (the register row keeps "in this repository" unconditionally, with no "by default" hedge), or resolve Amendment 9's Open item first and update the citation to something that actually says the register follows orgs:.

RV-S2 — minor, currently open and unreplied (posted 22:39:28Z/29Z against this exact head, 400f3d1, no later commit and no reply). Copilot review comments 3997877028 (AGENTS.md:31) and 3997877046 (lanes/LANES.md:5): presenting sed -i --follow-symlinks and a >/>> redirect as accepted direct-write alternatives (alongside lanes-edit.sh) bypasses the mutex and one-line validation, and could lose a concurrent lane's row. Verified: this exact wording is inherited byte-for-byte from live opensoft/brett-wip (AGENTS.md:24-25, lanes/LANES.md's own hazard block) — it is not new to this PR, so it is arguably brett-wip's/Amendment 9 act 3's scope rather than this template's. But the thread is open and unaddressed, and this is the one place a fresh repository is seeded from. Recommend a reply pointing to upstream scope, or fixing it here too since nothing else will now.

RV-S3 — minor, pending (PR-body accuracy, not code). The PR body's "What landed" list still names workspaces/README.md and lanes/README-lanes.md as shipped; both were removed in the prior fix round (decisions 1 and 4) and the current tree ships neither. Matches an open, unresolved "Previously missed" Copilot comment on README.md:30. Update the description.

RV-S4 — minor, documentation completeness. Repeated Copilot concern (AGENTS.md:93, README.md:18) that the template's docs point at openRepoTools wip init and the lane commands, which do not exist on opensoft/openRepoTools main yet. Expected under Amendment 9's phased rollout (act 2 template, act 3 tooling later) and already explained in #18 clause (d)/act 2 ("depends on nothing... whether it is ready is that PR's own gate") — but one sentence here noting the tooling lands in a later, coordinated act would stop this being re-raised on every review pass.

RV-S5 — minor, confirmed factually wrong. The new hygiene test's docstring (tests/test_repo_hygiene.py:218-229, test_the_workspace_template_says_what_its_bytes_are, added at 1bb7452) states the .gitattributes requirement exists because unname_everywhere() "makes blind on a CRLF checkout." Checked directly: unname_everywhere()'s own docstring (tests/test_update_shape_add.py:101-115) says the opposite — "Only the carriage return is optional (\r?\n)" — it is explicitly CRLF-tolerant by design. The real mechanism this template's .gitattributes guards against is lanes-edit.sh's whole-line matching against a materialized copy of the template (a different repository than this one), not unname_everywhere() in openRepoShape's own suite. The .gitattributes file itself is correct and wanted; only the test's stated rationale is wrong. Fix: correct the docstring to name the materialized-repository line-matching risk instead of unname_everywhere().

Opinion

NOT READY. The six decisions, the hygiene re-pin, and two of the three later Copilot points are solid and independently confirmed. RV-S1 is a substantive, currently-shipped claim that contradicts both the ratified addendum it cites and Amendment 9's own explicit "left open" stance, backed by a structural fact in the live link-estates script — this should be fixed before merge, not carried as an open question. RV-S2 and RV-S3 are open, unaddressed review threads a merge should not skip past silently.

Review opinion only; this lane ratifies nothing.

…ffs only (RV-S1)

Re-verification review pullrequestreview-5188565354 (RV-S1, BLOCKING):
"The link targets" table extended the org override to the register row
(`lanes/LANES.md`), but nothing supports that. The cited authority itself
says otherwise:

- Addendum to Amendment 4 clauses (c)-(d) (~/.agents/protocols/
  lane-collision-protocol.md) name only "that org's manifests AND
  handoffs" and "the estate-folder symlink ~/projects/<estate>/handoffs" -
  never the register.
- Amendment 9 clause (a) leaves open which workspace repository holds the
  register for a person split across organisations; its Open section is
  explicit that meanwhile there is "one register, in the first."
- Mechanically, ~/projects/brett-wip/scripts/link-estates (read-only,
  checked directly) loops per-estate for handoffs but hard-codes a single
  literal target for the register link - there is no override branch for
  it to take.

The table now carries only the handoffs row (still "by default", still
override-able); the register keeps "in this repository" unconditionally,
with the hard-coded link-estates target given as the mechanical reason.
handoffs/README.md was checked against the same finding and does not
overreach - its "symlink" section only ever discusses handoffs, so no
change was needed there.

Lane: openRepoProject-1

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Copilot AI review requested due to automatic review settings September 12, 2026 23:44
brettheap and others added 2 commits September 12, 2026 19:47
…t (RV-S4)

Re-verification review pullrequestreview-5188565354 (RV-S4, minor): Copilot
repeatedly flags README.md:18 and AGENTS.md:93 for pointing at
`openRepoTools wip init` / `lanes-edit.sh` etc., which are not on
opensoft/openRepoTools's main yet. Expected under Amendment 9's phased
rollout (this template is act 1; the tooling is act 3) and already
explained in openRepoShape#18 clause (d) - but nothing in either file said
so, hence the repeat flags on every pass.

One sentence added at each anchor, noting the tooling ships in Amendment
9's later, coordinated act 3 and that this template is complete/usable on
its own without it.

Lane: openRepoProject-1

Co-Authored-By: Claude Fable 5.1 <[email protected]>
…ng (RV-S5)

Re-verification review pullrequestreview-5188565354 (RV-S5, minor,
confirmed factually wrong). test_the_workspace_template_says_what_its_bytes_are's
docstring blamed unname_everywhere() (tests/test_update_shape_add.py) for
going blind on a CRLF checkout - but that function's own docstring says the
opposite: it explicitly tolerates `\r?\n` and is CRLF-TOLERANT by design, and
it operates on THIS repository's own copy-list bookkeeping, unrelated to
templates/workspace-root/ entirely.

The real mechanism templates/workspace-root/.gitattributes guards against -
already stated correctly in that file's own comment - is lanes-edit.sh's
whole-line matching against a MATERIALIZED copy of this template (a
person's own <user>-wip, a different repository from this one): a CRLF
checkout there is what turns a whole-line match blind or wrong, the same
failure SHAPE as unname_everywhere() on a CRLF checkout of this repository,
not the same function or the same repository.

The .gitattributes file itself was already correct; only the test's stated
rationale needed fixing.

Lane: openRepoProject-1

Co-Authored-By: Claude Fable 5.1 <[email protected]>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Resolve the documented template-content and workspace-path/configuration inconsistencies.

Review details

Suppressed comments (5)

templates/workspace-root/README.md:84

  • This second-workstation procedure copies only the two-line default configuration and therefore drops any orgs: overrides described above. On a machine using an override, park/resume and link-estates will fall back to the home-org workspace, breaking the documented per-org isolation. Instruct readers to copy the complete workspace configuration, including overrides, and clone/update each selected repository path.
## Adopting it on a second workstation

Clone `{{ORG}}/{{LOGIN}}-wip`, write the same two lines shown above into
`~/.agents/workspace.yaml` on that workstation (`path:` set to wherever the

templates/workspace-root/README.md:30

  • The PR description says this template includes lanes/README-lanes.md and workspaces/README.md, but neither file exists in the added tree (only lanes/log/README.md and workspaces/.gitkeep are present). These lines instead redirect the register data shape to openRepoTools, so the implementation and stated contents disagree; please either add the promised data-only docs or update the description and references consistently.
              (`handoffs/<estate>/session-handoff-<date>-lane-<name>.md`).
lanes/        LANES.md — the estate lane register (lane-collision-protocol
              Rule 9) — its data shape described by README-lanes in

templates/workspace-root/README.md:75

  • This says every estate's register link always targets ~/projects/{{LOGIN}}-wip, but the next section explicitly allows path: to be set wherever the workspace was cloned on a second workstation. Following these instructions with a non-default path makes link-estates point at the wrong checkout; document the configured default workspace path here instead of a fixed example path.
**The register does not move with the `orgs:` override.** `lanes/LANES.md`
is one file, in this repository, for every estate regardless of

templates/workspace-root/lanes/LANES.md:19

  • The PR description also lists lanes/README-lanes.md, but no such file is present under templates/workspace-root; this template instead points readers to the external openRepoTools README. A materialized workspace therefore lacks the promised data-only lane-register documentation. Add the file or update the stated deliverable and references consistently.
The row format and the `sed -i` hazard, in full: README-lanes in
`opensoft/openRepoTools`.

templates/workspace-root/workspaces/.gitkeep:3

  • The PR description lists workspaces/README.md as part of this template, but this directory currently contains only .gitkeep. Since wip init copies this tree, a new workspace will not receive the promised manifest documentation. Please add that file or make the deliverable and any references consistent with the data-only split.
# Git tracks no empty directory. `park` writes
# `workspaces/<org>/<Family|Project>.yaml` into this directory and `resume`
# reads them; neither file is ever hand-edited, and nothing reads this one.
  • Files reviewed: 12/12 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

Copilot AI review requested due to automatic review settings September 12, 2026 23:48

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The configurable workspace-path issue must be fixed, along with the related documentation wording corrections.

Review details

Suppressed comments (3)

Previously missed (2) — in code that hasn't changed since the last review.

README.md:1362

  • Adding workspace-root makes the following wildcard row cover a template that explicitly has no digest pin (.gitattributes explains this at lines 4–7). The phrase “so a copy digests as pinned” is therefore false for this new template; qualify the row so only shape-pinned roots are described as digest-pinned, and mirror the correction in the handbook.
    docs/handbook.html:1656
  • This new layout entry now sits beside a wildcard description that includes workspace-root, but the workspace template has no digest pin. Saying that every matching copy “digests as pinned” conflicts with its own .gitattributes contract; qualify the handbook row for pinned roots, matching the README correction.

templates/workspace-root/README.md:79

  • The register link is hard-coded to ~/projects/{{LOGIN}}-wip, but this template explicitly allows path: to point to wherever the clone lives on a second workstation (lines 83–85). link-estates will therefore create a broken or wrong LANES.md symlink for any non-default checkout, even though handoff links resolve the configured workspace. Resolve this target from the configured workspace path instead of hard-coding the default home path.
`~/projects/{{LOGIN}}-wip/lanes/LANES.md`. `link-estates` places that link
from a single hard-coded target, not the per-estate loop the handoffs link
above runs through, so there is nowhere else it could resolve to.
  • Files reviewed: 12/12 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openRepoProject-1

Closed the re-verification findings from pullrequestreview-5188565354.

Finding → commit

  • RV-S1 (BLOCKING) — templates/workspace-root/README.md's "The link targets" section rescoped: the orgs: override now resolves only the handoffs row (Addendum to Amendment 4 clauses (c)-(d) name manifests and handoffs, never the register); lanes/LANES.md keeps "in this repository" unconditionally, with link-estates's single hard-coded register target given as the mechanical reason. handoffs/README.md was checked against the same finding — it only ever discusses handoffs, so it did not overreach and needed no change. → c8f3b0c
  • RV-S2 (minor) — replied on both open Copilot threads about the inherited hazard wording (AGENTS.md:31, lanes/LANES.md:5): confirmed it's inherited byte-for-byte from live opensoft/brett-wip, stated what it currently says (distinguishing symlink-preserving from symlink-destroying raw edits, not endorsing them as mutex-safe alternatives), and pointed the substantive fix at opensoft/openRepoTools (Amendment 9 act 3), consistent with this template's own rule 8. No file change; no commit.
  • RV-S3 (minor) — PR body's "What landed" section corrected: the file list now names the nine files actually at head, and the stale lanes/README-lanes.md bullet now says that file isn't shipped and points at README-lanes in opensoft/openRepoTools instead. Also replied on the "Previously missed" Copilot thread (README.md:30) that raised this. PR metadata only; no repo commit.
  • RV-S4 (minor) — one sentence added at each recurring anchor (README.md, and AGENTS.md's governing-documents section) noting the lane tooling ships in Amendment 9's later, coordinated act 3, and this template (act 1) is complete without it. Replied on the open Copilot thread (README.md:18) that keeps re-raising this. → 94da315
  • RV-S5 (minor) — corrected tests/test_repo_hygiene.py's test_the_workspace_template_says_what_its_bytes_are docstring: it had misattributed the CRLF hazard to unname_everywhere(), which is CRLF-TOLERANT by design (per its own docstring) and operates on this repository's own copy-lists — unrelated. The real mechanism, already stated correctly in .gitattributes's own comment, is lanes-edit.sh's whole-line matching against a MATERIALIZED copy of this template in a different repository. → 0c11e33

Counts at head (0c11e33)

$ find templates/workspace-root -type f | sort
templates/workspace-root/.gitattributes
templates/workspace-root/.gitignore
templates/workspace-root/AGENTS.md
templates/workspace-root/CLAUDE.md
templates/workspace-root/README.md
templates/workspace-root/handoffs/README.md
templates/workspace-root/lanes/LANES.md
templates/workspace-root/lanes/log/README.md
templates/workspace-root/workspaces/.gitkeep
-> 9 files

$ grep -rho '{{[A-Z_]*}}' templates/workspace-root | sort | uniq -c
     17 {{LOGIN}}
      4 {{ORG}}
      2 {{SHAPE_REPOSITORY}}

No template files added or removed; placeholder counts unchanged from the review's own measurement.

python3 -m pytest tests -q: 1144 passed, 1 skipped (unchanged from the review's baseline — none of these fixes touch test logic, only prose and one docstring).

Head: 0c11e332fc8e7257bffd74913eb60bc2755d4cbd

Lane openRepoProject-1 ratifies nothing; posting for re-review.

@brettheap brettheap left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lane: openRepoProject-1

Final confirmation pass — RV-S1..S5 re-verification fix round, checked at 0c11e33

A checklist re-check against the RV-S1–S5 review (pullrequestreview-5188565354) and the fix comment (5649512945) — confirming closure at the current head, not re-reviewing from scratch. Opinion only, not a ratification.

Finding Status Evidence
RV-S1 (orgs: override overreaching onto the register) CLOSED templates/workspace-root/README.md's "## The link targets" section now scopes the override explicitly to "manifests and handoffs, not the register," carries only one table row (handoffs), and states plainly: "The register does not move with the orgs: override. lanes/LANES.md is one file, in this repository, for every estate regardless of organisation... link-estates places that link from a single hard-coded target, not the per-estate loop the handoffs link above runs through." Read directly; matches new-workstation#18's mirrored wording (its RV-T3).
RV-S2 (raw-edit alternatives thread) CLOSED (via reply) Addressed by reply rather than a code change: the listed alternative forms are clarified as distinguishing symlink-preserving from symlink-destroying edits (not endorsed as mutex-safe), with the substantive fix deferred to opensoft/openRepoTools per this template's own rule 8 (no tooling exception).
RV-S3 (stale PR-body file list) CLOSED PR body's "What landed" now lists the actual nine files and states plainly that lanes/README-lanes.md is not shipped here.
RV-S4 (tooling-not-yet-landed note) CLOSED README.md and AGENTS.md both now state the coordinating tooling ships in "Amendment 9's later, coordinated act 3" and that this template (act 1) depends on none of it.
RV-S5 (docstring misattribution) CLOSED The .gitattributes test's docstring in tests/test_repo_hygiene.py no longer claims unname_everywhere() is CRLF-blind; it now correctly describes a different function in a different repository, matching the narrower assertions the test body actually makes.

PR body nine-files check: PASS, with one minor documentation-accuracy gap found independently (not one of RV-S1..S5): the template directory has exactly 9 files, matching the PR body's count exactly. But the full PR diff (origin/main...0c11e33) touches 12 files total — the 9 template files, plus the root README.md (covered in body prose) and docs/handbook.html (covered by the bot's own summary bullet), plus tests/test_repo_hygiene.py (not reconciled). The PR body states "python3 -m pytest tests -q passes unchanged... none of the existing template-materializer or .gitattributes tests are parametrized over it" — I confirmed directly this is now stale: this PR's own diff adds test_the_workspace_template_says_what_its_bytes_are (a pure +def addition), which is exactly such a test. Minor, not blocking.

Copilot threads: 9 total on this PR. Both named threads (3997880257 on the orgs: README point, 3997880400 on handoffs/README.md) carry substantive replies — confirmed directly. 6 of 9 threads overall have substantive replies. The remaining 3 (on lanes/README-lanes.md, workspaces/README.md, and lanes/LANES.md's pre-rework wording) carry no reply text; I confirmed via the GraphQL API that the README-lanes.md one is isResolved: true, isOutdated: true because the file it targeted (templates/workspace-root/lanes/README-lanes.md) no longer exists in the template at all — a reply would only restate what GitHub's own outdated-diff marker already shows. Noted for transparency rather than as a gap: every thread whose target content still exists has a substantive reply.

pytest: python3 -m pytest tests/test_repo_hygiene.py -q → 49 passed, 0 failed — re-run directly by me, matches the sub-verification exactly. (Full-suite 1144 passed / 1 skipped at this head taken as read per the brief, not re-run.)

Regression scan: git show 0c11e33 --stat touches only tests/test_repo_hygiene.py (+8/-4), entirely inside the one docstring's prose. No assertion logic changed, no other file touched.

Opinion: READY. All five RV findings are closed with direct, quoted evidence, the nine-file template count matches exactly, pytest is green (independently re-confirmed), and the head commit is a pure docstring fix with no collateral change. Two items are worth a follow-up but don't block: the stale pytest-parametrization sentence in the PR body, and the three long-outdated Copilot threads whose target content no longer exists.

@brettheap
brettheap marked this pull request as ready for review September 13, 2026 00:11

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 1 day and 17 hours by commenting @sourcery-ai review. Upgrade to get a review now.

…atify 154", Brett Heap, 2026-09-13T02:36:08Z, bare over 0c11e33

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@sonarqubecloud

Copy link
Copy Markdown

@brettheap
brettheap merged commit 511e9c2 into main Sep 13, 2026
5 checks passed
@brettheap
brettheap deleted the templates/workspace-root branch September 13, 2026 02:53
brettheap added a commit that referenced this pull request Sep 13, 2026
… template) into fix/same-repository-path-tail

CLEAN, AND BOTH SIDES OF THE TWO FILES THAT OVERLAP ARE KEPT. `#159` (ba14e1d)
moved `shape-doctor.py`'s behind-pin clause into `what_a_re_pin_would_move`
and appended a test to `tests/test_shape_doctor.py`; this branch adds
`same_repository_here` beside `working_clone` in the same file and rows plus
two tests to the same suite. The hunks do not touch each other, so git merged
them and every test from both sides runs below.

Merged rather than rebased: the branch is pushed and the repository ruleset
refuses a force-push.

Lane: openreposhape-2 (openRepoShape-2)

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

templates/workspace-root: the <user>-wip template (lane protocol Amendment 9, act 1)

2 participants