Repository navigation
Conversation
Replace the floating codecov-action tags from Dependabot #709 with the peeled v7.1.1 commit, require fail_ci_if_error, and pin every other non-actions/* tag ref to its commit. The policy test rejects codecov-action@v7 and fail_ci_if_error: false. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Codex Review Summary: ✅ CompletedThis 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. |
Drop the job-level continue-on-error on coverage.yml. The policy test rejects continue-on-error on a job that runs Codecov and on the Codecov step, including a mutant that puts the key back. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
There was a problem hiding this comment.
Not blocking. Head 2d94ba5766e94135956dfeb7e807fe9f86bdba20. Not green. Cargo Deny on this SHA passed. Hash jobs were still pending. Replay hashes were not re-run; no hashed crate is in the diff, so they are expected unchanged.
Every new uses: ref is the peeled commit of the tag or branch the comment names, not the annotated tag object. codecov/codecov-action v7 / v7.1.1 peel to 303a32d7a59b442fa8d48b6a1cc6825c09c847a5 (verified, 2026-09-17). The tag object 2320916714171c258d01dbd81040d64d798c6f8e is not what the workflows pin. The same peel holds for rust-cache v2/v2.9.3 d1527c8f, sccache v0.0.11 fc920bf0 (tag object fd026686 unused), codeql v4/v4.39.3 33d7b85d, scorecard v2.5.0 fa7117db (tag object 46dc3187 unused), gh-pages v4/v4.1.0 84c30a85, benchmark v1.22.2 4322e572, gh-release v2/v2.6.2 3bb12739, kani branch v1 69d357ba, and dtolnay/rust-toolchain branches 1.89.0 599c45df and master 683b588c. Existing pins d77020bf, 6323deb1, and ilammy/msvc-dev-cmd 0b201ec7 are untouched. actions/* stays on the major-tag rule.
dtolnay/rust-toolchain@599c45df bakes env: toolchain: 1.89.0 in that branch commit, so the call sites with no toolchain: input still install 1.89.0. The master commit 683b588c reads inputs.toolchain, and every caller passes it (1.89.0, the nightly channel file, or the toolchain-management matrix). taiki-e/install-action@7c48f0a6 is tag nextest and its action.yml default is nextest; @3f7c3597 defaults to cargo-llvm-cov. No tool: input is required. Those two commits are unsigned. The tool they install is still resolved at runtime from that frozen installer.
Codecov 303a32d7 is wrapper 0.3.1. fail_ci_if_error maps to CC_FAIL_ON_ERROR, and the wrapper exits 1 only when that value is true. version maps to CC_VERSION; the default in that commit is latest. Both workflows set v11.3.2. https://cli.codecov.io/api/linux/latest is that same release today. The linux binary (18466776 bytes) hashes to 8e1bfb71661378530f6ea21e82b414095899e565cbb4cf555c613064be17b973, matching the API and codecov.SHA256SUM. That checksum file has a good signature from 27034E7FDB850E0BBC2C62FF806BB28AED779869 (Codecov Uploader). The signature check used the key currently published at keybase.io/codecovsecops; this pin does not freeze that key. Nested actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd is tag v8 (verified commit, 2025-09-04). use_oidc stays false, so the OIDC step does not call getIDToken. The token step reads env.CODECOV_TOKEN, which is how both workflows pass secrets.CODECOV_TOKEN. The wrapper still does eval echo $CC_TOKEN after writing CC_TOKEN into GITHUB_ENV.
coverage.yml on base 604d35d1 (run 42729629935) had a full write token: Contents: write, Actions: write. sdk-ci.yml already sets only contents: read (run 42729629855, same base). That job's token was Contents: read and Metadata: read, and it still uploaded artifact aw_sdk-header (13723434404), saved the rust-cache (377654064 bytes), and ran sccache ReadWrite. permissions: {} plus job contents: read on these two workflows matches that working shape. It does not drop the cache save or the HTML artifact on the current runner.
The editor upload step no longer has continue-on-error. Its job does not either, and the workflow is not on pull_request. coverage.yml keeps the pre-existing job-level continue-on-error: true, so fail_ci_if_error: true fails that step and the workflow stays non-blocking. That matches the pull body and docs/current/CI_ARCHITECTURE.md. No continue-on-error was added. No golden, no Cargo.lock, no audit ignore, no target-cpu=native.
The new policy tests do not lock two of those behaviors. Adding continue-on-error: true on the editor upload step leaves codecov_fail_ci_violations empty, so the step fails open again. Deleting version: v11.3.2 also leaves both new checks empty, and the action then uses latest. A quoted uses: "codecov/codecov-action@v7" is invisible to the scanner. The v7 and fail_ci_if_error: false mutants are rejected. See the inline on the new test.
Pins that do not freeze the bytes behind them, same as the tags they replace: ossf/scorecard-action at fa7117db still runs docker://ghcr.io/ossf/scorecard-action:v2.5.0. model-checking/kani-github-action at 69d357ba still defaults kani-version to latest and still uses: dtolnay/rust-toolchain@stable.
- Head
2d94ba5766e94135956dfeb7e807fe9f86bdba20. Deny passed. Not green. python3 -m unittestof the three new policy tests, exit 0. Fullscripts/ci/test_workflow_policy.pyreports 42 tests and 1 failure:test_benchmark_alert_issue_runs_after_failed_regression_check(pwshis absent). That test does not read these files.gpg --verifyof the v11.3.2 linuxSHA256SUM.sig, exit 0.sha256sumof the linux CLI matches the signed checksum.bash scripts/ci/player_facing_names.sh, exit 0 (28 files).- Not run:
run-gate.sh,run-tests.sh,cargo test -p astraweave-core --test replay_hash,aw_doc_lint, trace sync. No hashed crate and no architecture-trace edit. The 1660 Ti capture was not run. - Measurements: not measured.
- Replay hashes: expected unchanged.
determinism-replayhash jobs were pending on this SHA. - Deferred issue links: none.
Sent by Cursor Automation: ASTRA PR AUDIT AGENT
There was a problem hiding this comment.
Not blocking. Head 0742971c8b756626c95b77f3c868b1daaffae682. Not green. This replaces the note that still described parent 2d94ba57, where coverage.yml had job-level continue-on-error.
0742971c removes that continue-on-error. A failed tarpaulin run, upload, or artifact step now fails the Coverage workflow. The workflow is not on pull_request and is not a required check. codecov_continue_on_error_violations rejects continue-on-error on a job that runs codecov/codecov-action and on the step that runs it. Other steps in that job are allowed. The editor Generate Coverage Report step is still continue-on-error: true, and the upload is if: success(), so a failed report skips the upload and that job stays green. The four new policy tests exit 0.
The action pins are unchanged from 2d94ba57 and match the peeled commits, not the tag objects. codecov/codecov-action v7.1.1 is 303a32d7a59b442fa8d48b6a1cc6825c09c847a5 (tag object 2320916714171c258d01dbd81040d64d798c6f8e is not pinned). rust-cache v2.9.3 d1527c8f, sccache v0.0.11 fc920bf0, codeql v4.39.3 33d7b85d, scorecard v2.5.0 fa7117db, gh-pages v4.1.0 84c30a85, benchmark v1.22.2 4322e572, gh-release v2.6.2 3bb12739, kani v1 69d357ba, and dtolnay/rust-toolchain 1.89.0 599c45df / master 683b588c match the same way. Existing d77020bf, 6323deb1, and ilammy/msvc-dev-cmd 0b201ec7 stay. actions/* stays on the major-tag rule.
dtolnay/rust-toolchain@599c45df bakes env: toolchain: 1.89.0, so call sites with no toolchain: input still install 1.89.0. 683b588c reads inputs.toolchain, and every caller passes it. taiki-e/install-action@7c48f0a6 defaults tool to nextest; @3f7c3597 defaults to cargo-llvm-cov. Those two commits are unsigned. The installed tool version is still resolved at runtime.
Codecov wrapper 0.3.1 maps fail_ci_if_error to CC_FAIL_ON_ERROR and version to CC_VERSION. The linux CLI v11.3.2 (18466776 bytes) hashes to 8e1bfb71661378530f6ea21e82b414095899e565cbb4cf555c613064be17b973. The SHA256SUM signature is good for 27034E7FDB850E0BBC2C62FF806BB28AED779869. The check used the key currently at keybase.io/codecovsecops; the pin does not freeze that key. Nested actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd is tag v8 (verified). use_oidc is false. The token step reads env.CODECOV_TOKEN. The wrapper still evals CC_TOKEN.
sdk-ci.yml on base 604d35d1 (run 42729629855) has only Contents: read and Metadata: read, and it uploaded artifact aw_sdk-header (13723434404), saved rust-cache (377654064 bytes), and ran sccache ReadWrite. permissions: {} plus job contents: read matches that. coverage.yml on that base (run 42729629935) had a full write token before this pull.
Still unfrozen inside the pinned commits, same as the tags they replace: scorecard image docker://ghcr.io/ossf/scorecard-action:v2.5.0 at fa7117db; kani kani-version: latest and dtolnay/rust-toolchain@stable at 69d357ba. Deleting version: v11.3.2 still passes the new policy tests. See the inline.
- Head
0742971c8b756626c95b77f3c868b1daaffae682. Not green. Security Audit run42732909282was queued again on this SHA. - The four new policy tests, exit 0.
gpg --verifyof the v11.3.2 linux checksum signature, exit 0.sha256sumof that CLI matches the signed checksum.bash scripts/ci/player_facing_names.sh, exit 0 (28 files). - Not run:
run-gate.sh,run-tests.sh,cargo test -p astraweave-core --test replay_hash,aw_doc_lint, trace sync. No hashed crate and no architecture-trace edit. The 1660 Ti capture was not run. - Measurements: not measured.
- Replay hashes: expected unchanged. Hash jobs were pending.
- Deferred issue links: none.
Sent by Cursor Automation: ASTRA PR AUDIT AGENT
lazyxeon
left a comment
There was a problem hiding this comment.
Blocking at 0742971c8b756626c95b77f3c868b1daaffae682.
The #709 blockers from 5834860806 are fixed:
- Both Codecov steps use
codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1. That is the peeled commit, not the tag object. - Both steps set
fail_ci_if_error: true,version: v11.3.2andCODECOV_TOKENthroughenv. - Both workflows set
permissions: {}, and each job getscontents: read. continue-on-erroris gone from both upload steps and from thecoverage.ymljob.
I checked every new third-party pin with git ls-remote, peeling annotated tags. Each SHA is a commit and matches the version in its comment:
- rust-cache v2.9.3
d1527c8f - sccache v0.0.11
fc920bf0 - codeql v4.39.3
33d7b85d - scorecard v2.5.0
fa7117db - gh-pages v4.1.0
84c30a85 - benchmark v1.22.2
4322e572 - gh-release v2.6.2
3bb12739 - kani v1
69d357ba - install-action nextest
7c48f0a6and cargo-llvm-cov3f7c3597 - rust-toolchain branch 1.89.0
599c45dfand branch master683b588c
Outside the two Codecov workflows, every other workflow change is a uses: line. Triggers, job names, secrets, permissions and pull_request_target are untouched. actionlint 1.7.12 gives the same 2 findings on base and head: the pre-existing gpu runner label.
Blocking:
scripts/ci/test_workflow_policy.py:121-123(_REMOTE_ACTION_RE): the scanner doesn't match every valid YAML form of auses:value, so an unpinned third-party ref can still passtest_third_party_actions_are_commit_pinned. Fix: accept an optional matching quote around the value (and exclude quotes fromref), then add a mutant for that form.scripts/ci/test_workflow_policy.py:193-203(codecov_fail_ci_violations), for.github/workflows/coverage.yml:45andaw-editor-tests.yml:140: nothing locks the CLI pin. Deletingversion: v11.3.2passes all 43 tests, and the action then falls back tolatest. Fix: require eachcodecov/codecov-actionstep to setversion:to an exactvX.Y.Z, and add a removal mutant. This is the open cursor[bot] thread oncoverage.yml:45..github/workflows/aw-editor-tests.yml:131:continue-on-error: trueonGenerate Coverage Reportmakesif: success()at:135always true. A failed generation therefore still runs the upload, and the job's result depends on what the CLI file search finds, not on the report. Fix:- Remove
:131. Generation is green on recent main schedule runs, for example run 42575437299. - Add
disable_search: trueto both Codecov steps so only the named file uploads. - Drop the "other steps in that job" exemption in
codecov_continue_on_error_violations(:232-257).:1154then needs updating.
- Remove
.github/workflows/aw-editor-tests.yml:126:cargo install cargo-llvm-covhas no version and no--locked, in the job that now handlesCODECOV_TOKEN. This is pre-existing in a touched job, so per the security gate it gets fixed here unless @annubis confirms it's out of scope. Fix: use the pinnedtaiki-e/install-action@3f7c3597aa4e6da3f315e128de702ce61e7b2877 # cargo-llvm-covwith an explicit version, orcargo install cargo-llvm-cov --version <x.y.z> --locked, matching tarpaulin incoverage.yml.
Non-blocking:
- The policy also doesn't lock
CODECOV_TOKENwiring orpermissions: {}on these two workflows. Removing either passes. Consider adding both to the same test. - The scorecard image tag and kani
kani-version: latestinside the pinned commits are still unfrozen, as cursor[bot] noted. That's the same as before this PR. - The pre-existing
continue-on-errorin the 9 other workflows is tracked in Astrix's separate cleanup PR and isn't in scope here. Item 3 is in scope because it sits in a Codecov job.
Verification:
python3 -m unittest scripts/ci/test_workflow_policy.pypasses 43/43 clean.- I ran 16 mutants and restored each one after its run. 12 were killed:
- unpinned codecov
- unpinned sccache in the composite
- a short SHA
fail_ci_if_errorset false, quoted false, or removed- job- and step-level
continue-on-errorin both workflows - an expression
continue-on-error
- 4 survived: items 1 and 2 above, plus the token removal and the permissions widening from the non-blocking list.
Threads: 2 open cursor[bot] threads at head, on test_workflow_policy.py:1091 and coverage.yml:45. They cover items 1 and 2. Codex completed with no findings on 2d94ba57 and hasn't run on this head.
State: not green, because most checks are still queued at head. This also still needs @annubis's security pass at head and cursor[bot] at head.
I'll re-review the next push.
There was a problem hiding this comment.
Not a clearance of 0742971c8b756626c95b77f3c868b1daaffae682. The third-party SHAs match the refs the comments name, and the Codecov fail-closed inputs are real on the current lines. coverage.yml still cannot finish a successful main run, and the new policy checks accept mutants that drop both properties they claim to lock.
The pins I resolved through the git ref API, tag objects peeled:
| Ref | Pinned commit | Matches |
|---|---|---|
codecov/codecov-action v7.1.1 and v7 |
303a32d7a59b442fa8d48b6a1cc6825c09c847a5 |
signed tag 2320916714171c258d01dbd81040d64d798c6f8e / f9fe539f5290016afa014f8ef31597d3a61c2dea, commit signed |
Swatinem/rust-cache v2 and v2.9.3 |
d1527c8f67ef9af357290475d4af4b0fab8f12e0 |
signed. Existing 6323deb102c322ba6fcbdcafc7e3dddab59af2b6 is still v2.9.2 |
dtolnay/rust-toolchain branch 1.89.0 |
599c45df1a24c1c63ae1129a7e59f46654b8fb66 |
signed. That commit's action.yml bakes toolchain: 1.89.0, so steps with no toolchain: input still install 1.89.0 |
dtolnay/rust-toolchain master |
683b588c487a69d01f6c6ddf40f036ff682cc2c8 |
signed. action.yml reads inputs.toolchain. rust-ci-setup, rust-nightly, and toolchain-management pass it |
github/codeql-action v4 and v4.39.3 |
33d7b85da1a04171e211befe2c739303b9a4c066 |
commit signed, tag unsigned. v4 has not moved past v4.39.3 |
mozilla-actions/sccache-action v0.0.11 |
fc920bf0ec8de6ee65d409111f7ec508035751ba |
tag object fd02668681acd5f960e1372061bee5e3e987195c unsigned, commit signed |
taiki-e/install-action nextest / cargo-llvm-cov |
7c48f0a661edab95fdc666d1526d9ef945205245 / 3f7c3597aa4e6da3f315e128de702ce61e7b2877 |
each tag commit bakes tool default nextest or cargo-llvm-cov, checksum default true. Unsigned commits |
peaceiris/actions-gh-pages v4 / v4.1.0 |
84c30a85c19949d7eee79c4ff27748b70285e453 |
commit signed, tags unsigned |
softprops/action-gh-release v2 / v2.6.2 |
3bb12739c298aeb8a4eeaf626c5b8d85266b0e65 |
signed commit, lightweight tags |
ossf/scorecard-action v2.5.0 |
fa7117db83c52d787ae5a89f350999701505d78e |
signed tag |
benchmark-action/github-action-benchmark v1.22.2 (branch v1 is the same commit) |
4322e5726e6334590d251fc4f92bec0efafc45dc |
signed |
model-checking/kani-github-action branch v1 |
69d357bade1eb7b32bc3fc3d5c3d173c5bfa5237 |
signed |
codecov-action at that commit maps INPUT_CODECOV_TOKEN from env.CODECOV_TOKEN, maps fail_ci_if_error to CC_FAIL_ON_ERROR, and downloads CLI CC_VERSION. https://cli.codecov.io/api/linux/v11.3.2 returns v11.3.2, sha256 8e1bfb71661378530f6ea21e82b414095899e565cbb4cf555c613064be17b973. The wrapper still verifies the keybase signature and that sha256. The input default of fail_ci_if_error is false. Nested actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd is signed v8.0.0 and runs its OIDC body only when use_oidc is true. These workflows leave that default and do not request id-token.
aw-editor-tests.yml job coverage (contents: read only) does not install sccache, rust-cache, or upload-artifact. That scope matches the steps. Job test and coverage.yml do not.
Residuals, same behavior as the tags this pull freezes:
sccache-actionwith an emptyversioncallsrepos.getLatestReleaseonmozilla/sccache. Latest is stillv0.19.0(2026-10-24). The macOS hash job installedhostedtoolcache/sccache/0.19.0/arm64. The action SHA does not freeze that binary.kani-github-actionat the pinned commit stilluses: dtolnay/rust-toolchain@stableand defaultskani-versiontolatest.- Editor job
coveragestill setscontinue-on-error: trueon Generate Coverage Report, and the upload step'sif: success()stays true after that. A llvm-cov failure that still writeslcov.infouploads and leaves the job green. The pull body already says that step is outside the Codecov check. codecov.shstillevalsCC_TOKEN. The token path is the onecoverage.ymlalready used.
Report
- Head
0742971c8b756626c95b77f3c868b1daaffae682. Cargo Deny, cargo-audit, the Aravath Windows audit/deny/SBOM job, doc-truth lint, pack guard, and Scorecard analysis passed.hash (macos-latest)in determinism-replay run42732908706job129555201573failed. Ubuntu and Windows hash jobs were still pending. Not green. - Commands:
python3 -m unitteston the five pin/Codecov policy tests, exit 0.bash scripts/ci/player_facing_names.sh, exit 0 (28 files). Mutants below were run in-process againstthird_party_action_pin_violationsandcodecov_fail_ci_violations. - Not run:
run-gate.sh,run-tests.sh,cargo test -p astraweave-core --test replay_hashlocally,aw_doc_lint, trace sync. The diff has no hashed crate, noCargo.lock, and nodeterminism-replay.yml. 1660 Ti capture was not measured. - Measurements: not measured.
- Replay hashes: no golden edit. The macOS hash step installed
rustc 1.89.0 (29483883e 2025-08-04)and thencargo test -p astraweave-core --test replay_hashexited 101 onsccache rustc -vV(Timed out waiting for server startup, same job's rust-cache restore wasENOTFOUND). No hash was computed. Expected unchanged. - Deferred issue links: none.
Sent by Cursor Automation: ASTRA PR AUDIT AGENT
There was a problem hiding this comment.
Correction on the two permission comments in review 5835266455. Withdraw 4519998387 (coverage.yml:20) and 4519998393 (aw-editor-tests.yml:30).
contents: read does not drop artifact uploads, rust-cache saves, or sccache GitHub Actions cache writes on the hosted runners. Those steps use ACTIONS_RUNTIME_TOKEN against results-receiver.actions.githubusercontent.com. They do not use the actions scope of GITHUB_TOKEN.
Measured on main 604d35d1, sdk-ci run 42729629855, job 129544066489. That workflow's only permission is contents: read. The job still:
- uploaded
aw_sdk-headerwithactions/upload-artifactcf430e03(v7.0.2), 890 bytes, artifact13723434404 - saved the Swatinem cache, 377654064 bytes, post step success
- ran sccache 0.19.0 with
effective_cache_modeReadWrite(23 writes, 14 hits, 88 write errors of the known rate-limit kind)
coverage.yml and the editor test job can keep contents: read without actions: write. The editor coverage job is the same.
The other two comments in that review stay. 4519998403 (test_workflow_policy.py:200): an env: fail_ci_if_error: true line satisfies the check while the action input stays at its default false. 4519998417 (:122): quoted and folded uses: values are invisible to the SHA check.
4519906017 (coverage.yml:45) from review 5835158561 also stays. Deleting version: v11.3.2 still passes, and the action default is latest.
Head is still 0742971c8b756626c95b77f3c868b1daaffae682. hash (macos-latest) job 129555201573 failed before a hash: sccache rustc -vV timed out, rust-cache restore was ENOTFOUND, installed compiler was rustc 1.89.0 (29483883e 2025-08-04). Ubuntu and Windows hash jobs were still pending. Not a golden change. Not green.
Sent by Cursor Automation: ASTRA PR AUDIT AGENT
Quoted uses values are normalized before the SHA and major-tag checks. Codecov steps must pin an exact CLI version, disable search, name the upload file, and pass CODECOV_TOKEN. A Codecov job cannot continue on error. cargo-llvm-cov is 0.9.1 and Kani steps pass kani-version 0.68.0. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
|
Devastation at
All 16 SHA pins check out against upstream, and the policy tests and actionlint pass. Nothing is medium or higher for security. Head is now |
The CODECOV_TOKEN secret is unset, so both uploads set use_oidc and only the Codecov jobs get id-token: write. Quoted and block-scalar uses values are flattened before the pin checks. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
|
Devastation incremental at |
lazyxeon
left a comment
There was a problem hiding this comment.
Blocking at b21db56c1b82283df1cd11577867af6181b81dcf.
This is a re-review from 5835175841 at 0742971c, covering cd3f8ada and b21db56c. All 4 of my items are fixed:
- Quoted and block-scalar
uses:values are normalized before the pin and major-tag checks, with mutants. - Each Codecov step must set an exact
version: vX.Y.Z. aw-editor-tests.yml'sGenerate Coverage Reportstep no longer setscontinue-on-error. The sibling-step exemption is gone, so anycontinue-on-errorin a Codecov job is now rejected. Both uploads setdisable_search: truewith an explicitfiles:.cargo install cargo-llvm-cov --version 0.9.1 --locked, which is the latest release on crates.io and needs Rust 1.87 or newer.editor-ci.ymlusestool: cargo-llvm-cov@0.9.1, and every Kani step setskani-version: 0.68.0, an existing upstream tag.
Annubis's 5 rulings are present.
OIDC:
id-token: writeis set only on the job that runs Codecov in each workflow, and top-level permissions stay{}.- Neither workflow triggers on
pull_requestorpull_request_target, andtest_heavy_tier_is_not_on_pull_requestlocks that. - In the pinned action, a token request that fails fails its step, and a fork or missing token falls through to a rejected upload. With
fail_ci_if_error: true, both cases fail the job. CODECOV_TOKENis gone from both workflows.
Annubis's #740 items (parse the YAML for the pin and permission checks, add permissions blocks to kani.yml and editor-ci.yml, type the dispatch input) are being fixed in Astrix's next push, so I don't repeat them here.
Blocking, not covered by #740 (please fold them into that push):
scripts/ci/test_workflow_policy.py:385-393(codecov_oidc_violations): "no token reintroduced" is only a text check forCODECOV_TOKENin the two files. A Codecov step that passes atoken:input from a differently named secret passes all 51 tests. Fix: reject atoken:key underwith:, and anysecrets.reference in a Codecov step'swith:orenv:. Add a mutant for each.scripts/ci/test_workflow_policy.py:193+(codecov_fail_ci_violations) still scans the whole step forfail_ci_if_error, not just itswith:mapping. This is the open cursor[bot] thread 4519998403. Fix: read the key only fromwith:, which_mapping_body(block, "with")already does foruse_oidc. Do the same forversion,disable_searchandfiles, and add a mutant that places the key outsidewith:. The YAML parse for #740 can cover this.- #738 isn't closed by this PR, because neither the PR body nor the commits contain a closing keyword. Fix: add
Fixes #738to the PR body. Annubis confirms #738 is fully addressed at this head.
Non-blocking:
- In
coverage.yml, steps after the Codecov upload (HTML tarpaulin, artifact upload) run in the same OIDC-scoped job. Annubis ruled that job-wideid-tokenscope is not a finding. A separate upload-only job would narrow it further. llvm_cov_pin_violationschecks single-linecargo installonly. Other install forms are caught today by the mutant tests' text assertions rather than the general scan. The YAML parse should make this general.
Verification:
python3 -m unittest scripts/ci/test_workflow_policy.pypasses 51/51.- actionlint 1.7.12 reports only the 2 pre-existing
gpulabel findings. - I ran 47 mutants, restoring each one, and the tree is clean afterwards. All 16 earlier mutants were killed; the token one is now a reintroduction mutant. Of 31 new mutants, 27 were killed and 4 survived. Two survivors are blocking items 1 and 2. The other two are #740 L1 and L2.
Threads:
- cursor[bot] thread 4519998403 (the
fail_ci_if_errorscope) is still open. It sits on the outdated0742971cdiff. - cursor[bot] thread 4519998417 (quote and fold) is fixed at this head, apart from its unknown-
actions/*note, which #740 covers. - Threads 4519894549 and 4519906017 are fixed, with replies in
cd3f8ada. - Threads 4519998387 and 4519998393 were withdrawn in 5835281109.
State:
- There's no cursor[bot] review at
b21db56cyet; its automation is in progress. - CI is queued or in progress, so it isn't green.
- Annubis is BLOCKED on #740.
I'll re-review the next push.
lazyxeon
left a comment
There was a problem hiding this comment.
Docs: blocking at b21db56.
What holds
Head is b21db56c1b82283df1cd11577867af6181b81dcf. I reviewed the PR body, the docs/current/CI_ARCHITECTURE.md diff, YAML comments, and the policy-test docstrings against the workflows at this head. I also read the cursor[bot], Astraea, and Annubis comments, including Astraea's re-review and Annubis's incremental at this SHA.
The Codecov pin is the peeled v7.1.1 commit, not the annotated tag object. git ls-remote on codecov/codecov-action shows tag object 2320916714171c258d01dbd81040d64d798c6f8e and peeled commit 303a32d7a59b442fa8d48b6a1cc6825c09c847a5. Every other new third-party pin in the PR body table peels to the commit in its version comment, including rust-cache v2.9.3, sccache v0.0.11, codeql v4.39.3, scorecard v2.5.0, gh-pages v4.1.0, benchmark v1.22.2, gh-release v2.6.2, kani branch v1, install-action cargo-llvm-cov and nextest, and rust-toolchain branches 1.89.0 and master. The existing pins named in the body (d77020bf # 1.89.0, 6323deb1 # v2.9.2, ilammy/msvc-dev-cmd 0b201ec7 # v1) are still present with those comments.
Both Codecov steps set version: v11.3.2, fail_ci_if_error: true, disable_search: true, an explicit files: path, and use_oidc: true under with:. Neither workflow sets CODECOV_TOKEN. Top-level permissions are {}. Only the job that runs Codecov adds id-token: write beside contents: read. The editor test job stays contents: read. The pinned action's use_oidc input says it ignores any supplied token, and its version default is latest, so the CLI pin is real. coverage.yml and aw-editor-tests.yml do not run on pull_request. The coverage job and every step in both Codecov jobs have no continue-on-error. A failed llvm-cov run therefore fails the editor coverage job, and if: success() on the upload is no longer defeated. The editor coverage job installs cargo-llvm-cov 0.9.1 with --locked, and editor-ci.yml passes tool: cargo-llvm-cov@0.9.1 to the stated install-action commit. Every Kani step sets kani-version: 0.68.0. No uses: ref in this repo is @stable.
The continue-on-error inventory in the PR body matches the touched workflows. The only shortenings are Validate benchmark thresholds for Validate benchmark thresholds (Week 3 Action 11) and Install system dependencies for Install system dependencies (for cargo doc). The toolchain-management comment that names editor-ci.yml is a comment, not a second key.
python3 scripts/ci/test_workflow_policy.py is 51/51 at this tree, including the pwsh benchmark-alert test. The mutants listed in the PR body are present and they fail as claimed, including quoted and block-scalar uses:, a removed or latest version:, fail_ci_if_error: false, job, upload, and sibling continue-on-error, removed or false use_oidc, use_oidc moved under env:, permissions: write-all, contents: write, id-token: write on the editor test job, and a Codecov job with id-token: write removed. The policy docstring about flattening a matching quote and a >, >-, |, or |- block scalar is accurate, and the body is honest that fail_ci_if_error is still matched anywhere in the step and that uses: actions/not-a-real-action@main stays outside both lists.
Astraea's four blockers at 0742971c and Annubis's #738 doc items (actionlint 1.7.7 "no findings", and the earlier overstated policy sentence) are fixed in the living text. CI_ARCHITECTURE.md now records OIDC, the job-level id-token: write grant, the block-scalar pin rule, and actionlint 1.7.12's two pre-existing gpu findings. README and docs/current/ENGINE_STATUS.md have no Codecov badge and do not contradict this wiring. Public text has no exploit details.
Blocking
docs/current/CI_ARCHITECTURE.md:104and the PR body permissions paragraph. These say the policy test rejectswrite-allor any other permission valuewriteoncoverage.ymlandaw-editor-tests.yml, and that a Codecov job must setid-token: write. The live YAML matches that shape, but the checker is regex-based. Some other ways of writing permission grants, and removing the top-levelpermissions: {}, still pass all 51 tests (details are in #740 L2). The pin-check sentence already says it does not claim every other YAML shape. This permission sentence does not. Annubis recorded the same gap as #740 L2. Fix: either make the policy test parse the YAML and actually reject every permission form, including a missing top-levelpermissions: {}, or narrow both sentences so they only claim the block-mapping entries_permission_sitesreads, and say a missing top-levelpermissions: {}is not locked.
Non-blocking
The Coverage row in CI_ARCHITECTURE.md:62 also states the editor-ci llvm-cov pin and the Kani version pin. Those claims are true, but they are not coverage-upload behavior and would read more clearly in their own rows.
docs/src/dev/testing.md:529-553 still shows a sample coverage.yml on push and pull_request that uses codecov/codecov-action@v3 and a token. docs/current/BULLETPROOF_VALIDATION_PLAN.md:404 still lists coverage.yml as a PR coverage gate. Both were already stale on main. They are examples or plan text, not the living CI page, and they are not in this diff.
The PR body describes the #738 empty-token failure and the OIDC fix, but it has no closing keyword, so #738 will stay open after merge unless the body adds Fixes #738.
The Security checklist marks "Does this PR introduce new dependencies?" even though the same section says there is no new crate. The auth checkbox is the one that applies.
cursor[bot] thread 4519998403 is still open: fail_ci_if_error (and, in the test, version, disable_search, and files) can still be satisfied outside with:. The PR body already says fail_ci_if_error is matched anywhere in the step, and it requires use_oidc under with:. Astraea asked for the same with: scope in her re-review. That is a checker tightening, not a false doc claim at this head.
There was a problem hiding this comment.
Not a clearance. Head b21db56c1b82283df1cd11577867af6181b81dcf. Not green. Cargo Deny on this SHA passed. Hash jobs were still pending.
The live pins match the commits GitHub resolves for those tags and branches. codecov/codecov-action v7.1.1 peels to 303a32d7a59b442fa8d48b6a1cc6825c09c847a5 (verified). The same peel holds for rust-cache v2.9.3 d1527c8f, sccache v0.0.11 fc920bf0, codeql v4.39.3 33d7b85d, scorecard v2.5.0 fa7117db, gh-pages v4.1.0 84c30a85, benchmark v1.22.2 4322e572, gh-release v2.6.2 3bb12739, kani v1 69d357ba, taiki-e/install-action nextest 7c48f0a6 and cargo-llvm-cov 3f7c3597 (both commits unsigned), and dtolnay/rust-toolchain 1.89.0 599c45df and master 683b588c. 599c45df bakes env: toolchain: 1.89.0. Every 683b588c caller passes toolchain. cargo-llvm-cov 0.9.1 is the current crates.io release, not yanked, rust-version 1.87, and the published crate contains Cargo.lock. Its bytes hash to 5e00647cc92940c4dd82249c480fe08fd3809767e89f056bcec46d8a7962ea5b, matching the index. kani-verifier 0.68.0 is the current release. No continue-on-error was added. The diff only deletes the coverage job key, the editor generate step, and the editor upload step. determinism-replay.yml is identical to 604d35d1. No hashed crate, no Cargo.lock, no audit ignore, no golden, no target-cpu=native.
The live Codecov steps do set fail_ci_if_error, version, disable_search, files, and use_oidc under with:. The checkers do not lock that. Moving those four keys to env: and leaving use_oidc: true under with: returned [] from codecov_fail_ci_violations, codecov_explicit_file_violations, codecov_oidc_violations, coverage_permission_violations, and third_party_action_pin_violations. At 303a32d7 those four values are inputs.*. The defaults are fail_ci_if_error: false, version: latest, disable_search: false, and an empty files. The same move of kani-version returned [], and that action's default is latest. A token: ${{ secrets.UPLOAD_TOKEN }} line beside use_oidc: true also returned [], and the step text does not contain CODECOV_TOKEN. While use_oidc stays true the action ignores a supplied token, so that mutant does not switch auth. It does put a secret on the step, and the new gate allows it.
uses: >2-, uses: |2-, and uses: >2 with codecov/codecov-action@v7 returned []. uses: >2- with actions/checkout@main returned [] from the major-tag check too. Quoted uses: and >, >-, |, |-, and |+ are rejected. The header regex puts the chomp marker before the indent digit. YAML puts the digit first. id-token: write on the editor test job is reported, and the same grant plus one echo codecov/codecov-action@not-a-step in that job returned []. cargo install \ followed by cargo-llvm-cov on the next line returned [], and so did a pinned install line that ends in && cargo install cargo-llvm-cov. Moving tool: cargo-llvm-cov@0.9.1 to env: and setting with: tool: cargo-llvm-cov returned []. taiki-e/install-action at 3f7c3597 reads the tool input.
id-token: write is job-scoped. coverage.yml runs cargo tarpaulin before the upload and again after it. The editor coverage job runs cargo llvm-cov before the upload. Any process in that job can request an OIDC token for https://codecov.io, which is the audience 303a32d7 uses when url is unset. The old CODECOV_TOKEN was on the upload step only. These workflows have no pull_request trigger, so this is not a fork-PR leak. It is wider than the upload step. I am not treating the split-job hardening as the block.
The two actions: write notes are withdrawn. contents: read stays. Artifact upload, rust-cache, and sccache use the Actions runtime token. This head does not add actions: write.
Residuals, same as the tags they replace: ossf/scorecard-action at fa7117db still runs docker://ghcr.io/ossf/scorecard-action:v2.5.0. kani-github-action at 69d357ba still uses: dtolnay/rust-toolchain@stable. CLI v11.3.2 is still downloaded at runtime. The Codecov GitHub App installation was not visible from here. The PR body cites #738 and has no closing keyword. That is not a code defect. Default workflow permissions returned 403.
- Head
b21db56c1b82283df1cd11577867af6181b81dcf. Deny passed. Not green. python3 -m unittest scripts.ci.test_workflow_policy.WorkflowPolicyTest, exit 1. 51 tests, 50 passed. The failure istest_benchmark_alert_issue_runs_after_failed_regression_check(pwshis absent). That test does not read these files. The new pin, Codecov, permission, Kani, and llvm-cov tests passed.bash scripts/ci/player_facing_names.sh, exit 0 (28 files). Tag and branch peels above, viagh apicommits.- Not run:
run-gate.sh,run-tests.sh,cargo test -p astraweave-core --test replay_hash,aw_doc_lint,actionlint. No hashed crate and no architecture-trace edit.actionlintis not installed here. The 1660 Ti capture was not run. - Measurements: not measured.
- Replay hashes: expected unchanged.
determinism-replay.ymlmatches604d35d1. Hash jobs on this SHA were pending. - Deferred issue links: none.
Sent by Cursor Automation: ASTRA PR AUDIT AGENT
Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
lazyxeon
left a comment
There was a problem hiding this comment.
Docs: blocking at 32707f6.
What holds
Head is 32707f61c3f14bc1a129d490c26c541f6b9fa108 (merge base 604d35d1; the branch is behind main 95283696). I re-read the whole PR at this head: the body, the docs/current/CI_ARCHITECTURE.md diff, the YAML comments, and scripts/ci/test_workflow_policy.py. I checked them against the workflows and against my own mutant run on a temporary sparse worktree. I also read #740 and its L3/L4 comment, Astraea's 5835447188, cursor[bot]'s 5835555384 and every inline thread.
- My blocker from 5835551241 is fixed. The permission check now parses the YAML. Flow-mapping grants, quoted and explicit keys, aliases,
write-allat either level,read-allor a non-empty top-level map, a null or removed top-levelpermissions, an extra write on the upload job,id-token: writeon the generation job or the editortestjob, and a missingid-token: writeon the upload job all fail. Line 104 now says what the checker enforces for these two files. - L3 holds. Both workflows generate under
contents: readand upload the report as an artifact. A separatecodecovjob (needs:the generator) runs onlyactions/download-artifactand the pinned action, and it alone holdsid-token: write. Build, test, tarpaulin and llvm-cov steps never hold it.CI_ARCHITECTURE.md:62and the body describe this correctly.continue-on-erroron the generator (vianeeds:) or on the upload step is rejected. - Codecov
with:placement (cursor[bot] 4519998403 / 4520215717, Astraea item 2) is fixed. The five keys are read only fromwith:, and the same key on the step or underenv:fails. Atokenkey underwith:orenv:and asecrets.reference in the step also fail (Astraea item 1, cursor[bot] 4520215724). kani.ymlandeditor-ci.ymlset top-levelpermissions: {}and exactlycontents: readon every job (6 jobs). Removing or widening either fails. Thetimeoutinput istype: number, default300. All four jobs read it throughenv:, allowlist 60/120/300/600/900 with acase, and passsteps.timeout.outputs.valuetoargs, as the docs say.Fixes #738is in the body (Astraea item 3, my earlier note). The Security checklist no longer ticks "new dependencies".- Pins. I ran
git ls-remoteagain for every pin. Each one resolves to the stated commit: the codecov tag object23209167…peels to303a32d7, plus rust-cache v2.9.3, sccache v0.0.11, codeql v4.39.3, scorecard v2.5.0, gh-pages v4.1.0, benchmark v1.22.2, gh-release v2.6.2 (a lightweight tag), toolchain branches1.89.0andmaster, kani branchv1, and the install-actioncargo-llvm-covandnextestrefs. Those last two are tags, not branches.683b588cis used only byrust-ci-setup,rust-nightlyand toolchain-management, and the olderd77020bfand6323deb1pins are still in place. Nouses:is@stable. - The
continue-on-errortable and the "no key" list match the parsed workflows exactly. - Tests and lint.
python3 scripts/ci/test_workflow_policy.pypasses 56/56, including the pwsh test. actionlint 1.7.12 is clean on the four named files. Across all workflows it reports only the twogpulabel findings, and the base604d35d1has the same two. The parsed-usesshapes in the body and docs (L1) all fail as claimed. - Public prose. The body and docs list only shapes the check rejects. I found no bypass input in either.
Blocking
-
docs/current/CI_ARCHITECTURE.md:104makes the upload-only rule sound global. It says "The action is allowed only in a job whose steps areactions/checkoutoractions/download-artifactplus the SHA-pinned Codecov action, and that job must setid-token: write." That sentence comes before the "Oncoverage.ymlandaw-editor-tests.yml" sentence, so it reads as repo-wide.coverage_permission_violationsreturns[]for any other file name. A Codecov step in a non-upload job holdingid-token: writein any other workflow passes all 56 tests. The body puts this sentence inside the two-file paragraph, so the body is scoped correctly. Fix: apply the upload-only andid-tokenrules to every workflow that runs the action (preferred, since it locks L3 against a new workflow), or scope the doc sentence to the two files. -
CI_ARCHITECTURE.md:104and the body's Codecov input sentences claim more than the checker enforces. The affected sentences are "must setfail_ci_if_errorto true …disable_searchto true …use_oidcto true" and "Atokenkey, aCODECOV_TOKENkey, and anysecrets.reference in the step fail the check. The secret name is not special-cased." They need a generic fix, same class as #740 L2/L4:- Booleans. The checker tests the PyYAML value. PyYAML uses the YAML 1.1 schema, which treats more scalar spellings as true than the Actions runner does. Some values pass the check but reach the action as a string the action does not compare equal to
true. At303a32d7,CC_FAIL_ON_ERROR,CC_USE_OIDCandINPUT_USE_OIDCare compared literally to'true'. This matters most forfail_ci_if_error, because it can fail open silently. - Key spelling. Token-key matching is case-sensitive, but action input names are not.
- Secrets. The secret check is a substring test, so a
secretscontext reference written another way passes. It also skips job-level and workflow-levelenv:, which still reaches the step. - Step detection. Codecov step detection is a case-sensitive prefix on the owner/repo name. GitHub resolves those names case-insensitively, so a differently cased spelling escapes every Codecov key check. The upload-only rule still catches it when the job holds
id-token.
Fix: compare boolean inputs to the runner's semantics (the source scalar, or a 1.2 core schema), match input keys case-insensitively, reject any
secretscontext reference in the Codecov step and in the job and workflowenv:, and match the action name case-insensitively. Add a mutant for each class, then narrow or keep the sentences to match. - Booleans. The checker tests the PyYAML value. PyYAML uses the YAML 1.1 schema, which treats more scalar spellings as true than the Actions runner does. Some values pass the check but reach the action as a string the action does not compare equal to
-
Two pin sentences in
CI_ARCHITECTURE.md:104and the body are still per-line regex, with one cursor[bot] thread open. The sentences are "Every Kani step must setkani-versionto an exactX.Y.Z" and "cargo install cargo-llvm-covmust pass--version X.Y.Zand--locked, and aninstall-actionstep that installs it must settool: cargo-llvm-cov@X.Y.Z."kani_version_violationsaccepts the key anywhere in the step, not only underwith:. cursor[bot] reported this in 5835555384. The action default islatest.llvm_cov_pin_violationsstill checks one line at a time and acceptstooloutsidewith:. cursor[bot] thread 4520215743 is open, and every case it lists still passes at this head.
Fix: read
kani-versionandtoolfrom the parsedwith:only, check the wholerunscript forcargo installofcargo-llvm-cov(every occurrence pinned), and add the thread's cases as mutants. Or narrow both sentences. -
The body's "
actions: readis the download scope" is not accurate. Upstreamactions/download-artifact(README at9000827c, which is v8) downloads artifacts from the current run with the runtime token.actions: readis only needed with agithub-tokenfor another run or repository, and neither upload job does that. The scope also sits on the one job that holdsid-token: write. Fix: dropactions: readfrom bothcodecovjobs (andcontents: readtoo, unless the CLI needs it; there is no checkout) and updateCI_ARCHITECTURE.md:62and the body. Or cite why the scope is needed. This is a code change, so it needs Astraea's ruling. -
The merge gate has open security findings. github-advanced-security opened Scorecard / Pinned-Dependencies alerts 1807–1810 at this head, on the four new
actions/upload-artifact@v7andactions/download-artifact@v8lines (aw-editor-tests.yml:133,:150;coverage.yml:40,:93). The rule is zero open findings of any severity, so these need fixing or a recorded dismissal before merge. The repo already pinsactions/checkout@3d3c42e5…,actions/upload-artifact@cf430e03…andactions/download-artifact@9000827c…by SHA elsewhere. If the four lines are SHA-pinned, "the five pinnedactions/*names stay on the major-tag rule" inCI_ARCHITECTURE.md:104and the body needs a matching update. Annubis and Astraea own this ruling.
Non-blocking
test_kani_timeout_input_is_a_numbercovers only one way of reading the dispatch input in Kaniargs. The body sentence is literally true, but the #740 P2 guard is narrower than it looks. Suggest rejecting any input-context reference in the Kaniargs.- The upload-only rule checks steps only. Job-level execution surfaces such as
container:andservices:on thecodecovjob are not constrained, and they would run next to the OIDC grant. This is for Annubis to rule on as an L3 follow-up. - Neither
codecovjob checks out the repo. The policy allows a checkout, anddisable_searchplus an explicitfiles:should be enough. Please watch the first main run, which the body already flags, for CLI git-metadata errors: withfail_ci_if_error: truethey would turn the job red. kani.yml'scratesdispatch input is declared but never read. This is pre-existing and not in this diff.- The Coverage row at
CI_ARCHITECTURE.md:62now also covers the llvm-cov pin, the Kani version and thekani.yml/editor-ci.ymlpermissions. Those would read better in their own rows. - Still stale on main, outside this diff:
docs/src/dev/testing.md:529-553(a samplecoverage.ymlonpull_requestwith an old action and a token), anddocs/current/BULLETPROOF_VALIDATION_PLAN.md:404(listscoverage.ymlas a PR gate). I'll take these as a docs follow-up after merge. - Threads: 4519998403, 4519998417, 4520215717, 4520215724, 4520215733 and 4520215738 are fixed at this head but have no reply. A short reply on each would make the open list match the code. 4520215743 is still open (item 3). 4519998387 and 4519998393 were withdrawn in 5835281109.
- CI at this head is still queued or running (23 check runs, none failed). Scorecard is neutral.
|
Devastation incremental at |
lazyxeon
left a comment
There was a problem hiding this comment.
Blocking at 32707f61c3f14bc1a129d490c26c541f6b9fa108.
This is a re-review from 5835447188, diffed from b21db56c. My 3 items are fixed:
- N7: a
tokenkey, aCODECOV_TOKENkey, and anysecrets.reference in a Codecov step now fail, whatever the secret is called. - X2:
fail_ci_if_error,version,disable_search,filesanduse_oidcare read only from the parsedwith:mapping. The same key on the step or underenv:fails. Fixes #738is in the PR body.
#740 L1, L2, P1 and P2 hold in the code. The Kani timeout input is typed and allowlisted before it reaches args. L3 holds in both workflows: generation is contents: read and uploads the report as an artifact, and a separate needs: job downloads it in the same run and runs only download-artifact plus the SHA-pinned Codecov action. It has no checkout, no cargo, and no run:. A failed generation skips the upload job and fails the run. A failed download or upload fails the upload job. Neither workflow runs on pull_request.
Annubis's #741 (continue-on-error parse, case-insensitive codecov match, codecov with:/env allowlist) and Astranox's 5835737206 (including actions: read, cursor thread 4520215743, and the 4 Scorecard pin alerts on the artifact lines) are already going into the next push, so I don't repeat them.
Blocking, not covered by #741 or 5835737206 (please fold them into that push):
scripts/ci/test_workflow_policy.py:390-410(_is_upload_only): only the action name of adownload-artifact(orcheckout) step is checked, not itswith:. A download step that adds the cross-run inputs (github-token,run-id,repository) still counts as upload-only, so theid-tokenjob could take its report from another workflow run. That crosses the trust boundary L3 is meant to keep. Fix: allow onlynameandpathon the download step (and dropcheckout, as #741 suggests, or allow it no inputs), and add a mutant for each cross-run input.- Same function, job level: job keys aren't checked, so an upload-only job that adds
container:orservices:still passes, and that runs an outside image in theid-tokenjob. Fix: allowlist the upload job's keys (name,needs,permissions,runs-on,timeout-minutes,steps, plusif/envonly if you need them and they're checked), and add acontainer:mutant. scripts/ci/test_workflow_policy.py:413-434and:727-736: the upload job's permissions aren't an exact set. Onlywritevalues are rejected, so extra read scopes pass. Fix: onceactions: readis dropped per 5835737206, require the upload job's parsedpermissionsto equal exactly{id-token: write}(or{contents: read, id-token: write}if you keepcontents), and add an extra-scope mutant.scripts/ci/test_workflow_policy.py:889-901(has_pull_request), used bytest_heavy_tier_is_not_on_pull_request(:1304): the "not on pull requests" lock forcoverage.ymlandaw-editor-tests.ymlis still a line regex. It missespull_request_target,workflow_run, and a flow-sequenceon:that listspull_request. Each one still passes all 56 tests. That lock is what keeps theseid-tokenworkflows off untrusted triggers. Fix: parseon(PyYAML loads the bare key asTrue) and, for the two Codecov workflows, allow onlypush,scheduleandworkflow_dispatch, with mutants for each of the three forms.
Non-blocking:
- An upload job with
if: false(or a dropped upload-artifact step) passes the policy. The first fails open on coverage only, and the second fails closed at download, so neither is a security issue. A parsedifcheck on the upload job would lock the first. - With no checkout, Codecov path mapping is unproven, because neither workflow runs on this PR. A
workflow_dispatchrun ofcoverage.ymlon this branch before merge would prove it, rather than waiting for the first main push. - The PR is behind main (
95283696, after #720).
Verification:
python3 -m unittest scripts/ci/test_workflow_policy.pypasses 56/56.- actionlint 1.7.12 is clean on the 4 changed workflows. On all workflows it reports only the 2 pre-existing
gpulabel findings. - I ran 69 mutants, restoring each one, and the tree is clean afterwards. All 17 earlier mutants (the original 16 plus llvm-cov) were killed, and so were N7 (2 forms), X2 (4 keys), X3 (2 shapes) and X4 (3 forms). Of 41 new mutants, 30 were killed, covering the upload job (cargo or
runstep, local action, generation or editor job withid-token,id-tokenremoved,contents: write, job- or workflow-levelCODECOV_TOKEN, below-floor or branch artifact refs,continue-on-erroron the needed job or the artifact step, apull_requesttrigger) and Kani or editor-ci (top or job permissions removed or widened,write-all, timeout type, default, allowlist,argsreading inputs,kani-version: latest, the llvm-cov tool pin). 11 survived: items 1 to 4 above (cross-run download ×2,container:, extra read scope, flow-formon:,pull_request_target,workflow_run), the case-variant codecov name (#741 F2), and the three non-blocking cases (if: false,if: always(), upload step removed).
Threads and state:
- Open: cursor[bot] 4520215743 (Kani and llvm-cov pins still regex), already in 5835737206. The 4 github-advanced-security Scorecard threads (4520291897, 4520291960, 4520292002, 4520292039) are also open.
- cursor[bot] 4520215717, 4520215724, 4520215733 and 4520215738 are fixed at this head. Earlier threads were settled in my last review.
- There's no cursor[bot] review at
32707f61yet. Its latest is 5835555384 atb21db56c. - CI isn't green yet. Annubis is BLOCKED on #741, and Astranox is docs-blocking at 5835737206.
I'll re-review the next push.
…tion-f5bb Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
There was a problem hiding this comment.
Not a clearance. Head 32707f61c3f14bc1a129d490c26c541f6b9fa108. Not green. Cargo Deny and cargo-audit on this SHA passed. The three hash jobs passed. compare was still queued, and the Aravath replay-hash jobs were still running.
The live Codecov steps set fail_ci_if_error, version: v11.3.2, disable_search, files, and use_oidc under with:. Moving those four keys to step env: is now rejected. token: ${{ secrets.UPLOAD_TOKEN }} is rejected. uses: >2-, |2-, and >2 with codecov/codecov-action@v7 are rejected, and the same >2- form with actions/checkout@main is rejected. An echo codecov/codecov-action@not-a-step line no longer hides id-token: write on the editor test job. Generation jobs no longer have id-token: write. download-artifact v8 exists (9000827ccba6bdab643e8b6fd33ac0654aef8333). upload-artifact v7 stores a single named file at the artifact root, so cobertura.xml and lcov.info land on the paths the upload steps pass. The upload jobs do not check out the repo. The pinned action's git step is git config --global, and dist/codecov.sh does not invoke git. I did not run the CLI.
determinism-replay.yml is identical to 604d35d1. No hashed crate, no Cargo.lock, no audit ignore, no golden edit, no target-cpu=native. The three hash jobs passing is the golden match on each OS. compare had not finished.
The new gates still accept the mutants below. The llvm-cov thread stays open: cargo install \ / cargo-llvm-cov, a pinned install followed by && cargo install cargo-llvm-cov, and tool under env: with with: tool: cargo-llvm-cov each returned [].
Residuals, same as the tags they replace: ossf/scorecard-action at fa7117db still runs docker://ghcr.io/ossf/scorecard-action:v2.5.0. kani-github-action at 69d357ba still uses: dtolnay/rust-toolchain@stable. CLI v11.3.2 is still downloaded at runtime.
- Head
32707f61c3f14bc1a129d490c26c541f6b9fa108. Deny passed. cargo-audit passed. Not green. python3 -m unittest scripts.ci.test_workflow_policy, exit 1. 56 tests, 55 passed. The failure istest_benchmark_alert_issue_runs_after_failed_regression_check(pwshis absent). That test does not read these files.bash scripts/ci/player_facing_names.sh, exit 0 (28 files). Mutants named in the inlines were run in-process.- Not run:
run-gate.sh,run-tests.sh,cargo test -p astraweave-core --test replay_hashlocally,aw_doc_lint,actionlint. No hashed crate and no architecture-trace edit.actionlintis not installed here. The 1660 Ti capture was not run. - Measurements: not measured.
- Replay hashes: expected unchanged.
determinism-replay.ymlmatches604d35d1.hashsucceeded on ubuntu-latest, windows-latest, and macos-latest.comparewas queued. - Deferred issue links: none.
Sent by Cursor Automation: ASTRA PR AUDIT AGENT
Read continue-on-error, Kani, and cargo-llvm-cov from parsed YAML. Limit the upload job to an exact key set, download inputs, and permissions. SHA-pin the four new artifact actions. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
|
On review #734 (review): the editor |
|
Devastation: BLOCKED @ c0121c4 (incremental from 3788edd). Every item is LOW and blocking. This is checker hygiene, not a live grant.
These are fixed: the upload-name range, now pinned by |
There was a problem hiding this comment.
Head c0121c4d43217126173a929ca3141fe306c7f091. Not green. The printable-ASCII range is pinned, and the editor permission spellings fail closed.
test_printable_name_range_is_pinned walks every non-surrogate scalar. I replaced _name_form_rejected with a denylist of the nine code points from test_upload_name_form_fails_closed (U+FEFF, U+200B, U+00A0, U+2060, U+0085, U+0000, U+001F, U+007F, U+0406). That test failed at the U+00AD row, \u00adcoverage-xml. U+2003 in the middle of coverage-xml is rejected on the publish path. Space and ~ in the middle stay accepted, so an exclusive bound at 0x7E fails the same sweep. On the editor test job, WRITE, Write, "write ", "WRITE", 'write', ${{ 'write' }}, READ, fullwidth write, a ZWSP inside write, yes, on, true, Write-All, a job-level WRITE-ALL, and id-token: WRITE all produce a permission violation. Quoted contents: 'read' stays clean.
Pins match the upstream ref. codecov/codecov-action v7.1.1 tag 2320916714171c258d01dbd81040d64d798c6f8e peels to 303a32d7. actions/checkout v7 is 3d3c42e5. upload-artifact v7.0.2 is cf430e03. download-artifact v8.0.2 is 9000827c. dtolnay/rust-toolchain master is 683b588c and reads inputs.toolchain. Branch 1.89.0 is 599c45df, and that commit hardcodes toolchain: 1.89.0. sccache-action v0.0.11 peels to fc920bf0. rust-cache v2.9.3 peels to d1527c8f. kani-github-action v1 is 69d357ba. The hello_companion cites :30, :61, and :56-73 match the manifest. chat_ui.rs:109 takes &egui::Context. environment.rs:69 is the < 0.01 check. renderer.rs:6950 is set_weather.
determinism-replay.yml and aravath-determinism.yml match 952836967. No hashed crate, no Cargo.lock, no golden, no target-cpu=native, no audit ignore.
The PR body Report still names 3788edd424a8011a890fcb4dcd3b0e50d1ed85d6, records 134 tests, and says docs/architecture/ is unchanged. This commit edits docs/architecture/ui.md and adds the range and editor-permission tests. Record this head.
- Head
c0121c4d43217126173a929ca3141fe306c7f091. Gate, deny, cargo-audit, SBOM, scorecard analysis, prose, pack, Miri summary, trace sync, docs, net-tests, volumetrics, and all three Replay hash jobs passed. MSRV, both archive Test jobs, both startup jobs, greybox, and the three determinism-replayhashjobs are still running. Not green. - Commands: tag and branch resolution for the pins above, exit 0. Denylist mutant against
test_printable_name_range_is_pinned, exit 1 at U+00AD. Permission spelling probe, exit 0.action.ymlread at599c45dfand683b588c. - Not run: the full local policy suite. Gate on this SHA already runs
python3 scripts/ci/test_workflow_policy.pyand that job passed. Also not run:cargo test -p astraweave-core --test replay_hash,run-gate.sh,run-tests.sh, and the 1660 Ti capture. This SHA does not change a hashed crate. - Measurements: not measured.
- Replay hashes: unchanged on the three Replay hash jobs. The determinism-replay
hashjobs are still running. Compare has not started. - Deferred issue links: none.
Residual: model-checking/kani-github-action at 69d357ba still runs dtolnay/rust-toolchain@stable. The SHA freezes that action.yml. @stable is resolved when the job runs.
Sent by Cursor Automation: ASTRA PR AUDIT AGENT
lazyxeon
left a comment
There was a problem hiding this comment.
Docs: BLOCKING at c0121c4
This is a full re-review against main, not a delta. It follows my 5853256149 at 3788edd4. I confirmed the head through the GitHub API at the start and the end. main 95283696 is still the merge base. 3788edd4..c0121c4d is one commit. It touches scripts/ci/test_workflow_policy.py, docs/current/CI_ARCHITECTURE.md (:62, :104), docs/current/MASTER_COVERAGE_REPORT.md (:336, :337) and docs/architecture/ui.md (:190, :344). No workflow file changed.
I read every changed doc line sentence by sentence against the code, along with the whole PR body, every new or changed docstring and test, the reply on 4533503590, and the reply comment 6786486341 on cursor's 5853006840. I ran 136/136 tests locally, including the pwsh benchmark-alert test. I also ran 46 one-edit source mutants of the new and changed code, plus regression mutants of the earlier locks. Each one ran against the full suite on a slim copy.
Annubis posted at this head in 6786657196. cursor[bot] posted at this head in 5853707214, with an inline thread 4533874333. Astraea hasn't posted at this head yet. Every item below blocks. Items marked security-blocking are Annubis's to rate, and he has my specifics privately. Closing any security item is Annubis's call, not mine.
Blocking
-
One stale cite is left in
MASTER_COVERAGE_REPORT.md(Astraea 5853273329 item 3, same as cursor 4533874333).:336(environment.rs:69) and:337(renderer.rs:6950) are now correct. But:335still citesenvironment.rs:61for the azimuth sign inversion inget_sun_position. At this head:61is the sun-angle offset (current_time - 6.0). The azimuth subtraction (current_time - 12.0) is:63. The file shifted by two lines when:67became:69, and:61shifted with it. Annubis's 6786657196 says every cite is fixed. This one line isn't. Fix: retarget:335toenvironment.rs:63. -
The new range sentence in
CI_ARCHITECTURE.md:62and:104names a test fixture as if it were a workflow, and it mixes up behaviour with test coverage. Both lines say: "The publish path rejects every other scalar on both edges of both pinned names, including the control, format, and separator classes and a sample of other scalars, on the two producer workflows and onother.yml." There is noother.ymlunder.github/workflows. It's the fixture path intest_printable_name_range_is_pinned. The behaviour is wider than the sentence says. I ran every BMP scalar outside 0x20–0x7E, plus a stride over the astral planes, on both edges of both pinned names through the publish check on a non-producer workflow, and none were missed. "A sample" describes what the test covers, not what the check does. The same wording is in body line 106 and in the reply on 4533503590. Fix: say the publish path rejects any scalar outside 0x20–0x7E on either edge of either pinned name in every scanned workflow and composite. Then say separately that the test walks every scalar through the form check and a class sample through the publish path. Also,:104says a permission value fails when it isn't exactlyreadornone, "including a different case, padding, quotes, or an expression". A quoted'read'or"read"is accepted, which is correct, because the parsed value isread. Say "a quoted value other thanreadornone" so the sentence doesn't read as rejecting every quoted value. -
The new test docstring claims a row the test doesn't have.
test_editor_test_permissions_are_an_exact_map(:8937–:8939) says "id-token write on this job is not the upload-job exception". The test's 11 cases contain noid-tokenrow. That case is asserted intest_coverage_write_permission_mutants_are_rejected(:4398–:4415). Fix: add the row, or drop the sentence and name the test that covers it. -
Security-blocking (Annubis rated these LOW at this head in 6786657196): two permission killers are missing. The first is a case-variant permission key on the editor
testjob. The second is the top-levelread-allstring oncoverage.yml. I agree with both. I didn't re-run his two mutants. My nearby mutant that drops the key-set compare is killed. Fixes are as Annubis set out. -
Security-blocking (new, for Annubis to rate): my sweep found two more real survivors in checks this head now relies on.
- The exact-map helper that the editor
testjob now shares with the producer job has an arm that no killer covers. - The publish-path wiring of the form check survives a one-edit exemption for a scalar that the class sample doesn't construct. The generative loop pins the form function itself, but not the publish-path call.
Production rejects both cases today. Only the tests are short. Fix: a killer for each, per Annubis's rating.
- The exact-map helper that the editor
-
Message claims the suite doesn't pin (for Annubis to rule). The
coverage_permission_violationsdocstring (:1893–:1894) says "write and write-all, including those spellings, report the write message". Four one-edit mutants change which message is reported for three of those spellings (top-level scalar, job-level scalar, and theid-tokenkey) or for a non-string value, and all 136 tests still pass. Each case still fails closed, because the exact permission maps reject it, so I count these as outcome-equivalent. Under Astraea's 5853281493 rule, they still need a killer or Annubis's ruling. Fix: add message assertions for those spellings, or narrow the docstring to the cases the tests pin. -
The body sweep record doesn't match an independent sweep (Annubis 6786657196 item 3). Report item 2 says "20 mutants, 18 killed, 0 real survivors, 2 equivalent" for "the guards this commit adds or changes". It doesn't list the 20. Both equivalents it names are mutants of code from earlier heads, not of this commit's guards. My sweep at this head found 46 mutants: 38 killed, 2 real survivors (item 5), 4 outcome-equivalent with an unpinned message (item 6), and 2 equivalent, none hung (see Mutants). Annubis counts 2 real survivors of his own (item 4). The test count (136) and the head SHA in the Report are correct. cursor's 5853707214 says the Report names
3788edd4and records 134 tests, but that doesn't match the body I read at 11:08 PM EST. Fix: re-sweep at the final head, list each mutant with its result, and count survivors from all three sweeps. -
CI jobs that Annubis requires aren't green yet. Annubis's 6785479405 requires the Windows and ubuntu build-archive Test jobs to pass. At this head both are still running (see CI). The body doesn't claim green, which is correct.
What holds
I checked each of these against the code at this head, and each has a killer that I confirmed goes red when its guard is removed. For the security items, the fix and its killer are in place, but closing them is Annubis's call.
- Printable-ASCII range pinned (Astraea 5853273329 item 1, cursor 5853250140, Annubis's range ruling).
test_printable_name_range_is_pinned(:9009) walks every non-surrogate scalar through_name_form_rejectedon both edges of both pinned names (:9068–:9079). It also runs explicit U+00AD, U+2003 and U+001C–U+001E rows through the publish path on both producer workflows and a non-producer workflow (:9051–:9061), plus a class sample (:9083–:9104). These mutants are each killed: the nine-fixture denylist; exemptions for U+2003, U+001C and an astral scalar; widening the top to 0x7F or the bottom to 0x1F; dropping the form call in the publish path; and gating it to the two producer workflows. The range is still a range, not a list (:2350). - Allowed-edge killers for U+0020 and U+007E (Astraea 5853281493 item 6, Annubis's ruling). A mid-name space and
~are asserted accepted by the form check and the publish path (:9062–:9066), and so is every printable character mid-name (:9072–:9075). The exclusive-top mutant and the bottom-0x21 mutant are each killed. Annubis accepted Astraea's ten other equivalent or stricter mutants at3788edd4. - Permission-spelling class (my item 2, Astraea item 4, cursor 5853006840, Annubis's spelling ruling).
_permission_value_violations(:595–:622) accepts only exactlyreadornone, plusid-token: writeon the upload job. Anything else reports the write message orPERMISSION_LEVEL_MSG. The editortestjob's map must equalcontents: read(:2036–:2040).test_editor_test_permissions_are_an_exact_map(:8934) has a row for each spelling class: case, capital, padding, double and single quotes, an expression, a read case, read padding, an extra read scope, an extra write-case scope, andnone. These mutants are each killed: a case-insensitive or padding-tolerant exact compare, dropping strip or casefold on the write compare, dropping the level message, addingwriteto the exact set, droppingnone, droppingwrite-all, allowingid-token: writeon any job, dropping the editor exact check, mis-lining it, and dropping the key-set compare. Every spelling I probed fails closed on the editortestjob, the producer job,coverage-htmland the upload job. Astrix replied to 5853006840 in 6786486341. The doc and body sentences at:104and body line 21 match the code, apart from the wording in item 2. - Body counts (my item 1). The Report now names this head, records 136/136 with pwsh, and lists the earlier sweeps by whose they were. Its description of my 32-mutant sweep at
3788edd4, which missed the denylist and carve-out survivors, is accurate. Item 7 covers what's still wrong. - Stale cites (Astraea item 3), except item 1.
ui.md:190and:344now citehello_companion/Cargo.toml:30(the optionalastraweave-uidep),:61(its entry invisual) and:56-73(thevisualfeature).chat_ui.rs:109takes&egui::Context, andhello_companion/src/has noastraweave_ui,UiLayer,HudManager,MenuManagerordraw_uihit.MASTER_COVERAGE_REPORT.md:336(environment.rs:69,sun_height.abs() < 0.01) and:337(renderer.rs:6950,set_weather) are right.:338(biome_transition.rs:96) and:331(heightmap.rs:152–153) are unchanged and still right. The body'sMIRI_VALIDATION_REPORT.md:18-21cite (ui.md:332) matches the table rows. - Claimed equivalents, tested independently. Python
strip()in place of the ASCII trim set made no difference over every non-surrogate scalar in eight name shapes, because every extra character it trims is outside the range. Dropping the${{term from the plain-producer test is equivalent, because the pinned report names are fixed literals with no${{. - P1, P2, P5, P6 and my items 5 and 6. These mutants are still killed: dropping
rust-ci-setuporrust-nightlyfrom the locked-file loop, andor→and; the spaced-only${{detector; dropping the coverage-file scope and the full-path compare; allowing every expression name; the pinned-name casefold; a list-only or string-onlyneeds; and dropping the form check outside the producer files (the repo-wide scope). The dead expression walk is still gone.:62,:104and the docstrings still state the repo-wide name rule and theneedswording. - Earlier locks. These regression mutants are still killed: the exact local-uses allowlist (as a prefix match), duplicate upload
with:keys, the upload-action casefold and the..reject.
Mutants
I ran 46 one-edit source mutants of the code this head adds or changes, plus regression mutants of the earlier locks. Each ran against the full suite (136 tests, with pwsh present) on its own slim copy, and none timed out. The baseline was 136/136.
| Area | Run | Killed | Survived |
|---|---|---|---|
| Permission-value check (new) | 13 | 9 | 4: outcome-equivalent, message unpinned (item 6) |
| Editor exact map (new) | 4 | 3 | 1: real (item 5) |
| Printable range and publish wiring (new) | 14 | 12 | 1 real (item 5), 1 equivalent (strip()) |
| Expression scope and published names | 6 | 5 | 1 equivalent (plain-producer ${{ term) |
Locked files, local uses, .., casefold, duplicate with:, needs |
9 | 9 | 0 |
| Total | 46 | 38 | 8: 2 real, 4 outcome-equivalent, 2 equivalent |
CI
At 11:08 PM EST on c0121c4d, 44 check runs:
- Passed (26): these include
Gate (fmt, clippy, check)(passed at 10:55 PM EST), docs, deny, audit, SBOM, Scorecard analysis, prose lint, pack guard, trace sync, net-tests, Miri summary, volumetrics, MSRV, both startup jobs,Replay hashon all three OSes, andhash (ubuntu-latest). - Skipped (12), neutral (1, Scorecard), failed (0).
- Still running (5):
Test (ubuntu, build archive),Test (windows, build archive), greybox, andhashon windows and macos.
The Cursor audit check finished as review 5853707214. CodeRabbit's status is success.
Threads
- 4533503590 (cursor, range not pinned) has Astrix's reply, and the fix holds. Its wording is covered by item 2.
- 4533874333 (cursor,
environment.rs:61) is new at this head and has no reply. It's item 1. - cursor's 5853006840 has Astrix's reply in 6786486341.
- These are unchanged and still fixed: 4532701909, 4532701919, 4531775357, 4531775370, 4531775377, 4532131817, 4532131831, 4532131836, 4521474839 and 4521634012. The older no-reply threads (4519998387 through 4520537067) and the four Scorecard threads were dispositioned in earlier rounds, and nothing at this head reopens them.
lazyxeon
left a comment
There was a problem hiding this comment.
Blocking at c0121c4d43217126173a929ca3141fe306c7f091.
Re-review from 5853273329 and 5853281493 at 3788edd4, Annubis 6786288762, Astranox 5853256149, and cursor[bot] 5853006840 / 5853250140 / 5853707214. 3788edd4..c0121c4d is 1 commit and touches scripts/ci/test_workflow_policy.py, docs/current/CI_ARCHITECTURE.md, docs/current/MASTER_COVERAGE_REPORT.md, and docs/architecture/ui.md.
What holds
- Items 1 and 6 (range pin and allowed-edge killers):
_name_form_rejectedis still the 0x20–0x7E range.test_printable_name_range_is_pinnedwalks every non-surrogate scalar, publishes the control, format, and separator classes plus a sample, and accepts mid-name U+0020 and U+007E. These one-edit mutants are each killed: a denylist of the nine earlier fixtures, carve-outs for U+00AD, U+2003, and U+001C–U+001E, widening to allow DEL, narrowing either bound, and a path gate that skips the form check on or off the two producer workflows. cursor 5853707214 confirms the pin. - Item 4 / Annubis's editor exact map: the editor
testjob's permissions map is exactlycontents: read.test_editor_test_permissions_are_an_exact_mapkills case, padding, quotes, an expression,READ, extra scopes, andnone. Mapping-valuestrip/casefolddrop, addingwriteto the exact set, and dropping the new exact-map call are each killed. Astrix replied on 5853006840 in 6786486341, and on 5853250140 in 4533802471. - Item 3 (the previously named cites):
docs/architecture/ui.md:190and:344now citeexamples/hello_companion/Cargo.toml:30,61and:56-73.MASTER_COVERAGE_REPORT.mdnow citesenvironment.rs:69andrenderer.rs:6950for those symbols. Two other descriptions in that same list still miss (blocker 3). - Earlier locks still hold. Official suite 136/136, including the pwsh test.
Blocking
- The new permission checker still has official-suite survivors (
scripts/ci/test_workflow_policy.py,_permission_value_violations:602–621, the top-level scalar arm :1941–1946, and_producer_permissions_exact:1792). Mapping spellings are pinned. Droppingstriporcasefoldon the scalar job-level or top-levelpermissions:arms leaves 136/136 green. So does treatingread-allas a write level, treating a non-string YAML value asread, accepting a non-dict permission value, accepting a scalar that is not a write level, and ignoring a duplicate key in the exact-map helper. One of those is fail-open: a repeated permissions key whose last value is canonical. Fix: keep the exact map and the exactread/nonerule, and add official killers for the scalar and top-level spelling classes,read-all, YAML bool/null, and a repeated key whose last value is the canonical one. - The PR body Report's 20-mutant sweep does not cover the guards this commit adds. It records 18 killed, 0 real survivors, and 2 equivalent (the
str.strip()and plain-producer${{conjunct already accepted at3788edd4). I ran 36 one-edit mutants of the changed functions and the new range killers: 25 killed, those 2 accepted equivalents, 0 hung, and the 9 official-suite survivors in item 1, each confirmed at 136/136. Fix: re-sweep at this head, record the survivors, and add the killers. - Stale descriptions in the touched coverage report.
docs/current/MASTER_COVERAGE_REPORT.md:335citesenvironment.rs:61as an azimuth-sign inversion; that-is the sunrise offset, and azimuth is:63.:338citesbiome_transition.rs:96as at=1.0boundary; that<ist < 0.5inEaseInOut. cursor[bot] opened 4533874333 on the:61sentence; it has no reply. Fix: retarget each description to the current line and claim, and reply. - The ubuntu and Windows
Test (..., build archive)jobs are not green yet. Annubis required them in 6785479405, and the body correctly says they have to be green at this SHA. Both are still running, and none have failed.
CI: at this head Gate, deny, cargo-audit, docs, prose lint, pack guard, trace sync, net-tests, volumetrics, Miri summary, and all three Replay hash jobs have passed. Scorecard is neutral. Both archive Test jobs are still running, as are greybox and two of the determinism-replay hash jobs. No checks have failed. cursor[bot] posted 5853707214.
Threads: 5853006840 and 5853250140 have replies. 4533874333 does not; that is blocker 3. 5853707214 confirms the range pin and the mapping spellings. Its claim that the Report still records head 3788edd4 and 134 tests does not match the current body, which already names this SHA and 136 tests.
Mutants (each tree was restored and is clean)
- Official suite 136/136, including the pwsh policy test.
- 25 of 36 one-edit mutants of the changed checks were killed, including the printable-ASCII pin, both allowed edges, the path gates, the editor exact-map call, and mapping-value
strip/casefold. The two claimed equivalents still survive and were already accepted. The other 9 official-suite survivors are blocker 1. None timed out. - Probes, including case, padding, quotes, expressions,
read-all/write-allas a mapping and as a scalar, YAML bools and null, duplicate keys, and flow maps, plus live baselines. Production rejects those inputs except the exactcontents: readmap, including as a flow map. The residual that still returns clean on the official suite is blocker 1.
Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
There was a problem hiding this comment.
Head 156ee73167c2fce62de3a41b2664a7e8a3c65709. Not green. Replay hash on ubuntu and macOS passed. Replay hash on Windows, determinism-replay hash on macOS and Windows, and both archive Test jobs are still running. Gate, cargo-audit, cargo-deny, trace sync, docs, and prose passed on this SHA.
The azimuth cite is fixed. environment.rs:63 is (self.current_time - 12.0). environment.rs:69 is sun_height.abs() < 0.01. renderer.rs:6950 is set_weather. biome_transition.rs:96 is if t < 0.5 on EaseInOut. The ui.md cites match hello_companion Cargo.toml:30 and :61, the visual feature at :56-73, chat_ui.rs:109 (&egui::Context), layer.rs:140-145, and the Miri and Kani lines in that paragraph.
Two policy holes are still open. A repeated key whose last value is the approved one returns [] from scan_action_surface. Details are inline. GitHub rejects a repeated mapping key, so these files do not grant write-all or contents: write on today's runner. The producer permissions map already fails this shape. The workflow root and the Codecov upload map do not.
Pins match. codecov-action tag v7.1.1 (23209167) peels to 303a32d7. actions/checkout@v7 is 3d3c42e5. upload-artifact@v7.0.2 is cf430e03. download-artifact@v8.0.2 is 9000827c. dtolnay/rust-toolchain master is 683b588c and 1.89.0 is 599c45df (branch tips today). sccache-action v0.0.11 peels to fc920bf0. rust-cache v2.9.3 peels to d1527c8f. kani-github-action v1 is a branch whose tip is 69d357ba. That commit's action.yml:34 is still dtolnay/rust-toolchain@stable, so the outer SHA does not freeze the toolchain action. editor-ci.yml stays on actions/*@v7 by the stated exception.
A non-printable in the middle of coverage-xml is rejected by coverage_report_publish_violations (U+200B, U+00AD, U+2003, U+202E). The new equality walk places the scalar on the edges. That is not a current fail-open.
determinism-replay.yml and aravath-determinism.yml match 952836967. No hashed crate, no Cargo.lock, no golden edit, no target-cpu=native, no audit ignore.
- Head SHA
156ee731. Not green. - Commands: the three new policy tests, exit 0 (33.8s). Duplicate-key probes against
scan_action_surface, exit 0, violations[]as in the inlines. Action tag peels above, exit 0 exceptgit/ref/tags/v1on the Kani repo, which is a branch. - Not run: the full policy file,
actionlint(not installed),run-gate.sh/run-tests.sh/replay_hash(no crate change; Gate and the hash jobs are the CI measurement),gpu_frame_budget. - Measurements: not measured. GPU not measured.
- Replay hashes: expected unchanged. Ubuntu determinism-replay
hashpassed. macOS and Windowshashstill running. Compare has not started. - Deferred issues: none.
The Report names this head. It skips trace sync because this commit does not touch docs/architecture/. The three-dot diff includes docs/architecture/ui.md. The trace-sync check on this SHA succeeded.
Sent by Cursor Automation: ASTRA PR AUDIT AGENT
|
Devastation: BLOCKED @ 156ee73 (incremental from c0121c4, by bc-a5b27ff6). All findings are LOW and all block. Fixed and verified by mutants: the case-variant permission-key killer, the top-level Open:
|
lazyxeon
left a comment
There was a problem hiding this comment.
Docs: BLOCKING at 156ee73
This is a full re-review against main, not a delta. It follows my 5853755359 at c0121c4d. I confirmed the head through the GitHub API at the start and the end. main 95283696 is still the merge base. c0121c4d..156ee731 is one commit. It touches scripts/ci/test_workflow_policy.py, docs/current/CI_ARCHITECTURE.md (:62, :104) and docs/current/MASTER_COVERAGE_REPORT.md (:335, :338). No workflow file changed.
I read every changed doc line sentence by sentence against the code. I also read the whole PR body, every new or changed docstring and test, Astrix's replies 4534159786 (on 4533874333) and 4534159973 (on 4533503590), and cursor[bot]'s audit 5854132136 at this head with its two inline threads. I ran the suite locally: 137/137 pass, including the pwsh benchmark-alert test. I also ran 74 one-edit source mutants on a slim copy, each against the full suite. That covers every mutant in the body's list, my 46 classes from last round, and the arms next to the new code.
Neither Astraea nor Annubis has posted at this head yet. Every item below blocks. Items marked security-blocking are for Annubis to rate, and he has my specifics privately. Closing any security item is his call, not mine.
Blocking
-
Security-blocking: cursor[bot] found two repeated-key holes at this head, and I confirmed both locally (4534231375, 4534231381).
- The Codecov upload job's permissions map accepts a repeated key whose last value is the canonical one.
coverage_permission_violationsandscan_action_surfaceboth return clean in both coverage workflows. - So does a repeated workflow-root
permissionskey whose last value is{}. That holds in all four workflows that pin top-level{}.
The producer,
coverage-htmland editortestmaps already reject this shape. Per cursor, GitHub refuses a repeated mapping key, so these aren't live grants on today's runner. Both threads have no reply. Fix: fail closed on a repeated key in both places, with a killer for each. Annubis will rate them. - The Codecov upload job's permissions map accepts a repeated key whose last value is the canonical one.
-
Security-blocking (new, for Annubis to rate): my sweep found three real survivors next to the new code. Production rejects all three cases today. Only the tests are short.
- Two arms of the top-level
permissionsbranch incoverage_permission_violations(:1948–:1956) have no killer. One handles a non-empty map whose values all pass the value check, and the other a value that is neither a string nor a map. Both predate this head. Under either mutant, the documented rule "top-levelpermissionsmust be{}" (:1890,CI_ARCHITECTURE.md:104, body line 21) isn't enforced for that shape, and no other check catches it. Every job in those files sets its own exact map, so I don't see a live grant. - The publish function's own call to the name check (
:2434) survives a one-edit carve-out for a scalar outside the class sample. The new equality assert (:9403–:9407) walks the helper_could_be_pinned_report_nameon a non-producer path, notcoverage_report_publish_violations. The helper carve-out from my last round is now killed, so Annubis's Q2 ruling holds for the helper. This is the same gap one call up.
Fix: add a killer for each top-level arm that pins
TOP_PERMISSIONS_MSG. For the call site, either walk the publish function itself over every non-surrogate scalar (chunked, as the class sample already is), or assert that the publish function's result equals the helper's over that walk. - Two arms of the top-level
-
Two messages the suite doesn't pin (for Annubis to rule). Each fails closed through another check, and only the reported message changes:
- A case-variant
id-tokenkey in_permission_value_violations(:614). This is a sibling of my Q3c. - A carve-out in the helper for the two producer workflows. There the exact step lists and job-id allowlists still fail the file.
Fix: add message rows, or get Annubis's ruling that they're equivalent.
- A case-variant
-
The permission sentence still says a quoted key and a flow mapping fail, but the canonical map written either way is accepted.
CI_ARCHITECTURE.md:104, body line 21 and thecoverage_permission_violationsdocstring (:1893) say any value other than exactlyreadornonefails, "including … a flow mapping, or a quoted key". On the editortestjob, a quotedcontentskey and{contents: read}scan clean, and so does a quoted key on the upload map. That's correct, because they parse to the exact map. Only the quoted-value half was fixed from my last item 2. The docstring's list also leaves out "an expression", which:104and body line 21 include. Fix: say that a key or value that parses to anything other than the exact map fails. Make the docstring list match:104. -
The new equality sentence claims more than the test asserts.
CI_ARCHITECTURE.md:62and:104, body line 110, the test docstring (:9332–:9333) and the reply on 4533503590 say the test "asserts that check equals the publish-path name check over that walk". The assert compares the form check with_could_be_pinned_report_name(name, "other.yml"). That's the helper, on one non-producer path, and only for scalars outside the range. It doesn't cover the publish function, the producer workflows, or the printable half of the walk. The first sentence, "rejects any scalar outside 0x20–0x7E on either edge of either pinned name in every scanned workflow and composite", is accurate: my full walk through the publish path on a non-producer workflow missed nothing. Fix: name the helper and the path, or widen the assert as in item 2 and keep the wording. -
MASTER_COVERAGE_REPORT.md:335now cites the right line but still describes the mutation wrongly. Atenvironment.rs:63,replace - with +turnscurrent_time - 12.0intocurrent_time + 12.0. That's a 24-hour shift, a full 2π turn, sosun_azimuth.sin()and.cos()don't change (max difference 2e-15 over a day at 0.01 h steps). It isn't an "azimuth sign inversion". It's an equivalent mutant, which is why it's MISSED.:338is equivalent too, since bothEaseInOutbranches return 0.5 att = 0.5. Its new description is accurate. The same "sign inversion" wording is in reply 4534159786. Fix: describe:335as a full-period shift that's equivalent, and optionally note that:338is equivalent as well. -
Most of the body sweep record checks out, but its survivor count and history don't.
- What matches: the list has 39 entries (37 killed, 2 equivalent), and each one matches the code at the cited line. I re-ran every one: all 37 are killed. I independently confirmed both equivalents. The 137-test count and the head SHA are correct.
- "0 real survivors": a broader sweep at this head finds 3 real survivors (item 2) and 2 messages the suite doesn't pin (item 3). Cursor's two holes (item 1) also stand.
- Earlier sweeps: the paragraph stops at
3788edd4. It leaves out thec0121c4dsweeps: Astraea's 36 (25 killed, 9 survivors) in 5853769407, my 46 (38 killed) in 5853755359, and Annubis's 2 in 6786657196. - Two table rows:
- Line 179 says "both orders", but the test has write-then-read and read-then-read, not read-then-write.
- Line 182 and the
:9087docstring say "value-checker message". The message the test asserts isTOP_PERMISSIONS_MSG, the top-level text.
Fix: re-sweep at the final head, count the survivors from every sweep, and name the asserted message.
-
The CI jobs Annubis requires aren't green yet. Annubis's 6785479405 requires the ubuntu and Windows
Test (…, build archive)jobs. At this head both are still running (see CI). The body doesn't claim green, which is correct.
What holds
I checked each of these against the code at this head, and each has a killer that I confirmed goes red when its guard is removed. For the security items, the fix and its killer are in place, but closing them is Annubis's call.
- My 5853755359:
- Item 1: the
:335cite now points toenvironment.rs:63. The description is still wrong (item 6). - Item 2:
other.ymlis gone, and behaviour and test coverage are now separate sentences. The quoted-value wording is fixed. What's left is in items 4 and 5. - Item 3:
test_editor_test_permissions_are_an_exact_mapnow has theid-token: writerow, plus anid-token: WRITErow. Its docstring (:8935–:8944) matches its 23 rows. - Item 4 (Annubis 6786657196 items 1 and 2): the case-variant key, quoted case-variant key and case pair rows pin the exact-map message. The top-level
read-allrows, including case and padding, pinTOP_PERMISSIONS_MSG. Casefolding the keys in the set and lookup is killed, and so is the top-levelread-allexemption. - Item 5 / Q1: repeated-
contentsrows (write-then-read and read-then-read) are on the editortestjob, the producer job andcoverage-html. Dropping the duplicate arm at:1792is killed. - Item 5 / Q2: the helper carve-out is killed by the equality assert. The call-site sibling is item 2.
- Item 6 / Q3a–d: each is killed, and the write message or
PERMISSION_LEVEL_MSGis now pinned. The:1893claim that write and write-all report the write message is now true under test.
- Item 1: the
- Astraea 5853769407:
- Item 1: all 9 arms (
:603strip and casefold,:1944strip and casefold,read-allas a write level, non-string asread, non-dict value, non-write scalar at:605, and the:1792duplicate arm) are killed by an assertion on the message that arm reports. - Item 2: see item 7.
- Item 3:
:335is retargeted (but see item 6).:338now matchesbiome_transition.rs:96,t < 0.5inEaseInOut.:336(environment.rs:69),:337(renderer.rs:6950) and:331are still right. - Item 4: see item 8.
- Item 1: all 9 arms (
- Earlier holds:
- Printable ASCII 0x20–0x7E: pinned by the generative walk, with U+0020 and U+007E as allowed edges. Narrowing or widening either bound is killed, and so are the nine-fixture denylist and exemptions for U+2003, U+00AD, U+001C, an astral scalar, a CJK scalar and U+0410 in the form check.
- Editor exact permissions map: dropping the call, changing its line, dropping the value compare and casefolding the value are each killed.
PINNED_REPORT_MSG: dropping the call site is killed.- P1: the locked-file loop without either action, and
or→and, are killed. - P2: the spaced-only
${{check is killed. - P5: dropping the scope and comparing the full path are each killed.
- P6: allowing every expression name and the pinned-name casefold are each killed.
- Earlier locks: the local-uses prefix,
.., upload casefold, duplicatewith:, bothneedsforms and the duplicate casefold are each killed.
- Claimed equivalents, tested independently. Python
strip()in place of the ASCII trim set made 0 differences over 22,241,280 names: every non-surrogate scalar in 10 shapes on both pinned names. Every extra characterstrip()removes is outside the range. Dropping the${{term from the plain-producer test is equivalent, because_PINNED_REPORT_NAMESvalues are the literalscoverage-xmlandaw-editor-lcov.
Mutants
I ran 74 one-edit source mutants on a slim copy, each against the full suite (137 tests, with pwsh present). The baseline was 137/137, and none hung.
| Area | Run | Killed | Survived |
|---|---|---|---|
| Permission-value check | 20 | 19 | 1 message unpinned (item 3) |
Top-level permissions branch |
7 | 5 | 2 real (item 2) |
| Exact-map helper and its callers | 9 | 9 | 0 |
| Printable range and form check | 12 | 11 | 1 equivalent (strip()) |
| Publish-path helper and call site | 11 | 8 | 1 real (item 2), 1 message unpinned (item 3), 1 equivalent (plain-producer ${{) |
| Expression scope and published names | 5 | 5 | 0 |
Locked files, local uses, .., casefold, duplicate with:, needs |
10 | 10 | 0 |
| Total | 74 | 67 | 7: 3 real, 2 message unpinned, 2 equivalent |
CI
At 12:11 AM EST on 156ee731, 46 check runs:
- Passed (30): these include
Gate (fmt, clippy, check),Replay hashon all three OSes, determinismhashon all three OSes, both startup jobs, greybox, docs, deny, audit, SBOM, Scorecard analysis, prose lint, pack guard, trace sync, net-tests, Miri, volumetrics and MSRV. - Skipped (13), neutral (1, Scorecard), failed (0).
- Still running (2):
Test (ubuntu, build archive)andTest (windows, build archive).
The Cursor audit check finished as review 5854132136. CodeRabbit's status is success.
Threads
- 4533874333 (cursor,
:335) has Astrix's reply 4534159786. The cite holds, and the description is item 6. - 4533503590 (cursor, range not pinned) has Astrix's second reply, 4534159973. The range holds, and its wording is item 5.
- 4534231375 and 4534231381 (cursor, at this head) have no reply. They're item 1.
- cursor's 5854054113 and 5854054322 are the empty carrier reviews for Astrix's two replies.
- Every earlier thread is unchanged from my last review: 4532701909, 4532701919, 4531775357, 4531775370, 4531775377, 4532131817, 4532131831, 4532131836, 4521474839 and 4521634012 are still fixed. The older no-reply threads (4519998387 through 4520537067) and the four Scorecard threads were dispositioned in earlier rounds, and nothing at this head reopens them.
lazyxeon
left a comment
There was a problem hiding this comment.
Blocking at 156ee73167c2fce62de3a41b2664a7e8a3c65709.
Re-review from 5853769407 at c0121c4d, Astranox 5853755359, Annubis 6786657196 (at the previous head), and cursor[bot] 5854132136 at this head. c0121c4d..156ee731 is 1 commit and touches scripts/ci/test_workflow_policy.py, docs/current/CI_ARCHITECTURE.md, and docs/current/MASTER_COVERAGE_REPORT.md.
What holds
- Item 1 (the nine permission-checker survivors):
_permission_value_violations:602–621, the top-level scalar arm :1941–1946, and_producer_permissions_exact:1792 now have official killers that pin the error message, including P18 (a repeatedcontentskey whose last value is canonical) on the editortestjob, the coverage producer, andcoverage-html. Annubis's case-variant key and top-levelread-allrows, and the scalar / YAML-bool / message arms, are each killed. - Item 3 and cursor thread 4533874333:
MASTER_COVERAGE_REPORT.md:335now citesenvironment.rs:63as the azimuth subtraction (current_time - 12.0) inget_sun_position.:338now describesbiome_transition.rs:96as theEaseInOutboundary att < 0.5. Astrix's reply matches the code.:336(environment.rs:69) and:337(renderer.rs:6950) still hold. - Astranox items 1–4 and 6, and the reply on 4533503590: the
other.ymlwording is gone fromCI_ARCHITECTURE.md:62 and :104. Those lines now describe the publish-path rule and, separately, what the test walks, and :104 says "a quoted value other thanreadornone". The editor exact-map test now includes theid-tokenrows and the case-variant key rows. The message arms are pinned. Astrix's reply on 4533503590 matches the new wording. - Range and allowed-edge killers still hold. The generative walk still pins 0x20–0x7E. Mid-name U+0020 and U+007E stay allowed. These one-edit mutants are each killed: the nine-fixture denylist, carve-outs for U+00AD, U+2003, U+001C–U+001E, and an astral scalar, widening to allow DEL or U+001F, narrowing either bound, both path gates, and an exemption inside
_could_be_pinned_report_name. - Official suite 137/137, including the pwsh benchmark-alert test. Touched-doc cites in
CI_ARCHITECTURE.mdandMASTER_COVERAGE_REPORT.mdresolve, including the two retargeted lines.
Blocking
- The publish-path call of the form check still has no killer for a one-edit exemption of a scalar the publish walk does not construct (
scripts/ci/test_workflow_policy.py,coverage_report_publish_violations:2434). The helper_could_be_pinned_report_nameis pinned over every non-surrogate, and an exemption there is killed. The same exemption at the publish-function call site leaves 137/137 green. This is the remaining half of Astranox's item 5 atc0121c4d. Fix: walk at least one scalar outside the class sample, or every non-surrogate, through the publish function, and assert a hit. - The workflow mapping's
duplicate_keysis not read (scripts/ci/test_workflow_policy.py,coverage_permission_violations:1937). A repeated top-levelpermissionskey whose last value is the empty map returns no violation from this check or fromscan_action_surface, including onkani.ymlandeditor-ci.yml. cursor[bot] opened this in 4534231381. GitHub rejects a repeated mapping key, so this is not a live grant. Fix: fail the top-level map when the workflow mapping hasduplicate_keys, before treating{}as exact. - The upload-job exact map ignores a repeated key (
scripts/ci/test_workflow_policy.py,_exact_upload_permissions:584). A repeated permissions key on the Codecov upload job whose last value is the canonical map returns no violation from this helper,coverage_permission_violations, orscan_action_surface. The producer exact map already rejects that shape, and the new test pins it only oncoverageandcoverage-html. cursor[bot] opened this in 4534231375. Same GitHub note as item 2. Fix: fail the map whenduplicate_keysis set, as_producer_permissions_exactalready does. - The PR body Report still records 0 real survivors. It lists 39 mutants, 37 killed, 2 equivalent, and 0 real, and it does not include items 1–3. I ran 48 one-edit mutants of the pinned functions: 45 killed, the 2 already accepted equivalents, 0 hung, and the real survivor in item 1, each confirmed at 137/137 on the complete tree. Items 2 and 3 are production holes the official suite does not pin. Fix: re-sweep at this head, record the survivors, and add the killers.
- The ubuntu and Windows
Test (..., build archive)jobs are not green yet. Annubis required them in 6785479405, and the body correctly says they have to be green at this SHA. Both are still running, and none have failed.
CI: at this head, as of 12:10 AM ET, Gate, deny, cargo-audit, docs, prose lint, pack guard, trace sync, net-tests, volumetrics, MSRV, both startup jobs, greybox, Miri summary, all three Replay hash jobs, and all three determinism-replay hash jobs have passed. Scorecard is neutral. Both archive Test jobs are still running. No checks have failed. cursor[bot] posted 5854132136. Annubis has not posted at this head.
Threads: 4533874333 and 4533503590 have replies that match the code. 4534231381 and 4534231375 do not; those are blockers 2 and 3. cursor's CI snapshot in 5854132136 is already stale on the Replay and hash jobs, which have since passed; the two archive Test jobs it named are still running.
Mutants (each tree was restored and is clean)
- Official suite 137/137, including the pwsh policy test.
- 45 of 48 one-edit mutants of the changed checks were killed, including the nine prior official-suite survivors, the printable-ASCII pin, both allowed edges, the path gates, and the helper-level name exemption. The two claimed equivalents still survive and were already accepted. The other official-suite survivor is blocker 1. None timed out. A first "full suite" confirm on a slim checkout was invalid (missing repo files) and was discarded; the counts above are from the complete tree.
- Probes, including case, padding, quotes, expressions,
read-all/write-allas a mapping and as a scalar, YAML bools and null, duplicate keys, aliases, and flow maps, plus live baselines. Production rejects those inputs except the exactcontents: readmap, including as a flow map. The residuals that still return clean on the official suite are blockers 1–3.
Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
There was a problem hiding this comment.
Head 6d9b1fa6cda1503a5eabe13d62caea5c45e1e68a. Not green.
The two open threads are fixed. An upload map of contents: write then contents: read plus id-token: write now returns CODECOV_PERMS_MSG. A root permissions: write-all followed by permissions: {} returns TOP_PERMISSIONS_MSG on coverage.yml, aw-editor-tests.yml, kani.yml, and editor-ci.yml. scan_action_surface sees both. test_repeated_permission_keys_whose_last_value_is_canonical_fail and test_permission_scalar_duplicate_and_top_level_arms_are_pinned exited 0 (8.7s).
Two findings remain. editor-ci.yml still accepts a repeated job-level permissions key whose last map is contents: read. GitHub rejects that file, so it is not a live id-token: write. The azimuth sentence in MASTER_COVERAGE_REPORT.md calls a non-equivalent f32 mutant equivalent. The EaseInOut sentence on the next bullet holds: both branches return 0.5 at t = 0.5, and 10,001 samples in [0, 1] matched.
Commands: the two policy tests, exit 0. A 4,000-name publish chunk returned 4001 hits on coverage.yml and 200 of 200 on other.yml (1.33s and 0.06s). f32 sinf/cosf probe, exit 0. gh pr checks, exit 0.
Not run: the full printable-name walk. One 4,000-name chunk took 1.33s; the new test submits about 3,336 of those across 4 workers, about 19 minutes, inside the 45-minute Gate job. Full test_workflow_policy.py was not run. GPU frame budget not measured. No hashed crate, no Cargo.lock, no golden, no target-cpu=native.
Replay hashes: expected unchanged. determinism-replay.yml and aravath-determinism.yml are not in the diff. determinism-profile.yml only pins dtolnay/rust-toolchain to 599c45df (# 1.89.0). Replay hash ubuntu and macos passed on this SHA. Replay hash windows, and determinism-replay hash on ubuntu, macos, and windows, were still running. Compare not started.
On this SHA: cargo-audit, cargo-deny, trace sync, docs, prose, scorecard analysis, Miri summary, and lavapipe startup passed. Gate was still running. No deferred issue.
Sent by Cursor Automation: ASTRA PR AUDIT AGENT
lazyxeon
left a comment
There was a problem hiding this comment.
Blocking at 6d9b1fa6cda1503a5eabe13d62caea5c45e1e68a.
Re-review from 5854193752 at 156ee731, Astranox 5854192976, Annubis 6787704507, and cursor[bot] 5854132136. 156ee731..6d9b1fa6 is 1 commit and touches scripts/ci/test_workflow_policy.py, docs/current/CI_ARCHITECTURE.md, and docs/current/MASTER_COVERAGE_REPORT.md.
What holds
- Item 1 (N15): the publish path now walks every non-surrogate outside 0x20-0x7E, on either edge of either pinned name, through
coverage_report_publish_violationson a non-producer path and on both producer workflows, and expects the pinned-report message. A one-edit exemption at the publish call site (:2449) is killed. C01 is pinned. - Items 2 and 3, and cursor threads 4534231381 / 4534231375: when
duplicate_keysis set, the check fails, including when the last value is the canonical one. That is pinned on the upload-job map (_exact_upload_permissions:586), on the workflow root incoverage_permission_violationsandleast_privilege_permission_violations, and on the kani/editor-ci job maps. Astrix's replies match the code. T05 and T06 at the top-level permissions branches have official killers. P20 and H06 are killed. - E01 / E02:
strip(string.whitespace)was replaced bystr.strip(), andimport stringis gone. The redundant${{conjunct on the plain-producer check was deleted. Restoring that conjunct still survives and is the one equivalent Annubis accepted only with deletion. - Astranox wording:
CI_ARCHITECTURE.md:62 and :104 now describe the repeated-key rule,str.strip(), and the full publish walk. Body lines 21, 110, 179, and 182, and the permission-checker docstring at :1893, were updated to match.MASTER_COVERAGE_REPORT.md:335now describes the azimuth mutant as a full-period shift (equivalent).:338correctly calls the EaseInOut boundary equivalent.:336and:337still resolve. - Official suite 137/137 locally, including the pwsh benchmark-alert test and the new repeated-key test.
Blocking
- A one-edit range carve-out of a scalar that
str.strip()already rejects on the edges the tests walk leaves the official suite green (scripts/ci/test_workflow_policy.py,_name_form_rejected:2366). After this push'sstr.strip()change, those edges no longer pin the range check. The same scalar in the middle of a pinned name is accepted, andcoverage_report_publish_violationsreports no hit. Two such mutants survived, including one of the test's own explicit rows. This is a real fail-open, not an equivalent. Fix: walk those scalars, or every non-surrogate outside 0x20-0x7E, in the middle of both pinned names through the form check and the publish function, and assert a reject. MASTER_COVERAGE_REPORT.md:331mis-citesheightmap.rs:152-153as interpolation-weight mutations. Those lines are theresolution - 1neighbor-index clamps inHeightmap::sample_bilinear. The weight subtractions are at:163-166. Fix: retarget the cite, or describe the clamp mutants accurately.- The PR body Report still records 0 real survivors. It lists a changed-arm sweep of 9 killed, 1 equivalent, and 0 real, and it does not include items 1–2. I ran 54 one-edit mutants of the changed checks: 51 killed, the 1 accepted equivalent, 0 hung, and the 2 real survivors in item 1. Fix: record them.
- The ubuntu and Windows
Test (..., build archive)jobs are not green yet. Annubis required them, and the body correctly says they have to be green at this SHA. Comprehensive CI is still on Gate (Workflow policy), and those Test jobs have not started. Nothing has failed.
CI: at this head, as of 1:13 AM ET, no checks have failed. Gate is still running the Workflow policy step. Docs, pack guard, prose lint, trace sync, cargo-audit, deny, Scorecard, Miri summary, and Net Tests have passed. Replay hash, determinism-replay hash, startup, greybox, volumetrics, and the Cursor Automation audit are still running. Both archive Test jobs are unstarted. Annubis has not posted at this head. cursor[bot] has replied on the two repeated-key threads and has not posted a new full review at this SHA.
Threads: 4534231375 and 4534231381 now have replies that match the code. Earlier replies on 4533874333 and 4533503590 still match.
Mutants (each tree was restored and is clean)
- Official suite 137/137, including the pwsh policy test. The 138th test, the full publish-path walk, was not finished in this run (an earlier full-suite process was SIGTERM'd while still on that test). The form-check half of that test was run separately against the open mutants.
- 51 of 54 one-edit mutants of the changed checks were killed, including the prior permission-checker survivors, the duplicate-key arms, T05, T06, P20, H06, C01/N15, the printable-ASCII pin, both allowed edges, the path gates, and a helper-level name exemption. The one accepted equivalent (restoring the deleted
${{conjunct) still survives. The other two official-suite survivors are blocker 1. None timed out.
|
Devastation: BLOCKED @ 6d9b1fa (incremental from 156ee73, head unchanged at review time). All open items are LOW and blocking. Verified fixed, with killers red in scratch copies: R1 (duplicate keys on the upload map and workflow root, across coverage, aw-editor-tests, kani and editor-ci), R2 (T05/T06 top-level rows), R3 (the full non-surrogate walk through Still open:
Local: workflow policy passed 138/138 with pwsh installed (the pwsh-guard failure needs pwsh and also fails on PREV). YAML fuzz found no crash or fail-open. actionlint shows no new signatures. |
lazyxeon
left a comment
There was a problem hiding this comment.
Docs: BLOCKING at 6d9b1fa
This is a full re-review against main, not a delta. It follows my 5854192976 at 156ee731. I confirmed the head through the GitHub API at the start and the end. main 95283696 is still the merge base. 156ee731..6d9b1fa6 is one commit. It touches scripts/ci/test_workflow_policy.py, docs/current/CI_ARCHITECTURE.md (:62, :104) and docs/current/MASTER_COVERAGE_REPORT.md (:335, :338). No workflow file changed.
I read every changed doc line sentence by sentence against the code. I also read the whole PR body, every new or changed docstring and test, Astrix's replies 4534503603 and 4534503657, cursor[bot]'s audit 5854593254 at this head with its two new threads, Astraea's 5854616521 and Annubis's 6789077169. I also ran my own sweep of 110 one-edit checker mutants on a slim copy (see Mutants).
Every item below blocks. Items marked security-blocking are for Annubis to rate, and he has my specifics privately. Closing any security item is his call, not mine.
Blocking
-
Security-blocking (Annubis rated it LOW and blocking in 6789077169): a repeated job-level
permissionskey oneditor-ci.ymlstill scans clean (4534596116, no reply). I confirmed it locally throughleast_privilege_permission_violationsandscan_action_surface. The new arm at:2087readsduplicate_keyson the permissions map, not on the job. The same shape on the four Kani jobs, the Kani summary job and every job in the two coverage workflows fails only through job-shape checks with unrelated messages. The docs also blur which repeat is pinned.CI_ARCHITECTURE.md:62,:104and body line 21 say "a job permissions map whose last value iscontents: read", which is the inner map. But body line 81 ("repeated job permissions key … inkani.ymlandeditor-ci.yml") and table row 192 read as if they cover this case. Fix: fail on a non-empty jobduplicate_keysinleast_privilege_permission_violations, add a killer oneditor-ci.ymland a Kani job that expectsJOB_CONTENTS_READ_MSG, reply on the thread, and name both repeats in the docs. -
Security-blocking (agreeing with Astraea's item 1 and Annubis's ruling, but the class is wider than two mutants): the range check has no killer for a scalar in the middle of a name. After
str.strip()replaced the ASCII trim (:2362), the trim rejects every whitespace scalar outside 0x20–0x7E on an edge before the range loop at:2366sees it. The walk at:9581–:9598and the publish walk at:9624–:9658only place out-of-range scalars on an edge, and the explicit rows at:9534are edge-only too. In my sweep, 37 one-edit carve-outs survive both the suite and a replay of the walk's own assertions:- a middle-of-name carve-out in
_name_form_rejectedfor 31 scalars, including whitespace, format and letter-class scalars; - an anywhere carve-out for 5 whitespace scalars, two of them the test's own explicit rows;
- a middle-of-name carve-out at the publish call site (
:2449).
Production rejects all of these today. Only the tests are short. Fix: as Annubis ruled, walk every non-surrogate outside 0x20–0x7E through the middle of both pinned names, through
_name_form_rejectedandcoverage_report_publish_violations(non-producer path and both producer workflows), and assert a reject for each. Then reword:62,:104, body lines 113 and 176 and the:9521docstring to say the walk covers the middle. - a middle-of-name carve-out in
-
Security-blocking (new, for Annubis to rate): the job arm of
least_privilege_permission_violationshas two survivors. Both arms predate this head, but they sit next to the new code.- With the length compare at
:2088loosened by one edit, an extra scope besidecontents: readon any Kani oreditor-ci.ymljob scans clean through every check. - With the value compare at
:2089folded for case and padding, a case or paddedreadon those jobs scans clean.
Body line 27 lists "missing or widened permissions on
kani.ymlandeditor-ci.yml" as rejected. That's true at head, but the extra-scope shape has no killer. Fix: add rows for an extra scope and for a case or padded value, on a Kani job and on theeditor-ci.ymljob, each expectingJOB_CONTENTS_READ_MSG. - With the length compare at
-
Security-blocking (new, for Annubis to rate): the new workflow-root repeated-key arms catch more than the docs and tests say.
:1945and:2073fire on any repeated root key, not onlypermissions, and they report the top-level permissions message. Narrow either arm topermissionsby one edit and a repeated rooton,env,jobs,nameorconcurrencyscans clean through every check in that arm's workflows. Nothing else catches those shapes.test_repeated_permission_keys_whose_last_value_is_canonical_failonly repeatspermissions.:62,:104and body line 21 only describe a repeatedpermissionskey. Fix: add killers for other repeated root keys (at leastonandenv) in all four workflows. Then document that any repeated workflow-level key fails, or give that case its own message. -
Two plain-producer conjuncts in
coverage_report_publish_violationssurvive and change only the message (for Annubis to rule). Dropping the action-name check (:2441) or the archive check (:2444) fromplain_producersurvives the suite and the walk replay. In the real files, the archive message, the exact step lists and the action allowlist still fail the file. Only the pinned-report message disappears. Both predate this head. Fix: add rows that pin the pinned-report message for a sub-path upload and for a non-defaultarchiveon the producer job, or get Annubis's ruling that they're equivalent. -
CI: the new walk pushes the Gate job past its limit (agreeing with Annubis's 6789077169). On run 42968664029,
Workflow policyran 43m28s (12:55–1:38 AM ET). Gate hit 45 minutes andFmt, clippy, checkwas cancelled, soPR Rust checksfailed.Test (ubuntu, build archive),Test (windows, build archive)and the partitions were skipped. Body line 77 still reads as if those jobs are pending, and the cancelled Gate isn't recorded. Fix: keep every assertion and make the walk fit the existing budget, as Annubis set out. Then get Gate and both archive Test jobs green at the final head, and record that in the body. -
MASTER_COVERAGE_REPORT.md:335calls theenvironment.rs:63mutant equivalent, and in f32 it isn't (4534596127, no reply; Annubis agrees). That "equivalent" came from my own 5854192976 item 6. I'd checked it in f64, which was wrong, and I'm correcting it here.get_sun_positionisf32(environment.rs:63,:69–:79). My f32 probe over a day at 0.0001 h steps foundsin/cosdiffer in 235,475 of 240,000 samples, by up to 1.4e-6. Over the reals it's a full 2π shift, but under f32 rounding it isn't. Fix: say it's a full-period shift that changes the f32sin/cosonly by rounding (at most about 1.4e-6), which no test tolerance detects, and drop "Equivalent".:338holds. -
MASTER_COVERAGE_REPORT.md:331–:332: the cite is right and the description is wrong. I disagree with retargeting the cite to:163–:166(Astraea's item 2, Annubis's 6789077169).heightmap.rs:152–:153are the neighbour-index clamps.min(self.resolution - 1).cargo-mutantsmakes exactly two-mutants per line there, which gives the report's 4 MISSED. Those lines are identical at the report commit427e0c20. All four are equivalent. The clamps at:147–:148keepx0 + 1 <= resolution - 1, so theminnever binds. I compared the mutated and original index outputs for resolutions 2–64 across in-range, out-of-range, NaN and infinite inputs, about 3.7M cases, with 0 differences. The weight subtractions at:163–:166are killed: for example,bilinear_at_quarter_xandbilinear_midpoint_is_averageinmutation_tests.rs:1558–:1610go red under1.0 + fxor1.0 / fx. Retargeting would cite lines the tests already cover. Fix: keep:152–:153. Describe them as neighbour-index clamp mutants that are equivalent because of the clamp at:147–:148, and drop "interpolation weight" from:331and:332. -
Body record:
- What's wrong: body line 80 still says "0 real survivors". At this head, items 1–4 and Astraea's item 1 are real survivors, and item 5 is message-only.
- Missing sweeps: the history paragraph (line 89) leaves out the
156ee731sweeps: my 74 (67 killed, 3 real, 2 message-only, 2 equivalent) in 5854192976, and Astraea's 48 (45 killed, 1 real) in 5854193752. It also leaves out this head's sweeps: Astraea's 54 (51 killed, 2 real, 1 equivalent) in 5854616521, and my 110 below. - Stale reply: 4534159973 still carries the
156ee731equality sentence that this head corrected, and nothing has been posted on that thread since.
Fix: re-sweep at the final head, list every survivor and every sweep by SHA, and add a one-line follow-up on thread 4533503590 that points at the corrected
:62sentence.
What holds
I checked each of these against the code at this head. For the security items, the fix and its killer are in place, but closing them is Annubis's call.
- My 5854192976:
- Item 1 (cursor 4534231375/81):
_exact_upload_permissionsreadsduplicate_keys(:586), the workflow-root arms at:1945and:2073read it, and the Kani andeditor-ci.ymljob map reads it at:2087.test_repeated_permission_keys_whose_last_value_is_canonical_fail(:9426) kills each of these, and Astrix's two replies match the code. Item 1 above is the job-level sibling, and item 4 is the breadth. - Item 2: T05 and T06 are killed by the new top-level rows. The
:2449call-site carve-out for non-whitespace scalars on an edge is killed by the new publish walk. Item 2 above covers the middle position. - Item 3: P20 is killed by the upload
ID-TOKEN: writerow, and H06 by the producer-path publish walk. - Item 4:
:104, body line 21 and the:1893docstring now say that a key or value that parses to anything other than the exact map fails, and that a quoted key or flow mapping that parses to the exact map is that map. The docstring now lists "an expression". - Item 5:
:62,:104, body lines 84 and 113 and the:9521docstring now describe the walk accurately: the publish function on a non-producer path and both producer workflows, the form check against_could_be_pinned_report_nameon the non-producer path, and the printable edge scalars. - Item 6: see item 7.
- Item 7: table rows 178, 182 and 185 now match the tests. The counts are item 9.
- Item 8: see item 6.
- Item 1 (cursor 4534231375/81):
- Annubis 6787704507:
- The repeated-key fails are in place, with last-value-canonical killers on the root and the upload map.
- E01/E02 are deleted:
import stringis gone,:2362usesstrip(), and the${{conjunct is out ofplain_producer(:2439–:2445). Restoring either survives as an equivalent, which matches his "accepted only with deletion". - The publish walk goes through
coverage_report_publish_violations. - I independently confirmed body line 88: over 6,672,384 names,
strip()and the old trim give the same form result, with 0 differences.
- MASTER cites:
:336(environment.rs:69),:337(renderer.rs:6950) and:338(biome_transition.rs:96, both branches 0.5 att = 0.5) hold. - Astrix's run claim: the suite has 138 tests, and all 138 pass locally with pwsh present.
Mutants
I ran 110 one-edit mutants of the checker on a slim copy. Each one ran against the full suite except the 30-minute walk. I then replayed every name-check survivor through the walk's own assertions (explicit rows, edge form and helper checks, the publish counts on all three paths, and the printable middle) over 41 scalars that cover every class touched. That replay is a subset of the full walk. The baseline was 138/138 with pwsh present. The walk itself passed in 38m18s on a shared, loaded box (74 CPU-minutes across its 4 workers). None hung.
| Area | Run | Killed | Survived |
|---|---|---|---|
Repeated keys, upload map, Kani and editor-ci.yml job arm |
11 | 5 | 2 real (item 4), 2 real (item 3), 2 equivalent (redundant length and key-type checks before the dict compare) |
| Top-level branch, including T05 and T06 | 6 | 5 | 1 equivalent (a missing key falls to the final arm) |
| Value checker, exact maps and their call sites, including P20 | 19 | 19 | 0 |
| Name form: trim and range | 57 | 19 (7 of them by the walk) | 36 real (item 2), 2 equivalent (trim variants, including E01) |
| Helper and publish path, including C01, H06 and E02r | 17 | 13 (6 of them by the walk) | 1 real (item 2), 2 message-only (item 5), 1 equivalent (E02r, which Annubis accepted) |
| Total | 110 | 61 | 41 real, 2 message-only, 6 equivalent |
The body's T05, T06, C01, P20 and H06 are each killed, and so is every repeated-key arm the body lists.
CI and other reviewers
- CI at this head: 28 passed, 18 skipped, 1 neutral (Scorecard),
Gate (fmt, clippy, check)cancelled at the 45-minute limit, andPR Rust checksfailed because of it. Both archive Test jobs were skipped (item 6). - cursor[bot] at this head: 5854593254 reports "Not green" with two new threads, 4534596116 (item 1) and 4534596127 (item 7). Neither has a reply.
- Annubis at this head: 6789077169 is BLOCKED. I agree with all of it except the
:331retarget (item 8). - Astraea at this head: 5854616521. I agree with items 1, 3 and 4. On item 2 the cite should stay (item 8).
The publish walk rejects every non-printable scalar in the middle of both pinned names, through the form check and the publish function. Permission checks reject a repeated job key, a contents value that is not exactly read, and any repeated workflow key. The YAML loader is one SafeLoader pass so that walk stays inside the gate. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
The sun-position edit is a full-period shift that still moves f32 sin and cos by rounding. The heightmap lines stay the neighbour-index clamps, equivalent because the sample is already capped. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
There was a problem hiding this comment.
Head fdb41cd0036011d7fae039154751d00207336c29. Not green.
The repeated permissions key on the job now fails, and the azimuth sentence now says the f32 shift is not equivalent. A repeated job id still scans clean, and the heightmap clamp note calls those mutants equivalent.
Commands: python3 -m unittest on test_root_and_job_permission_shapes_are_exact and test_producer_archive_and_action_name_pin_the_report, exit 0 (0.244s). rustc 1.89.0 heightmap and sun scans, exit 0. Policy probes against editor-ci.yml, coverage.yml, and kani.yml, exit 0.
Not run: the full non-surrogate publish walk. The new middle insert triples that batch; the edge-only walk was already about 19 minutes. Local replay was not re-run. GPU frame budget not measured. This VM has no GTX 1660 Ti.
Measurements: not measured.
Replay: Replay hash (ubuntu-latest) passed on this SHA (run 42985975956). macOS and Windows replay hash still running. determinism-replay hash on ubuntu, macOS, and Windows still running. No hashed crate, no golden, no target-cpu=native. Expected unchanged.
Deferred: none.
Loader: this environment uses CSafeLoader. A pure SafeLoader subclass recorded the same scalar style and the same duplicate keys for plain true, quoted true, yes, on, and a repeated key. Both rejected !!python/object tags.
Sun check, same compiler, 240,000 samples in [0, 24): max |Δsin| 1.3709068e-6, max |Δcos| 1.1920929e-6, 235,475 samples differed. sin changes sign at t = 0 and cos changes sign at t = 6. The largest vector-component delta is 8.64e-7. The absolute goldens in wave2_environment_golden_values.rs use 0.01 and 0.02, so they still miss it.
Sent by Cursor Automation: ASTRA PR AUDIT AGENT
lazyxeon
left a comment
There was a problem hiding this comment.
Blocking at fdb41cd0036011d7fae039154751d00207336c29.
Re-review from 5854616521 at 6d9b1fa6, Astranox 5855501276, and Annubis's rulings on those items. 6d9b1fa6..fdb41cd0 is 2 commits and touches scripts/ci/test_workflow_policy.py, docs/current/CI_ARCHITECTURE.md, and docs/current/MASTER_COVERAGE_REPORT.md.
What holds
- Mid-name range (my item 1 / Astranox item 2): the walk now places every non-surrogate outside 0x20-0x7E on either edge and in the middle of both pinned names, through the form check and through
coverage_report_publish_violationson a non-producer path and both producer workflows.:62,:104, the body, and the:9706docstring match. I replicated Astranox's 37 mid-name survivors: all 37 are killed at this head. - Job-arm compares (Astranox item 3): an extra
id-token: write,contents: READ, andcontents: 'read 'each fail with only the job-contents message, onkani-ecsand oneditor-ci. Those two survivors are gone. - Root repeated keys (Astranox item 4): a repeated
onornamefails on all four workflows, and a repeatedenvfails on the three files that haveenv, with only the top-level permissions message. - Job-level repeated
permissions(Astranox item 1 / cursor 4534596116):least_privilege_permission_violationsnow reads the job'sduplicate_keys. The reply matches the code. - Message-only archive and merge rows (Astranox item 5):
test_producer_archive_and_action_name_pin_the_reportpins the exact lists. Both prior message-only mutants are killed. - Gate budget (Astranox item 6): Gate is green at this SHA in 7m32s (3:19:06–3:26:38 AM ET). Workflow policy took 3m17s. The 45-minute limit is unchanged and was not hit.
MASTER_COVERAGE_REPORT.md:335(Astranox item 7 / cursor 4534596127): the equivalent claim is dropped. The reply matches the code: a full-period shift over the reals that still moves f32sin/cosby rounding, which current tolerances miss.:338still holds.MASTER_COVERAGE_REPORT.md:331(my item 2, withdrawn retarget / Astranox item 8): the cite stays atheightmap.rs:152-153. The reason now names the neighbour-index clamps and the:147-148cap, with the proof in the body.:163-166is correctly called a different, already-killed site.- Thread 4533503590: the follow-up 4535526115 corrects the earlier edge-only reply 4534159973 and matches
:62. - Official suite 140/140 locally, including the pwsh test and the mid-name walk (452.9s on a loaded box). Cites in the touched docs resolve, including the
ui.mdMiri/Kani andhello_companionretargets.
Blocking
- Four one-edit mutants still survive and are not ruled on at this head (
scripts/ci/test_workflow_policy.py). Replacingstr.strip()withstr.strip(" ")at_name_form_rejected(:2373) does not change the form result over every non-surrogate in edge, middle, and mixed positions on both pinned names. Dropping the upload-map length compare at_exact_upload_permissions(:591) is redundant with the dict equality on real maps. Forcing the loader base toSafeLoaderonly (:176), and restoring a firstyaml.safe_loadpass inload_workflow_yaml(:227), also survive. Annubis accepted only the restored${{conjunct, which stays deleted. I could not kill these four. Fix: delete the redundant code, add a killer, or get his ruling. An unverified equivalent blocks. - The exact
contents: readcompare inleast_privilege_permission_violationsstill accepts a spelling that is not the exactread(scripts/ci/test_workflow_policy.py:2100). The new case and padding rows do not cover it, and the official suite stays green. This is a missing killer, not an equivalent. Fix: add a row that walks that spelling on a Kani job and oneditor-ci, and expect the job-contents message. - The ubuntu and Windows
Test (..., build archive)jobs are not green yet. Annubis required them at this SHA. They have been running since 3:26:41 AM ET and have not failed. Also still running: greybox, Windows startup, and hash on macos and windows. Pending is Blocking. Gate is already green, as noted above. - The PR body Report still records 0 real survivors and only the 3 equivalents from the 52-mutant changed-arm sweep. It does not include items 1–2, or this wider sweep. Fix: record them.
CI: as of 3:35 AM ET, Comprehensive CI run 42985975753 is still in progress at this head. 25 checks have passed, 12 were skipped, Scorecard is neutral, and none have failed. Gate is green. The two archive Test jobs, greybox, Windows startup, and hash on macos and windows are still running. cursor[bot] has not posted a new full review at this SHA; its replies on 4534596116, 4534596127, and 4533503590 match the code. Annubis has not posted at this head.
Mutants (each tree was restored and is clean)
- Official suite 140/140, including the pwsh policy test and the mid-name walk.
- 112 one-edit mutants of the changed checks, at least as wide as Astranox's 110: 106 killed, 0 hung, 6 survived. The 6 are the 4 unverified equivalents in item 1, the accepted
${{restoration, and the real survivor in item 2. - Astranox's 41 real survivors at
6d9b1fa6(37 mid-name, 2 job-arm compares, 2 root-key arms) are all killed at this head, as are the 2 message-only mutants and the job-level repeated-key mutant.
lazyxeon
left a comment
There was a problem hiding this comment.
Docs: BLOCKING at fdb41cd
This is a full re-review against main, not a delta. It follows my 5855501276 at 6d9b1fa6. I confirmed the head through the GitHub API at the start and the end. main 95283696 is still the merge base. 6d9b1fa6..fdb41cd0 is two commits (3d3a4906, fdb41cd0). They touch scripts/ci/test_workflow_policy.py, docs/current/CI_ARCHITECTURE.md (:62, :104) and docs/current/MASTER_COVERAGE_REPORT.md (:331–:333), for 219 insertions and 29 deletions. No workflow file changed. There are two production changes in the checker: the loader base is now libyaml's CSafeLoader when it's present and the yaml.safe_load pre-pass is gone (:175–:231), and the Kani and editor-ci.yml job arm now reads the job's duplicate_keys (:2095–:2096). The rest is tests and docs.
I read every changed doc line sentence by sentence against the code. I also read the whole PR body, the new tests test_root_and_job_permission_shapes_are_exact (:9531) and test_producer_archive_and_action_name_pin_the_report (:9654), the widened walk (:9706), Astrix's replies 4535525786, 4535525983 and 4535526115, cursor[bot]'s audit 5855878292 with its two new threads, and Astraea's 5855963437. I reran all 43 of my prior survivors and message-only mutants and ran a fresh one-edit sweep of the changed checker code (see Mutants).
Every item below blocks. Items marked security-blocking are for Annubis to rate, and he has my specifics privately. Closing any security item is his call, not mine.
Blocking
-
Security-blocking (cursor 4535600274, no reply; for Annubis to rate): repeated keys outside the arms that read
duplicate_keysstill scan clean at this head. I confirmed each of these locally throughscan_action_surface:- a repeated job id, in all four policy workflows;
- a repeated step key, in policy and non-policy workflows alike, so the gap is repo-wide;
- a job-level key variant on the
editor-cijob.
Details are with Annubis.
Body line 19 says the test "checks every
usesvalue", and:62/:104say "A repeated key fails" in several places. The parser keeps the last value, and only some arms read the record of the earlier one. Fix: fail any scanned file in which any mapping has a repeated key, through one check rather than arm by arm, and reject unknown or case-variant job keys oneditor-ci.yml. Add killers on a repeated job id in each of the four files and a repeated step key in a non-policy workflow. Reply on the thread. -
Security-blocking (new; for Annubis to rate): the "any repeated key" arms are pinned only for the keys the tests repeat. Annubis asked for non-
permissionskeys. The new test repeatson,nameandenv(:9531), and every one-edit carve-out for those dies. A carve-out for any other key survives the suite and the walk replay, and nothing else in the scan catches the shape:- the coverage root arm (
:1950) withjobsorconcurrencyexcluded, on both coverage workflows; - the least-privilege root arm (
:2082) withjobsexcluded (both files),concurrencyexcluded (editor-ci.yml) ordefaultsexcluded (editor-ci.yml); - the new job arm (
:2096) narrowed topermissions. A repeated job key other thanpermissionson theeditor-cijob then scans clean.test_duplicate_job_keys_fail_closed(:8059) covers the other jobs but not this one.
:62,:104and body lines 21 and 23 say any repeated workflow key fails and a repeated key on the job fails. That's true at head but pinned only for those keys. Fix: make the killer generative: for every key in each of the four root mappings, and every key on each Kani andeditor-cijob, add a repeat whose last value is canonical and assert the message. If item 1's global check lands, point the same walk at it. - the coverage root arm (
-
Security-blocking (new; for Annubis to rate): the parse-failure arm has no killer. A one-edit change that turns a parse error in
load_workflow_yaml(:228–:229) into an empty document survives the whole suite and the walk replay. With it, an unparseable workflow outside the locked files scans clean, and the locked files fail only through unrelated messages. Body line 19 and the docstring at:223say invalid YAML is a violation. No test builds an unparseable file. Fix: add rows with an unparseable workflow (one locked file, one unlocked) and an unparseable composite, and assert the parse-error violation fromscan_action_surface. -
Security-blocking (new; for Annubis to rate; I agree with Astraea's item 1 on the binding and go further): which inputs parse now depends on which YAML binding is installed, and nothing pins it. Forcing
_SAFE_LOADER_BASEtoSafeLoader(:176) survives the suite and the walk replay, but I don't count it as equivalent. On my probes the two bindings disagree on some whitespace-separator forms (they parse under libyaml and fail under the pure loader) and on one escape form (the other way round). All 41 scanned files parse identically under both. The swap is also what brings the walk inside the Gate budget (3m17s on CI against 43m28s at6d9b1fa6), and the body doesn't say so: line 77 says only "The timeout is unchanged." Fix: pick one binding and fail the test when it's missing on CI (or run both), add a test that each scanned file parses identically under both, and pin fail-closed behaviour for the forms the bindings disagree on. Then record the swap, its known differences and why it was made in the body and:104. -
Security-blocking (agreeing with Astraea's item 2): the exact
contents: readcompare at:2100still has a missing killer. A one-edit relaxation of that compare survives the suite and the walk replay, and with it a non-exactcontentsvalue that the new case and padding rows don't cover scans clean onkani-ecsand oneditor-ci. Fix: add a row on a Kani job and oneditor-cifor that spelling, expectingJOB_CONTENTS_READ_MSG. -
Three message-only survivors (for Annubis to rule):
- Dropping
isinstance(job_perms, dict)(:2097): a Kani oreditor-cijob with nopermissionskey then crashes the checker with aTypeErrorinstead of reportingJOB_CONTENTS_READ_MSG. The file still fails, but body line 27's "missing … permissions onkani.ymlandeditor-ci.yml" rests on a row that removes only the top-levelpermissions: {}(:4612). No row removes a job's map. - Excluding
defaultsfrom the coverage root arm: the run-context check still fails the file, with its own message. - Folding case in the plain-producer name compare (
:2454): the locked producer step still fails the file, but the two pinned-report messages disappear.
Fix: add a job-level missing-permissions row on a Kani job and on
editor-ci, and pin the exact list for the other two, or get Annubis's ruling. - Dropping
-
MASTER_COVERAGE_REPORT.md:331: I'm correcting my own call. The fourheightmap.rs:152–:153mutants are equivalent only up to resolution 32769 (cursor 4535600286, no reply). In my 5855501276 item 8 I called all four equivalent from a check over resolutions 2–64. Annubis and Astraea withdrew their retarget on the strength of that. From resolution 32770 up, the f32 clamp at:147–:148rounds the sample to exactlyresolution - 1, sox0 + 1 == resolutionand themindoes bind. I confirmed 32770 is the first resolution where that happens. Both mutants then read one past the edge, andget_heightreturns0.0there (:119–:121). The weight is 0 at that point, so a finite height gives the same result. A non-finite height in the last row or column does not.from_dataaccepts that resolution. The body's proof (line 86) only scanned up to 4096. The cite is still right. Fix: keep:152–:153, drop "Equivalent" and "theminnever changes the index", and state the bound and the non-finite case, or give them a killer. Reply on the thread, and correct body line 86. -
MASTER_COVERAGE_REPORT.md:333and the sun numbers:- "The current sun-position assertions use tolerances of about
1e-3and wider" isn't right as written.wave2_biome_transition_env_remediation.rs:702–:704and:713–:715assert at1e-5and1e-4. Those are moon/light-against-sun identities that the mutant still satisfies. The absolute checks are1e-3and wider (mutation_tests.rs:216,:2384;wave2_environment_golden_values.rs:48,:71–:76). Say "absolute". - Body line 87 and reply 4535525983 give 235,502 differing samples. cursor's 5855878292 and my own 6d9b1fa probe both found 235,475 of 240,000. Either state the sampling or reconcile the number.
- "The current sun-position assertions use tolerances of about
-
CI is not green yet (agreeing with Astraea's item 3). Gate passed in 7m32s (3:19:06–3:26:38 AM ET). Its Workflow policy step took 3m17s and ran 140 tests OK, so my item 6 holds.
Test (ubuntu, build archive)passed (3:26:41–3:46:24 AM ET).Test (windows, build archive)has been running since 3:26:41 AM ET. Fix: get it green at the final head and record both archive jobs in body line 77. -
Body record (agreeing with Astraea's item 4): Report line 81 ("Survived: none") and line 85 need this head's sweeps: Astraea's 112 (106 killed, 6 survived) in 5855963437 and my 84 below, with every survivor listed by SHA. Report line 79 should also say the walk time is with libyaml (item 4).
What holds
I checked each of these against the code at this head. For the security items, the fix and its killer are in place, but closing them is Annubis's call.
- My 5855501276:
- Item 1 (cursor 4534596116):
least_privilege_permission_violationsreads the job'sduplicate_keys(:2096). Theeditor-ciandkani-ecsrows in:9531kill the deletion, and reply 4535525786 matches the code. Items 1 and 2 above are the wider class. - Item 2: the walk now places every out-of-range non-surrogate in the middle of both pinned names, through the form check, the helper and the publish function on all three paths, and the explicit rows do too. All 37 mid-name survivors die.
:62,:104, body line 110 and the:9706docstring match. - Item 3: R5 and R6 are killed by the extra-scope, case and padding rows. Item 5 above is a third spelling.
- Item 4: R2n and R3n are killed by the repeated
on,nameandenvrows. Item 2 above is the remaining breadth. - Item 5: PP2 and PP3 are killed.
:9654asserts the exact lists, which match what I get. - Item 6: Gate fits the unchanged 45-minute budget (see item 9).
- Item 7 (cursor 4534596127): "Equivalent" is dropped from
:333, and reply 4535525983 matches apart from item 8 above. - Item 8: the cite stays at
:152–:153and:163–:166is correctly a different site. Item 7 above corrects the equivalence. - Item 9: the history paragraph (body line 85) now lists every earlier sweep by SHA, including my 74 and 110 and Astraea's 48 and 54. Follow-up 4535526115 corrects the edge-only reply 4534159973.
- Item 1 (cursor 4534596116):
- Annubis's rulings at 6d9b1fa: every one of the 41 has a killer, the PP2/PP3 lists are exact, the
:331cite and the:335wording are as he ruled (subject to items 7 and 8), and theeditor-cijob-level repeat is pinned. - Equivalents I accept:
str.strip(" ")(body line 84), the redundant upload length compare, and restoring the${{conjunct, which stays deleted. Annubis has ruled only on the last. - Suite: 140/140 locally with pwsh present, 7m28s wall on a loaded box. On CI it's 140 in 196.7s.
Mutants
I ran 84 one-edit mutants on a slim copy in a fresh /tmp dir: all 43 of my prior survivors and message-only mutants from 5855501276, plus 41 fresh ones on the changed checker code (the loader, the root and job arms, the upload map, the name form and the publish path). Each ran against the full suite except the walk, with a 180-second timeout (the unmutated suite takes 12 seconds). None timed out. Every mutant the suite didn't kill was then replayed through the walk's own assertions in-process: the explicit edge and middle rows, the middle space and tilde, the form and helper checks on every position, every printable scalar, and the publish counts on all three paths, over 17,623 scalars (every Cc, Cf, Zs, Zl and Zp scalar, every whitespace scalar, every 64th code point and named extras). That replay is a subset of the full walk. I also ran the real walk test on five of the mutants the replay killed, and it failed on each.
| Set | Run | Killed | Survived |
|---|---|---|---|
| My prior 41 real survivors | 41 | 41 (37 by the walk, 4 by the suite) | 0 |
| My prior 2 message-only (PP2, PP3) | 2 | 2 | 0 |
| Fresh: loader | 4 | 2 | 2 real (items 3 and 4) |
| Fresh: root and job arms, upload map | 19 | 9 | 7 real (items 2 and 5), 2 message-only (item 6), 1 equivalent (the new isinstance(job, dict) conjunct, which is redundant because a non-mapping job has no permissions map) |
| Fresh: name form and publish path | 18 | 15 (5 by the walk) | 1 message-only (item 6), 2 equivalent (the plain-producer isinstance(name, str) and allowed is not None conjuncts, both implied by name == allowed) |
| Total | 84 | 69 | 9 real, 3 message-only, 3 equivalent |
CI and other reviewers
- CI at this head (3:50 AM ET): 34 passed, 13 skipped, 1 neutral (Scorecard), 0 failed.
Test (windows, build archive)is still running (item 9). - cursor[bot] at this head: 5855878292 reports "Not green" with two new threads, 4535600274 (item 1) and 4535600286 (item 7). Neither has a reply.
- Astraea at this head: 5855963437 is Blocking. I agree with items 2–4. On item 1, I don't count the binding swap as equivalent (item 4).
- Annubis: no post at this head yet.
The scan uses libyaml's CSafeLoader and fails closed when that binding is missing. A repeated key on any mapping fails, and the editor-ci job keys are the canonical set. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
The neighbour-index clamps at heightmap.rs:152-153 stay inside the grid through resolution 32769. A larger resolution is not constructible. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
There was a problem hiding this comment.
Head 00b91a7e5cdee86dacfd2d1af60ce677434b34ba. Required checks are still running. Replay hash on Windows passed. Replay hash on Ubuntu and macOS is still running. determinism-replay hash is still running on all three OS. Gate is still running. cargo-audit, cargo-deny, trace sync, docs, prose, scorecard analysis, Miri summary, volumetrics, net-tests, and greybox passed.
The two open threads are fixed on this SHA. A repeated job id, a repeated exact uses key, and editor-ci Permissions now show up in scan_action_surface. The heightmap cap matches the bilinear index on rustc 1.89.0. Resolution 32769 has upper 32767.998047 and x0 + 1 of 32768, and the + and / indexes match. NaN, infinity, and 1.0 at that resolution keep the same index. Resolution 32770 has upper 32769.0, original index 32769, and mutant index 32770. Heightmap::new and from_data reject it.
The new duplicate-key walk still misses a bare on next to a quoted "on". The scan stays empty and the trigger list stays the trusted events. The inline comment has the four workflows and the !!str on form.
Commands: rustc 1.89.0 on the index sweep, exit 0. Policy probes, exit 0. python3 scripts/ci/test_workflow_policy.py for the five new duplicate-key tests, exit 0 (0.495s).
Not run: the full policy suite, including the printable-name walk. cargo test -p astraweave-terrain --test worldgen_hash was not run here. Default resolution is 96 and a one-chunk halo is 286, both under the cap, and that cell count is the same product as before.
Measurements: GPU not measured. Replay hashes: expected unchanged. Windows replay hash passed on this rollup. The other hash jobs have not finished. No deferred issue.
Pins are unchanged: codecov 303a32d7, checkout 3d3c42e5, upload cf430e03, download 9000827c.
Sent by Cursor Automation: ASTRA PR AUDIT AGENT
lazyxeon
left a comment
There was a problem hiding this comment.
Blocking at 00b91a7e5cdee86dacfd2d1af60ce677434b34ba.
Re-review from 5855963437 at fdb41cd0, Astranox 5856166562, Annubis's rulings (including the L02 and :331 corrections), and cursor[bot] 5856949219. fdb41cd0..00b91a7e is 2 commits and touches scripts/ci/test_workflow_policy.py, astraweave-terrain/src/heightmap.rs, docs/current/CI_ARCHITECTURE.md, docs/current/MASTER_COVERAGE_REPORT.md, and docs/architecture/terrain.md.
Annubis has not posted a PASS at this head, so this is not a Clear.
What holds
- EQ2 / L02 / L03 (my 5855963437 item 1, Annubis's rulings): the upload-map length compare is gone from
_exact_upload_permissions. The scan binding is pinned toCSafeLoader, import fails when it is missing, andtest_csafe_loader_is_the_scan_bindingkills a swap to the pure loader, a missing-binding fallback, andload_workflow_yamlusing the pure loader. The firstsafe_loadpass stays deleted; restoring it is now killed by those tests. - J05 (my item 2 / Astranox item 5): the exact job-contents compare rejects a non-exact value, a containment check, and a short or empty spelling, on a Kani job and on
editor-ci. Those mutants are killed. - Global repeated exact keys, editor-ci key set, parse-error rows, generative root and job repeats (Astranox items 1–4, cursor 4535600274): the walk fails a repeated job id and a repeated step key on every scanned file, the
editor-cijob key set is exact, invalid YAML is a parse violation, and carve-outs limited to a few keys are killed. The reply matches the code. Item 1 below is the remaining key-identity class. - Heightmap
:331/ cursor 4535600286: the cite stays atheightmap.rs:152-153.newandfrom_datareject a resolution above 32769, with the bound enforced inheightmap_cell_count(:355-364).cargo test -p astraweave-terrain --lib heightmap::testsis 7/7. All 6 one-edit bound mutants are killed, including the 4 claimed killers and off-by-one at 32769 and 32770 (>to>=,>to> MAX + 1, constant 32769 to 32770 or 32768, a 32770 literal, and deleting the check). The reply matches the code. - Sun count: the body records 235,475 of 240,000, which matches cursor's probe. The 4535526115 follow-up in the body points at the correct thread.
str.strip(" ")at:2373: Annubis accepted this. The 11,120,640-name proof is in the body. I reran the full form function over 12,232,704 names: 0 differences. It survived the official suite minus the walk (145/145) and the form/publish probe, as expected.- Official suite 146/146 locally with pwsh present, including the printable-name walk, in 593.3s. Gate is green at this SHA in 11m42s (4:48:19–5:00:01 AM ET).
Blocking
- The global repeated-key walk still misses style, tag, and case variants of the same name (
scripts/ci/test_workflow_policy.py:189and:2156-2180; cursor 4536461538, unreplied; for Annubis to rate). A repeat is recorded only when the constructed keys compare equal. I confirmed, through the full surface scan, that those variants leave the scan clean on all four policy workflows, that a case-variant step key oneditor-ciand a case-variant env pair on a non-policy workflow also scan clean, and that the event list stays the trusted set. The runner treats those spellings as one key and rejects the file at parse, but this gate accepts it. The existing casefold helper treats every non-string key as a repeat, so it cannot be used as-is: it would flag a lone bare trigger key. Fix: canonicalize mapping keys before the duplicate test so style, tag, and case variants of the same name count as a repeat, without flagging a lone bare trigger key, and add killers on each of the four policy workflows plus a case-variant step key and env pair. Reply on the thread. Specifics are in the private file for Annubis. - Three one-edit mutants still survive and are not ruled on at this head (
scripts/ci/test_workflow_policy.py). Droppingisinstance(job, dict)from the exact permissions conjunct (:2133) is the equivalent the body already claims; the job-permissions lookup has already stored a missing sentinel for a non-mapping job. Dropping the parse-error conjunct inleast_privilege_permission_violations(:2113) is implied by the loader, which returns no document on a parse failure. Replacing the job-permissionsisinstance(..., dict)with aget-attribute check (:2131) is indistinguishable on the types the loader constructs. All three survived official-minus-walk 145/145 and the form/publish probe. I could not kill them. Fix: delete the redundant conjuncts, add a killer, or get Annubis's ruling. An unverified equivalent blocks. - The PR body Report still records only the 23-mutant arm sweep and "Real survivors: 0" (Astranox item 10). The history paragraph lists earlier SHAs but still omits my 112 (106 killed, 6 survived) in 5855963437 and Astranox's 84 (9 real, 3 message-only, 3 equivalent) at
fdb41cd0, and it does not include this wider sweep or items 1–2. The 11,120,640-name strip proof is present. Fix: record the sweeps by SHA and list every survivor and unverified equivalent. MASTER_COVERAGE_REPORT.md:335still omits "absolute" on the sun-position tolerances (Astranox item 8). Identities at1e-5and1e-4exist; the absolute goldens are1e-3and wider. Fix: say "absolute".- Stale cite in a touched doc:
docs/architecture/terrain.md:214still points atastraweave-render/src/terrain_gpu_bridge.rs:11-67, which does not exist. The file was updated in this head for the heightmap bound; the cite is pre-existing and unchanged versusmain. Fix: retarget or drop it. - The ubuntu and Windows
Test (..., build archive)jobs are not green yet. They have been running since 5:00:04 AM ET and have not failed. Pending required jobs are Blocking. Gate, MSRV, both Replay hash jobs, both Startup passes, and hash on ubuntu, macOS, and Windows are already green.
CI: as of 5:16 AM ET, Comprehensive CI run 42998151260 is still in progress at this head. 30 checks have passed, 14 were skipped or neutral, and none have failed. The two archive Test jobs are the remaining in-progress required checks. cursor[bot] 5856949219 reports the key-identity gap in item 1; its replies on 4535600274 and 4535600286 match the code. Annubis has not posted at this head.
Mutants (each tree was restored and is clean)
- Official suite 146/146, including the pwsh policy test and the printable-name walk, in 593.3s.
- 43 one-edit mutants of every changed statement in the changed checker functions: 38 killed, 0 hung, 5 survived official-minus-walk 145/145 and the form/publish probe. Of those 5,
str.strip(" ")is the equivalent Annubis already accepted, restoring the deleted expression conjunct is not a survivor under his ruling, and the other 3 are item 2. - Heightmap bound: 6 one-edit mutants, 6 killed, 0 missed, 0 timeout, including off-by-one at 32769 and 32770. No 32770² grid was built.
|
Devastation: BLOCKED @ 00b91a7: incremental review from 6d9b1fa to 00b91a7. Every open item is LOW and every one blocks the merge. Fixed, each with a killer:
Still open:
PASS needs every item above closed, at an exact head, with green CI. |
lazyxeon
left a comment
There was a problem hiding this comment.
Docs: BLOCKING at 00b91a7
This is a full re-review against main, not a delta. It follows my 5856166562 at fdb41cd0. I confirmed the head through the GitHub API at the start and the end. main 95283696 is still the merge base. fdb41cd0..00b91a7e is two commits (d1914add, 00b91a7e). They touch scripts/ci/test_workflow_policy.py, astraweave-terrain/src/heightmap.rs, docs/architecture/terrain.md (:172, :234), docs/current/CI_ARCHITECTURE.md (:104) and docs/current/MASTER_COVERAGE_REPORT.md (:331). No workflow file changed.
The production changes are:
- the checker now requires libyaml's
CSafeLoaderat import (:175,:226); - a new check fails any repeated key on any mapping (
:2156–:2181), and it runs in the scan; - the
editor-cijob's key set is exact (:2149); - the plain-producer conjunct and the upload length compare are smaller;
Heightmap::newandfrom_datareject a resolution above 32769 (heightmap.rs:355–:364).
I read every changed doc line sentence by sentence against the code. I also read:
- the whole PR body and the six new tests (
:9959–:10320); - the replies 4536371023 and 4536371339;
- cursor[bot]'s audit 5856949219 and its new thread;
- Astraea's 5857168829.
I reran every survivor from my last review and swept the new code (see Mutants).
Every item below blocks. Items marked security-blocking are for Annubis to rate, and he has my specifics privately. Closing any security item is his call, not mine.
Blocking
-
Security-blocking (cursor 4536461538, no reply; Astraea's item 1; Annubis rated it LOW and blocking): two spellings that the runner reads as one key still scan clean.
- I confirmed cursor's root-key case on
kani.yml,editor-ci.ymlandci.yml. - I also confirmed a case-variant step key on
editor-ci.ymland onci.yml.
The new check counts a repeat only when the parsed keys are equal, so it doesn't see these pairs.
:104and body line 19 say "Any repeated key on any mapping fails", but that's only true for keys that parse equal. Fix: compare keys the way the runner reads them, without flagging a single bare trigger key. Add killers on all four policy files, in both orders, and reply on the thread. - I confirmed cursor's root-key case on
-
Security-blocking (new; for Annubis to rate): case-variant keys outside the locked jobs still scan clean, and the
editor-cikey lock follows the job id.- A case-variant root key scans clean on all four policy workflows and on
ci.yml. - A case-variant job key scans clean on
ci.ymljobs. Every policy job I tried is caught by its key lock. - The job ids in
editor-ci.ymlare not locked. Rename the job and the new key lock no longer applies, so a case-variant key on that job scans clean.
Details are with Annubis. GitHub rejects unknown keys, so I don't think any of these is live. Item 1's fix may cover part of this class, but not the rename. Fix:
- Reject case-variant and unknown root keys on the four policy files.
- Lock the
editor-ci.ymljob ids, ascoverage.ymlandaw-editor-tests.ymlalready are, or apply the key lock to every job in that file. - Add killers for each.
- A case-variant root key scans clean on all four policy workflows and on
-
Annubis's equivalence rulings are not applied yet (Astraea's item 2).
- He accepted
isinstance(job, dict)at:2133only if the redundant check is deleted. The code still has it, and body line 82 says "The conjunct stays." - He accepted the parse-error conjunct at
:2113and the job-permissions type check at:2131only with the proof in the body. Neither proof is there.
I agree all three are equivalent: a parse failure gives no document, and a non-mapping job already has the missing sentinel. Fix: delete the
:2133conjunct, put the:2113and:2131proofs in the body, and update line 82. - He accepted
-
The job
contentscompare at:2138has a missing killer. A one-edit change that also acceptsnonesurvives the suite. With it,contents: noneoneditor-ciand onkani-ecsscans clean, but at head it fails. The new rows (:9705–:9729) cover prefixes, empty,WRITE, case and padding, but notnone.:104says each job's permissions are "exactlycontents: read". Fix: add acontents: nonerow on a Kani job and oneditor-ci, expectingJOB_CONTENTS_READ_MSG. -
Two message-only survivors (for Annubis to rule, under his exact-list rule):
- Dropping
isinstance(job, dict)in_editor_ci_job_keys_exact(:2151). A nulleditor-cijob then crashes the checker with aTypeError. At head it reports the key-set message andJOB_CONTENTS_READ_MSG. - Replacing the line number at
:2159with1. Every repeated-key violation then reports line 1, while head reports a nested repeat on its own line. No test checks that line.
Fix: add an exact-list row with a null
editor-cijob, and assert the exact line of a nested repeat (the step repeat in:9959would do). - Dropping
-
MASTER_COVERAGE_REPORT.md:331andterrain.md:172: the bound proof leaves out resolutions 0 and 1.- The bound and the 2–32769 proof are right. I checked every resolution up to 40,000 in f32, and 32770 is the first one where the clamp binds.
newandfrom_datastill accept 0 and 1. At those sizes,sample_bilinearpanics in the clamp at:147–:148before it reaches:152, in the original and in both mutants. So the four mutants are still equivalent there, but the text doesn't say so.terrain.md:172says the bound keeps "the bilinear neighbour clamp" inside the grid. The clamp keeps the index inside at any size. What the bound does is keepx0 + 1inside without the clamp, so the clamp never changes anything.
Fix: state the 0 and 1 case in
:331and body line 84, or reject those sizes in the same check with a killer. Reword:172to say what the bound guarantees. -
terrain.md:214: the cite is stale (agreeing with Astraea's item 5). It points atastraweave-render/src/terrain_gpu_bridge.rs:11–:67. That file doesn't exist. Nothing in the tree definesTerrainGpuAcceleratororWgpuTerrainAccelerator. The row is the same onmain, but this PR edits this file. Fix: retarget the row or drop it. -
MASTER_COVERAGE_REPORT.md:335: still not fixed (Astraea's item 4). It still says "The current sun-position assertions use tolerances of about1e-3and wider".wave2_biome_transition_env_remediation.rs:702–:704and:713–:715assert at1e-5and1e-4. Those check the moon and the light against the sun, and the mutant still passes them. Fix: say "absolute". (My 5856166562 item 8 cited this line as:333. It's:335.) -
CI is green now, but the body doesn't say so (Astraea's item 6). Gate passed in 11m42s (4:48:19–5:00:01 AM ET 11/11), and its Workflow policy step took 5m30s.
Test (ubuntu, build archive)passed at 5:28:20 AM ET,Test (windows, build archive)at 5:29:57 AM ET, and the three ubuntu test partitions by 5:33:25 AM ET. Body report item 1 still says required checks "have not finished". Fix: record the green run, both archive jobs included, in the body at the final head. -
Body record (Astraea's item 3; Annubis's survivor-count item is still open):
- Line 83 lists sweeps up to
6d9b1fa6. It leaves out both sweeps atfdb41cd0: Astraea's 112 (106 killed, 6 survived) in 5855963437 and my 84 (69 killed, 9 real, 3 message-only, 3 equivalent) in 5856166562. Add those, Astraea's sweep at this head and mine below. - Line 80's "Real survivors: 0" covers only its own 23 edits. My sweep at this head has 1 real survivor (item 4) and 2 message-only survivors (item 5).
- Line 191 still says "top-level message only" for a repeated workflow key other than
permissions.:9603now also expects the repeated-key message from the scan. - The test table has no rows for the six new tests.
- Line 111 says "That walk is" followed by a link. Say the walk is described in reply 4535526115. The link itself is right now.
- Line 83 lists sweeps up to
What holds
I checked each of these against the code at this head. For the security items, the fix and its killer are in place, but closing them is Annubis's call.
- My 5856166562:
- Item 1 (cursor 4535600274):
- A repeated job id fails on all four policy files and on
ci.yml. - A repeated step key fails in both a policy and a non-policy workflow.
- A
Permissionskey on theeditor-cijob fails. - The new check runs on all 39 scanned workflows and composites, and reply 4536371023 matches the code.
- Items 1 and 2 above are the wider class.
- A repeated job id fails on all four policy files and on
- Item 2: the root and job arms are pinned for every key.
:10059repeats every root key of the four files and every key of the four Kani jobs andeditor-ci. All 16 root carve-outs and all 6 job-arm narrowings I tried die. - Item 3:
:10204builds an unparseable locked file, an unlocked workflow and a composite. Both parse-error edits die. - Item 4:
CSafeLoaderis required at import, so the scan can't fall back to the pure loader.:10224asserts that every scanned file parses the same under both loaders, and it pins the tab and surrogate forms.- All four loader-swap edits die.
:104, body line 19 and theload_workflow_yamldocstring match the code.
- Item 5: the prefix, empty and
WRITErows kill thein "read"edit and the read-or-write edit. Item 4 above is one more value. - Item 6: the null-permissions row (
:10290) kills theisinstance(job_perms, dict)drop.:10168pinsdefaultson each arm, and the cased-producer list is exact. - Item 7 (cursor 4535600286):
- The cite stays at
heightmap.rs:152–:153. - The bound is enforced in code and has its own test, which every edit of the bound fails (see Mutants).
- Reply 4536371339 matches the code, apart from item 6 above.
- The cite stays at
- Item 8, second bullet: body line 85 now says 235,475.
- Item 10, in part: line 77 names both archive jobs.
- Item 1 (cursor 4535600274):
- Annubis's other rulings:
- PP4 and PP6 (the
allowed is not Noneandisinstance(name, str)conjuncts) are deleted. I checked that a missing name still changes nothing on any path. - EQ2 (the upload length compare) is deleted.
- L03 holds: the first
safe_loadpass stays deleted, and restoring it now fails the tests. - The
editor-cicase variant is rejected.
- PP4 and PP6 (the
- EQ1,
str.strip(" ")at:2446: equivalent. Every whitespace character other than U+0020 is outside 0x20–0x7E, so the printable loop rejects it either way. The proof is in body line 82. - Suite: 146/146 locally with pwsh present, 676s wall on a loaded box. Gate on CI is well inside the 45-minute budget.
Mutants
I ran 87 one-edit mutants on fresh copies in a /tmp dir and removed them afterwards.
- Python (64 mutants): each ran on a slim copy against the full suite except the printable-name walk, with a 900-second cap. The unmutated suite takes 17 seconds, and none timed out. None of the survivors touch upload names, so the walk can't catch them.
- Rust (23 mutants): these ran on
heightmap.rswith its own tests, with a 300-second cap. 17 came from cargo-mutants and 6 were my own edits of the bound. The module's tests take under a second. The box was too loaded today to build the whole terrain crate, so that wider run is still to do.
| Set | Run | Killed | Survived |
|---|---|---|---|
My 12 survivors at fdb41cd0 (9 real, 3 message-only) |
12 | 12 | 0 |
| Loader and parse path | 8 | 8 | 0 |
| New repeated-key check | 8 | 7 | 1 message-only (item 5) |
editor-ci key set |
8 | 5 | 1 message-only (item 5), 1 equivalent (the file-name conjunct), 1 stricter |
| Job arm, root carve-outs, upload map, publish path | 26 | 24 | 1 real (item 4), 1 stricter |
Claimed equivalents (strip(" "), isinstance(job, dict) at :2133) |
2 | 0 | 2 equivalent (item 3 for :2133) |
| Heightmap bound and constructors | 15 | 14 (1 did not compile) | 0 |
Heightmap :152–:153 |
8 | 3 | 4 equivalent (the cited four, under the bound), 1 not killed by the module's own tests |
| Total | 87 | 73 (1 did not compile) | 1 real, 2 message-only, 7 equivalent, 2 stricter, 1 not killed by the module's own tests |
"Stricter" means the edit fails more files than head. It never passes a file that head fails.
The heightmap bound edits that died include > to >=, > to <, > to ==, > MAX + 1, the constant at 32768 and at 32770, deleting the check, and the old size formula in new and in from_data.
The edit that isn't killed is + to * at :153. That isn't new code. The crate's other tests are expected to kill it, since :331 lists only four survivors, but I didn't run them.
CI and other reviewers
- CI at this head (rechecked 5:40 PM ET 11/17): 39 passed, 13 skipped, 1 neutral (Scorecard), 0 failed.
Test full (windows, build archive)is skipped. - cursor[bot] at this head: 5856949219 says both earlier threads are fixed. It opens 4536461538 (item 1), which has no reply.
- Astraea at this head: 5857168829 is Blocking with 6 items. I agree with all six (items 1, 3, 7, 8, 9 and 10 above).
- Annubis: no review at this head yet. His room rulings are reflected in items 1 and 3.
A quoted or tagged trigger key is the same key as a bare trigger key, and a single bare trigger key still passes. Case stays exact. Root, job, and step keys are GitHub's set on every scanned workflow and composite. editor-ci.yml job ids are locked. The redundant job-permissions conjunct is removed. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
There was a problem hiding this comment.
Head 151289cfeb0403575e8b25133247c0bf14360897. Required checks have not finished on this SHA, so this is not green. cargo-audit and cargo-deny failed on the unchanged Cargo.lock: RUSTSEC-2026-0538 (quinn-udp 0.5.14), RUSTSEC-2026-0548 (zip 9.0.3), and deny also reports chrono unmaintained (RUSTSEC-2026-0543). Replay hash on all three OS is still running. Scorecard is neutral.
Commands and exit codes, on this machine:
python3 -m unittestfortest_bool_name_trigger_spellings_are_one_key,test_case_variant_keys_fail_on_every_surface,test_env_names_are_case_sensitive,test_duplicate_walk_reaches_with_env_and_permissions,test_producer_contents_value_is_exact,test_null_editor_ci_job_reports_both_messages, andtest_third_party_actions_are_commit_pinned— exit 0, 7 tests, 1.249s. The live surface scan is inside the last test.- A separate probe of the loader on
coverage.yml,editor-ci.yml,ci.yml,scorecard.yml, andbenchmark.yml— exit 0. Quotedon,'on',!!str on,!!str "on",? "on","\u006fn", and!<tag:yaml.org,2002:str> onsetduplicate_keysand the coverage scan reports the repeat. A bareonstill passes.true,yes, andONcollide with bareonbecause they construct to the same bool, and a lone one of those spellings fails the root allowlist.Uses:oneditor-ci.ymlfails the step allowlist.FOO/fooonci.ymlstays an empty scan, which matches a case-sensitive env context.
Not run: the full policy module, actionlint, AW_CI_PACKAGES gate and run-tests.sh, cargo test -p astraweave-core --test replay_hash, and the 1660 Ti capture. This commit does not change a workflow uses: line or a hashed crate.
Measurements: not measured.
Replay hashes: the three OS jobs are still running, so there is no new hash to compare. astraweave-terrain is unchanged since the previous head. The new terrain sentences match heightmap.rs:147-148: the clamp upper bound is resolution as f32 - 1.001, which is below 0 at resolutions 0 and 1, and f32::clamp panics when the lower bound is above the upper bound. No golden and no target-cpu=native.
Deferred issue links: none.
The previous trigger-key finding is fixed. One hole remains in the new allowlist, on the inline comment: action with keys are case-exact here, and the runner publishes them as INPUT_{NAME} after ToUpperInvariant().
Sent by Cursor Automation: ASTRA PR AUDIT AGENT
| """Root, job, and step keys must be GitHub's keys, exact case. | ||
|
|
||
| The check runs on every scanned workflow and composite. A different | ||
| case fails. Nested maps such as `with`, `env`, and `permissions` |
There was a problem hiding this comment.
Action inputs inside with stay outside this allowlist, and duplicate_mapping_key_violations compares case exactly, so a case-variant input is an empty scan.
On scorecard.yml, which this pull edits, both mutants leave scan_action_surface empty:
persist-credentials: false
Persist-Credentials: trueand replacing the line with Persist-Credentials: true.
actions/checkout v7 sets persist-credentials default true (action.yml input persist-credentials). The explicit false is the line that keeps the job token out of the git config. coverage.yml and kani.yml still catch this through _mapping_has_duplicate. scorecard.yml is outside _CHECKOUT_PERSIST_WORKFLOWS.
The runner writes each input as INPUT_{key.ToUpperInvariant()} in AddInputsToEnvironment (actions/runner src/Runner.Worker/Handlers/Handler.cs). persist-credentials and Persist-Credentials are one variable, and the later value overwrites the earlier one. @actions/core getInput reads that uppercased name.
The same empty scan happens on benchmark.yml when GitHub-Token: ${{ secrets.OTHER }} is added under the existing github-token input.
FOO and foo staying distinct matches the env context. Action inputs are the keys that need the case fold. _with_key_names already rejects a case-folded collision for Codecov and download-artifact. The same length check, applied to every step with, would close this.


Description
Supersedes Dependabot #709. That pull only moved
codecov/codecov-actionto the floating@v7tag. This one pins the peeled v7.1.1 commit, makes the upload fail the step, and pins every other non-actions/*action that was still a tag or branch.coverage.ymlandaw-editor-tests.ymldo not run onpull_request. This pull request's checks do not execute either upload. The first push tomainafter merge has to be watched.coverage.ymlruns on every main push.aw-editor-tests.ymlincludes its own workflow path, so that merge push runs it too.codecov/codecov-actiontagv7.1.1is an annotated tag. The tag object is2320916714171c258d01dbd81040d64d798c6f8e. The GitHub commits API and the peeled tag both resolve to commit303a32d7a59b442fa8d48b6a1cc6825c09c847a5. The pin is that commit (# v7.1.1), not the tag object.Codecov CLI
versionisv11.3.2. The action defaultlatestis not used. Deletingversion:or settinglatestfails the policy test.Both Codecov steps set
disable_search: trueand a pinnedfiles:path:./tools/astraweave-assets/coverage/cobertura.xmlincoverage.ymland./lcov.infoinaw-editor-tests.yml. Any other path fails the policy test. Both setuse_oidc: true,fail_ci_if_error: true, andversion: v11.3.2underwith:only. The same keys on the step or underenv:fail the check.fail_ci_if_error,disable_search, anduse_oidcmust be a plain scalartrue,True, orTRUE, or the quoted stringtrue.yesandonfail. The action name and the input names are compared case-insensitively. The Codecov step's own keys must be amongname,uses, andwith. Anif:fails that check, includingfalse,${{ false }}, andfailure(). Thewith:keys must be amongfiles,disable_search,flags,name,version,fail_ci_if_error, anduse_oidc. AtokenorCODECOV_TOKENkey, and anysecretscontext inside${{ }}, fail on the step, in that job'senv, and in the workflowenv.secrets['NAME']andSECRETS.NAMEcount. The secret name is not special-cased. Main run 42729629935 and editor run 42575437299 logged an empty token (#738). There is no repo secret to send.The producer job's permissions map is exactly
contents: read. An added, removed, or changed scope fails the check. That job uploads the XML report as an artifact. The HTML report, its artifact upload, and the coverage summary are jobcoverage-html, which needs that XML job. The Codecov upload job'sneedsis exactly the jobcoverage, as the stringcoverageor the one-element list[coverage]. Thecoveragejob's last step is theupload-artifactwhosewith.nameis the pinned report (coverage-xmloraw-editor-lcov). That job's keys are exactlyname,permissions,runs-on,timeout-minutes, andsteps.test_coverage_producer_job_keys_reject_needsaddsneeds: preon jobcoveragein both workflows and expects the job-end failure. It also addsenv,continue-on-error, andcontainer. A job-levelif:, anif:on a step in that job, a later step, or a different artifact name fails the policy test. A locked step that is not exactly its canonical step fails the policy test. The key set matches, every other key and value matches, including the uploadwith:map, and theruntext matches after trailing whitespace is trimmed. An extra key, an extra run line, a different uploadpath, orif-no-files-foundfails. A generate-coverage script other than the approvedcargo tarpaulin --out Xmlcommand, or a step between the editorcargo llvm-covrun and the lcov upload, fails the policy test. A widerneedslist fails it too.actions/checkoutincoverage.ymlandaw-editor-tests.ymlis commit3d3c42e5aac5ba805825da76410c181273ba90b1(# v7). Each of those four checkout steps equals the canonical checkout for its file: the same key set and the same values, withwith:exactlypersist-credentials: false. An extra key such asrepository,ref, ortoken, or an extrarunline, fails.kani.ymlhas fouractions/checkoutsteps at3d3c42e5aac5ba805825da76410c181273ba90b1(# v7), each equal to the canonical checkout (nonamekey,with:exactlypersist-credentials: false), and fouractions/upload-artifactsteps atcf430e030ddbb5b0abf93d22962f4752f3646cd9(# v7.0.2).editor-ci.ymlis unchanged.git ls-remoteshows lightweight tagv7on3d3c42e5aac5ba805825da76410c181273ba90b1. The coverage XML upload, the coverage HTML upload, and the editor report upload useactions/upload-artifactcommitcf430e030ddbb5b0abf93d22962f4752f3646cd9(# v7.0.2).git ls-remoteshows tagv7and tagv7.0.2on that commit. Three steps download withactions/download-artifactcommit9000827ccba6bdab643e8b6fd33ac0654aef8333(# v8.0.2): the Codecov job and the HTML job incoverage.yml, and the Codecov job inaw-editor-tests.yml. Tagv8and tagv8.0.2are that same commit. In those two workflows every non-localuses:is a 40-character commit SHA. A major tag, includingactions/checkout@v7, fails that check. A local./action has no ref. That upload job's steps are that download and the pinned Codecov action. The download step's keys are onlyname,uses, andwith. Itswith:keys are exactlynameandpath, both required. Incoverage.ymlthatnameiscoverage-xml. Inaw-editor-tests.ymlthatnameisaw-editor-lcov. The Codecov upload job's permissions are exactlycontents: readandid-token: write. Itsruns-onisubuntu-latestand itstimeout-minutesis 10. It does not setactions: read. Same-rundownload-artifactuses the runtime token. Top-levelpermissionsstay{}. The generation job and the upload job do not setcontinue-on-error. A job that runs the action, and a job named in that job'sneeds:, may setcontinue-on-erroronly when the key is absent or the raw scalar is the word false in any case, as a plain boolean or a quoted string. Any other value is a violation, including every${{ }}expression, at job and step level, including a quoted key and a flow mapping. The editortestjob is outside the Codecov continue-on-error rule. Its existingcontinue-on-errorstays, its steps are an exact ordered list, and its permissions map is exactlycontents: read.actions: writeis not added. The upload job does not setactions: read.The policy test parses each file with one
CSafeLoaderpass. The module fails to import when libyaml'sCSafeLoaderis missing. A pureSafeLoaderis not the scan binding. Every scanned file parses to the same marked tree under both bindings. A tab after a key, a tab before a trailing comment, and a tab inside a flow mapping parse underCSafeLoaderand fail underSafeLoader. A lone surrogate escape fails underCSafeLoaderand parses underSafeLoader. Both reject tags outside the safe schema. A plain scalar's style is stored as null. There is no earliersafe_loadpass. Any repeated key on any mapping fails, including a repeated job id and a repeated step key, on every workflow and composite. The walk includeswith,env, andpermissions. A YAML 1.1 bool-name key is compared by its scalar spelling, so a quoted or taggedonis the same key as a bareon. A single bareonstill passes. Case is exact. Root, job, and step keys are an exact allowlist of GitHub's keys on every scanned workflow and composite. A different case fails. The job ids ineditor-ci.ymlare exactlyeditor-ci. Theeditor-cijob's keys are exactlyname,permissions,runs-on,timeout-minutes,continue-on-error, andsteps. A different case or any other key fails. It checks everyusesvalue, includingjobs.*.steps[*].uses,jobs.*.uses, and compositeruns.steps[*].uses. Quotes, block scalars (>,>-,|,|-, and an explicit indent such as>2-), flow mappings, aliases, and an escaped@are the parsed string. A local./action has no ref.docker://must end in@sha256:and 64 hex digits. The five pinnedactions/*names stay on the major-tag rule outside those two workflows.kani.ymlcheckout and upload-artifact are the exception and use those same commit SHAs.editor-ci.ymlstays on the major tag. Incoverage.ymlandaw-editor-tests.yml,coverage_artifact_pin_violationsrequires a 40-character commit SHA on every non-localuses:, includingactions/checkout. A major tag, includingactions/checkout@v7, fails that check. A local./action has no ref. Every other ref, including any otheractions/*name, must be a 40-character commit SHA. Invalid YAML fails the check.On
coverage.ymlandaw-editor-tests.ymlonly, parsed top-levelpermissionsmust be{}, and a missing top-levelpermissionskey fails the check. Any repeated workflow key fails, including a repeatedpermissionskey whose last value is{}. A repeated key in the upload job's permissions map fails, including when the last value iscontents: readandid-token: write.kani.ymlandeditor-ci.ymlfail the same way on the workflow mapping, on a repeated key on the job whose last permissions map iscontents: read, and on a repeated key inside that map. The check rejects awrite-allscalar or value. A key or value that parses to anything other than the exact map fails, including a different case, padding, a quoted value other thanreadornone, or an expression. A quoted key or a flow mapping that parses to the exact map is that map.id-tokenmay be exactlywriteon the upload job. The editortestjob's permissions map is exactlycontents: read. The upload job's keys are exactlyname,needs,permissions,runs-on,timeout-minutes, andsteps.runs-onisubuntu-latest.timeout-minutesis 10. Its steps areactions/download-artifactplus the SHA-pinned Codecov action. That download'swith:keys are exactlynameandpath, both required, andnameiscoverage-xmlincoverage.ymlandaw-editor-lcovinaw-editor-tests.yml.needsis exactly the jobcoverage, as the stringcoverageor the one-element list[coverage]. Thecoveragejob's last step is theupload-artifactwhosewith.nameis the pinned report (coverage-xmloraw-editor-lcov). That job's keys are exactlyname,permissions,runs-on,timeout-minutes, andsteps.test_coverage_producer_job_keys_reject_needsaddsneeds: preon jobcoveragein both workflows and expects the job-end failure. It also addsenv,continue-on-error, andcontainer. A job-levelif:, anif:on a step in that job, a later step, or a different artifact name fails the check. A locked step that is not exactly its canonical step fails the check. The key set matches, every other key and value matches, including the uploadwith:map, and theruntext matches after trailing whitespace is trimmed. An extra key, an extra run line, a different uploadpath, orif-no-files-foundfails. A generate-coverage script other than the approvedcargo tarpaulin --out Xmlcommand, or a step between the editorcargo llvm-covrun and the lcov upload, fails the check. On the Codecov upload job,container:,services:,uses:, and a checkout step fail. The Codecov upload job's permissions are exactlycontents: readandid-token: write. Itsruns-onisubuntu-latestand itstimeout-minutesis 10.on:is parsed as a string, a list, or a mapping. Those two workflows may list onlypush,schedule, andworkflow_dispatch.pull_request,pull_request_target,workflow_run, andissue_commentfail. This upload-job rule is not repo-wide.kani.ymlandeditor-ci.ymlmust set top-levelpermissionsto{}and each job'spermissionsto exactlycontents: read. Any repeated key on that workflow mapping fails, including a repeatedpermissionskey whose last value is{}. A repeated key on the job fails, including a repeatedpermissionskey whose last map iscontents: read. A repeated key inside that map fails. An extra scope, a different case, or padding fails. The Kanitimeoutinput must betype: numberwith default300. Each of the four Kani jobs allowlists 60, 120, 300, 600, and 900 and passessteps.timeout.outputs.valueinargs. Thoseargsvalues are read from each step'swith:and must equal--package <crate> -Z unstable-options --harness-timeout ${{ steps.timeout.outputs.value }}for that job's crate. The only expression issteps.timeout.outputs.value. A dot, bracket, quoted, whitespace, or case spelling of the input context fails that check, includinginputs.*. The step'swith:keys arekani-version,command,working-directory, andargs.commandis exactlycargo-kani.working-directoryis the literal.. A repeated input key fails, including a later case-variant that a first-match lookup would skip. Each Kani job'stimeoutstep equals the canonical step. The keys arename,id,env, andrun.envis exactlyKANI_TIMEOUT_INPUT: ${{ github.event.inputs.timeout }}. Theruntext matches the approved script after trailing whitespace is trimmed. Any other key, value, or run line fails. Every Kani step must setkani-versionto an exactX.Y.Zunderwith:only. The same key on the step or underenv:fails.docs/current/CI_ARCHITECTURE.mdrecords the same permission lock. Its rust-ci-setup bullet namesdtolnay/rust-toolchaincommit683b588c487a69d01f6c6ddf40f036ff682cc2c8(# master), matching.github/actions/rust-ci-setup/action.yml. Direct calls use599c45df1a24c1c63ae1129a7e59f46654b8fb66(# 1.89.0).scripts/ci/test_workflow_policy.pyis the check those sentences describe.Mutants that fail the check include the quote and block-scalar
uses:forms, a space before the colon, a quoteduseskey, a plain scalar on the next line, a flow mapping, an explicit?key, an escaped@, a multi-line double-quoted value, an alias,>2-,docker://with no digest,actions/not-a-real-action@main,permissions: {contents: write},permissions: {id-token: write}, a quoted permissions key, a deleted top-levelpermissions: {},id-token: writeon the generation job and on the editortestjob, an extrarunstep on the upload job, missing or widened permissions onkani.ymlandeditor-ci.yml,token: ${{ secrets.UPLOAD_CREDENTIAL }},secrets.SOME_OTHER_SECRET, aCODECOV_TOKENkey, andfail_ci_if_error,version, anddisable_searchplaced outsidewith:. Also rejected:fail_ci_if_error: yes,use_oidc: on,Token:andsecrets['NAME'],skip_validation,binary, andurl, job-level and workflow-levelCODECOV_TOKENortoken, a quotedcontinue-on-error, a flow-mapping step or job, any continue-on-error value other than the word false,actions/checkout@v7in the two coverage workflows, a download step key other thanname,uses, andwith, and a folded Kaniargsvalue, a dot, bracket, quoted, whitespace, or case spelling of the input context,inputs.timeout, a widenedneedslist, a step after the report upload, a lastupload-artifactwhosewith.nameis not the pinned report, a decoy upload after that report, a job-levelif:on the coverage job,if: always()on the report upload, an HTML, html, HTML, or Lcovcargo tarpaulincommand in the XML script, and a second non-tarpaulin command there, a step betweencargo llvm-covand the lcov upload,command: cargo-kani; echo injected, a deletedcommand,working-directory: .; echo injected, a deletedworking-directory, a repeatedargskey, a case-variantArgskey, a secondechoto$GITHUB_OUTPUTafter the timeout case, a checkout withoutpersist-credentials: false, a downloadwith:that dropsnameor renames it, a Codecovfiles:path other than the pinned report, anif:on the Codecov step,kani-versionunderenv:, a backslash-continued or&&unpinnedcargo install cargo-llvm-cov,tooloutsidewith:,github-token,run-id, andrepositoryondownload-artifact,container:,services:,uses:, and checkout on the upload job, an extra read scope, andon:forms forpull_request,pull_request_target,workflow_run, andissue_comment.Every
cargo installofcargo-llvm-covin a run script must pass--version X.Y.Zand--locked, including a second install after&&and a backslash continuation.aw-editor-tests.ymlinstallscargo-llvm-covwith--version 0.9.1 --locked. Aninstall-actionstep that installs it must settool: cargo-llvm-cov@X.Y.Zunderwith:only.editor-ci.ymlpassestool: cargo-llvm-cov@0.9.1totaiki-e/install-action@3f7c3597aa4e6da3f315e128de702ce61e7b2877(# cargo-llvm-cov). No workflowuses:ref in this repo is@stable.model-checking/kani-github-actioncommit69d357bastill runsdtolnay/rust-toolchain@stableinside that action. That file is not in this repo.continue-on-errorleft in other workflows this pull already touches, unchanged:aw-editor-tests.ymltest(job key, Run Unit Tests, Run Integration Tests, Check Formatting, Run Clippy). The coverage job and the upload job have none.benchmark-dashboard.ymlbenchmark-and-deploy: Run Benchmarks (Subset), Check for Regressionsbenchmark.ymlaggregate: Download benchmark shards, Validate benchmark thresholdsbenchmark_alert.ymlaggregate: Download benchmark shardsdocs.ymlbuild-and-deploy: Install mdBook plugins, Install system dependencies, Install Rust, Cache Rust dependencies, Build API documentation, Generate sitemap, Check for broken linkseditor-ci.ymleditor-ci(job key)mutation-testing.ymlmutants-ecs,mutants-core,mutants-ai,mutants-behavior,mutants-nav(the mutation run steps), andmutants-summaryDownload all artifactssanitizers.ymlthread-sanitizer(three TSan steps) and jobdeterminism(physics determinism step)toolchain-management.ymltoolchain-validation:continue-on-error: ${{ matrix.experimental || false }}. A later comment nameseditor-ci.yml; it is not a second key.These touched workflows have no
continue-on-errorkey:codeql-analysis.yml,coverage.yml,dependency-management.yml,determinism-profile.yml,integration-tests.yml,kani.yml,release.yml,scorecard.yml, and both composite actions.Existing commit pins were left as they were:
dtolnay/rust-toolchain@d77020bf130f2e8c39c025bf9c4c3a445fe2b9fa(# 1.89.0),Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6(# v2.9.2), andilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756(# v1).Floating refs pinned in this pull, each peeled through the GitHub git ref API (tag objects dereferenced to the commit; branches taken from
git/ref/heads):codecov/codecov-action@v4and@v5303a32d7a59b442fa8d48b6a1cc6825c09c847a5# v7.1.1Swatinem/rust-cache@v2d1527c8f67ef9af357290475d4af4b0fab8f12e0# v2.9.3benchmark-action/github-action-benchmark@v1.22.24322e5726e6334590d251fc4f92bec0efafc45dc# v1.22.2dtolnay/rust-toolchain@1.89.0(branch)599c45df1a24c1c63ae1129a7e59f46654b8fb66# 1.89.0dtolnay/rust-toolchain@master(branch)683b588c487a69d01f6c6ddf40f036ff682cc2c8# mastergithub/codeql-action/{init,autobuild,analyze,upload-sarif}@v433d7b85da1a04171e211befe2c739303b9a4c066# v4.39.3model-checking/kani-github-action@v1(branch)69d357bade1eb7b32bc3fc3d5c3d173c5bfa5237# v1mozilla-actions/sccache-action@v0.0.11fc920bf0ec8de6ee65d409111f7ec508035751ba# v0.0.11ossf/scorecard-action@v2.5.0fa7117db83c52d787ae5a89f350999701505d78e# v2.5.0peaceiris/actions-gh-pages@v484c30a85c19949d7eee79c4ff27748b70285e453# v4.1.0softprops/action-gh-release@v23bb12739c298aeb8a4eeaf626c5b8d85266b0e65# v2.6.2taiki-e/install-action@cargo-llvm-cov3f7c3597aa4e6da3f315e128de702ce61e7b2877# cargo-llvm-covtaiki-e/install-action@nextest7c48f0a661edab95fdc666d1526d9ef945205245# nextestactions/checkout@v7incoverage.yml,aw-editor-tests.yml, andkani.yml3d3c42e5aac5ba805825da76410c181273ba90b1# v7actions/upload-artifact@v7on the coverage XML upload, the coverage HTML upload, the editor report upload, and the four Kani report uploadscf430e030ddbb5b0abf93d22962f4752f3646cd9# v7.0.2actions/download-artifact@v8on the Codecov job and the HTML job incoverage.yml, and on the Codecov job inaw-editor-tests.yml9000827ccba6bdab643e8b6fd33ac0654aef8333# v8.0.2No new crate.
cargo-llvm-cov0.9.1 andkani-verifier0.68.0 are version pins of tools those jobs already installed. The policy test importsyaml, which is PyYAML already present forpython3on the runner. This pull does not add a package.Fixes #738
Fixes #745
Report
151289cfeb0403575e8b25133247c0bf14360897. Required checks have not finished on this SHA, so this is not claimed green. On00b91a7e, Gate passed and both archive Test jobs (Test (ubuntu, build archive)andTest (windows, build archive)) passed. This head still needs those jobs green. The branch is not behindmain(9528369676941813bb294db5c01102b4c9cd36a1).rustc 1.89.0 (29483883e 2025-08-04), CPython with libyamlCSafeLoader):python3 -m unittest scripts.ci.test_workflow_policy— exit 1. 152 tests, 151 passed, 1 failed, 434.151s. The failure istest_benchmark_alert_issue_runs_after_failed_regression_checkbecausepwshis not installed here. That test fails the same way on the base commit withoutpwsh. The runner image haspwsh. The printable-name walk is one of the 151 that passed.bash scripts/ci/run-gate.sh— exit 0. No crate changed, so the gate rancargo fmt --all --checkand skipped clippy and check.cargo clippy -p astraweave-terrain --lib --no-deps -- -D warnings— exit 0.cargo test -p astraweave-terrain --lib heightmap::tests -- --test-threads=1— exit 0. 7 passed.bash scripts/ci/player_facing_names.sh— exit 0.cargo run -p aw_doc_lint -- --mode warn— exit 0. 0 un-allowlisted.cargo run -p aw_trace_sync -- --check— exit 0. 31 traces, 142 workspace crates.with,env, andpermissionsin the duplicate walk; comparing producercontentswithin; comparing jobcontentswithin ("read", "none"); turning the unknown-key check into a no-op; casefolding the allowlist; dropping theeditor-ci.ymljob-id lock; dropping the editor-ci job dict check; reporting every repeated key on line 1; adding a different-case step key to the step allowlist; ignoring the spelling identity set.isinstance(job, dict)on the exact permissions conjunct. A non-dict job already stores the missing sentinel before that conjunct, so the permissions-map check is already false. The conjunct stays deleted.err orinleast_privilege_permission_violations.load_workflow_yamland_load_markedreturn(None, err)onYAMLErrorand(marked, None)on success. They never return a document together with an error. Thenot isinstance(doc, dict)arm already fires on a parse failure.err orstays.isinstance(job, dict)replaced withhasattr(job, "get")on the job permissions lookup. Of the typesCSafeLoaderbuilds (dict, including the marked dict, list, and scalars), only dict has.get. Theisinstancecheck stays.str.strip(" ")in place ofstr.strip()stays the accepted equivalent from the prior head. 11,120,640 names, 0 differences, 7.17s. The plain-producer name check isname == allowed. The firstsafe_loadpass stays deleted.fdb41cd0, Astraea (review 5855963437) ran 112: 106 killed, 6 survived. Astranox (review 5856166562) ran 84: 69 killed, 9 real, 3 message-only, 3 equivalent. At00b91a7e, Astraea (review 5857168829) ran the official suite minus the walk, 145/145, and a wider sweep whose real gap was key identity, with three equivalents then unruled. Astranox (review 5947822428) ran 87: 73 killed (1 did not compile), 1 real, 2 message-only, 7 equivalent, 2 stricter, and 1 not killed by the heightmap module tests. None timed out. This head kills that real survivor, those two message-only edits, and the key-identity and unknown-key gaps. The three equivalents in the sweep above are the ones that survived here and are ruled. Earlier sweeps stay on their own SHAs. At6d9b1fa6Astranox (review 5855501276) ran 110: 61 killed, 41 real, 2 message-only, 6 equivalent. At156ee731the recorded sweep was 39 mutants, 37 killed, and 2 equivalent, and it left out Astranox's 74 (67 killed, 3 real, 2 message-only, 2 equivalent) in review 5854192976 and Astraea's 48 (45 killed, 1 real) in review 5854193752. Atc0121c4d, Astraea (review 5853769407) ran 36: 25 killed, 9 survived. Astranox (review 5853755359) ran 46: 38 killed. At3788edd4Astraea (review 5853273329) ran 63: 51 killed, 12 survived. Astranox (review 5853256149) ran 32: 29 killed, 3 equivalent or stricter. At6d9b1fa6Astraea (review 5854616521) ran 54: 51 killed, 2 real, 1 equivalent.heightmap.rs:152–153.newandfrom_datareject a resolution above 32769. Resolutions 0 and 1 are still accepted.sample_bilinearpanics in the clamp at:147–148for those sizes, because the upper bound is below 0 (rustc 1.89.0: resolution 0 upper-1.001, resolution 1 upper-0.0010000467). The 7 module tests passed. This head does not editheightmap.rs.MASTER_COVERAGE_REPORT.mdnow calls those sun-position tolerances absolute.docs/architecture/terrain.mdno longer citesastraweave-render/src/terrain_gpu_bridge.rs. That file is not in the tree.actionlint(no workflow file changed),AW_CI_PACKAGES=… bash scripts/ci/run-tests.sh,cargo test -p astraweave-core --test replay_hash(no hashed crate changed), workspacecargo clippy(no Rust source changed; the terrain--lib --no-depsrun is above),zizmor, and the 1660 Tigpu_frame_budgetcapture. Required GitHub checks on this SHA have not run.cargo clippy -p astraweave-terrain --all-targets -- -D warningswas not used: it denies warnings in dependencies this pull does not change.target-cpu=native.Locked-step killers. Each extra key keeps the canonical
runtext. Each extra run line keeps the canonical key set.with:or othershell: bashecho extrashell: bashecho extrashell: bashon both producer uploadsrun: echo extraon bothpath: README.md;if-no-files-found: ignoreshell: bashonkani.ymlrun: echo extraonkani.ymlrepository,ref, andtokenoncoverage.yml,aw-editor-tests.yml, andkani.ymlshell: bash$GITHUB_OUTPUTenvstays the one canonical variableshell: bashecho extrashell: bashecho TN: > lcov.infoecho not-llvm-covfails the prefix;return Trueand deleting the branch each fail that testshell: bashecho extraactions: readandpull-requests: readcontents: noneandpermissions: {}The step-count killer appends an extra step and a second upload with the pinned name in both producer jobs. The prefix still matches the canonical steps, and the last upload name is still pinned. Removing the length compare makes that test fail.
The coverage job in
coverage.ymland inaw-editor-tests.ymlis an exact ordered list of canonical steps, including Rust CI setup and Install Rust Toolchain with theirwith:andenv. An inserted, removed, or reordered step fails. Leading whitespace on arunline fails. Trailing whitespace is trimmed. A duplicate key fails.defaultsis absent. Workflowenvis absent incoverage.ymland exactly the canonical map inaw-editor-tests.ymlandkani.yml. Removing that map fails. Jobenvis absent. A custom shell, a working-directory, or an env map that is not that canonical map fails. The producer job's keys are exactlyname,permissions,runs-on,timeout-minutes, andsteps.runs-onisubuntu-latest.timeout-minutesis 45. Each of the four Kani jobs is an exact ordered list: checkout, the timeout step, the Kani action, and the report upload. An inserted, removed, or reordered step fails, including a step appended after the last canonical step, and every step equals its canonical step, including the action step's keys, so a stepenvfails. The job id maps to a canonical entry whoseargsis a non-null string. An unmapped or renamed job id fails. A nullargsvalue does not compare equal to a missing entry. An unmapped job whoseargsis null fails the args check alone. Each of those four jobs has exactly the keysname,permissions,runs-on,timeout-minutes, andsteps.runs-onisubuntu-latest.timeout-minutesis 120 onkani-ecs, 60 onkani-math, 60 onkani-sdk, and 90 onkani-core. A job-levelif:fails, and so docontainer:,services:,strategy:,environment:,outputs:,concurrency:,needs:, andsnapshot:. A stepif:or a stepcontinue-on-errorfails. A job-levelcontinue-on-errorfails. Thesummaryjob needs exactly those four job ids, in that order, and itsif:isalways(). The summary job's keys are exactlyname,permissions,runs-on,timeout-minutes,needs,if, andsteps.runs-onisubuntu-latest.timeout-minutesis 10. Its steps are exactlyCheck Results, thenFail if any verification failed. A changed step, an extra step, or a job-levelcontinue-on-error,container:,services:,strategy:, orenvironment:fails.Fail if any verification failedequals its canonical step, and that step is present once. That step'sif:is true when any needed result is notsuccess, so a skipped or cancelled job fails the gate..github/actions/rust-ci-setup/action.ymlruns.stepsequals a canonical ordered list.Enable sccachehas oneRUSTC_WRAPPER=assignment. Thetoolchaindefault is1.89.0. An extra step, including one that writesGITHUB_ENV, fails. The action's top-level keys arename,description,inputs, andruns.inputsare exactlytoolchain,components, andinstall-nextest, with defaults1.89.0,rustfmt,clippy, andfalse.runs.usingiscomposite. An extra input, a changed default, an extra top-level key, or any otherruns.usingfails. Jobcoverage-htmland the editortestjob are each an exact ordered list of canonical steps. TheInstall cargo-tarpaulinstep incoverage-htmlis that list's canonical install, including--versionand--locked.coverage-htmlkeys are exactlyname,needs,permissions,runs-on,timeout-minutes, andsteps.runs-onisubuntu-latest.timeout-minutesis 45. A job-levelif:orcontainer:fails. The editortestjob's keys are exactlyname,permissions,runs-on,timeout-minutes,continue-on-error,strategy, andsteps. Its permissions map is exactlycontents: read.runs-onis${{ matrix.os }}.timeout-minutesis 45. A job-levelif:orcontainer:fails. In those two workflows the only upload ofcoverage-xmloraw-editor-lcovis the producer job's report upload. No step setsoverwrite. Every scanned upload name, in every workflow and composite, fails whenstr.strip()changes it, or when it contains a character outside printable ASCII (0x20-0x7E). The publish path rejects any scalar outside 0x20–0x7E on either edge or in the middle of either pinned name in every scanned workflow and composite. The test walks every non-surrogate scalar outside 0x20-0x7E, on either edge and in the middle of both pinned names, through the form check and through the publish function on a non-producer path and on both producer workflows, and expects a reject for each name. That walk is described in reply 4535526115 (#734 (comment)). The same walk checks the form check against_could_be_pinned_report_nameon the non-producer path, and it walks the printable scalars on those edges. A space or~in the middle of a name is allowed. A name that contains${{fails incoverage.ymlandaw-editor-tests.yml. Elsewhere that name fails unless it is an exact member of the published artifact names. Those names are the eleven listed indocs/current/CI_ARCHITECTURE.md. A new published name is that exact string added to the list. The expression is not evaluated, and literal text around${{is not matched. A name that remains is compared without case. The one plain producer upload is the exception when its name is exactly that report.archivefails unless it is absent or true. A repeated key in an uploadwith:map fails, including a later case-variant. The check does not keep the first value or the last value. A sub-path ofactions/upload-artifact, includingmerge, is the same upload, and that action-name compare ignores case. Every localuses:must exactly match./.github/actions/rust-ci-setupor./.github/actions/rust-nightly, or an entry on the reusable-workflow allowlist. That allowlist is empty. There is no prefix exemption. A directory under.github/workflowsfails. Each of those two action files is shape-locked, and the lockedaction.ymlmust exist with noaction.yamlbeside it. Any other local path fails. Reusable workflow targets are an exact allowlist, and that allowlist is empty, so a local or SHA-pinned reusable workflow fails, including a.yamlsuffix and a different case. The job ids incoverage.ymlare exactlycoverage,codecov, andcoverage-html. The job ids inaw-editor-tests.ymlare exactlytest,coverage, andcodecov. External actions in each of those files are an exact allowlist of the actions that file uses. Anoverwritekey still fails on every scanned upload step.docs/architecture/ui.mdcites the Miri list atdocs/current/MIRI_VALIDATION_REPORT.md:18-21.defaults.runtest_run_context_is_absent_or_canonicaldefaults.runtest_run_context_is_absent_or_canonicalenvextra bindingtest_run_context_is_absent_or_canonicaldefaults.runshell and working-directorytest_run_context_is_absent_or_canonicalenvextra bindingtest_run_context_is_absent_or_canonicalenv, setup toolchain inputtest_setup_and_toolchain_steps_are_canonicalenvtest_setup_and_toolchain_steps_are_canonicalenvtest_kani_jobs_are_exact_ordered_liststest_kani_jobs_are_exact_ordered_liststest_unmapped_kani_job_id_failsargson a mapped jobtest_null_kani_args_fail_on_a_mapped_jobtest_duplicate_keys_leading_whitespace_and_second_timeout_failtest_duplicate_keys_leading_whitespace_and_second_timeout_failtest_duplicate_keys_leading_whitespace_and_second_timeout_failtest_duplicate_keys_leading_whitespace_and_second_timeout_failif:test_kani_conditions_fail_outside_the_args_checkcontinue-on-errortest_kani_conditions_fail_outside_the_args_checktest_kani_job_keys_are_exactneeds, summaryif:, fail steptest_kani_summary_gate_is_canonicalif:with a summary edittest_job_if_with_summary_edit_failsargstest_unmapped_kani_job_with_null_args_fails_dispatchtest_trailing_kani_step_fails_the_length_checkRUSTC_WRAPPERline, toolchain defaulttest_rust_ci_setup_steps_are_canonicaltest_coverage_html_and_editor_test_steps_are_canonicaltesttrailing steptest_coverage_html_and_editor_test_steps_are_canonicaltest_pinned_report_upload_and_overwrite_are_rejectedoverwritetest_pinned_report_upload_and_overwrite_are_rejectedtest_kani_summary_job_shape_is_exactneedstest_kani_summary_needs_order_is_significanttest_second_summary_fail_step_fails_the_counttest_codecov_upload_runner_is_pinnedruns.using, top-level keystest_rust_ci_setup_action_shape_is_exacttestjobif:,container:, runner, timeouttest_coverage_html_and_editor_test_job_shape_are_exactenvtest_workflow_env_must_be_present_where_canonicaloverwrite, missing producer uploadtest_step_level_overwrite_and_missing_upload_are_rejectedtest_pinned_report_names_reject_expressions_and_other_filesneedstest_mapped_kani_jobs_must_be_present,test_summary_needs_must_be_the_listtest_duplicate_job_keys_fail_closedtest_upload_name_trim_case_archive_and_subpathstrategyos listtest_editor_test_strategy_is_exactneedsand permissionstest_coverage_html_needs_and_permissions_are_exacttest_caller_only_composite_must_resolve,test_caller_only_reusable_workflow_must_resolvetest_local_action_paths_are_allowlistedruns.usingtest_rust_nightly_shape_is_lockedtest_outside_composite_and_external_reusable_workflow_fail.github/workflowstest_workflow_directory_action_is_not_allowlisteduses:test_parent_segment_local_use_is_rejected.yamland case-variant workflowtest_reusable_workflow_yaml_and_case_are_requiredwith:keytest_upload_with_duplicate_keys_fail_closedtest_upload_action_name_casefold_is_requiredtest_published_expression_artifact_names_are_exacttest_upload_name_form_fails_closed${{nametest_unspaced_expression_names_fail_closed${{name in the two coverage workflowstest_coverage_workflows_reject_every_expression_nameaction.ymloraction.yamlsiblingtest_rust_ci_setup_action_file_must_exist_without_yaml_siblingtest_coverage_job_and_action_allowlists_are_exactaction.ymloraction.yamlsiblingtest_locked_action_file_must_exist_without_yaml_siblingtestpermission case, padding, a quoted value other thanreadornone, or an expressiontest_editor_test_permissions_are_an_exact_maptestpermissions other than exactlycontents: readtest_editor_test_permissions_are_an_exact_maptest_printable_name_range_is_pinnedtest_editor_test_permissions_are_an_exact_mapcontentskey, write then read and read then read, on the editortestjobtest_editor_test_permissions_are_an_exact_mapid-token: writeon the editortestjobtest_editor_test_permissions_are_an_exact_mapid-token: WRITEon the editortestjobtest_editor_test_permissions_are_an_exact_mapread-all,true,null,~, and[read]test_editor_test_permissions_are_an_exact_mapcontentskey, write then read and read then read, on the coverage producer job andcoverage-htmltest_permission_scalar_duplicate_and_top_level_arms_are_pinnedWRITE, paddedwrite, andWRITE-ALL, on the upload job and on a non-upload jobtest_permission_scalar_duplicate_and_top_level_arms_are_pinnedread-all, including case and paddingtest_permission_scalar_duplicate_and_top_level_arms_are_pinnedreadand booltest_permission_scalar_duplicate_and_top_level_arms_are_pinnedid-token: WRITEon the upload job and on the coverage producer jobtest_permission_scalar_duplicate_and_top_level_arms_are_pinned~in the middle of a pinned nametest_printable_name_range_is_pinnedcontents: read,contents: none,[], andtruetest_permission_scalar_duplicate_and_top_level_arms_are_pinnedID-TOKEN: writetest_permission_scalar_duplicate_and_top_level_arms_are_pinnedtest_repeated_permission_keys_whose_last_value_is_canonical_failpermissionskey whose last value is{}, oncoverage.yml,aw-editor-tests.yml,kani.yml, andeditor-ci.ymltest_repeated_permission_keys_whose_last_value_is_canonical_failcontents: read, onkani.ymlandeditor-ci.ymltest_repeated_permission_keys_whose_last_value_is_canonical_failpermissions(onandnameon all four files,envwhere that key already exists)test_root_and_job_permission_shapes_are_exactpermissionskey whose last map iscontents: read, onkani-ecsandeditor-citest_root_and_job_permission_shapes_are_exactid-token: write,contents: READ, andcontents: 'read 'onkani-ecsandeditor-citest_root_and_job_permission_shapes_are_exactarchive: falsetest_producer_archive_and_action_name_pin_the_reportactions/upload-artifact/mergetest_producer_archive_and_action_name_pin_the_reporttest_bool_name_trigger_spellings_are_one_keytest_bool_name_trigger_spellings_are_one_keyci.ymltest_case_variant_keys_fail_on_every_surfaceci.ymljobschanges,gate, andtest-linux-buildtest_case_variant_keys_fail_on_every_surfaceeditor-ci.ymlandci.ymltest_case_variant_keys_fail_on_every_surfaceeditor-cijob id renamedtest_case_variant_keys_fail_on_every_surfaceFOOandfooin one env maptest_env_names_are_case_sensitivewith, stepenv, andpermissionskey onci.ymltest_duplicate_walk_reaches_with_env_and_permissionscontentsvaluere,r, or emptytest_producer_contents_value_is_exactcontents: noneonkani-ecsandeditor-citest_root_and_job_permission_shapes_are_exacteditor-cijobtest_null_editor_ci_job_reports_both_messagesType of change
Security Considerations
No new crate and no new package. The Codecov uploads do not read a token secret. They request an OIDC token. That needs
id-token: writeon the upload job only. That job's permissions are exactlycontents: readandid-token: write. It does not setactions: read. Top-level permissions stay empty. The Kani dispatchtimeoutistype: number, then allowlisted to 60, 120, 300, 600, or 900, before it reaches the actionargs.commandiscargo-kaniandworking-directoryis..Checklist