Skip to content

Naming: a sixth form, <user>-wip — the person's workspace repository, unambiguous by construction like -Install, creating nothing and conferring nothing (#81) - #86

Merged
brettheap merged 1 commit into
mainfrom
feat/workspace-naming-form
Sep 10, 2026
Merged

brettheap merged 1 commit into
mainfrom
feat/workspace-naming-form

Conversation

@brettheap

@brettheap brettheap commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Lane: xfactory-2 (xFactory-2)
Claim: #81 (CLAIMED comment, 2026-09-10, on Brett Heap's "claim 81 and start on it"), slice A of two — slice B (the Addendum to Amendment 4) landed in brettheap/new-workstation as PR #5 and was ratified 2026-09-10 (b391d74)

Closes #81.

A sixth naming form, workspace: <user>-wip. ^[a-z0-9]+(?:-[a-z0-9]+)*-wip$ — the lowercased GitHub login (no doubled, leading or trailing hyphens, as a login has none) and the literal -wip; precedence 6, after family. NOT declared-only: the suffix is unambiguous by construction exactly as <X>-Install is, so it needs no --role and no pin, and it is admitted into no role either. The contract's own prose says what it is (the PRIVATE repository one person owns, holding workspaces/<org>/… manifests and handoffs/<estate>/…, written by speckit park and read by resume, the handoff home under lane-collision Amendment 4), what it is not (not a project, leg or family; holds no code; elects nothing; confers nothing), where it lives (the person's home org by default, one per person, with the per-org override — Brett Heap's rulings on #81), and that nothing in this standard CREATES one. The five existing forms' text and precedence are untouched.

Classifier. brett-wip → workspace; --explain names the form, the rule, and a new UNAMBIGUOUS BY CONSTRUCTION note (which now also prints on the install row, where it was always true). --role workspace is refused as an unknown choice, the same treatment --role install has always had — only a form needing a declaration is a --role value; --role assembly brett-wip still answers workspace. UNAMBIGUOUS_FORMS lives in code, not in the policy file, on purpose: a new classifier reading an OLD copied policy must not start classifying every open<Product> as a project leg, and the two files are separate pin rows. One hardening found on the way: classify()'s residual tail assumed domain-descendant was among the matches and raised KeyError for a form with no branch of its own — exactly what brett-wip would have hit had only the contract changed; it now reports the highest-precedence match with a reason.

Tests (15 functions in tests/test_naming_policy.py, +67 cases): the positives (brett-wip, scott-wip, a1-wip), the near-misses (Brett-wip, brett-WIP, brett_wip, -wip, wip, brett-wip-2, brett--wip), precedence order and distinctness of the six forms, the policy parsing under the project's own loader, the CLI paths, and a 51-row KEEPS_ITS_ANSWER regression table restating every answer the file already asserted. Beyond the suite: every name in the five older forms' own data × 5 roles × 6 pin sets × 2 chains — 2100 combinations — classified under old code + old policy and new code + new policy, comparing family, role, also_matches, reason and referent: 0 differences. Full suite: 887 passed, 1 skipped.

Docs. README's Layout block: five naming families → six; the "Carrying in-flight work…" section: the <user>-wip repository, the home-org default, the orgs: override, resume --workspace <owner>/<user>-wip on a fresh machine. AGENTS.md "What you must not tell them": a <user>-wip repository confers nothing and holds no code. Caps moved with dated entries.

Reach. contracts/repository-naming.yaml and scripts/repo_shape.py are copied, pinned files (two separate rows), so existing roots and the holder take them as upstream-changed through update-shape.py apply — on a human's word.

Follow-ups, not here: docs/handbook.html says "five" at one place and "four" at another; templates/assembly-root/README.md has said "the four naming families" since #1 — pre-existing drift in a templated file, for a decision of Brett's.

🤖 Generated with Claude Code

Summary by Sourcery

Add the unambiguous <user>-wip workspace naming form and integrate it across the naming policy, classifier, CLI, documentation, and tests.

New Features:

  • Add the <user>-wip workspace repository as a sixth naming form for private per-user work indexes.
  • Document workspace repository ownership, placement, organization overrides, resume usage, and non-creation semantics.

Bug Fixes:

  • Prevent classification from raising an error when a policy form has no dedicated classifier branch, returning the highest-precedence match instead.

Enhancements:

  • Classify workspace names as unambiguous by construction without requiring a role declaration or referent pin, while refusing them for all repository roles.
  • Expose workspace classification and explanations through the CLI, including explicit near-miss handling and unambiguous-form messaging.

Documentation:

  • Update README and AGENTS.md to describe the sixth naming form and clarify that workspace repositories hold no code, confer no membership, and elect nothing.

Tests:

  • Add comprehensive workspace naming, precedence, CLI, policy parsing, and regression coverage while preserving existing classification answers.

…y, unambiguous by construction like -Install, creating nothing and conferring nothing (#81)

#81, under Brett Heap's ruling of 2026-09-09, on the workspace repository once
there are two engineers: "the new-workstation name is one per user right? so if
we have brett and scott as engineers, then we need something like brett-wip and
scott-wip right?" — and, for this slice, his word of 2026-09-10: "claim 81 and
start on it". The issue's two open decisions are taken as its own
recommendations: nothing in this standard creates a `<user>-wip` repository,
and `<user>` is the GitHub login lowercased. Follows #77 (park/resume, the
workspace manifest, Amendment 4) and #82.

THE FORM. `contracts/repository-naming.yaml` gains `workspace`, precedence 6,
`^[a-z0-9]+(?:-[a-z0-9]+)*-wip$`: one lowercase login token — single hyphens
inside it, as a GitHub login admits, and no doubled ones, none leading and none
trailing — then the literal `-wip`. It is NOT declared-only, and that is the
point: the suffix is spelled by no other form in the file, so it is unambiguous
by construction exactly as `<X>-Install` is and needs no `--role`. The prose is
the file's own register and says what it IS (the private repository one person
owns, holding `workspaces/<org>/…` manifests and `handoffs/<estate>/…`, which
is the handoff home Amendment 4 gives them), what it is NOT (not a project, not
a leg, not a family; it holds no code, elects nothing, is membership of nothing
and confers nothing), WHERE IT LIVES (the person's home organisation by
default, one per person, indexing every org with a folder per org inside it,
with the opt-in `orgs:` override in `~/.agents/workspace.yaml` for an
organisation whose work must not be indexed outside it — rulings 1 to 3), and
that NOTHING HERE CREATES ONE. Every existing form's text, pattern and
precedence is untouched.

NOTHING ELSE MOVED, which is the property the README states and the reason the
family form was declared-only. 2100 combinations — every name in the five older
families' own data, times five roles, times six pin sets, times two recorded
chains — classify identically before and after: family, role, `also_matches`,
reason and referent status. `tests/test_naming_policy.py` now carries that as a
TABLE rather than as a claim (`KEEPS_ITS_ANSWER`, 51 rows, one property), and
the table is extended with the sixth form's own positives and near-misses
rather than doubled by a parallel test. `brett-wip` matched NOTHING before this
form existed; a name of that spelling is the only kind whose answer changes.
`brett--wip` and `brett-wip-2` join `unclassified_examples:` in the contract,
because the negative half of the policy is data here too.

THE CLASSIFIER. `UNAMBIGUOUS_FORMS` in `scripts/repo_shape.py` is now the list
`classify()` reads for the forms that need nothing declared, and it is in CODE
rather than in the policy data deliberately: `repository-naming.yaml` and
`repo_shape.py` are SEPARATE rows of a project's `shape-pin.yaml` and
`update-shape.py` can move one without the other, so a
`unambiguous_by_construction:` key read out of the file would make a new
classifier reading an old copied policy classify every `open<Product>` as a
project leg. The residual tail no longer assumes the descendant family is among
the matches: it raised `KeyError: 'domain-descendant'` for any form with no
branch of its own — a data file crashing the tool that reads it, which is what
`brett-wip` would have hit had the form been added to the contract alone — and
a seventh form now reports by precedence with a reason saying this classifier
has no rule for it. `accepts_role` needed no change and refuses a workspace
name in every role, which is how "nothing creates one" is a check rather than a
sentence: `scaffold-project.py brett-wip` is refused as it always was, now
naming the form instead of "matches no family".

`validate-repository-naming.py` classifies `brett-wip` as `workspace`, and
`--explain` names the rule on the row it applies to — `<X>-Install` gains the
same note, which was always true of it and never printed. `--role workspace` is
refused as the unknown choice it is, for the same reason `--role install` always
has been: only a form that needs a DECLARATION is a value there, and this one
needs none. A role that IS a choice, declared over such a name, is ignored
rather than carried.

DOCS. The README's naming-families sentence is six with a line for
`<user>-wip`, and the Layout block's row with it; the "Carrying in-flight work
to another workstation" section gains one paragraph — the name, the home-org
default, the `orgs:` override, `resume <Name> --workspace <owner>/<user>-wip`
on a fresh machine, and that nothing here creates one; AGENTS.md's "What you
must not tell them" gains the sentence that a `<user>-wip` repository confers
nothing either. README 1203 -> 1219 and AGENTS.md 370 -> 374, both caps moved
with dated rationale in each function's own style.

EXISTING ROOTS TAKE IT THROUGH `update-shape.py`.
`contracts/repository-naming.yaml` is a COPIED, PINNED row of every scaffolded
project's `contracts/shape-pin.yaml` (`COPIED_FROM_SHAPE`, and
`FAMILY_COPIED_FROM_SHAPE` for a holder), so it reports `upstream-changed` and
`apply` moves it — alongside `scripts/repo_shape.py`, which is a row of its
own.

FOLLOW-UP, not in this commit. `docs/handbook.html` is the designed reading of
the README and follows in its own pass, as #81 says: its line 994 still says
five families and 1251 says four. Separately, and stale since #1 rather than
because of this change, `templates/assembly-root/README.md:150` says "the four
naming families".

887 passed, 1 skipped. No GitHub repository was created, and nothing was
pushed.

Lane: xfactory-2 (xFactory-2)
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Copilot AI lite review requested due to automatic review settings September 10, 2026 12:59
@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

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

@sourcery-ai

sourcery-ai Bot commented Sep 10, 2026

Copy link
Copy Markdown

Reviewer's Guide

Introduces <user>-wip as a sixth, unambiguous workspace repository naming form, wires it through the policy classifier and CLI without admitting it to any role or creating repositories, documents its ownership and storage conventions, and adds comprehensive compatibility and regression tests.

Flow diagram for workspace repository classification

flowchart TD
    Name["Repository name"] --> Match{"Matches <user>-wip pattern?"}
    Match -->|Yes| Workspace["workspace form"]
    Workspace --> Explain["--explain reports UNAMBIGUOUS BY CONSTRUCTION"]
    Workspace --> Refuse["--role workspace is refused"]
    Match -->|No| Existing["Existing five-form precedence"]
Loading

File-Level Changes

Change Details Files
Adds the sixth workspace naming form for personal in-progress-work repositories.
  • Defines the lowercase <user>-wip pattern at precedence 6 with descriptive contract prose, examples, placement rules, and explicit non-governance semantics.
  • Documents the private workspace repository, home-organization default, per-organization override, resume usage, and non-creation behavior.
  • Updates repository layout and agent guidance to distinguish workspace repositories from project repositories.
contracts/repository-naming.yaml
README.md
AGENTS.md
Extends classification and validation to recognize workspace names as unambiguous, non-role-bearing forms.
  • Adds workspace to the code-owned UNAMBIGUOUS_FORMS set and classifies it before declaration-dependent forms.
  • Ensures declared roles do not change a workspace classification and that workspace is rejected as an invalid --role choice.
  • Adds --explain output identifying the pattern and its unambiguous-by-construction status.
  • Hardens residual classification to return the highest-precedence match instead of raising KeyError for policy forms lacking a classifier branch.
scripts/repo_shape.py
scripts/validate-repository-naming.py
Adds broad regression and CLI coverage for the new form and classifier invariants.
  • Tests valid workspace names, malformed and case-sensitive near-misses, precedence, policy parsing, role refusal, owner-qualified CLI input, explanations, and refusal paths.
  • Adds a table-driven regression set covering existing classifications and confirms no prior answers or overlaps change.
  • Tests that an unhandled future policy form is reported safely rather than crashing.
tests/test_naming_policy.py
Adjusts documentation-size guardrails for the added contract and guidance text.
  • Raises the AGENTS.md and README.md line-count caps with dated rationale for the new documentation.
tests/test_repo_hygiene.py

Assessment against linked issues

Issue Objective Addressed Explanation
#81 Add the workspace repository naming form, <user>-wip, to the repository naming contract and ensure the validator/classifier and CLI recognize it as an unambiguous, non-project form that requires no role declaration. ✅
#81 Document the workspace repository's default home-organisation placement, per-organisation orgs: override, private org-owned nature, and the fact that the standard does not create repositories. ✅
#81 Update all requested related records and documentation, including the Amendment 4 addendum and the new-workstation workspace documentation/handbook references. ❌ The PR updates the openRepoShape contract, README, and AGENTS.md, but does not include changes to the Amendment 4 record, the new-workstation workspaces/README.md, or docs/handbook.html. The PR explicitly treats some of these as a separate slice or follow-up, so the full issue scope is not contained in this PR.

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

@sonarqubecloud

Copy link
Copy Markdown

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.

🟢 Approval recommended

The changes are internally consistent across policy/code/CLI/docs, include robust regression and parsing coverage, and the classifier hardening is validated by new tests.

Pull request overview

This PR extends the repository naming policy with a sixth naming form, workspace (<user>-wip), and wires that form consistently through the policy data, classifier logic, CLI explain output, documentation, and tests—while also hardening NamingPolicy.classify() to report (not crash on) policy families that have no dedicated classifier branch yet.

Changes:

  • Add workspace (^[a-z0-9]+(?:-[a-z0-9]+)*-wip$) as an unambiguous-by-construction naming family in contracts/repository-naming.yaml.
  • Update the classifier/CLI to treat workspace like other unambiguous forms (no --role needed; --role workspace refused), and to avoid KeyError when encountering a policy family without a corresponding classifier branch.
  • Expand tests and docs to cover the new form, precedence, parsing under the repo’s YAML subset loader, and the “keeps its answer” regression matrix.
File summaries
File Description
tests/test_repo_hygiene.py Adjusts README/AGENTS line caps to accommodate the new documented naming form.
tests/test_naming_policy.py Adds comprehensive tests for workspace, unambiguous-form behavior, regression table, and YAML-subset parsing of the policy file.
scripts/validate-repository-naming.py Enhances --explain output to include “UNAMBIGUOUS BY CONSTRUCTION” messaging for unambiguous forms like workspace.
scripts/repo_shape.py Adds UNAMBIGUOUS_FORMS including workspace and hardens classify() to report unknown-policy forms rather than raising.
README.md Documents the sixth naming family and clarifies what <user>-wip is/isn’t and how it is referenced via resume --workspace.
contracts/repository-naming.yaml Introduces the workspace family definition, examples/counterexamples, and explanatory contract prose.
AGENTS.md Adds a “do not claim it confers anything” rule for <user>-wip workspace repositories.
Review details
  • Files reviewed: 7/7 changed files
  • Comments generated: 0
  • Review effort level: Lite

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

@brettheap
brettheap merged commit 3a927a2 into main Sep 10, 2026
6 checks passed

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 53b9c22d58

ℹ️ 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".

Comment thread scripts/repo_shape.py
#: leg, because a file silent about the key would grant nothing. So the list
#: lives with the code that consults it, and a fork that adds a form of its
#: own adds it here beside its pattern.
UNAMBIGUOUS_FORMS = ("neutral-product", "install", "workspace")

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Reject workspace names in project-manifest roles

When --project reads a manifest whose assembly/spec/code repository is acme/brett-wip, this new classification makes found truthy, while _targets_from_project() only reports a mismatch when found[0] == "project-leg" and never calls accepts_role(). The command therefore prints workspace and exits 0—before this commit the name was unclassified and exited 1—so direct naming validation accepts a repository that cannot be a project leg; add a non-leg/accepts_role() finding for project targets.

AGENTS.md reference: AGENTS.md:L367-L369

Useful? React with 👍 / 👎.

Comment thread scripts/repo_shape.py
Comment on lines +1321 to +1324
family_id, role_id = matched[0]
return answer(family_id, role_id,
f"the {family_id} form, by precedence; this classifier "
"has no rule of its own for it")

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Honor unknown-family precedence before the residual leg

When a fork adds an otherwise unhandled form whose pattern overlaps project-leg—for example, special at precedence 0 with pattern ^Atlas$—matches() starts with special, but the earlier chosen branch returns project-leg/assembly before this fallback is reached. Thus the new advertised highest-precedence fallback works only for disjoint patterns and silently misclassifies plausible CamelCase extensions; handle the highest-precedence unrecognized match before returning the residual project leg.

Useful? React with 👍 / 👎.

brettheap added a commit that referenced this pull request Sep 10, 2026
… the assembly-root README template said four; a hygiene test now ties every count to the policy (#87) (#88)

#87: found while landing #86 (the sixth form, `workspace` = `<user>-wip`).
Three places quoted the naming-families count in prose and none of them
agreed with `contracts/repository-naming.yaml`, or with each other.

docs/handbook.html (the designed one-page reading of the README, #69/#71):
- "The three legs" section, the families sentence: "five" -> "six", and the
  sentence now names the sixth form the same way it names the other five —
  "`<user>-wip`, the person's workspace repository, unambiguous by
  construction" — appended after "family holders" (the README's own Layout
  block, lines ~509-517, is the wording source).
- The Layout reference table: "the four naming families, as data" -> "the
  six naming families, as data" (matches the README's own Layout block,
  line 1188).
- Dropped the `<p class="aside">` note saying the README's line reads "the
  four naming families" against a naming section that counts five — both
  halves are now false (the README says six in both places), so there is
  nothing left for the aside to explain. The page has no changelog/"what
  changed" block, so none was invented for the still-pending Families
  workstation layout / "Carrying in-flight work" / park and resume sections
  #87 calls out — those stay a separate, larger regeneration, not this
  object.
- `<dt>`/`</dt>` balance unchanged (23/23 before and after); `<p>`/`</p>`
  count moved from 148/113 to 147/112, the same 35-open-without-close
  offset the file already carried, since the removed aside was one closed
  `<p>...</p>` pair. Fed the file through `html.parser.HTMLParser` with no
  exception.

templates/assembly-root/README.md, line 150: "the four naming families
(copied from the shape)" -> "the six naming families (copied from the
shape)". THIS FILE IS TEMPLATED: its bytes are materialized into every
newly scaffolded project's own README.md, so this fix reaches NEW projects
only — an existing project's README is project-owned and is not re-synced
by `update-shape.py`. `templates/family-root/README.md` carries no "naming
families" sentence at all (checked; nothing to fix there).

tests/test_repo_hygiene.py gains
`test_every_naming_families_count_matches_the_policy`: loads
`contracts/repository-naming.yaml` through `scripts/repo_shape.py`'s own
`NamingPolicy.load()` (the same top-level `families` list
`validate-repository-naming.py --explain` counts and that
`test_naming_policy.py` parametrizes over as `FAMILY_IDS` — `project-leg`'s
three `roles:` sub-entries nest one level deeper and are not counted
again), maps the count to its spelled word for a small range (one..ten),
then walks every `git ls-files`-tracked `.md`/`.html` file tree-wide, in
`test_no_committed_file_names_a_host_absolute_path`'s style (a decode
failure is skipped, not failed), asserting every `(\w+) naming families`
match spells that word. Grepping the tree once while writing it found the
phrase in exactly three of the repository's eighteen tracked `.md`/`.html`
files — README.md, docs/handbook.html, templates/assembly-root/README.md —
all three fixed above; templates/family-root/README.md has none today but
is still walked, so a copy landing there later is caught the same way with
no test change required.

Confirmed red on origin/main's content: stashed just the two doc fixes
(`git stash push -- docs/handbook.html templates/assembly-root/README.md`)
with the new test in place, and it failed —
`{'docs/handbook.html': ['five', 'four', 'four'], 'templates/assembly-
root/README.md': ['four']}` — against the policy's six; popped the stash
and it passed.

README.md and AGENTS.md are untouched — their line-count caps in this same
test file (1219 and 374 respectively) still hold exactly, so neither cap
needed moving. docs/handbook.html carries no line-count cap in this suite.

45 passed (tests/test_repo_hygiene.py); 888 passed, 1 skipped for the full
suite (`python3 -m pytest tests -q`).

Lane: xfactory-2 (xFactory-2)

Co-authored-by: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 10, 2026
…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]>
@brettheap
brettheap deleted the feat/workspace-naming-form branch September 11, 2026 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants