Repository navigation
ci: Run the quality gate as parallel jobs - #285
Conversation
The one CI job spends about 4.5 of its 7 minutes on the frontend gate, which proves nothing about a documentation-only change. The plan splits it into changes, checks and browser jobs plus a quality-gate aggregator that keeps the required check's name, and moves the docs-only and aggregator decisions into a small tested script.
The single job took about 7 minutes, 4.5 of them in the browser gate. Split it into changes, checks, browser and an aggregating quality-gate, so the run takes about 1.5 minutes plus the browser job beside it. A docs-only pull request skips the browser job. The classification and the aggregator rule live in scripts/dev/ci_jobs.py, covered by truth tables, and fail closed. quality-gate keeps its name, so the required context is unchanged.
The aggregate truth table enumerated 192 rows against an oracle that copied the code's own rule. One test now loops the full input product against a hand-written set of accepted tuples and lists every mismatch. The docs-only table gains near-miss paths for the .superpowers/ prefix, the .md suffix and spaces; a missing aggregate flag must exit non-zero; the whole-file secret scan runs once instead of once per job.
The workflow now runs changes, checks, browser and the quality-gate aggregator. Bring the live docs that described one sequence of steps in one job in line, with the run time per ruling C13 (about 1.5 minutes for a docs-only pull request, about 5 otherwise).
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 19 |
| Duplication | 0 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
The plan now carries its execution record: the three commits with their review outcomes, and the CI run for the head that changed the workflow (four jobs green, 5 min 32 s against 6 min 47 s for the single job). Acceptance (b1) is recorded as passed locally; (b2), a skipped browser job on a docs-only pull request, stays open for the controller because this pull request changes the workflow and so runs browser on every head. The architecture docs and the README now point at scripts/dev/ci_jobs.py as the owner of the docs-only path list, and the README wrap around that note is fixed. PLAYBOOK Section 3 names PR #285 and the remaining post-merge check.
The plan was reviewed once and then fixed in two rounds; the second round was committed without its own re-review, so "approved after 2 fix rounds" overstated it. Reworded in the plan's Execution record and the Task 3 PLAYBOOK entry.
Conflicts resolved: PLAYBOOK Section 3 (kept the CI, archive and Deezer bullets) and Section 4 (kept the four CI entries and main's Deezer entry, after the end marker); the log archive page 0036 and its index (took ours, then doc_state_sync --fix regenerated them, rotating the Deezer entry); the test-count sites and FINDINGS header (ruling C19: set by --fix). FINDINGS keeps main's F-B23-37 resolution and rotation. Test count: pytest -q -- 3158 passed.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
Graphify reviewed this change.
No issues found by static checks — no coupling regressions or blocking issues in the code graph. That is not the same as safe to merge: see what was not checked.
Not checked: tests were not run; no formal proof of the changed code.
Graphify review — findings
Splits the single CI job into parallel changes, checks and browser jobs, and keeps the required quality-gate name as an always() aggregator that passes only when changes and checks succeed and browser succeeds or was skipped for a docs-only PR. A pull request whose whole diff against its base is documentation skips the slow browser job; the changes job judges the merge commit's first-parent diff, and any git failure leaves docs_only false so the browser job runs. Updates DEVELOPMENT, README and PLAYBOOK to describe the new job layout, and raises the pinned test count to 3158 while the tracked module count stays at 104.
Review partial — this diff was larger than one review pass covers, so later files were not reviewed; some findings may be missing.
Analysis details — impact, health, verification
Impact & health
Graphify review
Impact — 281 functions depend on the 281 functions this change touches.
Health — grade A; no new coupling hotspots.
Verification — 281 functions in the blast radius were not formally verified this run (proofs are advisory here).
Gate & verification
graphify gate
PASS — objectively clean (no health regressions, tests not run — proofs not run this pass (advisory)). Grounded, not self-assessed.
Advisory (not blocking):
- verification_scope: 281 function(s) in the blast radius were not formally verified this run
Risky patterns (advisory)
- medium
no-unbounded-fetchinscripts/dev/ci_jobs.py:59: unbounded read (no limit/bound): print("true" if docs_only(sys.stdin.buffer.read()) else "false")
Docs that may be stale (advisory)
docs/logarchive/pages/PLAYBOOK_EXECUTION_LOG_ARCHIVE_0029.md§ 2026-09-30 - Partial runs disclosed on Results; forms gate waits for requests (lines 4-21): references changed symbolstest_test_job_env_passes_no_secretdocs/logarchive/pages/PLAYBOOK_EXECUTION_LOG_ARCHIVE_0029.md§ 2026-09-29 - Repo Assist removed; CI job holds no provider secrets (lines 156-165): references changed symbolstest_test_job_env_passes_no_secretdocs/logarchive/pages/PLAYBOOK_EXECUTION_LOG_ARCHIVE_0031.md§ 2026-10-20 - One album selection and one publish step (lines 96-115): references changed symbolsaggregatedocs/superpowers/plans/2026-09-12-repository-agnostic-plan-spec-guards.md§ Task 1: Freeze the existing public behavior (lines 223-341): references changed symbolsaggregatedocs/superpowers/plans/2026-09-23-batch23-wp0-reconcile-and-clear.md§ Task 3: Reading a job never renews its lease (F-SWE-6, for Q1 = a) (lines 360-479): references changed symbolsaggregatedocs/superpowers/plans/2026-10-20-album-request-module.md§ Task 7: Job kind is a record field; WP-4 amended (lines 2888-3018): references changed symbolsaggregatedocs/superpowers/plans/2026-10-20-lastfm-scrobbles.md§ Task 1: Pin Last.fm-derived job results (23a) (lines 101-972): references changed symbolsaggregatedocs/superpowers/plans/2026-10-20-lastfm-scrobbles.md§ Task 4: Hand callers scrobbles, not pages (23c) (lines 1619-3013): references changed symbolsaggregatedocs/superpowers/plans/2026-10-20-lastfm-scrobbles.md§ Task 5: Publish one typed album selection (23d) (lines 3014-3721): references changed symbolsaggregatedocs/superpowers/plans/2026-10-20-lastfm-scrobbles.md§ Self-Review (lines 3722-3747): references changed symbolsaggregate
…and 3 more.
Summary
Splits the single CI job into parallel jobs, at the owner's request (rulings 2026-10-31). The frontend gate took about 4.5 of the job's 7 minutes and proves nothing about a documentation-only change. Plan:
docs/superpowers/plans/2026-10-31-ci-parallel-jobs.md.changesdecides whether a pull request changes only documentation;checksruns the docsync preflight, pre-commit, the suite with coverage and the advisory pip-audit;browserruns the Playwright install and the three browser commands;quality-gateis the aggregator and keeps the name themain-protectionruleset requires, so the ruleset is unchanged.scripts/dev/ci_jobs.py(stdlib only), not in inline workflow shell: whether a change is docs-only (a skip-list: any other path runs the browser job; empty or unreadable input counts as not docs-only), and whether the aggregate passes. Their tests check every input combination against a hand-written set of accepted outcomes, and near-miss paths a loose match would wrongly accept.checks).State
ci_jobs.py, testsmainin (after PR #286)Validation at this head
Head
10055067(merge ofmainatf393c827, after PR #286). Scoped gates (owner ruling 2026-10-31), run by an independent gate runner at this head: the full suite in three shards, 3158 passed (703 + 1549 + 906; 3157 on this branch plus the one case PR #286 added, pinned fresh from the merged tree);pre-commit run --all-files(its check-yaml hook parses the workflow) anddoc_state_sync.py --checkpass. The frontend gate is out of scope locally (no template, static or gate file changes) and runs in this PR'sbrowserjob. Actions cannot run locally: this PR's own CI run is the workflow's test, and it changes the workflow, so all four jobs run here. The first documentation-only PR after merge is the check thatbrowserskips.Codex: waived by the owner until the usage limits reset. CI: green at this head on all four jobs (run 41226550053: checks 2998 passed, 4 skipped, 156 deselected; browser 5 min 26 s). Codacy 0 new issues; no open review threads. qlty passes; its one blocking issue, reproduced with the qlty CLI, is zizmor's unpinned-action rule on
pypa/gh-action-pip-audit@v1.1.0, a referencemainalready carries unchanged and this PR only moves into thechecksjob (deferred to the findings triage).Checklist
pytest -qpasses (update SESSION_CONTEXT Section 1 if test count changed)pre-commit run --all-filespasses (all hooks)python scripts/doc_state_sync.py --checkexits 0- Batch WP: inside
DOCSYNC:CURRENT-BATCH-START/ENDmarkers- Side task: after
DOCSYNC:CURRENT-BATCH-ENDmarker(or deviation is logged in the Section 4 entry)