tether icon indicating copy to clipboard operation
tether copied to clipboard

[C1] No ruff/mypy lint or type gate in any CI workflow **[#1 process gap]**

Open DsThakurRawat opened this issue 4 months ago • 4 comments

Labels: ci, tooling, priority:high File: .github/workflows/* (none run ruff/mypy); .pre-commit-config.yaml (pre-commit-only)

Description. grep -rniE "ruff|mypy|lint|typecheck" .github/workflows/ returns nothing across all 8 workflows. Ruff + mypy exist only in pre-commit, bypassable with git commit --no-verify and never run for contributors who don't pre-commit install.

Why it matters. A PR with lint or type errors merges green. This is exactly how PR #259's indentation drift reached green CI. Type regressions ship because mypy never runs on PRs.

Tasks.

  • [ ] Add a lint job (new lint.yml or a job in pytest.yml) running ruff check ., ruff format --check ., and mypy --config-file=pyproject.toml src/ on push + PR to main.
  • [ ] Note: ruff format --check will initially fail on pre-existing drift in cli.py (~lines 136–161) — land a format-only commit first.

Dedup. #59 adds bandit only (security scanner), not ruff/mypy/format. Distinct and broader.

DsThakurRawat avatar Jul 13 '26 05:07 DsThakurRawat

Code portion merged via #316. Keeping this issue open until the repository rollout is evidenced: configure the protected quality-ratchet-policy environment with rylinjames as the sole reviewer, require quality-ratchet/protected on main, and validate one real PR plus one protected policy update. No repository settings were silently changed by the code merge.

rylinjames avatar Aug 28 '26 09:08 rylinjames

Live rollout update: created the quality-ratchet-policy environment with protected-branch deployments and rylinjames as the sole required reviewer; enabled strict quality-ratchet/protected as a required main status while preserving existing review/linear-history protections; and validated the protected result on real PR #317 (pass). Keeping this issue open only for the remaining live workflow_dispatch proof of an actual protected policy-input update.

rylinjames avatar Aug 28 '26 09:08 rylinjames

Live protected policy proof succeeded through run 33163572947 for exact candidate SHA 6a526147ac5c: unprivileged validation sealed immutable evidence, candidate exercise passed, the quality-ratchet-policy environment required explicit approval, and the authorized job published the exact SHA-bound policy-approved status. Two bootstrap defects discovered by this real exercise were fixed in #319 and #321 with full ordinary CI before admin bootstrap merges. Rerunning the protected ratchet now against the approved evidence.

rylinjames avatar Aug 28 '26 10:08 rylinjames

Completed. The protected quality ratchet shipped in PR #316, and the live policy update merged through PR #320 at 621e1ebdb38d937e243e600ed47a58b89feef099 with mypy check_untyped_defs enabled. Final immutable proof: protected workflow run 33166183550 validated exact candidate 025dbee4b85b against main 112cba20b573, sealed validation evidence before candidate execution, passed the protected environment gate, and published the bound status. Ordinary run 33166181101 attempt 2 verified the exact status/run/artifact/evidence chain and passed. The merged main push then passed protected ratchet run 33166505879. Bootstrap fixes were audited and merged in #319 (protected policy path), #321 (protected evidence flattening), #323 (creator-less Actions status plus protected judge API verification), and #325 (ordinary exact-artifact download flattening). Branch protection still requires strict quality-ratchet/protected.

rylinjames avatar Aug 28 '26 11:08 rylinjames