Skip to content

Pin codecov-action to v7.1.1 and third-party action SHAs - #734

Open
lazyxeon wants to merge 36 commits into
mainfrom
cursor/pin-codecov-action-f5bb
Open

lazyxeon wants to merge 36 commits into
mainfrom
cursor/pin-codecov-action-f5bb

Conversation

@lazyxeon

@lazyxeon lazyxeon commented Nov 10, 2026 •

Copy link
Copy Markdown
Owner

Description

Supersedes Dependabot #709. That pull only moved codecov/codecov-action to the floating @v7 tag. 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.yml and aw-editor-tests.yml do not run on pull_request. This pull request's checks do not execute either upload. The first push to main after merge has to be watched. coverage.yml runs on every main push. aw-editor-tests.yml includes its own workflow path, so that merge push runs it too.

codecov/codecov-action tag v7.1.1 is an annotated tag. The tag object is 2320916714171c258d01dbd81040d64d798c6f8e. The GitHub commits API and the peeled tag both resolve to commit 303a32d7a59b442fa8d48b6a1cc6825c09c847a5. The pin is that commit (# v7.1.1), not the tag object.

Codecov CLI version is v11.3.2. The action default latest is not used. Deleting version: or setting latest fails the policy test.

Both Codecov steps set disable_search: true and a pinned files: path: ./tools/astraweave-assets/coverage/cobertura.xml in coverage.yml and ./lcov.info in aw-editor-tests.yml. Any other path fails the policy test. Both set use_oidc: true, fail_ci_if_error: true, and version: v11.3.2 under with: only. The same keys on the step or under env: fail the check. fail_ci_if_error, disable_search, and use_oidc must be a plain scalar true, True, or TRUE, or the quoted string true. yes and on fail. The action name and the input names are compared case-insensitively. The Codecov step's own keys must be among name, uses, and with. An if: fails that check, including false, ${{ false }}, and failure(). The with: keys must be among files, disable_search, flags, name, version, fail_ci_if_error, and use_oidc. A token or CODECOV_TOKEN key, and any secrets context inside ${{ }}, fail on the step, in that job's env, and in the workflow env. secrets['NAME'] and SECRETS.NAME count. 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 job coverage-html, which needs that XML job. The Codecov upload job's needs is exactly the job coverage, as the string coverage or the one-element list [coverage]. The coverage job's last step is the upload-artifact whose with.name is the pinned report (coverage-xml or aw-editor-lcov). That job's keys are exactly name, permissions, runs-on, timeout-minutes, and steps. test_coverage_producer_job_keys_reject_needs adds needs: pre on job coverage in both workflows and expects the job-end failure. It also adds env, continue-on-error, and container. A job-level if:, an if: 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 upload with: map, and the run text matches after trailing whitespace is trimmed. An extra key, an extra run line, a different upload path, or if-no-files-found fails. A generate-coverage script other than the approved cargo tarpaulin --out Xml command, or a step between the editor cargo llvm-cov run and the lcov upload, fails the policy test. A wider needs list fails it too. actions/checkout in coverage.yml and aw-editor-tests.yml is commit 3d3c42e5aac5ba805825da76410c181273ba90b1 (# v7). Each of those four checkout steps equals the canonical checkout for its file: the same key set and the same values, with with: exactly persist-credentials: false. An extra key such as repository, ref, or token, or an extra run line, fails. kani.yml has four actions/checkout steps at 3d3c42e5aac5ba805825da76410c181273ba90b1 (# v7), each equal to the canonical checkout (no name key, with: exactly persist-credentials: false), and four actions/upload-artifact steps at cf430e030ddbb5b0abf93d22962f4752f3646cd9 (# v7.0.2). editor-ci.yml is unchanged. git ls-remote shows lightweight tag v7 on 3d3c42e5aac5ba805825da76410c181273ba90b1. The coverage XML upload, the coverage HTML upload, and the editor report upload use actions/upload-artifact commit cf430e030ddbb5b0abf93d22962f4752f3646cd9 (# v7.0.2). git ls-remote shows tag v7 and tag v7.0.2 on that commit. Three steps download with actions/download-artifact commit 9000827ccba6bdab643e8b6fd33ac0654aef8333 (# v8.0.2): the Codecov job and the HTML job in coverage.yml, and the Codecov job in aw-editor-tests.yml. Tag v8 and tag v8.0.2 are that same commit. In those two workflows every non-local uses: is a 40-character commit SHA. A major tag, including actions/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 only name, uses, and with. Its with: keys are exactly name and path, both required. In coverage.yml that name is coverage-xml. In aw-editor-tests.yml that name is aw-editor-lcov. The Codecov upload job's permissions are exactly contents: read and id-token: write. Its runs-on is ubuntu-latest and its timeout-minutes is 10. It does not set actions: read. Same-run download-artifact uses the runtime token. Top-level permissions stay {}. The generation job and the upload job do not set continue-on-error. A job that runs the action, and a job named in that job's needs:, may set continue-on-error only 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 editor test job is outside the Codecov continue-on-error rule. Its existing continue-on-error stays, its steps are an exact ordered list, and its permissions map is exactly contents: read.

actions: write is not added. The upload job does not set actions: read.

The policy test parses each file with one CSafeLoader pass. The module fails to import when libyaml's CSafeLoader is missing. A pure SafeLoader is 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 under CSafeLoader and fail under SafeLoader. A lone surrogate escape fails under CSafeLoader and parses under SafeLoader. Both reject tags outside the safe schema. A plain scalar's style is stored as null. There is no earlier safe_load pass. Any repeated key on any mapping fails, including a repeated job id and a repeated step key, on every workflow and composite. The walk includes with, env, and permissions. A YAML 1.1 bool-name key is compared by its scalar spelling, so a quoted or tagged on is the same key as a bare on. A single bare on still 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 in editor-ci.yml are exactly editor-ci. The editor-ci job's keys are exactly name, permissions, runs-on, timeout-minutes, continue-on-error, and steps. A different case or any other key fails. It checks every uses value, including jobs.*.steps[*].uses, jobs.*.uses, and composite runs.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 pinned actions/* names stay on the major-tag rule outside those two workflows. kani.yml checkout and upload-artifact are the exception and use those same commit SHAs. editor-ci.yml stays on the major tag. In coverage.yml and aw-editor-tests.yml, coverage_artifact_pin_violations requires a 40-character commit SHA on every non-local uses:, including actions/checkout. A major tag, including actions/checkout@v7, fails that check. A local ./ action has no ref. Every other ref, including any other actions/* name, must be a 40-character commit SHA. Invalid YAML fails the check.

On coverage.yml and aw-editor-tests.yml only, parsed top-level permissions must be {}, and a missing top-level permissions key fails the check. Any repeated workflow key fails, including a repeated permissions key whose last value is {}. A repeated key in the upload job's permissions map fails, including when the last value is contents: read and id-token: write. kani.yml and editor-ci.yml fail the same way on the workflow mapping, on a repeated key on the job whose last permissions map is contents: read, and on a repeated key inside that map. The check rejects a write-all scalar 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 than read or none, or an expression. A quoted key or a flow mapping that parses to the exact map is that map. id-token may be exactly write on the upload job. The editor test job's permissions map is exactly contents: read. The upload job's keys are exactly name, needs, permissions, runs-on, timeout-minutes, and steps. runs-on is ubuntu-latest. timeout-minutes is 10. Its steps are actions/download-artifact plus the SHA-pinned Codecov action. That download's with: keys are exactly name and path, both required, and name is coverage-xml in coverage.yml and aw-editor-lcov in aw-editor-tests.yml. needs is exactly the job coverage, as the string coverage or the one-element list [coverage]. The coverage job's last step is the upload-artifact whose with.name is the pinned report (coverage-xml or aw-editor-lcov). That job's keys are exactly name, permissions, runs-on, timeout-minutes, and steps. test_coverage_producer_job_keys_reject_needs adds needs: pre on job coverage in both workflows and expects the job-end failure. It also adds env, continue-on-error, and container. A job-level if:, an if: 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 upload with: map, and the run text matches after trailing whitespace is trimmed. An extra key, an extra run line, a different upload path, or if-no-files-found fails. A generate-coverage script other than the approved cargo tarpaulin --out Xml command, or a step between the editor cargo llvm-cov run 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 exactly contents: read and id-token: write. Its runs-on is ubuntu-latest and its timeout-minutes is 10. on: is parsed as a string, a list, or a mapping. Those two workflows may list only push, schedule, and workflow_dispatch. pull_request, pull_request_target, workflow_run, and issue_comment fail. This upload-job rule is not repo-wide.

kani.yml and editor-ci.yml must set top-level permissions to {} and each job's permissions to exactly contents: read. Any repeated key on that workflow mapping fails, including a repeated permissions key whose last value is {}. A repeated key on the job fails, including a repeated permissions key whose last map is contents: read. A repeated key inside that map fails. An extra scope, a different case, or padding fails. The Kani timeout input must be type: number with default 300. Each of the four Kani jobs allowlists 60, 120, 300, 600, and 900 and passes steps.timeout.outputs.value in args. Those args values are read from each step's with: and must equal --package <crate> -Z unstable-options --harness-timeout ${{ steps.timeout.outputs.value }} for that job's crate. The only expression is steps.timeout.outputs.value. A dot, bracket, quoted, whitespace, or case spelling of the input context fails that check, including inputs.*. The step's with: keys are kani-version, command, working-directory, and args. command is exactly cargo-kani. working-directory is the literal .. A repeated input key fails, including a later case-variant that a first-match lookup would skip. Each Kani job's timeout step equals the canonical step. The keys are name, id, env, and run. env is exactly KANI_TIMEOUT_INPUT: ${{ github.event.inputs.timeout }}. The run text matches the approved script after trailing whitespace is trimmed. Any other key, value, or run line fails. Every Kani step must set kani-version to an exact X.Y.Z under with: only. The same key on the step or under env: fails.

docs/current/CI_ARCHITECTURE.md records the same permission lock. Its rust-ci-setup bullet names dtolnay/rust-toolchain commit 683b588c487a69d01f6c6ddf40f036ff682cc2c8 (# master), matching .github/actions/rust-ci-setup/action.yml. Direct calls use 599c45df1a24c1c63ae1129a7e59f46654b8fb66 (# 1.89.0). scripts/ci/test_workflow_policy.py is the check those sentences describe.

Mutants that fail the check include the quote and block-scalar uses: forms, a space before the colon, a quoted uses key, 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-level permissions: {}, id-token: write on the generation job and on the editor test job, an extra run step on the upload job, missing or widened permissions on kani.yml and editor-ci.yml, token: ${{ secrets.UPLOAD_CREDENTIAL }}, secrets.SOME_OTHER_SECRET, a CODECOV_TOKEN key, and fail_ci_if_error, version, and disable_search placed outside with:. Also rejected: fail_ci_if_error: yes, use_oidc: on, Token: and secrets['NAME'], skip_validation, binary, and url, job-level and workflow-level CODECOV_TOKEN or token, a quoted continue-on-error, a flow-mapping step or job, any continue-on-error value other than the word false, actions/checkout@v7 in the two coverage workflows, a download step key other than name, uses, and with, and a folded Kani args value, a dot, bracket, quoted, whitespace, or case spelling of the input context, inputs.timeout, a widened needs list, a step after the report upload, a last upload-artifact whose with.name is not the pinned report, a decoy upload after that report, a job-level if: on the coverage job, if: always() on the report upload, an HTML, html, HTML, or Lcov cargo tarpaulin command in the XML script, and a second non-tarpaulin command there, a step between cargo llvm-cov and the lcov upload, command: cargo-kani; echo injected, a deleted command, working-directory: .; echo injected, a deleted working-directory, a repeated args key, a case-variant Args key, a second echo to $GITHUB_OUTPUT after the timeout case, a checkout without persist-credentials: false, a download with: that drops name or renames it, a Codecov files: path other than the pinned report, an if: on the Codecov step, kani-version under env:, a backslash-continued or && unpinned cargo install cargo-llvm-cov, tool outside with:, github-token, run-id, and repository on download-artifact, container:, services:, uses:, and checkout on the upload job, an extra read scope, and on: forms for pull_request, pull_request_target, workflow_run, and issue_comment.

Every cargo install of cargo-llvm-cov in a run script must pass --version X.Y.Z and --locked, including a second install after && and a backslash continuation. aw-editor-tests.yml installs cargo-llvm-cov with --version 0.9.1 --locked. An install-action step that installs it must set tool: cargo-llvm-cov@X.Y.Z under with: only. editor-ci.yml passes tool: cargo-llvm-cov@0.9.1 to taiki-e/install-action@3f7c3597aa4e6da3f315e128de702ce61e7b2877 (# cargo-llvm-cov). No workflow uses: ref in this repo is @stable. model-checking/kani-github-action commit 69d357ba still runs dtolnay/rust-toolchain@stable inside that action. That file is not in this repo.

continue-on-error left in other workflows this pull already touches, unchanged:

File Where
aw-editor-tests.yml Job test (job key, Run Unit Tests, Run Integration Tests, Check Formatting, Run Clippy). The coverage job and the upload job have none.
benchmark-dashboard.yml Job benchmark-and-deploy: Run Benchmarks (Subset), Check for Regressions
benchmark.yml Job aggregate: Download benchmark shards, Validate benchmark thresholds
benchmark_alert.yml Job aggregate: Download benchmark shards
docs.yml Job build-and-deploy: Install mdBook plugins, Install system dependencies, Install Rust, Cache Rust dependencies, Build API documentation, Generate sitemap, Check for broken links
editor-ci.yml Job editor-ci (job key)
mutation-testing.yml Jobs mutants-ecs, mutants-core, mutants-ai, mutants-behavior, mutants-nav (the mutation run steps), and mutants-summary Download all artifacts
sanitizers.yml Job thread-sanitizer (three TSan steps) and job determinism (physics determinism step)
toolchain-management.yml Job toolchain-validation: continue-on-error: ${{ matrix.experimental || false }}. A later comment names editor-ci.yml; it is not a second key.

These touched workflows have no continue-on-error key: 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), and ilammy/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):

Was Commit Comment
codecov/codecov-action@v4 and @v5 303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1
Swatinem/rust-cache@v2 d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
benchmark-action/github-action-benchmark@v1.22.2 4322e5726e6334590d251fc4f92bec0efafc45dc # v1.22.2
dtolnay/rust-toolchain@1.89.0 (branch) 599c45df1a24c1c63ae1129a7e59f46654b8fb66 # 1.89.0
dtolnay/rust-toolchain@master (branch) 683b588c487a69d01f6c6ddf40f036ff682cc2c8 # master
github/codeql-action/{init,autobuild,analyze,upload-sarif}@v4 33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3
model-checking/kani-github-action@v1 (branch) 69d357bade1eb7b32bc3fc3d5c3d173c5bfa5237 # v1
mozilla-actions/sccache-action@v0.0.11 fc920bf0ec8de6ee65d409111f7ec508035751ba # v0.0.11
ossf/scorecard-action@v2.5.0 fa7117db83c52d787ae5a89f350999701505d78e # v2.5.0
peaceiris/actions-gh-pages@v4 84c30a85c19949d7eee79c4ff27748b70285e453 # v4.1.0
softprops/action-gh-release@v2 3bb12739c298aeb8a4eeaf626c5b8d85266b0e65 # v2.6.2
taiki-e/install-action@cargo-llvm-cov 3f7c3597aa4e6da3f315e128de702ce61e7b2877 # cargo-llvm-cov
taiki-e/install-action@nextest 7c48f0a661edab95fdc666d1526d9ef945205245 # nextest
actions/checkout@v7 in coverage.yml, aw-editor-tests.yml, and kani.yml 3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
actions/upload-artifact@v7 on the coverage XML upload, the coverage HTML upload, the editor report upload, and the four Kani report uploads cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
actions/download-artifact@v8 on the Codecov job and the HTML job in coverage.yml, and on the Codecov job in aw-editor-tests.yml 9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2

No new crate. cargo-llvm-cov 0.9.1 and kani-verifier 0.68.0 are version pins of tools those jobs already installed. The policy test imports yaml, which is PyYAML already present for python3 on the runner. This pull does not add a package.

Fixes #738
Fixes #745

Report

  1. Head SHA 151289cfeb0403575e8b25133247c0bf14360897. Required checks have not finished on this SHA, so this is not claimed green. On 00b91a7e, Gate passed and both archive Test jobs (Test (ubuntu, build archive) and Test (windows, build archive)) passed. This head still needs those jobs green. The branch is not behind main (9528369676941813bb294db5c01102b4c9cd36a1).
  2. Commands and exit codes, on this machine (rustc 1.89.0 (29483883e 2025-08-04), CPython with libyaml CSafeLoader):
    • python3 -m unittest scripts.ci.test_workflow_policy — exit 1. 152 tests, 151 passed, 1 failed, 434.151s. The failure is test_benchmark_alert_issue_runs_after_failed_regression_check because pwsh is not installed here. That test fails the same way on the base commit without pwsh. The runner image has pwsh. 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 ran cargo fmt --all --check and 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.
    • Serial one-edit sweep of the changed checker. Each edit was restored before the next. A timeout is not a kill. None timed out. 15 edits: 12 killed, 3 survived, 0 missed. Each edit ran the suite except the printable-name walk and the pwsh test (150 tests) in 4.3–5.8s, under a 180s cap.
      • Killed: dropping bool-name spelling identity; casefolding string keys; skipping with, env, and permissions in the duplicate walk; comparing producer contents with in; comparing job contents with in ("read", "none"); turning the unknown-key check into a no-op; casefolding the allowlist; dropping the editor-ci.yml job-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.
      • Survived, and ruled by deletion: restoring 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.
      • Survived, and ruled: dropping err or in least_privilege_permission_violations. load_workflow_yaml and _load_marked return (None, err) on YAMLError and (marked, None) on success. They never return a document together with an error. The not isinstance(doc, dict) arm already fires on a parse failure. err or stays.
      • Survived, and ruled: isinstance(job, dict) replaced with hasattr(job, "get") on the job permissions lookup. Of the types CSafeLoader builds (dict, including the marked dict, list, and scalars), only dict has .get. The isinstance check stays.
      • str.strip(" ") in place of str.strip() stays the accepted equivalent from the prior head. 11,120,640 names, 0 differences, 7.17s. The plain-producer name check is name == allowed. The first safe_load pass stays deleted.
    • History, by SHA. At fdb41cd0, Astraea (review 5855963437) ran 112: 106 killed, 6 survived. Astranox (review 5856166562) ran 84: 69 killed, 9 real, 3 message-only, 3 equivalent. At 00b91a7e, 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. At 6d9b1fa6 Astranox (review 5855501276) ran 110: 61 killed, 41 real, 2 message-only, 6 equivalent. At 156ee731 the 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. At c0121c4d, Astraea (review 5853769407) ran 36: 25 killed, 9 survived. Astranox (review 5853755359) ran 46: 38 killed. At 3788edd4 Astraea (review 5853273329) ran 63: 51 killed, 12 survived. Astranox (review 5853256149) ran 32: 29 killed, 3 equivalent or stricter. At 6d9b1fa6 Astraea (review 5854616521) ran 54: 51 killed, 2 real, 1 equivalent.
    • Heightmap. The cite stays heightmap.rs:152–153. new and from_data reject a resolution above 32769. Resolutions 0 and 1 are still accepted. sample_bilinear panics in the clamp at :147–148 for 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 edit heightmap.rs.
    • Sun count stays 235,475 of 240,000, max abs about 1.4e-6. MASTER_COVERAGE_REPORT.md now calls those sun-position tolerances absolute. docs/architecture/terrain.md no longer cites astraweave-render/src/terrain_gpu_bridge.rs. That file is not in the tree.
  3. Not run: 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), workspace cargo clippy (no Rust source changed; the terrain --lib --no-deps run is above), zizmor, and the 1660 Ti gpu_frame_budget capture. Required GitHub checks on this SHA have not run. cargo clippy -p astraweave-terrain --all-targets -- -D warnings was not used: it denies warnings in dependencies this pull does not change.
  4. Measurements: not measured. This machine has no GTX 1660 Ti.
  5. Replay hashes: unchanged. No hashed crate, no golden, and no target-cpu=native.
  6. Deferred issue links: none.

Locked-step killers. Each extra key keeps the canonical run text. Each extra run line keeps the canonical key set.

Step Extra key Extra run line with: or other
coverage install shell: bash echo extra
generate shell: bash echo extra
upload shell: bash on both producer uploads run: echo extra on both path: README.md; if-no-files-found: ignore
checkout shell: bash on kani.yml run: echo extra on kani.yml repository, ref, and token on coverage.yml, aw-editor-tests.yml, and kani.yml
kani timeout shell: bash second write to $GITHUB_OUTPUT env stays the one canonical variable
apt shell: bash echo extra
llvm-cov shell: bash echo TN: > lcov.info kind check: echo not-llvm-cov fails the prefix; return True and deleting the branch each fail that test
install-llvm shell: bash echo extra
producer permissions actions: read and pull-requests: read contents: none and permissions: {}

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.yml and in aw-editor-tests.yml is an exact ordered list of canonical steps, including Rust CI setup and Install Rust Toolchain with their with: and env. An inserted, removed, or reordered step fails. Leading whitespace on a run line fails. Trailing whitespace is trimmed. A duplicate key fails. defaults is absent. Workflow env is absent in coverage.yml and exactly the canonical map in aw-editor-tests.yml and kani.yml. Removing that map fails. Job env is absent. A custom shell, a working-directory, or an env map that is not that canonical map fails. The producer job's keys are exactly name, permissions, runs-on, timeout-minutes, and steps. runs-on is ubuntu-latest. timeout-minutes is 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 step env fails. The job id maps to a canonical entry whose args is a non-null string. An unmapped or renamed job id fails. A null args value does not compare equal to a missing entry. An unmapped job whose args is null fails the args check alone. Each of those four jobs has exactly the keys name, permissions, runs-on, timeout-minutes, and steps. runs-on is ubuntu-latest. timeout-minutes is 120 on kani-ecs, 60 on kani-math, 60 on kani-sdk, and 90 on kani-core. A job-level if: fails, and so do container:, services:, strategy:, environment:, outputs:, concurrency:, needs:, and snapshot:. A step if: or a step continue-on-error fails. A job-level continue-on-error fails. The summary job needs exactly those four job ids, in that order, and its if: is always(). The summary job's keys are exactly name, permissions, runs-on, timeout-minutes, needs, if, and steps. runs-on is ubuntu-latest. timeout-minutes is 10. Its steps are exactly Check Results, then Fail if any verification failed. A changed step, an extra step, or a job-level continue-on-error, container:, services:, strategy:, or environment: fails. Fail if any verification failed equals its canonical step, and that step is present once. That step's if: is true when any needed result is not success, so a skipped or cancelled job fails the gate. .github/actions/rust-ci-setup/action.yml runs.steps equals a canonical ordered list. Enable sccache has one RUSTC_WRAPPER= assignment. The toolchain default is 1.89.0. An extra step, including one that writes GITHUB_ENV, fails. The action's top-level keys are name, description, inputs, and runs. inputs are exactly toolchain, components, and install-nextest, with defaults 1.89.0, rustfmt,clippy, and false. runs.using is composite. An extra input, a changed default, an extra top-level key, or any other runs.using fails. Job coverage-html and the editor test job are each an exact ordered list of canonical steps. The Install cargo-tarpaulin step in coverage-html is that list's canonical install, including --version and --locked. coverage-html keys are exactly name, needs, permissions, runs-on, timeout-minutes, and steps. runs-on is ubuntu-latest. timeout-minutes is 45. A job-level if: or container: fails. The editor test job's keys are exactly name, permissions, runs-on, timeout-minutes, continue-on-error, strategy, and steps. Its permissions map is exactly contents: read. runs-on is ${{ matrix.os }}. timeout-minutes is 45. A job-level if: or container: fails. In those two workflows the only upload of coverage-xml or aw-editor-lcov is the producer job's report upload. No step sets overwrite. Every scanned upload name, in every workflow and composite, fails when str.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_name on 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 in coverage.yml and aw-editor-tests.yml. Elsewhere that name fails unless it is an exact member of the published artifact names. Those names are the eleven listed in docs/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. archive fails unless it is absent or true. A repeated key in an upload with: map fails, including a later case-variant. The check does not keep the first value or the last value. A sub-path of actions/upload-artifact, including merge, is the same upload, and that action-name compare ignores case. Every local uses: must exactly match ./.github/actions/rust-ci-setup or ./.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/workflows fails. Each of those two action files is shape-locked, and the locked action.yml must exist with no action.yaml beside 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 .yaml suffix and a different case. The job ids in coverage.yml are exactly coverage, codecov, and coverage-html. The job ids in aw-editor-tests.yml are exactly test, coverage, and codecov. External actions in each of those files are an exact allowlist of the actions that file uses. An overwrite key still fails on every scanned upload step. docs/architecture/ui.md cites the Miri list at docs/current/MIRI_VALIDATION_REPORT.md:18-21.

Case Result Test
custom shell on workflow defaults.run fails test_run_context_is_absent_or_canonical
working-directory on workflow defaults.run fails test_run_context_is_absent_or_canonical
workflow env extra binding fails test_run_context_is_absent_or_canonical
job defaults.run shell and working-directory fails test_run_context_is_absent_or_canonical
job env extra binding fails test_run_context_is_absent_or_canonical
setup step env, setup toolchain input fails test_setup_and_toolchain_steps_are_canonical
toolchain extra input, toolchain step env fails test_setup_and_toolchain_steps_are_canonical
Kani action step env fails test_kani_jobs_are_exact_ordered_lists
inserted step, reordered steps, removed upload fails test_kani_jobs_are_exact_ordered_lists
unmapped Kani job id fails test_unmapped_kani_job_id_fails
null args on a mapped job fails test_null_kani_args_fail_on_a_mapped_job
duplicate key fails test_duplicate_keys_leading_whitespace_and_second_timeout_fail
leading whitespace fails test_duplicate_keys_leading_whitespace_and_second_timeout_fail
trailing whitespace still equal test_duplicate_keys_leading_whitespace_and_second_timeout_fail
second timeout step fails test_duplicate_keys_leading_whitespace_and_second_timeout_fail
step if: fails; args check stays empty test_kani_conditions_fail_outside_the_args_check
job continue-on-error fails; args check stays empty test_kani_conditions_fail_outside_the_args_check
extra Kani job key, pinned runner, pinned timeout fails test_kani_job_keys_are_exact
summary needs, summary if:, fail step fails test_kani_summary_gate_is_canonical
job if: with a summary edit fails both checks test_job_if_with_summary_edit_fails
unmapped Kani job, null args fails the args check alone test_unmapped_kani_job_with_null_args_fails_dispatch
trailing Kani step fails the length check test_trailing_kani_step_fails_the_length_check
rust-ci-setup extra step, second RUSTC_WRAPPER line, toolchain default fails test_rust_ci_setup_steps_are_canonical
coverage-html trailing step, unpinned install fails test_coverage_html_and_editor_test_steps_are_canonical
editor test trailing step fails test_coverage_html_and_editor_test_steps_are_canonical
second upload of the pinned report name fails test_pinned_report_upload_and_overwrite_are_rejected
overwrite fails test_pinned_report_upload_and_overwrite_are_rejected
summary extra key, runner, timeout, extra step, changed Check Results fails test_kani_summary_job_shape_is_exact
reordered summary needs fails test_kani_summary_needs_order_is_significant
second summary fail step fails the count test_second_summary_fail_step_fails_the_count
Codecov upload runner and timeout fails test_codecov_upload_runner_is_pinned
rust-ci-setup inputs, runs.using, top-level keys fails test_rust_ci_setup_action_shape_is_exact
coverage-html and editor test job if:, container:, runner, timeout fails test_coverage_html_and_editor_test_job_shape_are_exact
missing canonical workflow env fails test_workflow_env_must_be_present_where_canonical
step-level overwrite, missing producer upload fails test_step_level_overwrite_and_missing_upload_are_rejected
expression report name, composite upload, reusable workflow fails test_pinned_report_names_reject_expressions_and_other_files
missing Kani job, non-list summary needs fails test_mapped_kani_jobs_must_be_present, test_summary_needs_must_be_the_list
duplicate job key fails test_duplicate_job_keys_fail_closed
trimmed, cased, unclosed, or merge upload name fails test_upload_name_trim_case_archive_and_subpath
editor strategy os list fails test_editor_test_strategy_is_exact
coverage-html needs and permissions fails test_coverage_html_needs_and_permissions_are_exact
caller-only local composite or reusable workflow fails test_caller_only_composite_must_resolve, test_caller_only_reusable_workflow_must_resolve
sibling local action path fails test_local_action_paths_are_allowlisted
rust-nightly runs.using fails test_rust_nightly_shape_is_locked
composite outside the scan roots, SHA-pinned reusable workflow fails test_outside_composite_and_external_reusable_workflow_fail
directory under .github/workflows fails test_workflow_directory_action_is_not_allowlisted
parent segment in a local uses: fails test_parent_segment_local_use_is_rejected
reusable .yaml and case-variant workflow fails test_reusable_workflow_yaml_and_case_are_required
repeated upload with: key fails test_upload_with_duplicate_keys_fail_closed
case-variant upload action name fails test_upload_action_name_casefold_is_required
published expression artifact name allowed test_published_expression_artifact_names_are_exact
upload name outside printable ASCII, including both edges of U+0085 and U+00A0 fails test_upload_name_form_fails_closed
unspaced ${{ name fails test_unspaced_expression_names_fail_closed
published ${{ name in the two coverage workflows fails test_coverage_workflows_reject_every_expression_name
missing rust-ci-setup action.yml or action.yaml sibling fails test_rust_ci_setup_action_file_must_exist_without_yaml_sibling
coverage job id or external action set fails test_coverage_job_and_action_allowlists_are_exact
missing locked action.yml or action.yaml sibling fails test_locked_action_file_must_exist_without_yaml_sibling
editor test permission case, padding, a quoted value other than read or none, or an expression fails test_editor_test_permissions_are_an_exact_map
editor test permissions other than exactly contents: read fails test_editor_test_permissions_are_an_exact_map
upload name with a scalar outside 0x20–0x7E on either edge or in the middle of either pinned name fails test_printable_name_range_is_pinned
case-variant permission key, quoted case-variant key, or both together fails the exact map test_editor_test_permissions_are_an_exact_map
repeated contents key, write then read and read then read, on the editor test job fails the exact map test_editor_test_permissions_are_an_exact_map
id-token: write on the editor test job fails; not the upload-job exception test_editor_test_permissions_are_an_exact_map
id-token: WRITE on the editor test job write message test_editor_test_permissions_are_an_exact_map
mapping read-all, true, null, ~, and [read] level message test_editor_test_permissions_are_an_exact_map
repeated contents key, write then read and read then read, on the coverage producer job and coverage-html fails the exact map test_permission_scalar_duplicate_and_top_level_arms_are_pinned
job-level and top-level WRITE, padded write, and WRITE-ALL, on the upload job and on a non-upload job write message test_permission_scalar_duplicate_and_top_level_arms_are_pinned
top-level read-all, including case and padding top-level message test_permission_scalar_duplicate_and_top_level_arms_are_pinned
job-level scalar read and bool top-level message test_permission_scalar_duplicate_and_top_level_arms_are_pinned
id-token: WRITE on the upload job and on the coverage producer job write message test_permission_scalar_duplicate_and_top_level_arms_are_pinned
space or ~ in the middle of a pinned name allowed test_printable_name_range_is_pinned
top-level contents: read, contents: none, [], and true top-level message only test_permission_scalar_duplicate_and_top_level_arms_are_pinned
upload-job ID-TOKEN: write write message test_permission_scalar_duplicate_and_top_level_arms_are_pinned
repeated upload-map key whose last value is canonical, both coverage workflows fails the upload map test_repeated_permission_keys_whose_last_value_is_canonical_fail
repeated workflow permissions key whose last value is {}, on coverage.yml, aw-editor-tests.yml, kani.yml, and editor-ci.yml top-level message test_repeated_permission_keys_whose_last_value_is_canonical_fail
repeated job permissions key whose last value is contents: read, on kani.yml and editor-ci.yml job contents message test_repeated_permission_keys_whose_last_value_is_canonical_fail
repeated workflow key other than permissions (on and name on all four files, env where that key already exists) top-level message, and the repeated-key message from the scan test_root_and_job_permission_shapes_are_exact
repeated job permissions key whose last map is contents: read, on kani-ecs and editor-ci job contents message test_root_and_job_permission_shapes_are_exact
extra id-token: write, contents: READ, and contents: 'read ' on kani-ecs and editor-ci job contents message test_root_and_job_permission_shapes_are_exact
producer archive: false archive message, then the pinned-report message twice test_producer_archive_and_action_name_pin_the_report
producer actions/upload-artifact/merge pinned-report message twice test_producer_archive_and_action_name_pin_the_report
quoted, single-quoted, and tagged trigger key beside a bare trigger key, on the four locked files repeated-key message test_bool_name_trigger_spellings_are_one_key
one bare trigger key passes test_bool_name_trigger_spellings_are_one_key
root key of a different case, on the four locked files and ci.yml unknown-key message test_case_variant_keys_fail_on_every_surface
job key of a different case on ci.yml jobs changes, gate, and test-linux-build unknown-key message test_case_variant_keys_fail_on_every_surface
step key of a different case on editor-ci.yml and ci.yml unknown-key message, not a repeated key test_case_variant_keys_fail_on_every_surface
editor-ci job id renamed job-id message test_case_variant_keys_fail_on_every_surface
FOO and foo in one env map passes test_env_names_are_case_sensitive
repeated with, step env, and permissions key on ci.yml exact repeated-key line test_duplicate_walk_reaches_with_env_and_permissions
producer contents value re, r, or empty producer message and level message test_producer_contents_value_is_exact
job contents: none on kani-ecs and editor-ci job contents message test_root_and_job_permission_shapes_are_exact
null editor-ci job key-set message and job contents message test_null_editor_ci_job_reports_both_messages

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Security enhancement

Security Considerations

  • Does this PR introduce new dependencies? If yes, have they been vetted for security issues?
  • Does this PR modify how user input is handled? If yes, has it been validated/sanitized?
  • Does this PR change authentication or authorization mechanisms?
  • Does this PR access sensitive data or modify how it's stored?
  • Does this PR introduce new network communication or modify existing protocols?

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: write on the upload job only. That job's permissions are exactly contents: read and id-token: write. It does not set actions: read. Top-level permissions stay empty. The Kani dispatch timeout is type: number, then allowlisted to 60, 120, 300, 600, or 900, before it reaches the action args. command is cargo-kani and working-directory is ..

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I have checked my code and corrected any misspellings
  • I have run security checks (cargo audit, cargo deny) locally
Open in Web Open in Cursor 

cursoragent and others added 2 commits November 10, 2026 00:58
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>
@coderabbitai

coderabbitai Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-10T01:00:02.260686Z 2d94ba5 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

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>

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

  1. Head 2d94ba5766e94135956dfeb7e807fe9f86bdba20. Deny passed. Not green.
  2. python3 -m unittest of the three new policy tests, exit 0. Full scripts/ci/test_workflow_policy.py reports 42 tests and 1 failure: test_benchmark_alert_issue_runs_after_failed_regression_check (pwsh is absent). That test does not read these files. gpg --verify of the v11.3.2 linux SHA256SUM.sig, exit 0. sha256sum of the linux CLI matches the signed checksum. bash scripts/ci/player_facing_names.sh, exit 0 (28 files).
  3. 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.
  4. Measurements: not measured.
  5. Replay hashes: expected unchanged. determinism-replay hash jobs were pending on this SHA.
  6. Deferred issue links: none.
Open in Web View Automation 

Sent by Cursor Automation: ASTRA PR AUDIT AGENT

Comment thread scripts/ci/test_workflow_policy.py Resolved

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

  1. Head 0742971c8b756626c95b77f3c868b1daaffae682. Not green. Security Audit run 42732909282 was queued again on this SHA.
  2. The four new policy tests, exit 0. gpg --verify of the v11.3.2 linux checksum signature, exit 0. sha256sum of that CLI matches the signed checksum. bash scripts/ci/player_facing_names.sh, exit 0 (28 files).
  3. 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.
  4. Measurements: not measured.
  5. Replay hashes: expected unchanged. Hash jobs were pending.
  6. Deferred issue links: none.
Open in Web View Automation 

Sent by Cursor Automation: ASTRA PR AUDIT AGENT

Comment thread .github/workflows/coverage.yml Resolved

@lazyxeon lazyxeon left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.2 and CODECOV_TOKEN through env.
  • Both workflows set permissions: {}, and each job gets contents: read.
  • continue-on-error is gone from both upload steps and from the coverage.yml job.

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 7c48f0a6 and cargo-llvm-cov 3f7c3597
  • rust-toolchain branch 1.89.0 599c45df and branch master 683b588c

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:

  1. scripts/ci/test_workflow_policy.py:121-123 (_REMOTE_ACTION_RE): the scanner doesn't match every valid YAML form of a uses: value, so an unpinned third-party ref can still pass test_third_party_actions_are_commit_pinned. Fix: accept an optional matching quote around the value (and exclude quotes from ref), then add a mutant for that form.
  2. scripts/ci/test_workflow_policy.py:193-203 (codecov_fail_ci_violations), for .github/workflows/coverage.yml:45 and aw-editor-tests.yml:140: nothing locks the CLI pin. Deleting version: v11.3.2 passes all 43 tests, and the action then falls back to latest. Fix: require each codecov/codecov-action step to set version: to an exact vX.Y.Z, and add a removal mutant. This is the open cursor[bot] thread on coverage.yml:45.
  3. .github/workflows/aw-editor-tests.yml:131: continue-on-error: true on Generate Coverage Report makes if: success() at :135 always 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: true to 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). :1154 then needs updating.
  4. .github/workflows/aw-editor-tests.yml:126: cargo install cargo-llvm-cov has no version and no --locked, in the job that now handles CODECOV_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 pinned taiki-e/install-action@3f7c3597aa4e6da3f315e128de702ce61e7b2877 # cargo-llvm-cov with an explicit version, or cargo install cargo-llvm-cov --version <x.y.z> --locked, matching tarpaulin in coverage.yml.

Non-blocking:

  • The policy also doesn't lock CODECOV_TOKEN wiring or permissions: {} on these two workflows. Removing either passes. Consider adding both to the same test.
  • The scorecard image tag and kani kani-version: latest inside the pinned commits are still unfrozen, as cursor[bot] noted. That's the same as before this PR.
  • The pre-existing continue-on-error in 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.py passes 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_error set false, quoted false, or removed
    • job- and step-level continue-on-error in 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.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-action with an empty version calls repos.getLatestRelease on mozilla/sccache. Latest is still v0.19.0 (2026-10-24). The macOS hash job installed hostedtoolcache/sccache/0.19.0/arm64. The action SHA does not freeze that binary.
  • kani-github-action at the pinned commit still uses: dtolnay/rust-toolchain@stable and defaults kani-version to latest.
  • Editor job coverage still sets continue-on-error: true on Generate Coverage Report, and the upload step's if: success() stays true after that. A llvm-cov failure that still writes lcov.info uploads and leaves the job green. The pull body already says that step is outside the Codecov check.
  • codecov.sh still evals CC_TOKEN. The token path is the one coverage.yml already used.

Report

  1. 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 run 42732908706 job 129555201573 failed. Ubuntu and Windows hash jobs were still pending. Not green.
  2. Commands: python3 -m unittest on 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 against third_party_action_pin_violations and codecov_fail_ci_violations.
  3. Not run: run-gate.sh, run-tests.sh, cargo test -p astraweave-core --test replay_hash locally, aw_doc_lint, trace sync. The diff has no hashed crate, no Cargo.lock, and no determinism-replay.yml. 1660 Ti capture was not measured.
  4. Measurements: not measured.
  5. Replay hashes: no golden edit. The macOS hash step installed rustc 1.89.0 (29483883e 2025-08-04) and then cargo test -p astraweave-core --test replay_hash exited 101 on sccache rustc -vV (Timed out waiting for server startup, same job's rust-cache restore was ENOTFOUND). No hash was computed. Expected unchanged.
  6. Deferred issue links: none.
Open in Web View Automation 

Sent by Cursor Automation: ASTRA PR AUDIT AGENT

Comment thread .github/workflows/coverage.yml Resolved
Comment thread .github/workflows/aw-editor-tests.yml Resolved
Comment thread scripts/ci/test_workflow_policy.py Resolved
Comment thread scripts/ci/test_workflow_policy.py Resolved

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-header with actions/upload-artifact cf430e03 (v7.0.2), 890 bytes, artifact 13723434404
  • saved the Swatinem cache, 377654064 bytes, post step success
  • ran sccache 0.19.0 with effective_cache_mode ReadWrite (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.

Open in Web View Automation 

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>

Copy link
Copy Markdown
Owner Author

Devastation at 0742971c: BLOCKED. 3 findings, in #738.

  1. CODECOV_TOKEN is unset, so both uploads already fail on main. This PR stops swallowing that failure, so coverage workflows go red after merge. Preferred fix: use_oidc: true plus job-level id-token: write, or the owner sets the secret.
  2. Low: the pin check still lets quoted uses: and >- block scalars through.
  3. Low: two doc claims in CI_ARCHITECTURE.md are stale or overstated (actionlint 1.7.7 "no findings", the policy sentence).

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 cd3f8ada. I'll run an incremental pass on the newest head once a review slot frees.

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>

Copy link
Copy Markdown
Owner Author

Devastation incremental at b21db56c: BLOCKED. #738 and all 5 ruling items are fixed. 4 new lows are filed in #740. The pin and permission policy checks are regex-based, and valid YAML shapes get past them, so they should parse the YAML instead. There are also 2 pre-existing lows in touched files, kani.yml and editor-ci.yml, which I've ruled in scope. #738 can close once this PR merges.

@lazyxeon lazyxeon left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blocking at b21db56c1b82283df1cd11577867af6181b81dcf.

This is a re-review from 5835175841 at 0742971c, covering cd3f8ada and b21db56c. All 4 of my items are fixed:

  1. Quoted and block-scalar uses: values are normalized before the pin and major-tag checks, with mutants.
  2. Each Codecov step must set an exact version: vX.Y.Z.
  3. aw-editor-tests.yml's Generate Coverage Report step no longer sets continue-on-error. The sibling-step exemption is gone, so any continue-on-error in a Codecov job is now rejected. Both uploads set disable_search: true with an explicit files:.
  4. 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.yml uses tool: cargo-llvm-cov@0.9.1, and every Kani step sets kani-version: 0.68.0, an existing upstream tag.

Annubis's 5 rulings are present.

OIDC:

  • id-token: write is set only on the job that runs Codecov in each workflow, and top-level permissions stay {}.
  • Neither workflow triggers on pull_request or pull_request_target, and test_heavy_tier_is_not_on_pull_request locks 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_TOKEN is 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):

  1. scripts/ci/test_workflow_policy.py:385-393 (codecov_oidc_violations): "no token reintroduced" is only a text check for CODECOV_TOKEN in the two files. A Codecov step that passes a token: input from a differently named secret passes all 51 tests. Fix: reject a token: key under with:, and any secrets. reference in a Codecov step's with: or env:. Add a mutant for each.
  2. scripts/ci/test_workflow_policy.py:193+ (codecov_fail_ci_violations) still scans the whole step for fail_ci_if_error, not just its with: mapping. This is the open cursor[bot] thread 4519998403. Fix: read the key only from with:, which _mapping_body(block, "with") already does for use_oidc. Do the same for version, disable_search and files, and add a mutant that places the key outside with:. The YAML parse for #740 can cover this.
  3. #738 isn't closed by this PR, because neither the PR body nor the commits contain a closing keyword. Fix: add Fixes #738 to 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-wide id-token scope is not a finding. A separate upload-only job would narrow it further.
  • llvm_cov_pin_violations checks single-line cargo install only. 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.py passes 51/51.
  • actionlint 1.7.12 reports only the 2 pre-existing gpu label 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_error scope) is still open. It sits on the outdated 0742971c diff.
  • 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 b21db56c yet; 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 lazyxeon left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

  1. docs/current/CI_ARCHITECTURE.md:104 and the PR body permissions paragraph. These say the policy test rejects write-all or any other permission value write on coverage.yml and aw-editor-tests.yml, and that a Codecov job must set id-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-level permissions: {}, 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-level permissions: {}, or narrow both sentences so they only claim the block-mapping entries _permission_sites reads, and say a missing top-level permissions: {} 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.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

  1. Head b21db56c1b82283df1cd11577867af6181b81dcf. Deny passed. Not green.
  2. python3 -m unittest scripts.ci.test_workflow_policy.WorkflowPolicyTest, exit 1. 51 tests, 50 passed. The failure is test_benchmark_alert_issue_runs_after_failed_regression_check (pwsh is 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, via gh api commits.
  3. 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. actionlint is not installed here. The 1660 Ti capture was not run.
  4. Measurements: not measured.
  5. Replay hashes: expected unchanged. determinism-replay.yml matches 604d35d1. Hash jobs on this SHA were pending.
  6. Deferred issue links: none.
Open in Web View Automation 

Sent by Cursor Automation: ASTRA PR AUDIT AGENT

Comment thread scripts/ci/test_workflow_policy.py Resolved
Comment thread scripts/ci/test_workflow_policy.py Resolved
Comment thread scripts/ci/test_workflow_policy.py Resolved
Comment thread scripts/ci/test_workflow_policy.py Resolved
Comment thread scripts/ci/test_workflow_policy.py Resolved
Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
Comment thread .github/workflows/coverage.yml Fixed
Comment thread .github/workflows/coverage.yml Fixed

@lazyxeon lazyxeon left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-all at either level, read-all or a non-empty top-level map, a null or removed top-level permissions, an extra write on the upload job, id-token: write on the generation job or the editor test job, and a missing id-token: write on the upload job all fail. Line 104 now says what the checker enforces for these two files.
  • L3 holds. Both workflows generate under contents: read and upload the report as an artifact. A separate codecov job (needs: the generator) runs only actions/download-artifact and the pinned action, and it alone holds id-token: write. Build, test, tarpaulin and llvm-cov steps never hold it. CI_ARCHITECTURE.md:62 and the body describe this correctly. continue-on-error on the generator (via needs:) 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 from with:, and the same key on the step or under env: fails. A token key under with: or env: and a secrets. reference in the step also fail (Astraea item 1, cursor[bot] 4520215724).
  • kani.yml and editor-ci.yml set top-level permissions: {} and exactly contents: read on every job (6 jobs). Removing or widening either fails. The timeout input is type: number, default 300. All four jobs read it through env:, allowlist 60/120/300/600/900 with a case, and pass steps.timeout.outputs.value to args, as the docs say.
  • Fixes #738 is in the body (Astraea item 3, my earlier note). The Security checklist no longer ticks "new dependencies".
  • Pins. I ran git ls-remote again for every pin. Each one resolves to the stated commit: the codecov tag object 23209167… peels to 303a32d7, 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 branches 1.89.0 and master, kani branch v1, and the install-action cargo-llvm-cov and nextest refs. Those last two are tags, not branches. 683b588c is used only by rust-ci-setup, rust-nightly and toolchain-management, and the older d77020bf and 6323deb1 pins are still in place. No uses: is @stable.
  • The continue-on-error table and the "no key" list match the parsed workflows exactly.
  • Tests and lint. python3 scripts/ci/test_workflow_policy.py passes 56/56, including the pwsh test. actionlint 1.7.12 is clean on the four named files. Across all workflows it reports only the two gpu label findings, and the base 604d35d1 has the same two. The parsed-uses shapes 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

  1. docs/current/CI_ARCHITECTURE.md:104 makes the upload-only rule sound global. It says "The action is allowed only in a job whose steps are actions/checkout or actions/download-artifact plus the SHA-pinned Codecov action, and that job must set id-token: write." That sentence comes before the "On coverage.yml and aw-editor-tests.yml" sentence, so it reads as repo-wide. coverage_permission_violations returns [] for any other file name. A Codecov step in a non-upload job holding id-token: write in 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 and id-token rules 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.

  2. CI_ARCHITECTURE.md:104 and the body's Codecov input sentences claim more than the checker enforces. The affected sentences are "must set fail_ci_if_error to true … disable_search to true … use_oidc to true" and "A token key, a CODECOV_TOKEN key, and any secrets. 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. At 303a32d7, CC_FAIL_ON_ERROR, CC_USE_OIDC and INPUT_USE_OIDC are compared literally to 'true'. This matters most for fail_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 secrets context reference written another way passes. It also skips job-level and workflow-level env:, 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 secrets context reference in the Codecov step and in the job and workflow env:, and match the action name case-insensitively. Add a mutant for each class, then narrow or keep the sentences to match.

  3. Two pin sentences in CI_ARCHITECTURE.md:104 and the body are still per-line regex, with one cursor[bot] thread open. The sentences are "Every Kani step must set kani-version to an exact X.Y.Z" and "cargo install cargo-llvm-cov must pass --version X.Y.Z and --locked, and an install-action step that installs it must set tool: cargo-llvm-cov@X.Y.Z."

    • kani_version_violations accepts the key anywhere in the step, not only under with:. cursor[bot] reported this in 5835555384. The action default is latest.
    • llvm_cov_pin_violations still checks one line at a time and accepts tool outside with:. cursor[bot] thread 4520215743 is open, and every case it lists still passes at this head.

    Fix: read kani-version and tool from the parsed with: only, check the whole run script for cargo install of cargo-llvm-cov (every occurrence pinned), and add the thread's cases as mutants. Or narrow both sentences.

  4. The body's "actions: read is the download scope" is not accurate. Upstream actions/download-artifact (README at 9000827c, which is v8) downloads artifacts from the current run with the runtime token. actions: read is only needed with a github-token for another run or repository, and neither upload job does that. The scope also sits on the one job that holds id-token: write. Fix: drop actions: read from both codecov jobs (and contents: read too, unless the CLI needs it; there is no checkout) and update CI_ARCHITECTURE.md:62 and the body. Or cite why the scope is needed. This is a code change, so it needs Astraea's ruling.

  5. 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@v7 and actions/download-artifact@v8 lines (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 pins actions/checkout@3d3c42e5…, actions/upload-artifact@cf430e03… and actions/download-artifact@9000827c… by SHA elsewhere. If the four lines are SHA-pinned, "the five pinned actions/* names stay on the major-tag rule" in CI_ARCHITECTURE.md:104 and the body needs a matching update. Annubis and Astraea own this ruling.

Non-blocking

  • test_kani_timeout_input_is_a_number covers only one way of reading the dispatch input in Kani args. The body sentence is literally true, but the #740 P2 guard is narrower than it looks. Suggest rejecting any input-context reference in the Kani args.
  • The upload-only rule checks steps only. Job-level execution surfaces such as container: and services: on the codecov job 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 codecov job checks out the repo. The policy allows a checkout, and disable_search plus an explicit files: should be enough. Please watch the first main run, which the body already flags, for CLI git-metadata errors: with fail_ci_if_error: true they would turn the job red.
  • kani.yml's crates dispatch input is declared but never read. This is pre-existing and not in this diff.
  • The Coverage row at CI_ARCHITECTURE.md:62 now also covers the llvm-cov pin, the Kani version and the kani.yml/editor-ci.yml permissions. Those would read better in their own rows.
  • Still stale on main, outside this diff: docs/src/dev/testing.md:529-553 (a sample coverage.yml on pull_request with an old action and a token), and docs/current/BULLETPROOF_VALIDATION_PLAN.md:404 (lists coverage.yml as 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.

Copy link
Copy Markdown
Owner Author

Devastation incremental at 32707f61: BLOCKED. #740 is fixed, and #740 can close when this merges. The policy test has 3 lows left, in #741: the continue-on-error check still matches text, codecov detection is case-sensitive, and codecov inputs and env aren't allowlisted. The workflows themselves are clean.

@lazyxeon lazyxeon left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blocking at 32707f61c3f14bc1a129d490c26c541f6b9fa108.

This is a re-review from 5835447188, diffed from b21db56c. My 3 items are fixed:

  1. N7: a token key, a CODECOV_TOKEN key, and any secrets. reference in a Codecov step now fail, whatever the secret is called.
  2. X2: fail_ci_if_error, version, disable_search, files and use_oidc are read only from the parsed with: mapping. The same key on the step or under env: fails.
  3. Fixes #738 is 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):

  1. scripts/ci/test_workflow_policy.py:390-410 (_is_upload_only): only the action name of a download-artifact (or checkout) step is checked, not its with:. A download step that adds the cross-run inputs (github-token, run-id, repository) still counts as upload-only, so the id-token job could take its report from another workflow run. That crosses the trust boundary L3 is meant to keep. Fix: allow only name and path on the download step (and drop checkout, as #741 suggests, or allow it no inputs), and add a mutant for each cross-run input.
  2. Same function, job level: job keys aren't checked, so an upload-only job that adds container: or services: still passes, and that runs an outside image in the id-token job. Fix: allowlist the upload job's keys (name, needs, permissions, runs-on, timeout-minutes, steps, plus if/env only if you need them and they're checked), and add a container: mutant.
  3. scripts/ci/test_workflow_policy.py:413-434 and :727-736: the upload job's permissions aren't an exact set. Only write values are rejected, so extra read scopes pass. Fix: once actions: read is dropped per 5835737206, require the upload job's parsed permissions to equal exactly {id-token: write} (or {contents: read, id-token: write} if you keep contents), and add an extra-scope mutant.
  4. scripts/ci/test_workflow_policy.py:889-901 (has_pull_request), used by test_heavy_tier_is_not_on_pull_request (:1304): the "not on pull requests" lock for coverage.yml and aw-editor-tests.yml is still a line regex. It misses pull_request_target, workflow_run, and a flow-sequence on: that lists pull_request. Each one still passes all 56 tests. That lock is what keeps these id-token workflows off untrusted triggers. Fix: parse on (PyYAML loads the bare key as True) and, for the two Codecov workflows, allow only push, schedule and workflow_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 parsed if check 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_dispatch run of coverage.yml on 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.py passes 56/56.
  • actionlint 1.7.12 is clean on the 4 changed workflows. On all workflows it reports only the 2 pre-existing gpu label 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 run step, local action, generation or editor job with id-token, id-token removed, contents: write, job- or workflow-level CODECOV_TOKEN, below-floor or branch artifact refs, continue-on-error on the needed job or the artifact step, a pull_request trigger) and Kani or editor-ci (top or job permissions removed or widened, write-all, timeout type, default, allowlist, args reading 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-form on:, 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 32707f61 yet. Its latest is 5835555384 at b21db56c.
  • 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>

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

  1. Head 32707f61c3f14bc1a129d490c26c541f6b9fa108. Deny passed. cargo-audit passed. Not green.
  2. python3 -m unittest scripts.ci.test_workflow_policy, exit 1. 56 tests, 55 passed. The failure is test_benchmark_alert_issue_runs_after_failed_regression_check (pwsh is 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.
  3. Not run: run-gate.sh, run-tests.sh, cargo test -p astraweave-core --test replay_hash locally, aw_doc_lint, actionlint. No hashed crate and no architecture-trace edit. actionlint is not installed here. The 1660 Ti capture was not run.
  4. Measurements: not measured.
  5. Replay hashes: expected unchanged. determinism-replay.yml matches 604d35d1. hash succeeded on ubuntu-latest, windows-latest, and macos-latest. compare was queued.
  6. Deferred issue links: none.
Open in Web View Automation 

Sent by Cursor Automation: ASTRA PR AUDIT AGENT

Comment thread .github/workflows/coverage.yml Resolved
Comment thread scripts/ci/test_workflow_policy.py Resolved
Comment thread scripts/ci/test_workflow_policy.py Resolved
Comment thread scripts/ci/test_workflow_policy.py Resolved
Comment thread scripts/ci/test_workflow_policy.py Resolved
Comment thread scripts/ci/test_workflow_policy.py Resolved
Comment thread scripts/ci/test_workflow_policy.py Resolved
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>
@cursor

cursor Bot commented Nov 11, 2026

Copy link
Copy Markdown

On review #734 (review): the editor test job's permissions map is exactly contents: read. Any permission value that is not exactly read or none fails, including a different case, padding, quotes, and an expression such as ${{ 'write' }}. id-token may be exactly write on the upload job only. Head c0121c4d4.

Copy link
Copy Markdown
Owner Author

Devastation: BLOCKED @ c0121c4 (incremental from 3788edd). Every item is LOW and blocking. This is checker hygiene, not a live grant.

  1. Editor test permission keys have no case-variant killer. Casefolding the keys in _producer_permissions_exact (test_workflow_policy.py:1787) leaves the suite green, and a case-variant contents: read key then passes. Keep the compare case-sensitive. Add rows to test_editor_test_permissions_are_an_exact_map for a case-variant key and a quoted case-variant key, both expecting EDITOR_TEST_PERMISSIONS_MSG.
  2. The top-level read-all string on coverage.yml has no killer. This was already present at PREV. An exemption for it in the top-level branch (around :1941) survives. Add a read-all row (plus case and padding variants) expecting TOP_PERMISSIONS_MSG.
  3. The body sweep record still says 0 real survivors. It should say 2 at this head (items 1 and 2). Re-sweep at the final head.

These are fixed: the upload-name range, now pinned by test_printable_name_range_is_pinned (it kills the denylist, the five exemptions and both edges), and every cite. Every value-spelling class fails closed with a killer. The suite passed 136/136 with pwsh. YAML fuzz found no fail-open. CI is not yet green (9 jobs in progress).

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

  1. 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-replay hash jobs are still running. Not green.
  2. 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.yml read at 599c45df and 683b588c.
  3. Not run: the full local policy suite. Gate on this SHA already runs python3 scripts/ci/test_workflow_policy.py and 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.
  4. Measurements: not measured.
  5. Replay hashes: unchanged on the three Replay hash jobs. The determinism-replay hash jobs are still running. Compare has not started.
  6. 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.

Open in Web View Automation 

Sent by Cursor Automation: ASTRA PR AUDIT AGENT

Comment thread docs/current/MASTER_COVERAGE_REPORT.md Resolved

@lazyxeon lazyxeon left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

  1. 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 :335 still cites environment.rs:61 for the azimuth sign inversion in get_sun_position. At this head :61 is the sun-angle offset (current_time - 6.0). The azimuth subtraction (current_time - 12.0) is :63. The file shifted by two lines when :67 became :69, and :61 shifted with it. Annubis's 6786657196 says every cite is fixed. This one line isn't. Fix: retarget :335 to environment.rs:63.

  2. The new range sentence in CI_ARCHITECTURE.md :62 and :104 names 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 on other.yml." There is no other.yml under .github/workflows. It's the fixture path in test_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, :104 says a permission value fails when it isn't exactly read or none, "including a different case, padding, quotes, or an expression". A quoted 'read' or "read" is accepted, which is correct, because the parsed value is read. Say "a quoted value other than read or none" so the sentence doesn't read as rejecting every quoted value.

  3. 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 no id-token row. That case is asserted in test_coverage_write_permission_mutants_are_rejected (:4398–:4415). Fix: add the row, or drop the sentence and name the test that covers it.

  4. 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 test job. The second is the top-level read-all string on coverage.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.

  5. 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 test job 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.

  6. Message claims the suite doesn't pin (for Annubis to rule). The coverage_permission_violations docstring (: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 the id-token key) 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.

  7. 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 3788edd4 and 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.

  8. 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_rejected on 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 at 3788edd4.
  • Permission-spelling class (my item 2, Astraea item 4, cursor 5853006840, Annubis's spelling ruling). _permission_value_violations (:595–:622) accepts only exactly read or none, plus id-token: write on the upload job. Anything else reports the write message or PERMISSION_LEVEL_MSG. The editor test job's map must equal contents: 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, and none. 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, adding write to the exact set, dropping none, dropping write-all, allowing id-token: write on any job, dropping the editor exact check, mis-lining it, and dropping the key-set compare. Every spelling I probed fails closed on the editor test job, the producer job, coverage-html and the upload job. Astrix replied to 5853006840 in 6786486341. The doc and body sentences at :104 and 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:190 and :344 now cite hello_companion/Cargo.toml:30 (the optional astraweave-ui dep), :61 (its entry in visual) and :56-73 (the visual feature). chat_ui.rs:109 takes &egui::Context, and hello_companion/src/ has no astraweave_ui, UiLayer, HudManager, MenuManager or draw_ui hit. 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's MIRI_VALIDATION_REPORT.md:18-21 cite (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-setup or rust-nightly from the locked-file loop, and or → 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-only needs; and dropping the form check outside the producer files (the repo-wide scope). The dead expression walk is still gone. :62, :104 and the docstrings still state the repo-wide name rule and the needs wording.
  • 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 hash on all three OSes, and hash (ubuntu-latest).
  • Skipped (12), neutral (1, Scorecard), failed (0).
  • Still running (5): Test (ubuntu, build archive), Test (windows, build archive), greybox, and hash on 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 lazyxeon left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_rejected is still the 0x20–0x7E range. test_printable_name_range_is_pinned walks 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 test job's permissions map is exactly contents: read. test_editor_test_permissions_are_an_exact_map kills case, padding, quotes, an expression, READ, extra scopes, and none. Mapping-value strip/casefold drop, adding write to 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:190 and :344 now cite examples/hello_companion/Cargo.toml:30,61 and :56-73. MASTER_COVERAGE_REPORT.md now cites environment.rs:69 and renderer.rs:6950 for 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

  1. 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. Dropping strip or casefold on the scalar job-level or top-level permissions: arms leaves 136/136 green. So does treating read-all as a write level, treating a non-string YAML value as read, 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 exact read/none rule, 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.
  2. 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 at 3788edd4). 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.
  3. Stale descriptions in the touched coverage report. docs/current/MASTER_COVERAGE_REPORT.md:335 cites environment.rs:61 as an azimuth-sign inversion; that - is the sunrise offset, and azimuth is :63. :338 cites biome_transition.rs:96 as a t=1.0 boundary; that < is t < 0.5 in EaseInOut. cursor[bot] opened 4533874333 on the :61 sentence; it has no reply. Fix: retarget each description to the current line and claim, and reply.
  4. 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-all as a mapping and as a scalar, YAML bools and null, duplicate keys, and flow maps, plus live baselines. Production rejects those inputs except the exact contents: read map, 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>

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

  1. Head SHA 156ee731. Not green.
  2. 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 except git/ref/tags/v1 on the Kani repo, which is a branch.
  3. 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.
  4. Measurements: not measured. GPU not measured.
  5. Replay hashes: expected unchanged. Ubuntu determinism-replay hash passed. macOS and Windows hash still running. Compare has not started.
  6. 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.

Open in Web View Automation 

Sent by Cursor Automation: ASTRA PR AUDIT AGENT

Comment thread scripts/ci/test_workflow_policy.py Resolved
Comment thread scripts/ci/test_workflow_policy.py Resolved

Copy link
Copy Markdown
Owner Author

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 read-all killer, the Q1 duplicate-key rows (editor test, coverage, coverage-html), the Q3a–d write-message and non-string pins, the 5853769407 spelling arms, the Q2 helper equality, Astranox's docs items, and thread 4533874333. The policy suite passes 137 tests. actionlint shows only the pre-existing gpu label findings.

Open:

  1. Duplicate-key fail-open in the checker. When a mapping repeats a key and the last value is the canonical one, the checker accepts the collapsed map. Sites: _exact_upload_permissions (:584), workflow-root permissions in coverage_permission_violations (:1937) and least_privilege_permission_violations (:2059), and the job permission map (:2070). This is what threads 4534231375 and 4534231381 report. Fix: when duplicate_keys is non-empty on that mapping, emit the permission message, and add killers whose last value is the canonical one. GitHub itself rejects repeated keys, so this is a checker gap, not a live grant.
  2. The publish-path walk is not pinned. A one-edit mutant that skips one unsampled scalar inside coverage_report_publish_violations (:2434) leaves the suite green. Walk that function over every non-surrogate scalar, or assert its result equals _name_form_rejected for each name.
  3. The sweep count in the PR body is wrong. It says "0 real survivors" but doesn't list item 2. Record it.
  4. Threads 4534231375 and 4534231381 are unresolved and need replies after the fix.
  5. CI isn't green yet: Test (ubuntu, build archive) and Test (windows, build archive) are still pending. Nothing has failed.

@lazyxeon lazyxeon left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

  1. 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_violations and scan_action_surface both return clean in both coverage workflows.
    • So does a repeated workflow-root permissions key whose last value is {}. That holds in all four workflows that pin top-level {}.

    The producer, coverage-html and editor test maps 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.

  2. 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 permissions branch in coverage_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-level permissions must 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_name on a non-producer path, not coverage_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.

  3. 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-token key 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.

  4. 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 the coverage_permission_violations docstring (:1893) say any value other than exactly read or none fails, "including … a flow mapping, or a quoted key". On the editor test job, a quoted contents key 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 :104 and 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.

  5. The new equality sentence claims more than the test asserts. CI_ARCHITECTURE.md:62 and :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.

  6. MASTER_COVERAGE_REPORT.md:335 now cites the right line but still describes the mutation wrongly. At environment.rs:63, replace - with + turns current_time - 12.0 into current_time + 12.0. That's a 24-hour shift, a full 2π turn, so sun_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. :338 is equivalent too, since both EaseInOut branches return 0.5 at t = 0.5. Its new description is accurate. The same "sign inversion" wording is in reply 4534159786. Fix: describe :335 as a full-period shift that's equivalent, and optionally note that :338 is equivalent as well.

  7. 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 the c0121c4d sweeps: 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 :9087 docstring say "value-checker message". The message the test asserts is TOP_PERMISSIONS_MSG, the top-level text.

    Fix: re-sweep at the final head, count the survivors from every sweep, and name the asserted message.

  8. 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 :335 cite now points to environment.rs:63. The description is still wrong (item 6).
    • Item 2: other.yml is 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_map now has the id-token: write row, plus an id-token: WRITE row. 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-all rows, including case and padding, pin TOP_PERMISSIONS_MSG. Casefolding the keys in the set and lookup is killed, and so is the top-level read-all exemption.
    • Item 5 / Q1: repeated-contents rows (write-then-read and read-then-read) are on the editor test job, the producer job and coverage-html. Dropping the duplicate arm at :1792 is 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_MSG is now pinned. The :1893 claim that write and write-all report the write message is now true under test.
  • Astraea 5853769407:
    • Item 1: all 9 arms (:603 strip and casefold, :1944 strip and casefold, read-all as a write level, non-string as read, non-dict value, non-write scalar at :605, and the :1792 duplicate arm) are killed by an assertion on the message that arm reports.
    • Item 2: see item 7.
    • Item 3: :335 is retargeted (but see item 6). :338 now matches biome_transition.rs:96, t < 0.5 in EaseInOut. :336 (environment.rs:69), :337 (renderer.rs:6950) and :331 are still right.
    • Item 4: see item 8.
  • 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, duplicate with:, both needs forms 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 character strip() removes is outside the range. Dropping the ${{ term from the plain-producer test is equivalent, because _PINNED_REPORT_NAMES values are the literals coverage-xml and aw-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 hash on all three OSes, determinism hash on 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) and Test (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 lazyxeon left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 repeated contents key whose last value is canonical) on the editor test job, the coverage producer, and coverage-html. Annubis's case-variant key and top-level read-all rows, and the scalar / YAML-bool / message arms, are each killed.
  • Item 3 and cursor thread 4533874333: MASTER_COVERAGE_REPORT.md:335 now cites environment.rs:63 as the azimuth subtraction (current_time - 12.0) in get_sun_position. :338 now describes biome_transition.rs:96 as the EaseInOut boundary at t < 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.yml wording is gone from CI_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 than read or none". The editor exact-map test now includes the id-token rows 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.md and MASTER_COVERAGE_REPORT.md resolve, including the two retargeted lines.

Blocking

  1. 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_name is 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 at c0121c4d. Fix: walk at least one scalar outside the class sample, or every non-surrogate, through the publish function, and assert a hit.
  2. The workflow mapping's duplicate_keys is not read (scripts/ci/test_workflow_policy.py, coverage_permission_violations :1937). A repeated top-level permissions key whose last value is the empty map returns no violation from this check or from scan_action_surface, including on kani.yml and editor-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 has duplicate_keys, before treating {} as exact.
  3. 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, or scan_action_surface. The producer exact map already rejects that shape, and the new test pins it only on coverage and coverage-html. cursor[bot] opened this in 4534231375. Same GitHub note as item 2. Fix: fail the map when duplicate_keys is set, as _producer_permissions_exact already does.
  4. 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.
  5. 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-all as 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 exact contents: read map, 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>

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Open in Web View Automation 

Sent by Cursor Automation: ASTRA PR AUDIT AGENT

Comment thread scripts/ci/test_workflow_policy.py Resolved
Comment thread docs/current/MASTER_COVERAGE_REPORT.md Resolved

@lazyxeon lazyxeon left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_violations on 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_keys is 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 in coverage_permission_violations and least_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 by str.strip(), and import string is 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:335 now describes the azimuth mutant as a full-period shift (equivalent). :338 correctly calls the EaseInOut boundary equivalent. :336 and :337 still resolve.
  • Official suite 137/137 locally, including the pwsh benchmark-alert test and the new repeated-key test.

Blocking

  1. 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's str.strip() change, those edges no longer pin the range check. The same scalar in the middle of a pinned name is accepted, and coverage_report_publish_violations reports 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.
  2. MASTER_COVERAGE_REPORT.md:331 mis-cites heightmap.rs:152-153 as interpolation-weight mutations. Those lines are the resolution - 1 neighbor-index clamps in Heightmap::sample_bilinear. The weight subtractions are at :163-166. Fix: retarget the cite, or describe the clamp mutants accurately.
  3. 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.
  4. 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.

Copy link
Copy Markdown
Owner Author

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 coverage_report_publish_violations, P20, H06), and R4 (E01/E02 deleted; 6.67M-sample strip compare, 0 differ). Third-party uses: are all 40-hex pinned.

Still open:

  • Gate timeout: the Workflow policy step now takes about 43m of the 45m Gate job, so fmt/clippy get cancelled, PR Rust checks fail, and the archive Test jobs are skipped. The Gate passed on PREV and main. Keep every assertion, make the walk fit the existing budget, and don't skip, use continue-on-error, or widen anything.
  • A repeated job-level permissions key on editor-ci isn't treated as non-exact (cursor thread 4534596116). Fail on a non-empty job duplicate_keys, add a killer, and reply on the thread.
  • MASTER_COVERAGE_REPORT:335 calls the environment.rs:63 sun mutant equivalent, but f32 sin/cos change (cursor thread 4534596127). The EaseInOut sentence at :338 holds.
  • The mid-name survivors in _name_form_rejected from Astraea's 5854616521 need killers.
  • The MASTER_COVERAGE_REPORT:331 heightmap cite should point to :163-166.
  • The PR body's "0 real survivors" has to list every survivor.
  • CI must be green at the final head.

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 lazyxeon left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

  1. Security-blocking (Annubis rated it LOW and blocking in 6789077169): a repeated job-level permissions key on editor-ci.yml still scans clean (4534596116, no reply). I confirmed it locally through least_privilege_permission_violations and scan_action_surface. The new arm at :2087 reads duplicate_keys on 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, :104 and body line 21 say "a job permissions map whose last value is contents: read", which is the inner map. But body line 81 ("repeated job permissions key … in kani.yml and editor-ci.yml") and table row 192 read as if they cover this case. Fix: fail on a non-empty job duplicate_keys in least_privilege_permission_violations, add a killer on editor-ci.yml and a Kani job that expects JOB_CONTENTS_READ_MSG, reply on the thread, and name both repeats in the docs.

  2. 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 :2366 sees it. The walk at :9581–:9598 and the publish walk at :9624–:9658 only place out-of-range scalars on an edge, and the explicit rows at :9534 are 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_rejected for 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_rejected and coverage_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 :9521 docstring to say the walk covers the middle.

  3. Security-blocking (new, for Annubis to rate): the job arm of least_privilege_permission_violations has two survivors. Both arms predate this head, but they sit next to the new code.

    • With the length compare at :2088 loosened by one edit, an extra scope beside contents: read on any Kani or editor-ci.yml job scans clean through every check.
    • With the value compare at :2089 folded for case and padding, a case or padded read on those jobs scans clean.

    Body line 27 lists "missing or widened permissions on kani.yml and editor-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 the editor-ci.yml job, each expecting JOB_CONTENTS_READ_MSG.

  4. Security-blocking (new, for Annubis to rate): the new workflow-root repeated-key arms catch more than the docs and tests say. :1945 and :2073 fire on any repeated root key, not only permissions, and they report the top-level permissions message. Narrow either arm to permissions by one edit and a repeated root on, env, jobs, name or concurrency scans clean through every check in that arm's workflows. Nothing else catches those shapes. test_repeated_permission_keys_whose_last_value_is_canonical_fail only repeats permissions. :62, :104 and body line 21 only describe a repeated permissions key. Fix: add killers for other repeated root keys (at least on and env) in all four workflows. Then document that any repeated workflow-level key fails, or give that case its own message.

  5. Two plain-producer conjuncts in coverage_report_publish_violations survive and change only the message (for Annubis to rule). Dropping the action-name check (:2441) or the archive check (:2444) from plain_producer survives 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-default archive on the producer job, or get Annubis's ruling that they're equivalent.

  6. CI: the new walk pushes the Gate job past its limit (agreeing with Annubis's 6789077169). On run 42968664029, Workflow policy ran 43m28s (12:55–1:38 AM ET). Gate hit 45 minutes and Fmt, clippy, check was cancelled, so PR Rust checks failed. 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.

  7. MASTER_COVERAGE_REPORT.md:335 calls the environment.rs:63 mutant 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_position is f32 (environment.rs:63, :69–:79). My f32 probe over a day at 0.0001 h steps found sin/cos differ 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 f32 sin/cos only by rounding (at most about 1.4e-6), which no test tolerance detects, and drop "Equivalent". :338 holds.

  8. 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–:153 are the neighbour-index clamps .min(self.resolution - 1). cargo-mutants makes exactly two - mutants per line there, which gives the report's 4 MISSED. Those lines are identical at the report commit 427e0c20. All four are equivalent. The clamps at :147–:148 keep x0 + 1 <= resolution - 1, so the min never 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–:166 are killed: for example, bilinear_at_quarter_x and bilinear_midpoint_is_average in mutation_tests.rs:1558–:1610 go red under 1.0 + fx or 1.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 :331 and :332.

  9. 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 156ee731 sweeps: 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 156ee731 equality 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 :62 sentence.

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_permissions reads duplicate_keys (:586), the workflow-root arms at :1945 and :2073 read it, and the Kani and editor-ci.yml job 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 :2449 call-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: write row, and H06 by the producer-path publish walk.
    • Item 4: :104, body line 21 and the :1893 docstring 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 :9521 docstring 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_name on 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.
  • 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 string is gone, :2362 uses strip(), and the ${{ conjunct is out of plain_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 at t = 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, and PR Rust checks failed 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 :331 retarget (item 8).
  • Astraea at this head: 5854616521. I agree with items 1, 3 and 4. On item 2 the cite should stay (item 8).

cursoragent and others added 2 commits November 11, 2026 08:17
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>

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Open in Web View Automation 

Sent by Cursor Automation: ASTRA PR AUDIT AGENT

Comment thread scripts/ci/test_workflow_policy.py Resolved
Comment thread docs/current/MASTER_COVERAGE_REPORT.md Resolved

@lazyxeon lazyxeon left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_violations on a non-producer path and both producer workflows. :62, :104, the body, and the :9706 docstring 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, and contents: 'read ' each fail with only the job-contents message, on kani-ecs and on editor-ci. Those two survivors are gone.
  • Root repeated keys (Astranox item 4): a repeated on or name fails on all four workflows, and a repeated env fails on the three files that have env, with only the top-level permissions message.
  • Job-level repeated permissions (Astranox item 1 / cursor 4534596116): least_privilege_permission_violations now reads the job's duplicate_keys. The reply matches the code.
  • Message-only archive and merge rows (Astranox item 5): test_producer_archive_and_action_name_pin_the_report pins 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 f32 sin/cos by rounding, which current tolerances miss. :338 still holds.
  • MASTER_COVERAGE_REPORT.md:331 (my item 2, withdrawn retarget / Astranox item 8): the cite stays at heightmap.rs:152-153. The reason now names the neighbour-index clamps and the :147-148 cap, with the proof in the body. :163-166 is 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.md Miri/Kani and hello_companion retargets.

Blocking

  1. Four one-edit mutants still survive and are not ruled on at this head (scripts/ci/test_workflow_policy.py). Replacing str.strip() with str.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 to SafeLoader only (:176), and restoring a first yaml.safe_load pass in load_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.
  2. The exact contents: read compare in least_privilege_permission_violations still accepts a spelling that is not the exact read (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 on editor-ci, and expect the job-contents message.
  3. 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.
  4. 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 lazyxeon left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

  1. Security-blocking (cursor 4535600274, no reply; for Annubis to rate): repeated keys outside the arms that read duplicate_keys still scan clean at this head. I confirmed each of these locally through scan_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-ci job.

    Details are with Annubis.

    Body line 19 says the test "checks every uses value", and :62/:104 say "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 on editor-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.

  2. 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-permissions keys. The new test repeats on, name and env (: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) with jobs or concurrency excluded, on both coverage workflows;
    • the least-privilege root arm (:2082) with jobs excluded (both files), concurrency excluded (editor-ci.yml) or defaults excluded (editor-ci.yml);
    • the new job arm (:2096) narrowed to permissions. A repeated job key other than permissions on the editor-ci job then scans clean. test_duplicate_job_keys_fail_closed (:8059) covers the other jobs but not this one.

    :62, :104 and 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 and editor-ci job, 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.

  3. 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 :223 say 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 from scan_action_surface.

  4. 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_BASE to SafeLoader (: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 at 6d9b1fa6), 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.

  5. Security-blocking (agreeing with Astraea's item 2): the exact contents: read compare at :2100 still has a missing killer. A one-edit relaxation of that compare survives the suite and the walk replay, and with it a non-exact contents value that the new case and padding rows don't cover scans clean on kani-ecs and on editor-ci. Fix: add a row on a Kani job and on editor-ci for that spelling, expecting JOB_CONTENTS_READ_MSG.

  6. Three message-only survivors (for Annubis to rule):

    • Dropping isinstance(job_perms, dict) (:2097): a Kani or editor-ci job with no permissions key then crashes the checker with a TypeError instead of reporting JOB_CONTENTS_READ_MSG. The file still fails, but body line 27's "missing … permissions on kani.yml and editor-ci.yml" rests on a row that removes only the top-level permissions: {} (:4612). No row removes a job's map.
    • Excluding defaults from 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.

  7. MASTER_COVERAGE_REPORT.md:331: I'm correcting my own call. The four heightmap.rs:152–:153 mutants 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–:148 rounds the sample to exactly resolution - 1, so x0 + 1 == resolution and the min does bind. I confirmed 32770 is the first resolution where that happens. Both mutants then read one past the edge, and get_height returns 0.0 there (: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_data accepts 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 "the min never 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.

  8. MASTER_COVERAGE_REPORT.md:333 and the sun numbers:

    • "The current sun-position assertions use tolerances of about 1e-3 and wider" isn't right as written. wave2_biome_transition_env_remediation.rs:702–:704 and :713–:715 assert at 1e-5 and 1e-4. Those are moon/light-against-sun identities that the mutant still satisfies. The absolute checks are 1e-3 and 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.
  9. 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.

  10. 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_violations reads the job's duplicate_keys (:2096). The editor-ci and kani-ecs rows in :9531 kill 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 :9706 docstring 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, name and env rows. Item 2 above is the remaining breadth.
    • Item 5: PP2 and PP3 are killed. :9654 asserts 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–:153 and :163–:166 is 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.
  • Annubis's rulings at 6d9b1fa: every one of the 41 has a killer, the PP2/PP3 lists are exact, the :331 cite and the :335 wording are as he ruled (subject to items 7 and 8), and the editor-ci job-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.

cursoragent and others added 2 commits November 11, 2026 09:47
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>

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Open in Web View Automation 

Sent by Cursor Automation: ASTRA PR AUDIT AGENT

Comment thread scripts/ci/test_workflow_policy.py Resolved

@lazyxeon lazyxeon left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 to CSafeLoader, import fails when it is missing, and test_csafe_loader_is_the_scan_binding kills a swap to the pure loader, a missing-binding fallback, and load_workflow_yaml using the pure loader. The first safe_load pass 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-ci job 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 at heightmap.rs:152-153. new and from_data reject a resolution above 32769, with the bound enforced in heightmap_cell_count (:355-364). cargo test -p astraweave-terrain --lib heightmap::tests is 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

  1. The global repeated-key walk still misses style, tag, and case variants of the same name (scripts/ci/test_workflow_policy.py :189 and :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 on editor-ci and 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.
  2. Three one-edit mutants still survive and are not ruled on at this head (scripts/ci/test_workflow_policy.py). Dropping isinstance(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 in least_privilege_permission_violations (:2113) is implied by the loader, which returns no document on a parse failure. Replacing the job-permissions isinstance(..., dict) with a get-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.
  3. 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.
  4. MASTER_COVERAGE_REPORT.md:335 still omits "absolute" on the sun-position tolerances (Astranox item 8). Identities at 1e-5 and 1e-4 exist; the absolute goldens are 1e-3 and wider. Fix: say "absolute".
  5. Stale cite in a touched doc: docs/architecture/terrain.md:214 still points at astraweave-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 versus main. Fix: retarget or drop it.
  6. 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.

Copy link
Copy Markdown
Owner Author

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:

  • Invalid YAML now reports a parse error.
  • The CSafeLoader binding is pinned.
  • J05: the exact contents: read compare.
  • The required deletions.
  • The heightmap bound: >= at 32769 goes red.
  • The gate timeout, the editor-ci key set, the mid-name walk, and the sun label.
  • The EQ1 strip proof holds.

Still open:

  1. Repeated key identity (test_workflow_policy.py:189). A quoted or tagged on next to a bare on isn't caught as a repeat, while actionlint does flag it. Keys need a canonical form before the repeat check: YAML 1.1 bool names map to their runner string. A single bare on: must still pass. Add a killer for each style or tag variant on the 4 locked files, and reply to thread 4536461538.
  2. The walk's descent isn't pinned (:2161). Skipping with/env or permissions leaves the suite green. Add rows that repeat a non-upload with key, a step env key, and a permissions key on ci.yml, and assert the exact message from duplicate_mapping_key_violations and from scan_action_surface.
  3. The producer contents compare (:1836) still lets a prefix or an empty value through: the == to in edit survives. Add exact-list tests for re, r and the empty value.
  4. The PR body still says "0 real survivors" and needs a full survivor record. MASTER_COVERAGE_REPORT:335, terrain.md:214, and peer review 5857168829 still stand.
  5. CI isn't finished: compare and both archive Tests are still pending.

PASS needs every item above closed, at an exact head, with green CI.

@lazyxeon lazyxeon left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 CSafeLoader at import (:175, :226);
  • a new check fails any repeated key on any mapping (:2156–:2181), and it runs in the scan;
  • the editor-ci job's key set is exact (:2149);
  • the plain-producer conjunct and the upload length compare are smaller;
  • Heightmap::new and from_data reject a resolution above 32769 (heightmap.rs:355–:364).

I read every changed doc line sentence by sentence against the code. I also read:

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

  1. 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.yml and ci.yml.
    • I also confirmed a case-variant step key on editor-ci.yml and on ci.yml.

    The new check counts a repeat only when the parsed keys are equal, so it doesn't see these pairs. :104 and 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.

  2. Security-blocking (new; for Annubis to rate): case-variant keys outside the locked jobs still scan clean, and the editor-ci key 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.yml jobs. Every policy job I tried is caught by its key lock.
    • The job ids in editor-ci.yml are 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.yml job ids, as coverage.yml and aw-editor-tests.yml already are, or apply the key lock to every job in that file.
    • Add killers for each.
  3. Annubis's equivalence rulings are not applied yet (Astraea's item 2).

    • He accepted isinstance(job, dict) at :2133 only 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 :2113 and the job-permissions type check at :2131 only 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 :2133 conjunct, put the :2113 and :2131 proofs in the body, and update line 82.

  4. The job contents compare at :2138 has a missing killer. A one-edit change that also accepts none survives the suite. With it, contents: none on editor-ci and on kani-ecs scans clean, but at head it fails. The new rows (:9705–:9729) cover prefixes, empty, WRITE, case and padding, but not none. :104 says each job's permissions are "exactly contents: read". Fix: add a contents: none row on a Kani job and on editor-ci, expecting JOB_CONTENTS_READ_MSG.

  5. 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 null editor-ci job then crashes the checker with a TypeError. At head it reports the key-set message and JOB_CONTENTS_READ_MSG.
    • Replacing the line number at :2159 with 1. 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-ci job, and assert the exact line of a nested repeat (the step repeat in :9959 would do).

  6. MASTER_COVERAGE_REPORT.md:331 and terrain.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.
    • new and from_data still accept 0 and 1. At those sizes, sample_bilinear panics in the clamp at :147–:148 before 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:172 says the bound keeps "the bilinear neighbour clamp" inside the grid. The clamp keeps the index inside at any size. What the bound does is keep x0 + 1 inside without the clamp, so the clamp never changes anything.

    Fix: state the 0 and 1 case in :331 and body line 84, or reject those sizes in the same check with a killer. Reword :172 to say what the bound guarantees.

  7. terrain.md:214: the cite is stale (agreeing with Astraea's item 5). It points at astraweave-render/src/terrain_gpu_bridge.rs:11–:67. That file doesn't exist. Nothing in the tree defines TerrainGpuAccelerator or WgpuTerrainAccelerator. The row is the same on main, but this PR edits this file. Fix: retarget the row or drop it.

  8. MASTER_COVERAGE_REPORT.md:335: still not fixed (Astraea's item 4). It still says "The current sun-position assertions use tolerances of about 1e-3 and wider". wave2_biome_transition_env_remediation.rs:702–:704 and :713–:715 assert at 1e-5 and 1e-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.)

  9. 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.

  10. 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 at fdb41cd0: 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. :9603 now 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.

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 Permissions key on the editor-ci job 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.
    • Item 2: the root and job arms are pinned for every key. :10059 repeats every root key of the four files and every key of the four Kani jobs and editor-ci. All 16 root carve-outs and all 6 job-arm narrowings I tried die.
    • Item 3: :10204 builds an unparseable locked file, an unlocked workflow and a composite. Both parse-error edits die.
    • Item 4:
      • CSafeLoader is required at import, so the scan can't fall back to the pure loader.
      • :10224 asserts 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 the load_workflow_yaml docstring match the code.
    • Item 5: the prefix, empty and WRITE rows kill the in "read" edit and the read-or-write edit. Item 4 above is one more value.
    • Item 6: the null-permissions row (:10290) kills the isinstance(job_perms, dict) drop. :10168 pins defaults on 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.
    • Item 8, second bullet: body line 85 now says 235,475.
    • Item 10, in part: line 77 names both archive jobs.
  • Annubis's other rulings:
    • PP4 and PP6 (the allowed is not None and isinstance(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_load pass stays deleted, and restoring it now fails the tests.
    • The editor-ci case variant is rejected.
  • 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.rs with 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>

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 unittest for test_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, and test_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, and benchmark.yml — exit 0. Quoted on, 'on', !!str on, !!str "on", ? "on", "\u006fn", and !<tag:yaml.org,2002:str> on set duplicate_keys and the coverage scan reports the repeat. A bare on still passes. true, yes, and ON collide with bare on because they construct to the same bool, and a lone one of those spellings fails the root allowlist. Uses: on editor-ci.yml fails the step allowlist. FOO / foo on ci.yml stays 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().

Open in Web View Automation 

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`

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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: true

and 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.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants