You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8eba23a
Browse filesBrowse the repository at this point in the historyBrowse files
Merge origin/main into feat/stage-12a-entrypoint-permissions
Brings in #765 (ruff check in CI with the first group of rule
families), #809 (policyengine 6.4.1) and #791 (redacted Stage 12
failure cause).
Conflicts:
- auth.py: kept this branch's Callable and Literal imports and sorted
the stdlib import block the way main's newly enabled I rule expects.
- docs/generated/rules.md: regenerated with python -m scripts.rules
render from the auto-merged registry, which holds main's enforced
sim.quality.ruff-lint and this branch's
sim.deploy.permission-enforcement-wired (34 of 48 rules blocking).
ruff check . passes under main's ruff.toml with ruff 0.15.22, so this
branch's own code needed no further changes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: AGENTS.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -139,7 +139,7 @@ To add or change a rule, read `docs/engineering/skills/rules-registry.md`.
139
139
-`sim.quality.every-project-tested`: Every project and library with unit tests runs them in the PR test matrix. (doc-only, not checked: follow it yourself)
140
140
-`sim.quality.ruff-format-src`: Source code under projects/*/src and libs/*/src is formatted with ruff format. (blocking: ruff format)
141
141
-`sim.quality.ruff-format-tests`: Test code is formatted with ruff format too; CI currently checks only src directories. (doc-only, not checked: follow it yourself)
142
-
-`sim.quality.ruff-lint`: Python code passes ruff check with the rules selected in ruff.toml (ruff's defaults, made explicit); CI does not run ruff check yet. (advisory: ruff check (E4, E7, E9, F), not blocking)
142
+
-`sim.quality.ruff-lint`: All Python code passes ruff check with every rule family selected in ruff.toml, with no ratchet; families are added one themed group at a time until the selection is ALL. (blocking: ruff check (E4, E7, E9, F, FLY, FURB, I, PIE, PYI, RET, RSE, UP, W))
143
143
-`sim.quality.tests-pass`: Each project's unit tests pass in its own locked environment. (blocking: CI job `test`)
Copy file name to clipboardExpand all lines: changelog_entry.yaml
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@
4
4
- Made CLAUDE.md and the Copilot instructions thin pointers to AGENTS.md, required workflow logic longer than one line to live in tested and shellchecked scripts, and registered the tracking-issue rule
5
5
- Added a rules registry (rules/registry.toml) with a standard-library tool that validates it, checks every rule is enforced where it claims, and renders docs/generated/rules.md and the Rules block in AGENTS.md
6
6
changed:
7
+
- Ran ruff check in CI with the first group of rule families (imports, pyupgrade and other safe auto-fixes) and fixed every finding
7
8
- Moved the multi-line `run` blocks of the simulation deployment workflows into single-line steps and tested scripts without changing their behaviour or outputs, leaving only the release-sentinel and routing-rollback blocks in the one-line `run` rule's baseline
8
9
- Moved multi-line `run` blocks in the PR, image smoke and client publishing workflows into single-line steps and tested scripts, tested the dependency-update scripts, fixed the shellcheck finding in modal-precompute.sh, and enforced the CI-script testing and shellcheck rules with empty baselines
9
10
- Added CODEOWNERS for the rule machinery, pinned CI's ruff to 0.15.22 with an explicit rule selection, and documented that agents never bypass branch rules
@@ -21,3 +22,4 @@
21
22
- Bound UK constituency and local-authority weight matrices to the certified data release of the selected dataset instead of the unversioned bucket copy, and stopped runs before they start when the matrix lacks the run year or household dimension
22
23
- Released each Stage 12 database session after its operation instead of holding pooled sessions through calculations, retried opening each Stage 12 coordinator and worker database connection that the pooler refused without ever retrying a statement or commit, and reported Stage 12 failures to telemetry before recording them in the database so a failed write cannot hide the original error
23
24
- Accepted a null SPM provenance in Stage 12 aggregate artifacts, so UK and other reports without SPM calculations are saved, while every supplied provenance record is still validated
25
+
- Recorded a redacted, bounded Stage 12 failure cause naming the exception, failing stage, simulation role and message instead of only the exception class, and kept a failed worker's recorded cause on its simulation and report
@@ -35,7 +35,7 @@ Every rule that governs `policyengine-sim-api` is listed here with how it is enf
35
35
36
36
### Advisory (checked but not blocking)
37
37
38
-
-`sim.quality.ruff-lint`: Python code passes ruff check with the rules selected in ruff.toml (ruff's defaults, made explicit); CI does not run ruff check yet.
38
+
-None.
39
39
40
40
### Unproven (no proof that the checker rejects a bad example)
41
41
@@ -249,7 +249,7 @@ flowchart LR
249
249
|`sim.quality.every-project-tested`| Every project and library with unit tests runs them in the PR test matrix. | mechanical | doc-only | no | nothing | — | — |
250
250
|`sim.quality.ruff-format-src`| Source code under projects/*/src and libs/*/src is formatted with ruff format. | mechanical | enforced | yes | ruff format |`pr.yml:lint`| — |
251
251
|`sim.quality.ruff-format-tests`| Test code is formatted with ruff format too; CI currently checks only src directories. | mechanical | doc-only | no | nothing | — | — |
252
-
|`sim.quality.ruff-lint`| Python code passes ruff check with the rules selected in ruff.toml (ruff's defaults, made explicit); CI does not run ruff check yet. | mechanical |advisory|no| ruff check (E4, E7, E9, F) |—| — |
252
+
|`sim.quality.ruff-lint`|All Python code passes ruff check with every rule family selected in ruff.toml, with no ratchet; families are added one themed group at a time until the selection is ALL. | mechanical |enforced|yes| ruff check (E4, E7, E9, F, FLY, FURB, I, PIE, PYI, RET, RSE, UP, W) |`pr.yml:lint`| — |
253
253
|`sim.quality.tests-pass`| Each project's unit tests pass in its own locked environment. | mechanical | enforced | yes | CI job `test`|`pr.yml:test`| — |
0 commit comments