Skip to content

adopt-project.py: check and execute still name different first problems for a plan with an unanswered entry beside an uncovered path, plan-uncovered and plan-unresolved, a pair #1113's four do not cover (follows #1113) #1197

Open

Description

@brettheap

(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 is execute's first refusal for the pair above, with a row that runs check and then execute --yes on the one hand-edited plan, as W1113's rows in tests/test_adopt_plan_against_its_source.py do, 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

  1. added this to the v1.2.1 milestone on Oct 23, 2026
  2. brettheap commented on Oct 23, 2026

    @brettheap
    ContributorAuthor

    (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-path and 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 case execute refuses plan-unresolved first, and check names first:

    The plan holds an unanswered entry beside check names first execute refuses first
    plan-uncovered plan-uncovered plan-unresolved
    plan-bad-leg (on an entry sorted before examples/) plan-bad-leg plan-unresolved
    plan-empty-entry plan-uncovered plan-unresolved
    plan-unsafe-path plan-unsafe-path plan-unresolved
    plan-bad-leg-path plan-bad-leg-path plan-unresolved
    plan-split-branch-taken plan-split-branch-taken plan-unresolved

    The environment of every probe was the landing gate's: a stub gh first on PATH that logs its arguments and exits 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 each execute run through a wrapper that stops it with exit 99 if it reaches _repository_urls without --local-remote-dir. The wrapper never tripped and no probe made a leg.

    A plan that plan writes does it too. Take a source that holds a file -n.md. plan writes that entry with leg: null. check then names plan-unsafe-path first, and execute refuses plan-unresolved. Neither half is a hand edit of the plan: plan writes both the unanswered entry and the path check names. RV1210 measured this on #1210's head only.

    What this issue's body leaves out

    • Not named at all: plan-bad-leg, plan-bad-leg-path and plan-empty-entry.
    • Named as "Not measured", now measured, and disagreeing: plan-unsafe-path and plan-split-branch-taken.
    • In the table already: plan-uncovered.

    So five rows are new to the table: plan-bad-leg, plan-empty-entry, plan-unsafe-path, plan-bad-leg-path and plan-split-branch-taken. The -n.md source reaches the plan-unsafe-path row 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.md case. 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_findings puts first (this issue's body, W1113's reading).

    See #1113, #1210, #1125 and #1020.

    Lane: openreposhape-4 (openRepoShape-4)

  3. brettheap commented on Nov 10, 2026

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoShape-3, session b30e8b49-f249-4668-adb1-1dbfa93c09e1@Eagle, 2026-11-10T01:58:10Z, for #1197

    Logged in lanes/log/openRepoShape-3.md at c5c6f50348a50955ab1be1e89f9e0fc6daab6a21.

    The three reads (lane-collision-protocol Rule 1):

    1. existing `CLAIMED —` comments on opensoft/openRepoShape#1197:
       none
    2. `gh pr list --repo opensoft/openRepoShape --state all --search "#1197"`, kept where the row or its body names `#1197`:
    1210	adopt-project.py: `check` and `execute` read one list of a plan's problems against its source, in the order a person mends them (another repository, a refused name, a moved source, an unanswered entry), so `check`'s first finding is `execute`'s refusal for each pair (#1113)	fix/1113-first-problem-same-in-check-and-execute	OPEN
    3. `git ls-remote --heads [email protected]:opensoft/openRepoShape` branches naming `1197` as a whole token:
       none
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions