Repository navigation
Description
Lane: xfactory-2 (xFactory-2)
Claim: CLAIMED by lane xFactory-2 (harness 094955e8, profile team-04a) on Brett Heap's word 2026-09-06T02:24Z, in session, verbatim "pick up 12-14 and merge on green too" (items 12-14 of the lane's handoff § 7 NEXT). One PR; squash on green; no --admin. Sibling search at filing: open issues = #61 only (a test path; this lane's second window); open PRs = none; the three findings live only in Copilot's inline comments on PRs #56, #58 and #60, none acted on.
What
Three Copilot inline comments read AFTER their PRs merged (#56 for #55, #58 for #51, #60 for #50) and deferred as cosmetic. None changes behaviour a user sees today; each leaves a statement in the tree that is not true, or a bound that exists in one entry point and not in the other.
1. setup-project.py: an explicitly EMPTY $OPENREPOSHAPE_REPO (Copilot on #56)
self_bootstrap() reads the variable with a truthiness test, so OPENREPOSHAPE_REPO= falls to DEFAULT_SHAPE_REPO — while the comment above that read says checked_value refuses "an empty value" (it is never reached for one). setup.sh reads the same variable as ${OPENREPOSHAPE_REPO:-<default>}: empty is unset there too. No test pins either reading.
Decision (this lane, recorded here as the ruling): empty means unset, in both entry points — the shell's own ${VAR:-default} reading, which the two entry points already agree on. The comment is corrected to say so; one test per entry point pins OPENREPOSHAPE_REPO="" → the default repository is what the echoed git clone line names. Offline: the test redirects the default URL to this checkout with git's url.<local>.insteadOf=<default> through GIT_CONFIG_COUNT, so the clone succeeds without a network and succeeds ONLY because the default was chosen.
2. tests/test_update_shape_add.py::unname_everywhere() strips only LF sources (Copilot on #58)
The helper removes "<entry>",\n; a checkout made with core.autocrlf=true has CRLF sources, the helper strips nothing, and #51's tests fail on a machine whose only sin is the Git for Windows installer default. CI pins autocrlf=false, so all three jobs are blind to it. #51 gave the two TEMPLATES a .gitattributes; the standard's own root has none.
Lands: a root .gitattributes for openRepoShape itself carrying the templates' rule * text=auto eol=lf (with its own header — why the STANDARD wants LF bytes on every platform: its tests read its sources as text, and shape_materialize copies them into projects that pin their digests); a hygiene test that the root carries the rule and agrees with both templates; git add --renormalize . proven a no-op (every indexed file is already i/lf); and the helper made ending-agnostic anyway (\r?\n), because a checkout made BEFORE this lands keeps its CRLF until it is renormalised.
3. setup.sh: the --shape-ref guard has no length bound (Copilot on #60, read before the merge and deferred)
The shim's case mirrors REF_RE's alphabet, first character, .. and .lock rules but not its length: REF_RE is ^[A-Za-z0-9][A-Za-z0-9._/-]{0,254}$ — at most 255 characters. An over-long ref reaches git checkout in the temporary clone (and the shim's refusal text echoes it back) where the Python would have refused it at parse time.
Lands: [ "${#SHAPE_REF}" -gt 255 ] refused in the same block (bash 3.2-clean; the over-long refusal names the LENGTH, not the value); the mirror comment gains the bound; the shim test's parametrisation gains a 256-character ref; the Python side gets the same case if no test pins its bound today.
Acceptance
tests,tests-windows,tests-macos(the shim under stock bash 3.2) and SonarCloud green.tests/test_setup_sh.pyandtests/test_setup_project_py.py: one new case each for the empty variable and the over-long ref.tests/test_repo_hygiene.py: the root.gitattributescarries the templates' rule.- README and AGENTS.md untouched unless one of them states the empty-variable rule; caps unchanged.
Origins: #55 → PR #56 4fe7840; #51 → PR #58 0a84d6c; #50 → PR #60 a0962e8.
Activity
PR #65 review: the shim refuses an over-long or control-character --s…
Empty $OPENREPOSHAPE_REPO means unset, the standard's own .gitattribu…
templates/workspace-root/: add .gitattributes for the LF invariant (#154
templates/workspace-root: the <user>-wip template (lane protocol Amen…