Skip to content

validate-pins.py and shape-doctor.py: one leg's gitlink off its pin beside another leg's pin-digest-mismatch says "First clear that finding" and the digest names no line, so every bump-leg.py either finding points at is rolled back and the one step that works, putting the gitlink back by hand, is never named #677

Closed

Description

@brettheap

Goal: when no single bump-leg.py line can commit because two legs are each out of step, the validator and the doctor name the hand step that unlocks it, as they already do for two gitlinks.

Filed by lane openRepoShape-3 on Brett Heap's word of 2026-10-16T12:24:41Z ("give #460 to lane 3").

Size: M. Lands after: #634 (the same pinned file, different hunks), and before the v1.1.0 tag.

What happens (measured on main d4a7fab, a scaffolded Atlas with local bare remotes). The spec leg got a commit and its gitlink was committed in the root by hand; separately, contracts/code-pin.yaml's tree_sha256 was hand-edited and committed. Then:

  • The root's validate-pins.py exits 1. Its gitlink finding says: No single bump-leg.py line can commit while this validator also reports pin-digest-mismatch: ... First clear that finding; this validator then names the two bump-leg.py lines for that leg.
  • The pin-digest-mismatch finding ends at THE LOCKSTEP RULE and names no line.
  • bump-leg.py --leg code --to <code pin's commit> gives REFUSED bump-leg-validators-red ... rolled back, over the spec gitlink finding.
  • bump-leg.py --leg spec --to <spec pin's commit> gives the same refusal, over the code digest finding.
  • So no line can clear either finding first.
  • The hand step is git -C spec checkout <pin>, then git add spec && git commit in the root. It leaves only the digest finding, and the validator then names python3 scripts/bump-leg.py --root <root> --leg code --to cb922417....
  • The doctor's pins row has the same dead end: ... the gate also reports pin-digest-mismatch ... First clear that finding; this row then names the two bump-leg.py lines for spec, with the verdict DRIFTED (1 leg(s) not at the pin).
  • Read from the code, not measured: another leg's pin-workflow-ref-mismatch beside a gitlink off its pin is the same dead end.

Where it is (d4a7fab):

  • templates/assembly-root/scripts/validate-pins.py:
    • :551-577, _gitlink_repairs_held_back. It names the hand step only for two gitlinks (:565-569).
    • :587-620, _end_gitlink_mismatches. others collects another leg's curable findings together with the untagged ones (:607-610).
    • :671-685, _curable_ending. It returns "" when another leg is out of step (legs != [one.role], :678).
  • shape-doctor.py:
    • :2235-2249, findings_no_bump_clears;
    • :2251-2280, gitlink_repairs_held_back;
    • :2283-2346, with_gitlink_repairs.

The change:

  • In both files, tell apart a finding that a bump of ANOTHER leg clears (that leg's digest or workflow reference) from a finding that no bump clears.
  • For the first kind, name the hand step the two-gitlink text already names: put the off leg's gitlink back at its pin (check that leg out at the pin's commit and commit its gitlink in the root), or undo the commit that moved it. Then name the other leg's line.
  • The digest or reference finding says the same, instead of naming nothing.
  • A finding that no bump clears (shape-copy-drift, ...) keeps "First clear that finding".

Pinned copy: projects carry validate-pins.py by digest, so a change shows each project an upstream-changed row. The file on main already differs from both v1.0.0 and v1.0.1 by 4 commits. So if this lands before the tag, a project moving from v1.0.x to v1.1.0 takes one row either way. A project pinned at a main commit between releases sees one more.

Tests:

  • tests/test_validate_pins_lockstep_lines.py: in the measured state, both findings name the hand step and neither says "First clear that finding". After the hand step is committed, the code leg's bump-leg.py line is named.
  • Control: an untagged other finding still says "First clear that finding".
  • tests/test_doctor_gitlink_repairs.py: the same for the pins row and detail.gitlink_repairs_held_back.

From #460, #460 (comment) (L13, L2-49).

🤖 Generated with Claude Code

Activity

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

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoShape-3, session b30e8b49-f249-4668-adb1-1dbfa93c09e1@Eagle, 2026-10-16T13:00:12Z, for #677

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

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

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