Skip to content

adopt-project.py: record the plan's answers in project.yaml, so the doctor's placement row and the submodules: rows follow them #525

Closed

Description

@brettheap

execute records only submodule answers and never updates a submodules: row. The doctor then keeps reporting paths the plan already answered, and a deliberate move stays MISPLACED.

From the v1.1.0 triage of the v1.0.0 known limits on #457. One pull request covers the lines below.

Lines

  • N7: the doctor's placement row re-lists paths the plan already answered (spec/examples/), because execute records only submodule answers. Where: adopt-project.py submodule_record, shape-doctor.py. Effort M; all. On main 3121945: submodule_record is still the only record of an answer; ambiguous-path answers are not written. (source)
  • L1-08: nothing updates project.yaml submodules: rows, so a deliberate move stays MISPLACED and a removed submodule's row lingers. Where: AGENTS.md:155-158 and :253, shape-doctor.py, bump-leg.py. Effort M; all. On main 3121945: AGENTS.md still says "nothing rewrites it" and "its row is the human's to change" without saying how. (source)

Each line above is marked → this issue on its tracking issue. Tick it there too when this closes.

The lines as written on the tracking issues

AT-adopt N7: the doctor's placement row keeps listing a path the adoption plan already answered (spec/examples/, rule ambiguous-examples) as review_required (shape-doctor.py:3544, :3831), because execute records only the submodule answers in project.yaml (submodule_record, adopt-project.py:4915-4950), so AGENTS.md's doctor step 4 has an assistant ask the human again. Direction: record a plan's answers for ambiguous paths as #189 did for submodules.
— #457, body

L1-08: #189 makes execute write a submodules: row into project.yaml for each source submodule a leg keeps (path, leg, resolution, source_commit; adopt-project.py:4929, called at :5064), and shape-doctor.py holds each submodule to its row, but nothing updates a row afterwards: AGENTS.md says "nothing rewrites it" (AGENTS.md:155-158). So a submodule moved to the other leg on purpose, with a commit in each leg and bump-leg.py for each pin, is MISPLACED (1 path), exit 1, and stays so. bump-leg.py leaves the row alone. The doctor's NEXT is --placement-plan, which by its own text makes neither the pull request on each leg nor the pin bump in the root that a move takes, and writes a plan nothing carries out (its header says a later --fix --plan will; shape-doctor.py has no --fix). AGENTS.md says only that such a submodule "stays MISPLACED: its row is the human's to change" (AGENTS.md:253), while its Checking rule 3 forbids editing "a manifest to make a row go green" (AGENTS.md:234-235), and nothing says how the human changes the row or in which commit. The other way round, a row whose submodule is gone is silent: after the submodule is removed and the pin bumped, the doctor says COMPLIANT and validate-manifest.py says manifest ok with the row still in project.yaml, because the doctor looks a row up only for a gitlink a leg holds (shape-doctor.py:3486) and the validator checks a row's spelling, leg, resolution and source commit and never that a leg holds the path (templates/assembly-root/scripts/validate-manifest.py:703). A submodule added at that path later is then judged against the old row. Direction: decide, and say in AGENTS.md, who updates a row: either a command does it (bump-leg.py when a gitlink changes legs, or a doctor step), or the moving pull request edits it by hand and AGENTS.md says that edit is not the manifest edit "to make a row go green" that rule 3 forbids; let the MISPLACED line name the way out it accepts; and have the doctor note, never a FINDING, a row that names a gitlink in neither leg, because removing a submodule is not wrong.
— #457, comment

Activity

  1. added this to the v1.1.0 milestone on Oct 14, 2026
  2. brettheap commented on Oct 14, 2026

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoShape-1, session 300f8f46-004a-4e72-8587-4f192be2e108@Eagle, 2026-10-14T22:32:00Z, for #525

    Logged in lanes/log/openRepoShape-1.md at 7aa461e913d27fcc7cdd17daaf2fff4e9f7ea6bc.

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

    1. existing `CLAIMED —` comments on opensoft/openRepoShape#525:
       none
    2. `gh pr list --repo opensoft/openRepoShape --state all --search "#525"`, kept where the row or its body names `#525`:
       none
    3. `git ls-remote --heads [email protected]:opensoft/openRepoShape` branches naming `525` 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