Skip to content

scaffold-project.py: the clone git submodule add makes of each leg names its remote origin, whatever clone.defaultRemoteName says, so --local-remote-dir no longer ends REFUSED a git or gh command failed ("No such remote 'origin'") after both legs are pushed (#1275) - #1277

Draft
brettheap wants to merge 1 commit into
mainfrom
l3-1275-scaffold-default-remote-name

Conversation

@brettheap

@brettheap brettheap commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

What changed

A v1.2.2 follow-up from lane 3's independent review of #1268 (#1275). It lands after the v1.2.1 tag, under Brett Heap's merge word, once reviewed and green.

With clone.defaultRemoteName set in the global git config, scaffold-project.py --local-remote-dir made both legs, pushed them, and ended REFUSED a git or gh command failed (exit 2) at git remote set-url origin in the first mount, with the root's bare repository still empty. _build_assembly_root mounts each leg with git submodule add and then addresses the clone it made as origin; git clone names that remote after the setting, so there was no origin. It is the failure #1261 removed from adopt-project.py.

REMOTE_NAMED_ORIGIN = ["-c", "clone.defaultRemoteName=origin"] now goes ahead of the verb on that git submodule add (scaffold-project.py, the mount in _build_assembly_root). The -c reaches the clone submodule add makes, as #1268's reviewer measured and as the runs below show. The constant is the same spelling as adopt-project.py's; no shared helper exists (grep defaultRemoteName finds none outside tests), so it stays in this file. No new command or flag. The mount is the one clone this tool makes (grep of every "git" call in scaffold-project.py, scripts/shape_materialize.py and scripts/repo_shape.py finds no other clone); the table "Every other repository" says why the rest need nothing.

Two files: scaffold-project.py (+22 -3) and the new tests/test_scaffold_clone_default_remote_name.py.

Measured, before and after

git 2.43.0, Python 3.12.3, a stub gh (exit 97) first on PATH, GH_TOKEN=bogus, GIT_SSH_COMMAND=false. scaffold-project.py --org testorg --project Northwind --elected-by "Test Human" --elected-on 2026-09-02 --local-remote-dir <D>/remotes --work-dir <D>/work, the way scaffolded in tests/conftest.py drives it. Each run had a GIT_CONFIG_GLOBAL of its own: the two maintenance-off lines, then the setting. Every run was made at ONE path (each moved aside before the next) with the commit dates pinned, because the leg templates carry the root's clone URL: another path is another set of bytes. The dumps are symbolic-ref HEAD, for-each-ref and the sorted cat-file --batch-all-objects --batch-check of the two legs and the root, 50 lines.

global config main 27397a4b5 this change
the two maintenance-off lines only (the control the rows use) exit 0 exit 0
an empty file exit 0 exit 0
[clone] defaultRemoteName = upstream exit 2 exit 0
[clone] defaultRemoteName = a..b exit 2 exit 0
GIT_CONFIG_COUNT=1 with clone.defaultRemoteName=fromcount, control global exit 2 exit 0
GIT_CONFIG_PARAMETERS='clone.defaultRemoteName'='fromparams', control global exit 2 exit 0

The last lines on main:

upstream (and fromcount, fromparams):
REFUSED a git or gh command failed. THE EXACT COMMAND WAS:
    git remote set-url origin <D>/remotes/Northwind-spec.git
    (in <D>/work/Northwind/spec)
    exit 2
--- output ---
error: No such remote 'origin'
--- end output ---

a..b:
REFUSED a git or gh command failed. THE EXACT COMMAND WAS:
    git -c protocol.file.allow=always submodule add --force -q <D>/work/Northwind-spec spec
    (in <D>/work/Northwind)
    exit 128
--- output ---
fatal: 'a..b' is not a valid remote name
fatal: clone of '<D>/work/Northwind-spec' into submodule path '<D>/work/Northwind/spec' failed
--- end output ---

With the change, all six runs print Working trees are at <D>/work and nothing on stderr.

The legs and root against the control (cmp of the dumps):

  • Main, upstream and a..b: the legs (the first 24 lines: HEAD, refs, objects of Northwind-spec and Northwind-code) are cmp-identical to the control's, since both were pushed before the mount refused. The root's bare repository holds HEAD and no ref, no object. The dump is 24 lines, the control's 50.
  • This change, upstream, a..b, the empty file, fromcount and fromparams: the whole dump, legs AND root, is cmp-identical to main's control (50 lines each). Those six ran with the change uncommitted over 27397a4b5, so the shape commit the messages record is main's. On the committed head d07b6fc51 the control, the empty file, upstream and a..b were run again: the four dumps and the four remotes lists are cmp-identical to one another, with nothing on stderr.
  • The remotes of the five repositories in <D>/work (the root, its two mounts, the two legs' own work trees):
    • main, control: origin in each;
    • main, upstream: the root has none (its git remote add origin comes after the mounts), the spec mount upstream, the code mount never made, the two legs' work trees origin;
    • this change, every config: origin in each, cmp-identical to the control. No work tree's config names defaultRemoteName (grep -rl over work/ and remotes/: none); the root's, both mounts' and .git/modules/*/config are diff-equal to the control's.

Every other repository the scaffold makes

where what reads the setting?
scaffold-project.py _build_assembly_root, git submodule add the clone of each leg into the root (the only clone) yes: now -c clone.defaultRemoteName=origin
seed_tree, git_init_commit (scripts/shape_materialize.py), _seed_legs, _build_assembly_root's root git init no: init makes no remote; each work tree is then given git remote add origin <url> by name
_create_remotes git init --bare no
only_commit a throwaway git init --bare --template=, then git fetch --depth=1 <url> <commit> no: fetches by URL, names no remote
_take_held_seed (--reuse-empty-repo, a leg already holding the seed) git init, git remote add origin, git fetch origin <seed>, git reset no: not a clone

The held-seed path was run, not only read: on this change under upstream, a first run exits 0; the root is made empty again and the run repeated with --reuse-empty-repo: exit 0, reused testorg/Northwind-spec (already there, holding this scaffold's seed ...) for each leg, and all five repositories name origin.

Rows

tests/test_scaffold_clone_default_remote_name.py, 9 rows (5 test functions; three are parametrized). One module fixture scaffolds the project three times at one path: without the setting, with upstream, and with a..b.

  • test_the_premise_a_plain_clone_names_its_remote_after_the_setting: asked of git. A plain git clone names its remote upstream under the upstream config and origin under the control's; under a..b it refuses. Robust to a developer whose own global config holds the setting (RV1268's N3 on adopt-project.py: each clone execute makes names its remote origin, whatever clone.defaultRemoteName says, so execute no longer ends in REFUSED mounting the legs ("No such remote 'origin'") after both legs are pushed (#1261) #1268, whose premise row failed ['upstream'] == ['origin'] for such a person): the control's file holds the two maintenance lines and NOTHING of the developer's config, and GIT_CONFIG_NOSYSTEM=1.
  • test_the_scaffold_exits_0_with_or_without_the_setting[without|upstream|refused]: exit 0, no REFUSED, no No such remote, Working trees are at.
  • test_the_legs_and_root_are_the_bytes_a_run_without_the_setting_pushes[upstream|refused]: the dumps above, three refs/heads/main in the control's.
  • test_each_repository_the_scaffold_made_has_the_remotes_it_has_without_it[upstream|refused]: the five remotes lists equal the control's, each ["origin"].
  • test_the_setting_goes_to_the_row_s_own_child_only: every GIT_CONFIG* variable of the session, the bytes of the file GIT_CONFIG_GLOBAL names, and git's own answer to config --get clone.defaultRemoteName are what they were before the three scaffolds (a developer's own value included); each child's file is its own, and only the upstream and a..b files name the setting.

The setting goes to each run's own child, through its GIT_CONFIG_GLOBAL. Nothing is exported, nothing writes the session's file.

On main (origin/main's scaffold-project.py in this tree): 6 failed, 3 passed: the upstream and a..b cases of the exit, bytes and remotes rows fail (No such remote 'origin'; 'a..b' is not a valid remote name); the premise, the control's exit and the own-child row pass, by design. Restored with cmp and git diff --quiet HEAD.

Mutants

The change is one -c on the one clone call, which runs once for each leg. Each mutant was applied to the committed scaffold-project.py, the 9 rows run, and the file restored with cmp against a copy and git diff --quiet HEAD (each restore clean):

mutant result killed by
D1 drop the -c from the mount's submodule add 6 failed, 3 passed exit, bytes and remotes rows (upstream, a..b)
D2 drop it for the code leg only 6 failed, 3 passed the same six
D3 drop it for the spec leg only 6 failed, 3 passed the same six
V1 value =orign 7 failed, 2 passed the six, and the exit row without
V2 key clone.defaultRemoteNam 6 failed, 3 passed the six
V3 constant [] 6 failed, 3 passed the six
A1 -c after submodule 7 failed, 2 passed the six and the exit row without (git refuses it)
A2 -c after add 7 failed, 2 passed the same seven
E1 -c before protocol.file.allow (order only) 9 passed an equivalent mutant: the order of two -c is not a behaviour

Gates

Head d07b6fc51, clean tree. git 2.43.0, Python 3.12.3, git-filter-repo 2.47.0 first on PATH after a stub gh (exit 97), GH_TOKEN=bogus, an empty GH_CONFIG_DIR, GIT_SSH_COMMAND=false, GIT_CONFIG_GLOBAL=/dev/null, [email protected]. One pytest at a time, -rs, a basetemp per group on /tmp. The full suite was not run.

group modules result
rows tests/test_scaffold_clone_default_remote_name.py 9 passed in 4.34s
scaffold modules that run --local-remote-dir, one pytest test_scaffold_clone_default_remote_name, test_scaffold_pin_and_reuse, test_scaffold_e2e, test_scaffold_reuse_seeded_legs with test_ruleset_hint_tracking_branch (it imports that module's fixture), test_scaffold_manifest_values, test_scaffold_init_empty_values, test_scaffold_mount_ignored with test_scaffold_ignored_shape_files, test_scaffold_device_names with test_dry_run_parity, test_scaffold_referent_chain_links, test_scaffold_pin_collisions, test_scaffold_leg_paths, test_scaffold_free_text_values, test_scaffold_partial_pin_source 921 passed in 320.07s (0:05:20), 0 skipped
leg path collisions tests/test_scaffold_leg_path_collisions.py 104 passed in 4.58s
guards test_repo_hygiene, test_agents_md_codes, test_git_output_decoding, test_stdout_encoding, test_cli_reference, test_no_auto_maintenance 343 passed, 3 skipped in 73.78s (0:01:13)
rows, the developer's own global config holding the setting the rows, run with GIT_CONFIG_GLOBAL naming a file that holds defaultRemoteName = upstream, then a..b 9 passed in 3.83s, 9 passed in 4.08s

The 3 skips: test_stdout_encoding.py:285 (the default it is about is Windows' own), and 2 at test_no_auto_maintenance.py:222 (the session began with GIT_CONFIG_GLOBAL set, which the lane sets to /dev/null; CI leaves it unset).

Merges

One gh pr list -R opensoft/openRepoShape --state open --limit 200 --json number,headRefOid,files: 46 open PRs, none with 100 files, so no list is cut. None of the 46 touches scaffold-project.py or tests/test_scaffold_clone_default_remote_name.py, so no PR needs a merge check for these files.

merge (git merge-tree --write-tree) result
head d07b6fc51 x origin/main 27397a4b5 (not moved since the branch was cut) clean, tree a2e4c81e8d49, the head's own tree
head x #1268 faa29987a (the model PR; touches adopt-project.py and tests/test_adopt_*, so not required) clean, tree f4630d20b4ed

Out of scope

Read, not run, at main 27397a4b5. Nothing here is changed by this PR, and nobody has measured these under the setting. Each is for a further issue.

setup-project.py

  • :3178 runs scaffold-project.py ... --no-next-steps, so step (5) of a setup run gets this change with no edit of its own.
  • :3345-3350 (step 7) git [-c ...] clone -q [--no-local] --recurse-submodules <root url> <clone>: a clone of the new root, with its two mounts. Under the setting the root's remote and the mounts' remotes are named after it. Nothing in the file addresses them as origin right after, but bump-leg.py and family.py (below) do later, and what_stands_at does at :2491.
  • :2417-2438 origin_recorded_in (git config --file <clone>/.git/config --get remote.origin.url), called at :2491: it reads the clone a rehearsal left behind. Under the setting the clone of :3345 records no remote.origin.url, so the call returns "" and the answer at :2493 is "It is a directory holding a .git." in place of the rehearsal sentence at :2497-2500. The path is refused either way; only the advice sentence changes.
  • :962 (self-bootstrap) git clone --quiet [--depth 1] -- <repo> <temp checkout>: no origin is addressed in it.
  • :1779-1802 remote_url(invocation_dir, "origin") reads the PERSON'S OWN checkout, not a clone this tool made. Under the setting their remote has another name, and _org_without_origin (:1826-1841) asks for --org.

scripts/family.py

  • :7290 family.py add: git [-c protocol.file.allow=always] submodule add -q --force -- <url> <path>: a clone of the member, remote named after the setting. Nothing follows it that addresses origin (no set-url in the file), so add is not refused. bump later does: _has_origin :8885 (git remote get-url origin), :8936 (git ls-remote --tags origin), :9468-9469 (git fetch -q --prune ... origin), :8786 (for-each-ref --contains <commit> refs/remotes/origin/). By :9455-9475 a mount with no origin is not fetched and the line says it has no remote named origin.
  • :6637, :7391 git clone -q --bare -- <url> <scratch>/member.git: throwaway clones read by commit id; no origin is addressed in them.
  • :3324, :3337 the holder: git remote add origin <url>, then push -u origin: by name, not a clone.
  • :8208, :8227 submodule update --init --no-fetch, in the rollback of a mount: restores from the store that is there.

scripts/bump-leg.py makes no clone. It addresses origin of a leg's mount, which a clone made under the setting names otherwise (the clone of setup-project.py:3345, a member family.py add mounted, or the person's own git clone --recurse-submodules from the NEXT STEPS): :1246 (git remote get-url origin, _has_origin), :1101 (for-each-ref --contains ... refs/remotes/origin/), :1503 and :1520 (remote = "origin" and git fetch -q --prune ... <remote>). On a failed fetch :1528 says has no remote named origin, and the refusals at :1353, :1384 and :1407 say it too. :2560 prints push -u origin for the root.

scripts/bootstrap.py (run at setup-project.py:3367) was not read.

Closes #1275

Lane: openreposhape-3 (openRepoShape-3)

🤖 Generated with Claude Code

Summary by Sourcery

Make local scaffold creation resilient to custom Git remote-name configuration.

Bug Fixes:

  • Ensure scaffolded submodule mounts consistently use the origin remote even when Git is configured with a different default remote name.

Tests:

  • Add coverage for scaffolding with custom, invalid, and absent clone.defaultRemoteName settings, including repository contents, remotes, exit status, and configuration isolation.

…names its remote `origin`, whatever `clone.defaultRemoteName` says, so `--local-remote-dir` no longer ends `REFUSED a git or gh command failed` ("No such remote 'origin'") after both legs are pushed (#1275)

`_build_assembly_root` mounts each leg with `git submodule add` and then runs
`git remote set-url origin` in the mount. `git clone` names the remote it
makes after `clone.defaultRemoteName`, so with `upstream` in the global git
config the mount had no `origin`: exit 2, `error: No such remote 'origin'`,
the root's bare repository still empty. A setting git refuses, `a..b`, ended
the run at `git submodule add` itself, exit 128.

`REMOTE_NAMED_ORIGIN = ["-c", "clone.defaultRemoteName=origin"]` goes ahead
of the verb on that call, as `adopt-project.py` does (#1261). It is the one
clone the scaffold makes. tests/test_scaffold_clone_default_remote_name.py
scaffolds with and without the setting, at one path with the commit dates
pinned, and compares every ref and object of both legs and the root, and the
remotes of the five repositories in the work directory.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@sourcery-ai

sourcery-ai Bot commented Nov 8, 2026

Copy link
Copy Markdown

Reviewer's Guide

Implementation

Force the git submodule add clone to name its remote origin, matching the subsequent remote set-url call regardless of clone.defaultRemoteName.

  • scaffold-project.py L515-533, L2657-2659

Tests

Verify the scaffold succeeds with default, alternate, and invalid clone remote-name settings, while preserving repository objects and expected remotes.

  • tests/test_scaffold_clone_default_remote_name.py L1-234

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

sonarqubecloud Bot commented Nov 8, 2026

Copy link
Copy Markdown

@brettheap

Copy link
Copy Markdown
Contributor Author

(lane openRepoShape-3, 2026-11-09T13:40:34Z) Lane 3's independent review of #1277 (for #1275), by RV1277b (opus), which continued RV1277's review; neither wrote any of #1277. At d07b6fc51: READY. The report follows as the reviewer wrote it, less a note to lane 3 about its own fetch.

Independent review of #1277: READY

Reviewer: RV1277b, lane openRepoShape-3. I continued RV1277's review and wrote none of #1277.
Head reviewed: d07b6fc51. GitHub still showed it at 13:37:26Z. Main is 8e6f53268.

No MUST or SHOULD findings. The fix does what the body says. Every row fails on main and passes on the head, all four mutants are caught, and the gate and guards pass. The three NITs below are about the wording of the body and a docstring. None of them blocks landing.

Setup for every run: git 2.43.0, Python 3.12.3, a stub gh that exits 97 placed first on PATH, GH_TOKEN=bogus, an empty GH_CONFIG_DIR, GIT_SSH_COMMAND=false, GIT_CONFIG_GLOBAL=/dev/null unless noted, [email protected]. One pytest at a time, -q -p no:cacheprovider -rs.

Findings

MUST

None.

SHOULD

None.

NIT

N1. The body says the six uncommitted runs left nothing on stderr. They each printed a warning.

  • The body says: "With the change, all six runs print Working trees are at <D>/work and nothing on stderr."
  • Those six runs had the change uncommitted over 27397a4b5. In that state _shape_revision (scaffold-project.py:1700-1711) finds a modified checkout and prints a warning to stderr.
  • Measured: I copied the head's scaffold-project.py uncommitted into a 27397a4b5 tree and ran RV1277's probe under defaultRemoteName = upstream.
    • Result: rc=0, stderr 302 bytes: WARNING the openRepoShape checkout is DIRTY. ... will record 27397a4b591a, which does NOT describe the bytes being copied. ...
    • stdout ended Working trees are at <AT>/work, and all five repositories name origin.
  • The four runs on the committed head are not affected. RV1277 measured 0 bytes on stderr for those.
  • Suggested wording: "nothing on stderr but the DIRTY warning an uncommitted checkout prints". No code change.

N2. The test module's docstring says its rows "hold on any machine's config". The premise row fails when the setting is in git's command scope.

  • The docstring (lines 19-26) says: "So the premise, the control and the rows below hold on any machine's config." The body's Rows section says the premise row is robust to a developer's own config.
  • Measured: I ran the rows with the setting in the environment's command scope (GIT_CONFIG_COUNT=1 GIT_CONFIG_KEY_0=clone.defaultRemoteName GIT_CONFIG_VALUE_0=upstream).
    • Result: 1 failed, 8 passed in 3.74s.
    • The failure is test_the_premise_a_plain_clone_names_its_remote_after_the_setting: AssertionError: assert ['upstream'] == ['origin']. That is RV1268's N3 failure again, now through the environment instead of a config file.
    • The eight scaffold rows still pass. This confirms the body's point that the -c outranks GIT_CONFIG_COUNT.
  • The case the PR was written for does hold. With the developer's global file holding defaultRemoteName = upstream, the result was 12 passed in 3.97s (the 9 rows plus my 3-test leak probe).
  • Cheapest fix: narrow the claim to "any global or system config file". The other option is for the premise's children to drop inherited GIT_CONFIG_COUNT, GIT_CONFIG_KEY_*, GIT_CONFIG_VALUE_* and GIT_CONFIG_PARAMETERS; each child's file already holds the maintenance lines. If you take that route, check it against test_no_auto_maintenance's GIT_CONFIG_COUNT rules first.
  • Not measured: GIT_CONFIG_PARAMETERS, i.e. pytest started under git -c .... It is the same kind of case.

N3. Some body claims are out of date with main 8e6f532.

Item 1. Before and after, from RV1277's checkpoint

Each run used the body's command line through the tree's own conftest.run_script, at one path, with commit dates pinned. Each child had its own GIT_CONFIG_GLOBAL and GIT_CONFIG_NOSYSTEM=1.

setting main 27397a4b5 head d07b6fc51
empty file (control) rc=0, 50-line dump, stderr empty rc=0, 50-line dump, stderr empty
defaultRemoteName = upstream rc=2, git remote set-url origin ... exit 2 ... error: No such remote 'origin' rc=0, Working trees are at, stderr 0 bytes
defaultRemoteName = a..b rc=2, git -c protocol.file.allow=always submodule add --force -q ... exit 128 ... fatal: 'a..b' is not a valid remote name rc=0, stderr 0 bytes
  • On the head: for both upstream and a..b, cmp finds legs.dump, bytes.md5, remotes.txt and configs.txt identical to the control's.
    • The md5 of every object's full bytes: spec 9a1c0cfa... (3085 B), code e9aaa1e3... (3147 B), root 3b770710... (654272 B).
    • All five repositories name origin.
  • On main: in both refused runs the legs match the control's (the first 24 dump lines and their md5). The root's bare repository holds HEAD and nothing else. This matches the body.

Item 2. Is the mount the only clone? From RV1277's checkpoint

RV1277 read all 23 "git" calls in scaffold-project.py, plus the clone, fetch, remote and init calls in scripts/shape_materialize.py and scripts/repo_shape.py. The mount's submodule add at :2657 is the only clone.

  • seed_tree, git_init_commit, _create_remotes and only_commit all start from git init and add no remote by name.
  • _take_held_seed and the root use git init, then git remote add origin.
  • --pin-source fetches nothing.
  • git submodule sync at :2664 takes the remote from branch.<b>.remote, and the fix makes that origin.

This agrees with the body's table. The --reuse-empty-repo measurement was not re-run; RV1277 judged it unnecessary.

Item 3. Rows on main, the setting stays in its own child, premise independence, mutants

Main changed only adopt-project.py, not the files these rows use.

The rows against main's scaffold-project.py: I swapped 8e6f53268:scaffold-project.py into the head's tree, ran the rows, and restored the file (cmp OK, git diff --quiet HEAD OK).

  • Result: 6 failed, 3 passed in 2.72s, as the body predicts.
  • Failed: the [upstream] and [refused] cases of the exit, bytes and remotes rows.
  • The decisive messages: error: No such remote 'origin'; {'spec mount': ['upstream']} != {'spec mount': ['origin']}; {'root': []} != {'root': ['origin']}.

The rows on the head, with a leak probe after them in the same pytest: the probe was 3 tests in tests/test_zz_rv1277b_leak.py. It checks four things:

  • no GIT_CONFIG* variable names the setting;
  • GIT_CONFIG_NOSYSTEM is not in the session environment;
  • a later plain git clone names the developer's own remote, and git config --get agrees;
  • the tree holds no new file.
developer's config result
GIT_CONFIG_GLOBAL=/dev/null 12 passed in 3.78s
a global file holding defaultRemoteName = upstream 12 passed in 3.97s; the probe saw the clone named upstream and the developer's value unchanged
setting in GIT_CONFIG_COUNT 1 failed, 8 passed (the premise row; see N2)

Afterwards I moved the probe out of the tree (mv, cmp OK); the tree's status is 0 lines.

Mutants (rows only; each restored with cmp and git diff --quiet HEAD):

mutant result decisive error
drop the "-c" token from the constant 7 failed, 2 passed git: 'clone.defaultRemoteName=origin' is not a git command
-c after add (submodule add -c clone.defaultRemoteName=origin --force -q) 7 failed, 2 passed usage: git submodule [--quiet] [--cached]
value orign 7 failed, 2 passed error: No such remote 'origin'
constant [] 6 failed, 3 passed the same six as main

All four are caught. These match the body's A2, V1 and V3 (and its D1, which equals []).

Item 4. Gate on the head, clean tree

group basetemp result
test_scaffold_clone_default_remote_name, test_scaffold_e2e, test_scaffold_pin_and_reuse, one pytest RV1277b-gate 130 passed in 49.65s
guards: test_repo_hygiene, test_agents_md_codes, test_git_output_decoding, test_stdout_encoding, test_cli_reference, test_no_auto_maintenance RV1277b-guards 343 passed, 3 skipped in 69.41s (same as the body)
  • Skips: test_stdout_encoding.py:285 (Windows' own default) and two at test_no_auto_maintenance.py:222 (GIT_CONFIG_GLOBAL set).
  • No gate module imports another module's fixture. The one cross-module import, from test_doctor_legs_members_next import paste in test_no_auto_maintenance.py, is a plain function.
  • The clone's status was 0 lines after the gate.

Do the merge's added files reach the gate?

  • The three scaffold modules read neither added file. In test_scaffold_pin_and_reuse.py the five adopt-project mentions are prose, plus one assertion on the scaffold's own stderr.
  • The guards do read adopt-project.py and scan tests/. So I ran them on a local merge commit, 488b1187f (tree 4ea593250, parents d07b6fc51 and 8e6f53268, never pushed), checked out in mut: 343 passed, 3 skipped in 69.38s. mut is back at d07b6fc51, clean.

Item 5. Merges

merge (git merge-tree --write-tree) result
#1277 d07b6fc51 with main 8e6f5326891a clean, tree 4ea593250a869aeb569a67e84f57a4decce07726. Compared with the head it adds only adopt-project.py and tests/test_adopt_filter_repo_origin_url.py; compared with main it adds only this PR's two files
#1277 d07b6fc51 with #1268 faa29987a clean, tree f4630d20b4ed876f365722133337d9123f798d45 (same as the body). The two PRs change no file in common

Item 6. Body claims

Not measured

Paths and state

  • Clone: /workspace/projects/openRepoShape-worktrees/_lane3-scratch/RV1277, at d07b6fc51, clean. Refs: refs/rv/main = 8e6f53268, refs/rv/pr1277 = d07b6fc51, refs/rv/pr1268 = faa29987a. The unreferenced local commit 488b1187f sits in its object store.
  • Worktrees: /workspace/projects/openRepoShape-worktrees/_lane3-scratch/RV1277-scratch/base (at 27397a4b5) and /workspace/projects/openRepoShape-worktrees/_lane3-scratch/RV1277-scratch/mut (detached at d07b6fc51). Both are clean and both scaffold-project.py files were checked with cmp.
  • Scratch: /workspace/projects/openRepoShape-worktrees/_lane3-scratch/RV1277-scratch/rv1277b/. It holds the run logs, the probe output in dirty/, the body copy, the open-PR list, the mutant script and the leak probe.
  • Basetemps: /tmp/claude-1000/l3bt/RV1277b-{main,rows,mut,gate,guards}.

Nothing is still running. I made no pushes, comments, approvals or register writes.

Lane: openreposhape-3 (openRepoShape-3)

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant