Repository navigation
chore(ci): enforce the clippy deny list, rustfmt and cargo-deny; forbid ORM crates workspace-wide - #87
Merged
Conversation
… Rust
check-deps.sh: ADR-0044 forbids sqlx, sea-orm and diesel, but the script named only `sqlx`, and only for five crates, the memory
adapter and oidc. Nothing stopped an ORM in adapters-postgres, -cloudflare, -selfhosted, the server or the worker. The new section
asks the whole workspace: `cargo tree --workspace --all-features -e all --target all -i <crate>` for sqlx, sea-orm, diesel and
diesel-async. It has three answers: absent, present (the tree starts with the crate), and "cargo could not answer" (offline, a stale
lock), which fails with its own message instead of being read as absent or as a hit.
`-e all`, not the issue's `-e normal`: with `sea-orm` as a `[dev-dependencies]` of adapters-postgres, `-e normal` prints `nothing to
print`, which the script's case arm reads as absent (a pass), and `-e all` finds it. Both outputs were taken against the same tree.
Controls, run against this script:
- clean tree: exit 0, four `ok:` lines;
- `sea-orm = { version = "1", default-features = false }` in adapters-postgres: exit 1, `FORBIDDEN: sea-orm is in the workspace graph
(ADR-0044)` with the tree `sea-orm v1.1.20 └── thrust-adapters-postgres`, no ERROR line.
classify-changes.sh: deny.toml, clippy.toml and rustfmt.toml were not Rust paths, so a PR that changed only one of them would have
classified as docs, skipped the lint and deny jobs and passed the gate without running them. Five new cases in test-ci-scripts.sh:
three that failed against the old regex (shown red, then green), a look-alike or nested copy that must stay `rust=false`, and two gate
cases (a `lint` failure; `deny` skipped when Rust changed). 29 passed, 0 bad; test-required-contexts.sh 14 passed.
assert-gate.sh needs no change: it reads `toJSON(needs)` generically, so only the `needs:` list in ci.yml changes (a later commit).
Refs: #40
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
`cargo deny check` (the next commits) fails on main today with five vulnerabilities besides RUSTSEC-2023-0071, found against the live RustSec database (advisories published after #40 was drafted). The issue requires that 0071 be the only ignore, so each is fixed by upgrading, not ignored: | Advisory | Crate | Change | |---|---|---| | RUSTSEC-2026-0382 | rustls-webpki | 0.103.15 -> 0.103.16 | | RUSTSEC-2026-0381 | webpki-roots | 1.0.9 -> 1.0.11 | | RUSTSEC-2026-0385 | ctutils | 0.4.3 -> 0.4.8 | | RUSTSEC-2026-0387 | crypto-bigint | 0.5.5 -> 0.7.10, through openidconnect 4.0.1 -> 4.1.0 (p256, p384 and ed25519-dalek move a major) | | RUSTSEC-2025-0111 | tokio-tar | removed: testcontainers 0.23 -> 0.27 and testcontainers-modules 0.11 -> 0.15 use astral-tokio-tar | The same testcontainers upgrade removes rustls-pemfile (RUSTSEC-2025-0134, unmaintained) from the graph. The other unmaintained crate, smallstr under yrs (RUSTSEC-2026-0215), has no upstream fix; deny.toml reports unmaintained crates for the workspace's own dependencies only. The testcontainers upgrade needed no code change (`Postgres::default().start()`, `get_host_port_ipv4`, `ContainerAsync<Postgres>` are unchanged) and both versions default to `postgres:11-alpine`. It adds dev-only crates (tonic, prost, ureq, h2) through bollard's buildkit support, and removes the windows-sys 0.48 family. Checked on this tree: - `cargo deny check` (with the deny.toml of a later commit): advisories, bans, licenses and sources ok; - the Postgres adapter tests, run as CI runs them (`cargo test -p thrust-adapters-selfhosted --test pg_adapter`, OrbStack DOCKER_HOST): 30 passed; also under nextest: 30 passed; - `cargo nextest run --profile ci --workspace`: 2213 passed, 4 skipped; - the native-memory contract pass, which signs RS256 ID tokens in the mock IdP and verifies them through openidconnect 4.1.0: 54 of 54 expected, 16 of them `auth::`; - `thrust-worker` builds for wasm32 with `--no-default-features`; `scripts/check-deps.sh` is clean. Refs: #40 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…sources) ADR-0100 and ADR-0101 require a Rust supply-chain gate and none ran. `deny.toml` is the configuration; the `deny` job that runs it is a later commit. `cargo deny --locked check`: advisories, bans, licenses and sources ok on this tree. - [advisories]: RUSTSEC-2023-0071 (rsa, "Marvin Attack") is the ONLY ignore, with its reason and the re-check note beside it: why it does not apply (rsa is reached through openidconnect, which uses it only to verify RS256 signatures with the issuer's public key, `verify_rsa_signature` building an `rsa::RsaPublicKey`; Thrust's one call is `.claims(..)` in thrust-adapters-oidc; and through the contract tests' mock IdP, a throwaway key on 127.0.0.1); when to re-check (any rsa or openidconnect update, a patched advisory); to remove it once a patched rsa is adopted; the tripwire (`CoreRsaPrivateSigningKey`, which signs with an `RsaPrivateKey`, is shipped by openidconnect and never constructed by Thrust); and that RS256 is not to be avoided (owner decision, 2026-10-24: Zitadel signs with it). The claims were checked against the openidconnect 4.1.0 source. `unmaintained = "workspace"`: smallstr (under yrs, RUSTSEC-2026-0215) has no fix to adopt, so unmaintained crates are reported for the workspace's own dependencies only; vulnerabilities are reported everywhere. - [licenses]: the eight licences the graph needs (MIT, Apache-2.0, BSD-3-Clause, ISC, Unicode-3.0, Zlib, MPL-2.0, CDLA-Permissive-2.0), each exercised (no unused-licence warning); the 15 workspace crates are AGPL-3.0-only and `publish = false`, so `[licenses.private] ignore = true` skips them and AGPL is not on the list for anybody else. - [bans]: sqlx, sea-orm, diesel and diesel-async (ADR-0044; the second guard after check-deps.sh); `wildcards = "deny"` with `allow-wildcard-paths` for the thrust-* path dependencies; `multiple-versions = "warn"` because 28 crates appear in two or three versions and "deny" would block every update. - [sources]: crates.io only. - [graph] `all-features = true`, so a bare `cargo deny check` sees what CI sees. Controls, each run against this tree: - delete the RUSTSEC-2023-0071 entry: `advisories FAILED`, `error[vulnerability]: Marvin Attack`, `rsa v0.9.10`. With the entry it passes, so the ignore is what makes the check pass and the advisory is really in the graph; - remove `MPL-2.0` from `allow`: `error[rejected]: failed to satisfy license requirements`, `cssparser v0.38.0` (exit code 4, the licences bit); - add `sea-orm` to thrust-adapters-postgres: `error[banned]: crate 'sea-orm = 1.1.20' is explicitly banned` (exit code 2, the bans bit); - the same `sea-orm` as an optional dependency behind a feature that nothing enables: `bans FAILED` with `all-features = true` and `bans ok` with `false`, so the setting is what catches it. (The default and all-features graphs are identical today, 419 crates each, because `--workspace` unifies features, so this guards a future change. check-deps.sh catches the same case.) Refs: #40 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…nd the adapters
ADR-0006's panic policy says clippy denies `unwrap_used`, `expect_used`, `panic` and `indexing_slicing` in core, ports and adapters, and
recorded it as "not yet enforced". On the Worker (`panic=abort`) a panic fails its own request and can fail others on the same isolate.
`[workspace.lints.clippy]` sets the four to `deny` (they are in clippy's `restriction` group, off unless named); thrust-core,
thrust-ports and all five adapters (the issue says four; thrust-adapters-oidc arrived after it was filed) opt in with
`[lints] workspace = true`. `deny`, not `forbid`, so a site that is right can say so with `#[allow(.., reason = "..")]`. `clippy.toml`
exempts `#[test]` functions and `#[cfg(test)]` modules.
Measured on the formatted tree, in the seven crates: 93 sites in library code, 6 in the `migrate` bin and a core example, and 261 in
integration tests that `clippy.toml` does not exempt (helper functions with no `#[test]`: selfhosted `tests/model` alone has 161 index
sites). Now 0 in all targets.
Library code:
- thrust-adapters-memory: 75 `Mutex::lock().unwrap()` become one private `lock_unpoisoned()` (`unwrap_or_else(PoisonError::into_inner)`).
Its doc comment gives the reasoning: the adapter is test and local state; a Worker cannot poison a mutex (`panic=abort`); the native
server unwinds under `CatchPanicLayer`, and carrying on is what `parking_lot` does. `from_timestamp(0, 0).expect(..)` is
`DateTime::UNIX_EPOCH`. `api_keys[at]` keeps a reasoned allow: `at` is a position found a few lines above.
- thrust-adapters-postgres, BEHAVIOUR CHANGE: `PgTx::client` panicked ("transaction already finished") whenever the transaction had no
connection, and `ensure_tx` removes it deliberately when `BEGIN` fails. So a failed first write followed by any further call on the
same transaction, or by `commit`, was a reachable panic. `client()` now returns `DbError::Backend`, `commit` on such a transaction
returns the same error (it cannot claim success), and `rollback` returns Ok (the discarded connection was closed, so the server has
rolled it back). Three hermetic tests pin it; with the old `expect` code back they all fail at the old panic sites
(`lib.rs:2174`, `:2358`, `:2375`). `columns[4..]` is one `.get(4..)`.
- thrust-adapters-postgres `migrate`: `main` returns a `Result` instead of three `expect`s. A failure exits 1 with an `Error:` line,
where it was a panic with exit 101; `contract.sh` treats any non-zero as "migrate failed".
- thrust-adapters-cloudflare: the two lock unwraps recover from poison inline. `JsClock::now` keeps a reasoned `expect`: the port returns no
error, and a fallback such as the epoch would make every session expiry look far off, so a clock that cannot be read must fail the request.
- thrust-adapters-selfhosted: `ReqwestFetch::new` keeps a reasoned `expect` (a fixed configuration, built once at startup).
- thrust-core: `hex` writes `{b:02x}` instead of indexing a digit table (same lower-case output), and `contains_url` uses `at(i)` and a
slice pattern instead of `s[i]` and `w[0]..w[3]`.
- Tests and the example: 21 test files and `argon2_timing.rs` carry an `#![allow(..., reason = "test code: ..")]` at their top.
The `lint` job runs clippy with `-D warnings`, which brought 47 warnings of other lints in; they are fixed here, not allowed: `cargo clippy
--fix` applied the mechanical ones (sort_by_key, map_or, is_multiple_of, redundant closures, unused imports, needless borrows), and by hand
the `Reverse` sorts, an enum variant named for its enum (`Call::UpdateProjectCall` -> `UpdateProject`), a type alias, two `zip`s, `matches!`,
doc-list indentation, and four sites in thrust-editor-doc (`?`, `if let`, `Option::filter`, `iter_mut`). One `too_many_arguments`
(`put_attachment`, eight parameters) keeps a reasoned allow, as a public use-case entry point.
Checked on this tree: `cargo fmt --all --check`; `cargo clippy --workspace --all-targets --locked -- -D warnings` and
`cargo clippy -p thrust-worker --no-default-features --target wasm32-unknown-unknown --locked -- -D warnings` (0 diagnostics); nextest
2216 passed, 4 skipped (2213 before the three new tests, with every fix in); the Postgres adapter tests (30 passed) as CI runs them;
the native-memory and native-pg contract passes (54 of 54 each).
Refs: #40
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Two new jobs, both added to `gate`'s `needs` (the only required check): - `lint`: `cargo fmt --all --check`; `cargo clippy --workspace --all-targets --locked -- -D warnings` (every target of every member, so the four denied lints, ADR-0006's panic policy, and every other warning fail it); and `cargo clippy -p thrust-worker --no-default-features --target wasm32-unknown-unknown --locked -- -D warnings`, the Worker as it ships (no `memory` adapter set), which also lints the wasm-only adapters. Without `--no-deps`, so the path dependencies are linted for wasm32 too. The two clippy steps run even when rustfmt failed (`!cancelled()`), so one push reports everything. - `deny`: `cargo deny --locked check` from deny.toml (advisories, licences, bans, sources), with cargo-deny 0.20.2 installed through the `taiki-e/install-action` already pinned by SHA for nextest (its manifest at that SHA has 0.20.2). Both carry exactly `needs: changes` and `if: needs.changes.outputs.rust == 'true'`, like `deps`: assert-gate.sh fails a job that is `skipped` when Rust changed, so an extra condition (a pull_request-only job, say) would turn the gate red on main and in the merge queue. assert-gate.sh itself needs no change, because it reads `toJSON(needs)` generically. `.github/actions/setup-rust` gains a `components` input, passed to dtolnay/rust-toolchain, which installs the toolchain without clippy or rustfmt. Both new jobs use setup-rust with their own cache key. Neither is added to the ruleset: it requires only `gate` (ruleset 25418178), and they reach it through `gate`'s `needs`. Checked: the workflow and the action parse; a script asserts that both jobs `need` only `changes`, share `deps`'s `if`, run on ubuntu-24.04 with `contents: read`, pin every external action by SHA, that `gate.needs` equals every job but `gate`, and that setup-rust passes `components` through. Run against the files before this commit it fails with six named reasons, so it discriminates. Refs: #40 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…gnore entry
The book said clippy, rustfmt and the dependency audit were not in CI ("Not in CI" in cicd.md, "no `deny.toml`", "nothing runs
`cargo fmt`"). They are now, so the pages that state what is enforced say so, each with its command and the control that makes it fail.
- cicd.md: "Not in CI" no longer names clippy, fmt or the audit. The change classifier's path list has deny.toml, clippy.toml and
rustfmt.toml. The counts are re-measured (21 external actions, all pinned by SHA; 12 checkouts, all with `persist-credentials: false`),
and `deny.toml` and the advisory-drift behaviour are recorded under supply chain. The ADR-0100 and ADR-0101 comparisons say what is
now in place (a lint step; one of the Rust gates, cargo-deny) and what is not (cargo-vet and cargo audit, Scorecard, attestation, trivy).
It also says the unpinned `stable` toolchain means a new clippy release can fail `lint` with no change to the code.
- running.md: the `lint` and `deny` rows of the CI job table, and the commands with `[verified]` tags.
- standards.md: three new rows in "Enforced by a command" (rustfmt, the panic lints, cargo-deny), the ORM ban in the check-deps row, and
the controls shown on 2026-11-05. The "Stated, but not enforced" rows for dependency licences and for format and lint are corrected
or gone, and "Decided, and built only in part" no longer says there is no lint step or dependency audit.
- architecture-gates.md: the ORM check, what its three answers mean, and the `sea-orm` control next to the `worker` one, with the two
variants that justify `-e all` and `--all-features`.
- crates.md: "13 crates" is 15 and "four adapter crates" is five (both stale before this change); a new step for opting a crate into the lints.
- defect-matrix.md: X10's target says what `cargo deny` does and does not do yet (it bans only the ORM crates).
- AGENTS.md: one row in the Commands table.
- `.git-blame-ignore-revs` lists the reformat (65ed0e5, #86). Checked: `git blame` on thrust-ports/src/lib.rs blames 41 lines on it without
the file and 0 with it. GitHub's blame view reads the file by itself.
- ADR-0006, Q-0044, research/0012 and ADR-0044 state the old gap. They are records, so each gets a dated `*(amended 2026-11-05: ..)*`
note in the repo's existing style and its original text is left as written.
Checked: `mdbook build docs` has 0 `^ERROR` lines (run with the mermaid preprocessor made optional by environment variable, because
mdbook-mermaid is not installed here; nothing was written under docs/), and a search of docs/src finds no remaining claim that clippy,
rustfmt or the dependency audit is absent, and no mention of them outside the pages edited here.
Refs: #40
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
aRustyDev
added a commit
that referenced
this pull request
Nov 6, 2026
The tags #87 added cite four of its branch commits (26d72a2, 39fa3e9, 9640f91, 14f28db). The repo squash-merges, so none of them is on `main`. They still resolve through the pull request, but not in `git log`. All ten now cite 7d0074f, the squash commit. That is the right commit to cite: `git diff bd2c879 7d0074f` is empty, so its tree is byte-identical to the tip of #87, and the tip contains the code each check exercised. Each check ran on an earlier commit of the branch, and what it exercised did not change afterwards: check-deps.sh and the classifier (26d72a2) were not touched again, nor was deny.toml (39fa3e9), the lint configuration (9640f91) or the workflow (14f28db); the one commit after 14f28db changed only docs. The dates stay as they were, because they record when each check ran. Four files: cicd.md (2 tags), running.md (4), standards.md (1) and architecture-gates.md (3). `mdbook build docs` has 0 `^ERROR` lines (mdbook-mermaid is not installed here, so the preprocessor was made optional by environment variable for the check; nothing was written under docs/). Refs: #40 Co-authored-by: Claude Sonnet 5.5 <[email protected]>
This was referenced Nov 6, 2026
This was referenced Nov 15, 2026
Closed
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #40. Builds on #86 (the one-time rustfmt reformat), which is merged.
CI had no format, lint or supply-chain gate, ADR-0006's panic policy was "not yet enforced", and
check-deps.shnamed onlysqlxfor a few crates. This adds alintjob (rustfmt, clippy native, clippy wasm32), adenyjob (cargo-deny), a workspace-wide ORM guard incheck-deps.sh, and puts both jobs ingate'sneeds. Each control was shown to fail once (below).Review it commit by commit; each stands alone and was tested on its own tree.
26d72a2check-deps.shasks the whole workspace forsqlx,sea-orm,diesel,diesel-async.classify-changes.shtreatsdeny.toml,clippy.toml,rustfmt.tomlas Rust.aa1c0bccargo denyfinds onmaintoday (see below).39fa3e9deny.toml.9640f9114f28dbgate.bd2c879.git-blame-ignore-revs.Where this differs from the issue
-e all --all-features, not-e normal, incheck-deps.sh. A[dev-dependencies]sea-ormprintednothing to printunder-e normal, which the script's case arm reads as absent: the check would have passed it. Both outputs are inarchitecture-gates.md. A third answer, "cargo could not say", fails with its own message, so an offline run is never read as absent or as a hit.thrust-adapters-oidcarrived after the issue was filed. The lints are in[workspace.lints.clippy]and each of the seven crates (core, ports, five adapters) opts in with[lints] workspace = true: the same effect as per-crate tables, one list.docs/src/contributing/crates.mdhas a new step so a new adapter does not silently miss it.cargo deny check advisoriesfailed onmainagainst the live advisory database (two of them, RUSTSEC-2026-0385 and -0387, were published on 2026-10-23, after the issue was filed on 2026-10-20). The issue says that ignore is the only one, so each is fixed, not ignored:rustls-webpki,webpki-roots,ctutilsby lock bump;crypto-bigintthroughopenidconnect4.0.1 to 4.1.0;tokio-tarandrustls-pemfilethroughtestcontainers0.23 to 0.27 and-modules0.11 to 0.15 (needed no code change; samepostgres:11-alpine). The one with no upstream fix,smallstrunderyrs(unmaintained), is covered byunmaintained = "workspace": unmaintained crates are reported for the workspace's own dependencies only, vulnerabilities everywhere.[graph] all-features = trueindeny.toml, so a barecargo deny checksees what CI sees. Today the default and all-features graphs are identical (419 crates, because--workspaceunifies features), so it guards a future change; with a feature-gatedsea-ormthe bans check fails with it and passes without.diesel-asyncis in the ban list too, to matchcheck-deps.sh..git-blame-ignore-revsa SHA.git blameonthrust-ports/src/lib.rsblames 41 lines on it without the file and 0 with it.Changes that are not mechanical (please look at these)
PgTxno longer panics after a failedBEGIN(thrust-adapters-postgres/src/lib.rs).client()wasexpect("transaction already finished"), andensure_txremoves the connection on purpose whenBEGINfails, so a failed first write followed by any further call, or bycommit, was a reachable panic. Now:client()returnsDbError::Backend;commitreturns it too (it cannot claim success);rollbackreturnsOk(the discarded connection was closed, so the server rolled it back). Three hermetic tests pin it, and with the oldexpectcode put back all three fail at the old panic sites.migrateexits 1 with anError:line instead of panicking (101).contract.shtreats any non-zero as "migrate failed".lock().unwrap()becomelock_unpoisoned()(recover the guard from a poisoned mutex). Reasoning is in its doc comment: test and local state; a Worker cannot poison a mutex; the native server unwinds underCatchPanicLayer, and carrying on is whatparking_lotdoes. Say if you would rather propagate an error.JsClock::nowkeeps a reasonedexpectand does not fall back to the epoch: a wrong "now" would make every session expiry look far off, so a clock that cannot be read should fail the request.openidconnect4.1.0 movesp256,p384,ed25519-daleka major; the native-memory contract pass signs RS256 tokens in the mock IdP and verifies them through it (54 of 54, 16 of themauth::). The dev graph grew (tonic,prost,ureq,h2, through bollard's buildkit support).-D warnings. Eleven are in crates outside the seven (thrust-editor-doc,thrust-contract-tests,thrust-api,thrust-worker). Mechanical ones came fromcargo clippy --fix; the rest are by hand, withReversesorts,zip,matches!, slice patterns and one variant rename (Call::UpdateProjectCalltoUpdateProject).put_attachmentkeeps a reasonedtoo_many_argumentsallow.clippy.tomlexempts#[test]functions and#[cfg(test)]modules; integration-test helpers (fn make(..)) are not exempt, so 21 test files and one example carry a crate-level#![allow(.., reason = "test code: ..")].Acceptance criteria
grep -n "sea-orm" scripts/check-deps.shmatches (:9,:68). Addingsea-ormtocrates/thrust-adapters-postgres/Cargo.tomlexits 1 withFORBIDDEN: sea-orm is in the workspace graph (ADR-0044)and the treesea-orm v1.1.20; recorded inarchitecture-gates.mdnext to theworkercontrol, with the dev-dependency and feature-gated variants..unwrap()in non-testthrust-corefails the clippy step (used unwrap() on an Option value,unwrap_used, run locally with CI's command), and a mis-formatted line failscargo fmt --all --check(exit 1, with the diff). Shown in CI too, on a throwaway draft PR with three planted defects (DO NOT MERGE: throwaway defects to show the #40 gates fail (expected red) #88, run 42164639829; closed and its branch deleted): rustfmt failed withDiff in .../thrust-core/src/auth.rs:86; clippy failed in both the native and the wasm32 run witherror: used unwrap() on an Option value(-D clippy::unwrap-used); andgatewent red naminglint failure,deny failure, withhermeticandpg-adapterstillsuccess.cargo deny --locked checkpasses (advisories, bans, licenses, sources ok) and fails when theMPL-2.0licence is not allowed (cssparser, exit 4) and whensea-ormis added (error[banned], exit 2).deny.tomlignores RUSTSEC-2023-0071 and nothing else, with the reason and the re-check note beside it. Deleting the entry makescargo deny check advisoriesfail and name it (rsa v0.9.10, "Marvin Attack"). I also checked the claim in the entry against theopenidconnect4.1.0 source:verify_rsa_signatureverifies with anrsa::RsaPublicKey, Thrust's only call is.claims(..), and nothing of ours constructsCoreRsaPrivateSigningKey.gate.needslistslintanddeny(a script asserts it equals every job butgate, and fails against the old files for six named reasons);test-ci-scripts.shpasses (29, up from 26 with three new classifier cases shown red first, then green) andtest-required-contexts.sh(14).gateis green on this PR (run 42164108094): all 30 checks succeeded, andlintanddenyran every step (rustfmt, both clippy runs, the pinnedinstall-action,cargo deny check), none skipped. In the same throwaway run,denyfailed witherror[vulnerability]: Marvin Attack,ID: RUSTSEC-2023-0071,rsa v0.9.10once the ignore was deleted.cicd.mdno longer names clippy, fmt or the dependency audit.Verified locally on this branch
cargo fmt --all --check;cargo clippy --workspace --all-targets --locked -- -D warningsand the wasm32 one (0 diagnostics); nextest 2216 passed, 4 skipped (2213 plus the three new tests); doctests;check-deps.sh; the Postgres adapter tests as CI runs them (30); the native-memory and native-pg contract passes (54 of 54); wasm32 Worker build;mdbook build docs(0ERROR; run with the mermaid preprocessor optional, asmdbook-mermaidis not installed here).Not in this PR
denyred with no code change (two of the seven above appeared after the issue was filed), andgatewith it. A weekly scheduledcargo deny check advisories(precedent:flake-hunt.yml) and adependabot.ymlwould soften it; follow-up, not built here.stable, unpinned, so a clippy release can faillint(recorded incicd.md).mutantsand the contract cells fail intermittently withexit=4(contract.sh: "target process exited early"), which hit style: format the workspace with rustfmt (max_width 120) #86's first run (Address already in usefor the cf cell; theignore-revokedmutant, which passed when I ran it locally on the same tree) and failed four of the last six pushes tomain(the one I read, run 40258128717, wasnative-memory engine + case-sensitive-searchwithexit=4). It struck the throwaway run too (worker-cf main:Address already in use; andignore-revokedagain, so that mutant has now hitexit=4on two separate PR runs, each time the fourth to start, which may be worth a look). chore(ci): enforce the clippy deny list, rustfmt and cargo-deny; forbid ORM crates workspace-wide #87's own run did not hit it. Not caused by this PR; not fixed here.check-deps.shwith clippy'sdisallowed-methods(its comment now says so).Heads-up for open branches
#86 reformatted 98 files, and this PR changes the memory adapter and the seven crates' tests: Rust
file:linecitations in docs and ADRs shift, and branches with Rust changes in flight (feat/compat-work-items-*) will conflict on rebase.🤖 Generated with Claude Code