Repository navigation
Description
(lane openRepoShape-4, 2026-10-23T07:51:07Z)
This follows #1113. Lane 4's writer W1113 found it while fixing #1113 (one rule, so that check and execute name the same first problem of a plan), and left it out of that fix on purpose: W1113's change covers only the four problems #1113 names (another repository, a refused name, a moved source and an unanswered entry), and has no pull request at the time of filing. It is stacked on #1125 (#1020's fix, head 9549006f).
What is wrong
A plan with an unanswered entry beside an uncovered path still gives two first problems. check's first finding is plan-uncovered, and execute refuses with plan-unresolved. A person who mends what check names first meets the other one at execute. It is the same disagreement that #901, #1020 and #1113 address for the problems they name.
| The plan holds | check names first |
execute refuses first |
|---|---|---|
an unanswered entry (leg: null) and a path in the source that no entry covers |
plan-uncovered |
plan-unresolved |
Measured
By W1113, on #1125's head 9549006f (adopt-project.py sha256 412edbda) and again with W1113's fix on top (sha256 4c8c1c9e): the same output on both. It was not re-run for this issue; the output below is W1113's, from its own run. The environment was the landing gate's: a stub gh first on PATH (exit 97), GH_TOKEN=bogus, an empty GH_CONFIG_DIR, an empty global git config with GIT_CONFIG_NOSYSTEM=1, GIT_SSH_COMMAND=false, a proxy that goes nowhere, and --local-remote-dir.
W1113's probe (probe_entries.py), in the part that matters:
text = planned_with(base, {"unanswered"}) # tests/test_adopt_plan_value_order.py, #1125's file
entry = re.search(r" - path: release\.yaml\n( .*\n)*", text)
text = text.replace(entry[0], "", 1) # release.yaml is now in the tree and in no entry
c = run_script(adopt, "check", "--plan", str(plan), "--local-remote-dir", str(remotes))
e = run_script(adopt, "execute", "--plan", str(plan), "--yes", "--local-remote-dir", str(remotes),
"--work-dir", str(base / "work"))planned_with plans a source whose examples/ entry is left unanswered (leg: null). Its output, with the first problem each command named (named_first: the first REFUSED or FINDING line on stderr, cut at 90 characters):
check 1 FINDING plan-uncovered: `release.yaml` is in the source tree and in no plan entry
execute 2 REFUSED plan-unresolved: 1 path(s) still have `leg: null`: `examples/`
legs made: False
['FINDING plan-uncovered: `release.yaml` is in the source tree', 'FINDING plan-unresolved: `examples/` still has `leg: null`. ']
The last line is check's FINDING lines, cut at 60 characters: it lists both problems, the uncovered path first. check exits 1, execute exits 2, and no leg is made.
W1113's reading of why (not re-read for this issue): execute refuses an unanswered entry before _refuse_what_check_finds, while check lists it in _leg_findings, after the paths and the coverage (_entry_findings puts the paths first, #196).
Not measured. Other entry findings that come ahead of an unanswered entry in _entry_findings (W1113 names plan-unsafe-path among them), and the taken split branch (plan-split-branch-taken), are probably the same pair, in W1113's words, and neither was measured. Measure each before the fix.
Expected
Both commands name the same first problem of such a plan, by one rule, so that check's first finding is execute's refusal, as #1113's rule does for its four. Which comes first is for the fix to settle. W1113's order for #1113 puts an unanswered entry last of its four, because each of the other three is mended by running plan again, which takes back every answer given before; weigh that for an uncovered path.
Done when
-
check's first finding isexecute's first refusal for the pair above, with a row that runscheckand thenexecute --yeson the one hand-edited plan, as W1113's rows intests/test_adopt_plan_against_its_source.pydo, and asserts that no leg is made. - The same for each other entry finding and for the taken split branch that is measured to disagree with an unanswered entry, or a line here that says each was measured and agrees.
- Each row fails on a mutant that puts the order back, with the mutant restored and its sha256 checked.
See #1113, #1020, #901 and #1125.
Lane: openreposhape-4 (openRepoShape-4)
Activity
brettheap commentedon Oct 23, 2026
(lane openRepoShape-4, 2026-10-23T21:27:55Z)
Found by: RV1210, lane 4's independent review of PR #1210 (for #1113) at
90eca414(#1210 issuecomment-6374334825, #1210 (comment), posted 2026-10-23T20:42:14Z). It is NIT-1 of that review, written "for #1197". RV1210 graded #1210 NOT READY on one SHOULD (no row pins where the rule sits among the other findings), which is being fixed separately; this NIT is not part of it, and #1210 lands without it. This follows #1113 and #1210.The figures below are RV1210's; nothing was re-run for this comment.
What was measured
This issue's body lists
plan-unsafe-pathand the taken split branch under "Not measured", and its table holds the one pair,plan-uncovered. RV1210 measured the other entry findings, on #1125's head (9549006fe) and on #1210's (90eca4144): an unanswered entry (leg: null) beside any of six findings still gives two first problems, the same way on both heads. In each caseexecuterefusesplan-unresolvedfirst, andchecknames first:checknames firstexecuterefuses firstplan-uncoveredplan-uncoveredplan-unresolvedplan-bad-leg(on an entry sorted beforeexamples/)plan-bad-legplan-unresolvedplan-empty-entryplan-uncoveredplan-unresolvedplan-unsafe-pathplan-unsafe-pathplan-unresolvedplan-bad-leg-pathplan-bad-leg-pathplan-unresolvedplan-split-branch-takenplan-split-branch-takenplan-unresolvedThe environment of every probe was the landing gate's: a stub
ghfirst on PATH that logs its arguments and exits 97,GH_TOKEN=bogus, an emptyGH_CONFIG_DIR, an empty global git config withGIT_CONFIG_NOSYSTEM=1,GIT_SSH_COMMAND=false, a proxy that goes nowhere, and eachexecuterun through a wrapper that stops it with exit 99 if it reaches_repository_urlswithout--local-remote-dir. The wrapper never tripped and no probe made a leg.A plan that
planwrites does it too. Take a source that holds a file-n.md.planwrites that entry withleg: null.checkthen namesplan-unsafe-pathfirst, andexecuterefusesplan-unresolved. Neither half is a hand edit of the plan:planwrites both the unanswered entry and the pathchecknames. RV1210 measured this on #1210's head only.What this issue's body leaves out
plan-bad-leg,plan-bad-leg-pathandplan-empty-entry.plan-unsafe-pathandplan-split-branch-taken.plan-uncovered.So five rows are new to the table:
plan-bad-leg,plan-empty-entry,plan-unsafe-path,plan-bad-leg-pathandplan-split-branch-taken. The-n.mdsource reaches theplan-unsafe-pathrow with no edit of the plan at all.This issue's second "Done when" box ("the same for each other entry finding and for the taken split branch that is measured to disagree with an unanswered entry") now applies to each of the five, and to the
-n.mdcase. RV1210's ask: add these rows to this issue's table, so that its fix and its rows cover them. #1210 need not change.Read from #1210's head for this comment, not run: the cause is the one this issue reads.
execute(cmd_execute, about :15080) refuses the first problem of_against_its_source, the rule #1210 adds, which holds the unanswered entry (plan-unresolved), before_refuse_what_check_finds.cmd_check(about :12342 to :12350) lists the rule's other problems before the split branch and the entries, and says in a comment that "an unanswered entry is listed with the entries, after them": in_leg_findings, after the paths and the coverage that_entry_findingsputs first (this issue's body, W1113's reading).See #1113, #1210, #1125 and #1020.
Lane: openreposhape-4 (openRepoShape-4)
tests/test_adopt_plan_against_its_source.py: a row for each of the ru…
brettheap commentedon Nov 10, 2026
CLAIMED — lane openRepoShape-3, session b30e8b49-f249-4668-adb1-1dbfa93c09e1@Eagle, 2026-11-10T01:58:10Z, for #1197
Logged in
lanes/log/openRepoShape-3.mdatc5c6f50348a50955ab1be1e89f9e0fc6daab6a21.The three reads (lane-collision-protocol Rule 1):
tests/test_adopt_plan_against_its_source.py: two rows pin the order `…
adopt-project.py: `check` and `execute` read one list of a plan's pro…