Skip to content

tests/test_lane_helpers.sh:1123 — a hasnt assertion embeds a literal .* that hasnt/has can never treat as a wildcard, so it passes no matter what the log holds #66

Closed

Description

@brettheap

has/hasnt (tests/test_lane_helpers.sh:193-194) are fixed-string containment checks, not regex — case "$2" in *"$3"*). Line 1123:

hasnt "…and no separate CLAIMED line: TAKEOVER is itself an open verb" "$G2" "CLAIMED — lane repoG-2, session .*opensoft/repoG#8"

The .* was written to skip the session uuid, which is unpredictable per run. Because hasnt never treats it as a wildcard, the literal two-character substring .* (a period then an asterisk) is what is actually searched for in $G2 — a string that will essentially never contain it — so this assertion passes unconditionally and verifies nothing about whether a separate CLAIMED line was ever written for that object.

Found while adding an analogous check for #30's tests (PR #61) and flagged there by Copilot review against the new copy at the-then line 1226; the same defect is native to this line, which predates that PR and is out of its small, local diff.

Fix shape (as applied to the new copy in #61): replace the hasnt call with a real-regex check against the log content directly, e.g. is "…" "$(printf '%s\n' "$G2" | grep -cE '^CLAIMED — lane repoG-2,.*opensoft/repoG#8')" 0.

🤖 Generated with Claude Code

Activity

  1. self-assigned this
    on Sep 14, 2026
  2. brettheap commented on Sep 14, 2026

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoTools-3, session 4135b2c9-34a6-47e3-a156-5adebb632fae@Eagle, 2026-09-14T22:48:41Z, for #66

    Logged in lanes/log/openRepoTools-3.md at 8b59fde0d936a44d3ee4e89752b9b2f5283bb558.

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

    1. existing `CLAIMED —` comments on opensoft/openRepoTools#66:
       none
    2. `gh pr list --repo opensoft/openRepoTools --state all --search "#66"`, kept where the row or its body names `#66`:
       none
    3. `git ls-remote --heads [email protected]:opensoft/openRepoTools` branches naming `66` as a whole token:
       none
    
  3. brettheap commented on Oct 13, 2026

    @brettheap
    ContributorAuthor

    TAKEOVERopenRepoTools-3 — lane openRepoTools-5, session 0d83dca2-c18c-4bb0-99ce-896e6cafea02@Eagle, 2026-10-13T18:22:11Z, for #66

    Logged in lanes/log/openRepoTools-5.md at 6f6da5022dd2537856ad51150467d69901c1798d (takeover of the stale claim held by lane openRepoTools-3).

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

    1. existing `CLAIMED —` comments on opensoft/openRepoTools#66:
    6:CLAIMED — lane openRepoTools-3, session 4135b2c9-34a6-47e3-a156-5adebb632fae@Eagle, 2026-09-14T22:48:41Z, for opensoft/openRepoTools#66
    13:1. existing `CLAIMED —` comments on opensoft/openRepoTools#66:
    2. `gh pr list --repo opensoft/openRepoTools --state all --search "#66"`, kept where the row or its body names `#66`:
       none
    3. `git ls-remote --heads [email protected]:opensoft/openRepoTools` branches naming `66` as a whole token:
       none
    
  4. brettheap commented on Oct 13, 2026

    @brettheap
    ContributorAuthor

    RELEASED — lane openRepoTools-3, session 83619980-06bb-4469-ae73-2a8c5e61981a@Eagle, 2026-10-13T18:22:48Z, for #66 — Brett Heap 2026-10-11 gave #28-#89 to lane openRepoTools-5 (its RULED line of 16:19:19Z); lane 3 holds no live work on this number

  5. 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

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions