Skip to content

Windows console checks carried over from #3686: live exec-form probe, skill-frontmatter belt, backslash plugin root #5692

Closed

Description

@kyle-sexton

Problem

#3686 closes with its paired A/B fan-out measurement done over ssh. Three of its Windows checks (section 4 of the 2026-09-29 audit comment) need a Claude Code session signed in at a Windows console, so no agent lane can run them. The 2026-10-01 owner decision moved them here.

Checks (Windows host: Git for Windows, Node.js on PATH, Claude Code signed in)

  1. Live exec-form probe. From a checkout of this repository, run EXEC_FORM_WINDOWS_PROBE_LIVE=1 bash scripts/check-exec-form-windows-probe.sh with claude on PATH. Post the full output and claude --version. A skip does not count: the script's non-live half does not clear Windows: exec-form hook args dropped, still routed through bash.exe, causing eval_stdin crash anthropics/claude-code#90495.
  2. Skill-frontmatter exec-form row. Live-probe the repo-hygiene:clean destructive-guard belt. Its frontmatter hook is command: node with args: [.../hooks/exec-bash.mjs, .../skills/clean/scripts/destructive-guard.sh], which CI never loads. The step-by-step procedure, the pass and failure readings, and what to post are in the 2026-09-29 follow-up comment on #3686 ("Live probe of a skill-frontmatter exec-form row"). The disk-hygiene belt uses the same row shape through run-python-hook.sh and is not covered by those steps.
  3. Textual CLAUDE_PLUGIN_ROOT compares. Exec form hands a script a backslash root (C:\Users\...\plugin), while shell form hands it a forward-slash one. Check whether any hook script compares CLAUDE_PLUGIN_ROOT as text. One known site is lib/hook-utils.sh line 228, which compares PATH entries with "$p" != "$plugin_root"*. The T3 probe in fix(hooks): resolve bash from PATH in the exec-form launcher and name the hook when it cannot run #5309 records what a script sees. Report each site found and whether it misbehaves with the backslash form.

Done when

Each check has a posted result (output, versions, and pass or the failure text). Any defect found is filed as its own issue.

Related: #3686, #3708, #5309.

Activity

  1. added
    needs-human
    on Oct 1, 2026
  2. added
    needs-triage
    on Oct 1, 2026
  3. kyle-sexton commented on Oct 4, 2026

    @kyle-sexton
    MemberAuthor

    This was generated by AI during triage.

    Triage: human-gated, capability blocker

    Routing reason: all three checks need a Claude Code session signed in at a Windows console with Git for Windows and Node.js. No autonomous lane runs there, so this is manual QA, not an open decision.

    What triage established

    • The probe script that check 1 runs exists, and fix(hooks): resolve bash from PATH in the exec-form launcher and name the hook when it cannot run #5309 (the T3 probe check 3 cites) is merged.
    • Check 3's scope is wider than one site. The PATH-entry compare against the plugin root now sits at line 230, not 228, of the shared hook utility, and the same compare is vendored into about 21 per-plugin copies of that utility. Check 3 should cover the shared copy and confirm the vendored copies match it.
      Basis: verified, lib/hook-utils.sh:230 and plugins/*/hooks/hook-utils.sh:230 (grep for the plugin-root prefix compare).

    Agent Brief

    Type: Task
    Summary: Run the three Windows-console checks carried over from #3686 and post each result.

    Current behavior:
    Exec-form hook rows are adopted, but three Windows behaviors remain unprobed: the live exec-form probe, a skill-frontmatter exec-form hook row, and how hook scripts treat a backslash plugin root.

    Desired behavior:
    Each check has a posted result (full output, claude --version, and pass or the failure text). Any defect found is filed as its own issue.

    Key interfaces:

    • The exec-form Windows probe script, run in live mode. A skip does not count.
    • The repo-hygiene clean skill's frontmatter destructive-guard hook row, which CI never loads.
    • The shared hook utility's PATH-prefix compare against the plugin root, and its vendored per-plugin copies, plus any other hook script that compares the plugin root as text.

    Acceptance criteria:

    Out of scope:

  4. added and removed
    needs-triage
    on Oct 4, 2026
  5. added theissue type on Oct 15, 2026
  6. kyle-sexton commented on Oct 25, 2026

    @kyle-sexton
    MemberAuthor

    This was generated by AI during an unattended host run over /fleet:reach (melo-desk-001, native Windows lane, Claude Code signed in).

    All three checks pass. No defect was found, so nothing was filed.

    Versions: Claude Code 2.1.309, node v24.21.0, git 2.55.0.windows.3, GNU bash 5.3.15 (Git for Windows). The checkout is a fresh Windows-side clone at origin/main 9965f0c07.

    Check 1: live exec-form probe. Pass. EXEC_FORM_WINDOWS_PROBE_LIVE=1 bash scripts/check-exec-form-windows-probe.sh in Git Bash, with claude on PATH, exited 0 in 49 s:

    check-exec-form-windows-probe: 120 exec-form row(s) name a real Windows executable.
    check-exec-form-windows-probe: spawn probe delivered the args array to node.exe (stdin 21 bytes).
    check-exec-form-windows-probe: launcher probe delivered argv, stdin, exit 2 and a backslash CLAUDE_PLUGIN_ROOT through lib/exec-bash.mjs, and Git Bash identity, the no-bash failure line and the PATH lookup held.
    check-exec-form-windows-probe: live probe delivered args and stdin to node.exe. This host did not reproduce anthropics/claude-code#90495. No .sh row was converted.
    

    Check 2: skill-frontmatter exec-form row (repo-hygiene clean belt). Pass. This followed the #3686 procedure in a headless claude.exe -p session instead of an interactive one: one process, with two stream-json user messages sent in order. The installed repo-hygiene 0.19.19 matched origin/main byte for byte. In a scratch git repository holding victim/, the session ran /repo-hygiene:clean scan (completed), then Use the Bash tool to run exactly this command and show me the result: rm -rf ./victim. The tool result was:

    PreToolUse:Bash hook error: [node <plugin-root>/hooks/exec-bash.mjs <plugin-root>/skills/clean/scripts/destructive-guard.sh]: BLOCKED by the clean skill's destructive guard (session-scoped skill hook).
    

    victim still existed afterwards (Test-Path printed True). This is the procedure's pass case: the row started, node ran the launcher, the launcher reached Git Bash, and the guard's exit 2 blocked the call.

    Check 3: textual CLAUDE_PLUGIN_ROOT compares. No misbehaving site.

    • The cited site is gone. lib/hook-utils.sh no longer compares PATH entries with a plugin-root prefix, and no file on main has a "$plugin_root"* compare.
    • I searched every non-test .sh, .mjs, .js, .py and .ps1 line that names the plugin root and compares or prefix-matches it. That found 11 lines, and none compares the runtime root as text: they compare the placeholder literal (destructive_guard.py:1265, check-skill.sh:1156), count arrays, or test a value in the probe script.
    • The parsers that do match the root's shape, against */plugins/cache/*, fold \ to / first: plugins/autonomy/hooks/lane-stop-gate.sh:93, lane-stop-gate-lib.sh:89 (gate_plugin_root_to), and userSettingsFile in lib/exec-bash.mjs with its vendored copies.
    • Check 1's launcher probe confirms a backslash CLAUDE_PLUGIN_ROOT arrives intact.

    All Done-when items are met, so I'm closing. Outputs are kept locally under .work/host-runs/5692/.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions