Skip to content

New blanket-win32-skip tests miss their windows-skip-triage.md entry until Windows CI catches it (#585, #588); a jq-scan test that could never fail #589

Closed

Description

@fdaviddpt

A new test carrying a blanket skipif(win32) needs its docs/windows-skip-triage.md entry added in the same commit -- caught twice tonight only by Windows CI, twenty-plus minutes into a run, rather than at authoring time.

Two instances, same session

Two lanes in one session hitting an identical gap is a trap this loop should stop paying for by re-discovering it in CI. The fact belongs in the developer brief (agents/developer.md or the dispatch brief for any lane adding a win32-skipping test) or a jit-context rule that fires when a new/edited test file adds a skipif(win32) marker, not twenty minutes into a CI run.

The more interesting half: a test that could not fail

test_scripts_use_jq_var_not_hardcoded in tests/test_path_resolution.py is the second, independent defect the same PR (#588) surfaced, while fixing the CI failure above. Its own docstring already promised an exclusion:

"Match raw 'jq' but not '$JQ' or 'JQ=' or 'command -v jq'"

but the implementation never actually applied that exclusion for the command -v jq case -- it just checked " jq " in line, which matches the substring inside command -v jq >/dev/null (the v jq > span) regardless of the comment's stated intent. This test passed for as long as none of the four scanned scripts (save-session.sh, run-consolidation.sh, post-tool-hook.sh, session-start-hook.sh) happened to contain a command -v jq availability guard. The moment #574's own CI-follow-up round fixed the exclusion to match its documented intent, the corrected test immediately caught 8 real hardcoded jq calls newly added to session-start-hook.sh in the same PR -- calls the broken exclusion had been silently obscuring because the guard's presence short-circuited nothing; the test simply never looked hard enough to notice a real violation sitting right next to a false one.

A test whose own comment describes a case its code cannot detect is this repo's own defect class -- an absence rendered as a clean result -- landing on the test suite's own instrumentation rather than on a shell script. It happened to get caught here only because a legitimate new guard collided with the untested exclusion; it could as easily have sat silent indefinitely.

What would settle it

  • A developer-brief note or jit-context rule: adding/editing a test module that gains a blanket skipif(win32) mark requires the same commit to add/update its docs/windows-skip-triage.md entry, checked before pushing rather than left to a Windows CI leg.
  • Separately (or as part of the same fix, maintainer's call): audit tests/test_path_resolution.py's other docstring-promised-but-unverified exclusions, if any, for the same "comment says X, code does not implement X, and nothing ever tested the boundary" shape -- this specific instance is already fixed (commit a29e3f0 on the now-merged Cross-promote supertool and jit-context to the human via systemMessage, with a config bool to disable #574/Add cross-plugin promo via systemMessage at SessionStart #588), but the general pattern (a scanner exclusion with no positive-control test proving it fires) is exactly what let this one go undetected for as long as it did.

[AI-generated]

Activity

  1. added
    filed-by-loop
    on Sep 5, 2026
  2. self-assigned this
    on Sep 5, 2026
  3. added 4 commits that reference this issue on Sep 28, 2026
  4. added 2 commits that reference this issue on Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

filed-by-loop

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions