Skip to content

tests: two mutants survive review: the S_ISREG child check of validate-pins.py's workflow scan (a directory named sub.yml, a dangling and a looping symlink, #434) and siblings.py's holder-root spelling in both headers (#454) #664

Closed

Description

@brettheap

Goal: a change to either expression fails a test.

Filed by lane openRepoShape-5 on Brett Heap's word of 2026-10-16T12:17:02Z ("#461's test/CI/doc lines (~27)"), from two lines of lane 4's on #461 (R434's, #633; R454's, #642). Both are test gaps, found by a mutant that survived; neither is user-facing and the code is right.

Lands after: nothing is needed.

Lines (path:line at main 879d8047)

  • The S_ISREG half of validate-pins.py's child check is unpinned (lane 4's L4-107). templates/assembly-root/scripts/validate-pins.py:345 is if not _is_a(path, stat.S_ISREG): continue. R434's mutant K, replacing it with _is_a(path, lambda mode: True), left tests/test_validate_pins_unreadable_workflows_dir.py at 28 passed, and four other validate-pins suites passed with it (102 passed together). Over a root holding a directory named .github/workflows/sub.yml the head says pins ok, and the mutant says REFUSED workflow-unreadable: .github/workflows/sub.yml: cannot be read (Is a directory). I read the line and the test file (no test names sub.yml, dangling or loop.yml); I did not rerun the mutant. Direction: a control beside test_a_workflows_path_that_is_a_file_is_still_no_workflows (tests/test_validate_pins_unreadable_workflows_dir.py:290-298): a directory named .github/workflows/sub.yml, a dangling dangling.yml symlink and a loop.yml self-symlink are still skipped. Assert that validator._workflow_refs(project) returns the leg's reference and nothing else, or pins ok from validate(project). It is mode-free; the symlink half is skipped where symlinks are not allowed (R434 N1).
  • The holder ROOT's spelling in both headers is unpinned (lane 4's L4-113). templates/family-root/scripts/siblings.py:1172-1176 (placement) and :807-809 (dispatch) print siblings: <name> (<root>) — N member(s) with spelled(root). R454's mutant R1, making the placement header print the root raw, left all 150 tests of tests/test_siblings_family_name.py passing. I read why: the file's holder is always in_family_folder(family_template, tmp_path, PLAIN) (:82-90, :128-131), a plain path, and header() (:103-109) spells holder.resolve(). Direction: a case beside test_the_header_is_printed_whatever_the_name_and_the_stdout (:152-167) with the holder's family folder under a path holding U+2028 or an ESC, for example in_family_folder(family_template, tmp_path / "a b", PLAIN), so the run still passes its folder check. For the placement and the dispatch dry runs assert that the first line is siblings: InkRouter (<spelled root>) — 0 member(s), that the family folder <spelled folder> line holds the spelled folder, and not NEVER_RAW & set(out).

Lane 4's triage. Lane 4 had both lines as riders, L4-107 on its T3 (validate-pins.py) and L4-113 on its T11 (siblings.py), and has dropped every #461 line from its proposal for lane 5 (#473 comment).

Overlaps. Open PRs: none of the seven open PRs (#621, #627, #628, #630, #634, #639, #656) touches tests/test_validate_pins_unreadable_workflows_dir.py or tests/test_siblings_family_name.py. #634 edits templates/assembly-root/scripts/validate-pins.py (the pinned copy; this issue does not). Lane 5: fix/648-bootstrap-and-gate-order edits the family root's bootstrap.py and validate-family.py, not siblings.py.

Mark each line → this issue on #461, and tick it there when this closes.

🤖 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-4, session 11c6c0ef-495a-4a05-94cf-811b7b0a1012@Eagle, 2026-10-16T13:28:59Z, for #664

    Logged in lanes/log/openRepoShape-4.md at e9a5b17c646ac67e7912f358fe3573d69a07601e.

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

    1. existing `CLAIMED —` comments on opensoft/openRepoShape#664:
       none
    2. `gh pr list --repo opensoft/openRepoShape --state all --search "#664"`, kept where the row or its body names `#664`:
       none
    3. `git ls-remote --heads [email protected]:opensoft/openRepoShape` branches naming `664` as a whole token:
       none
    
  3. added a commit that references this issue on Oct 17, 2026
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