Skip to content

tests/test_doctor_next_is_a_command.py: the comment-tail guard reads each string constant alone and wants a blank after #, so a tail split across +, one led by a formatted value, or #x would reach a NEXT unseen #679

Closed

Description

@brettheap

Goal: the guard sees every spelling of a # tail that a NEXT builder could produce.

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

Size: S. A test-only change.

What happens: the guard misses three spellings:

None of these occurs in the doctor today. A looser scan of shape-doctor.py at d4a7fab finds no case: the strings that begin with # are placement-plan YAML lines, and the tab at :2517 is a partition separator.

Where it is: in tests/test_doctor_next_is_a_command.py:

  • :1154: TAIL;
  • :1172-1206: tails_in;
  • :1216-1259: the test and its samples.

The change:

  • Read each string expression whole: fold + chains and f-string pieces, with a placeholder for every part that is not a constant.
  • Flag a # led by two or more blanks or a tab, with or without a blank after it.
  • Flag a constant piece that begins with # directly after a formatted value.
  • Keep TAIL_ALLOWED as it is.

Tests:

  • Add a sample for each of the three spellings to the sample block.
  • Assert that the real file still yields exactly the allowed pair.

From #460, #460 (comment) (L5).

🤖 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:03:00Z, for #679

    Logged in lanes/log/openRepoShape-3.md at 9ab804eb1096705e72252f45bda7d447e24554c7.

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

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