Skip to content

Five suites fail only on a Windows Git Bash host; give them the host-skip pattern or fix them #3683

Closed

Description

@kyle-sexton

Summary

Five suites fail on a Windows 11 Git Bash host and pass in CI (Linux), byte-identical on main:

  • plugins/guardrails/hooks/block-windows-drive-tmp.test.sh: 15 cases (path-qualified writers such as /usr/bin/mkdir /tmp/x expected exit 2, got 0).
  • plugins/guardrails/hooks/hardcoded-path-check.test.sh: 2 cases.
  • plugins/markdown-format/hooks/markdown-format.test.sh: 4 PATH-shape cases (PATH probed trim wrong, PATH probed empty-component trim wrong, out-of-repo missing markdownlint remediation wrong, out-of-repo ~/.local/bin preference wrong).
  • .claude/hooks/cloud-bootstrap-plugins.test.sh: every case (shells out to the real claude plugin list --json).
  • plugins/claude-ops/skills/audit-skill-visibility/scripts/audit_skill_visibility.test.sh: the shell fixture errors no installed skills resolved from '<mktemp>/cfg'; expected installed_plugins.json there after its 96 Python unit tests pass.

Impact

Every contributor on this host learns the same five by trial, and every worker in the hook-performance program had to carry the list in its brief to tell a real regression from host noise. The phase 5 PR (#3666) added visible SKIP (host: ...) lines to four other suites for the same reason.

Ask

Either give each suite the host-skip pattern #3666 established (probe the host condition, print a counted skip, exit 0) or fix the underlying path assumptions. The block-windows-drive-tmp cases look like a real gap (an MSYS-resolved /usr/bin/mkdir is still a writer) and deserve a fix rather than a skip.

Activity

  1. added
    needs-triage
    on Sep 3, 2026
  2. added
    needs-human
    and removed
    needs-triage
    on Sep 23, 2026
  3. kyle-sexton commented on Sep 23, 2026

    @kyle-sexton
    MemberAuthor

    This was generated by AI during triage.

    Human-gated. Open decision: block-windows-drive-tmp.test.sh needs a Windows Git Bash host to diagnose the real MSYS-path gap the issue names (manual-QA capability); the other 4 suites just need the established host-skip pattern applied, no host required

  4. added theissue type on Sep 23, 2026
  5. kyle-sexton commented on Sep 29, 2026

    @kyle-sexton
    MemberAuthor

    Posted from the 2026-09-29 audit of the Cursor run (499 PRs, 2026-09-27 to 2026-09-29). The owner authorized fixing the findings; merging is not authorized. Fix PR: #5340 (draft).

    Reopened. This issue asked for the block-windows-drive-tmp cases to be fixed rather than skipped. #4845 closed it with "Closes", but its body said drive-tmp is not skipped and left it for a Windows-host fix, and the PR added run_win_usr_bin, which skips 9 /usr/bin writer cases.

    What is known now:

    1. The windows-2025 lane on main (run 36522127997, ebda6c3) shows block-windows-drive-tmp.test.sh SKIPPED=0 PASS=210 FAIL=0, so the skip has no subject on the runner.
    2. fix(guardrails): Windows Git Bash suites and path fixes (#4527) #5124 (a0e232a) fixed the real hook gap (mkdir.exe and path-qualified writers).
    3. fix(guardrails): judge more shell shapes, declare node, correct docs #5340 builds the payload without argv, so the skip has no subject on the owner's host either. It also fixes two gaps found on the way: a quoted drive-root \tmp spelling was allowed on a usertemp host, and curl -sSo bundled flags were not recognized.

    Still open: plugins/claude-ops/skills/audit-skill-visibility/scripts/audit_skill_visibility.test.sh skips its whole --installed contract on any Git Bash host. That file belongs to the claude-ops group; a cross-group request is filed with it.

    Operator steps on the Windows 11 Git Bash host where the skip fired:

    git fetch origin pull/5340/head && git checkout FETCH_HEAD
    bash plugins/guardrails/hooks/block-windows-drive-tmp.test.sh 2>&1 | tail -5
    bash plugins/claude-ops/skills/audit-skill-visibility/scripts/audit_skill_visibility.test.sh
    

    Paste the SKIPPED= and FAIL= lines and the result of the second command. Close when SKIPPED=0 FAIL=0 on that host and the claude-ops change has merged. #5340 uses Refs, not Closes.

  6. kyle-sexton commented on Sep 29, 2026

    @kyle-sexton
    MemberAuthor

    Update from the 2026-09-29 audit of the Cursor run, after the ci group's #5316 merged.

    #5316 put two of the three remaining host-skip suites in the Windows lane. Its dispatch 36529242934 on windows-2025, the first Windows run of these suites:

    #4845's stated causes ("Git Bash rewrites POSIX mktemp / extensionless-stub path form, not because the production hook is wrong") remain hypotheses. Its only evidence was Linux runs where the probes are false. windows-2025 does not reproduce a cloud-bootstrap-plugins failure at all, and nothing yet shows what failed on the Windows 11 host that filed this issue.

    Close condition, replacing the one in the comment above: on that Windows 11 Git Bash host, block-windows-drive-tmp.test.sh reports SKIPPED=0 FAIL=0, cloud-bootstrap-plugins.test.sh passes, and audit_skill_visibility.test.sh passes once #5323 is fixed.

  7. kyle-sexton commented on Sep 29, 2026

    @kyle-sexton
    MemberAuthor

    Posted from the 2026-09-29 audit of the Cursor run. Nothing is implemented.

    Decision needed: ratify or reverse #4845's host-skip call

    This issue's Ask offered two routes, the counted host-skip pattern or fixing the path assumptions. It also said the block-windows-drive-tmp cases deserve a fix. #4845 (merged by app/cursor, with needs-human on this issue) chose: "Host-skip the path-form cases" for the other suites. The drive-tmp cases are fixed rather than skipped (#5124, and #5340 builds that suite's payloads without argv). The rest of that call has not been put to you.

    Question. Keep the counted host-skips for markdown-format, hardcoded-path-check, cloud-bootstrap-plugins and audit_skill_visibility, or replace them?

    Options.

    • A. Ratify: keep the counted host-skips.
    • B. Rewrite the skipped cases to a path form that survives Git Bash's rewrite, so they run on Windows instead of skipping.
    • C. Keep the skips that fire, and drop a probe once a Windows 11 host run shows it never fires there. On windows-2025, cloud-bootstrap-plugins' probe did not fire.

    Recommendation: A. Basis: this issue's Ask names the host-skip pattern as acceptable for these suites; windows-2025 run 36529242934 shows the skips counted and visible (markdown-format SKIPPED=4 on the PATH-shape cases this issue listed) and cloud-bootstrap-plugins passing (PASS=79). B costs rework on four suites for cases CI already covers on Linux. C waits on the Windows 11 host run in the comment above. This comment does not state or imply that you have ratified it.

    Unblocks. With A, closing this issue once the host run in the comment above passes.

  8. added
    needs-owner-decision
    on Sep 29, 2026
  9. kyle-sexton commented on Sep 30, 2026

    @kyle-sexton
    MemberAuthor

    Owner decision (2026-09-29): accepted the recommendation: "A. Ratify: keep the counted host-skips" for markdown-format, hardcoded-path-check, cloud-bootstrap-plugins and audit_skill_visibility.

    The owner accepted every standing recommendation on 2026-09-29.

    Next: no agent work remains on the skips. The issue stays open, owner-gated, until the Windows 11 Git Bash host run in the earlier comment passes (block-windows-drive-tmp.test.sh SKIPPED=0 FAIL=0, cloud-bootstrap-plugins.test.sh passes, audit_skill_visibility.test.sh passes). Then it closes.

  10. removed
    needs-owner-decision
    on Sep 30, 2026
  11. kyle-sexton commented on Sep 30, 2026

    @kyle-sexton
    MemberAuthor

    Resolution (2026-09-29, owner-approved consensus)

    Ran the Windows 11 Git Bash check on melo-desk-001 (Windows 11 Pro, Git for Windows 2.55.0, C:\Program Files\Git\bin\bash.exe), from this machine's Windows lane via WSL interop. The ssh.exe route to melo-desk-001 has no host key entry because it is the local machine, so no ssh hop was used. Fresh shallow clone of origin/main at 0f2a19df1 (#5549) in a scratch dir under %TEMP%, removed afterwards. No other checkout was touched.

    bash .claude/hooks/cloud-bootstrap-plugins.test.sh
    PASS=79 FAIL=0
    All cloud-bootstrap plugin accounting checks passed.
    EXIT=0
    
    bash plugins/guardrails/hooks/block-windows-drive-tmp.test.sh
    SKIPPED=0
    PASS=286 FAIL=0
    EXIT=0
    
    bash plugins/claude-ops/skills/audit-skill-visibility/scripts/audit_skill_visibility.test.sh
    Ran 162 tests in 1.491s ... OK
    EXIT=0
    

    Against the close condition: block-windows-drive-tmp reports SKIPPED=0 FAIL=0, cloud-bootstrap-plugins passes, audit_skill_visibility passes. All three are met on the Windows 11 Git Bash host, so closing as completed. The counted host-skips ratified 2026-09-29 are unchanged.

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

    needs-human

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions