[BUG] CI quality gate: the compileall domain list skips agent-launcher, and compileall exits 0 on a path it cannot list

Author: LudwigJMarxCreated Sep 21, 2026Updated Sep 21, 2026

Bug Description

The blocking "Python syntax check" step in .github/workflows/ci-quality-gate.yml takes a hand-written list of domain folders. agent-launcher is not in it, so its 20 tracked Python files are never syntax-checked. The comment directly above the list already records the same failure once before:

# Covers every top-level skill domain + scripts/. When adding a new
# domain folder, add it here (audit gate G9: this list previously
# skipped 8 post-v2.7 domains).

Two properties of compileall make the list worse than a missing entry:

  1. python -m compileall <path-that-does-not-exist> prints Can't list '<path>' and exits 0. A renamed or mistyped entry removes coverage without failing the gate.
  2. python -m compileall with no arguments compiles sys.path, not the repo, and also exits 0. An empty list reports success having checked nothing of the tree.

Affected Skill

Skill Name: n/a (repository CI) Component: .github/workflows/ci-quality-gate.yml, step "Python syntax check (blocking)"

To Reproduce

bash
$ git checkout 527a1b8
$ printf 'def broken(\n' > agent-launcher/__ci_probe.py
$ python -m compileall \
    marketing-skill product-team c-level-advisor \
    engineering-team ra-qm-team engineering \
    business-growth finance project-management \
    productivity marketing research \
    business-operations commercial research-ops \
    compliance-os markdown-html scripts
$ echo $?
0

Counting what the list covers:

$ git ls-files '*.py' | cut -d/ -f1 | sort -u | wc -l
19
   ... the workflow lists 18. The missing one is agent-launcher (20 files).

The two exit-0 cases, on CPython 3.12.13 and 3.14.7:

$ python -m compileall tippfehler-ordner
Listing 'tippfehler-ordner'...
Can't list 'tippfehler-ordner'
$ echo $?
0

Expected Behavior

A syntax error anywhere in the tracked Python of the repository fails the blocking gate.

Actual Behavior

Exit 0. agent-launcher/ is not covered, and the mechanism that leaves it uncovered cannot report itself.

Environment

  • OS: macOS 15 (Darwin 25.6.0), bash 3.2.57
  • Python: 3.14.7 and 3.12.13
  • Ref: origin/dev 527a1b8

Additional Context

Deriving the list from git ls-files '*.py' covers all 19 folders and cannot go stale; an empty result has to be a hard error, otherwise it inherits the sys.path behaviour. PR follows.

Source: alirezarezvani/claude-skills