Chore/ci bootstrap #1

Merged
poli0981 merged 3 commits from chore/ci-bootstrap into main 2026-12-02 13:53:18 +00:00
Owner
No description provided.
poli0981 added 3 commits 2026-12-02 13:22:06 +00:00
The M0 exit criterion is "CI green on an empty workspace" (doc 17 §3), so
the workspace exists before any product crate: a virtual manifest with
xtask as its only member, the doc 13 §2 lints, the doc 15 §2 profiles,
rust-toolchain.toml (1.100.0 with rustfmt, clippy, llvm-tools),
rustfmt.toml, clippy.toml (the doc 13 §5 bans clippy can express),
deny.toml (doc 14 §4) and a nextest `ci` profile.

xtask implements the gates CI and doc 14 §4 rely on:
- `rules`: the doc 03 §3 layer table on direct first-party dependencies,
  GPUI / network clients / `windows` confined to their crates, and
  #![forbid(unsafe_code)] at every crate root except mv-platform;
- `coverage <lcov>`: the doc 14 §2 per-crate line-coverage thresholds;
- `check`: rustfmt, clippy, cargo-deny, cargo-machete, then `rules`.
Its only dependencies are anyhow and serde_json at the doc 02 versions
(anyhow held at 1.0.104 with --precise).

deny.toml passes with cargo-deny 0.22.1 and with 0.20.2, the version the
ops security.yml runs. rustfmt's imports_granularity and group_imports
are still nightly-only on 1.100.0, so doc 13 §1 now says so instead of
setting them; doc 02 and doc 13 record the other details.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The M0 set from doc 15 §4.2, each checked against the ops repo at
v2026.11.5 (b93b3711), the tag A-01 waited for:

- ci.yml: `linux` (container) runs rustfmt, clippy, `cargo xtask rules`,
  cargo-machete and the tests under cargo-llvm-cov with the per-crate
  gate; `windows` (host mode) runs clippy and nextest with the toolchain
  from rust-toolchain.toml via `rustup toolchain install
  --no-self-update` (never `rustup default`, never dtolnay on the PC) and
  MUTEVAULT_DATA_DIR in the job's temp dir; `ci-ok` is the required check.
  nextest, llvm-cov and machete are release binaries at the doc 02
  versions, SHA-256 verified, run from the job's temp directory.
- security.yml: `workflow-lint` (actionlint + shellcheck, zizmor) and the
  ops security.yml with rust and node; weekly 57 13 * * 2.
- qodana.yml: qodana-rust through the ops reusable on windows-latest in
  Docker (-u root, CARGO_HOME in the cache); push to main and weekly
  9 14 * * 5; report-only.
- notify-ci-failure.yml: the ops notifier for CI, Security and Qodana.
- renovate.json: the central preset, nothing else.

Deferred until there is something to run: extension.yml (M3), fuzz.yml
(first fuzz target; slot 17 15 * * 6 kept), release.yml and
announce-release.yml (M5, after S9).

Docs follow the runbook where it differs: Qodana Cloud only takes
github/gitlab/bitbucket VCS URLs, so the project points at the GitLab
mirror (doc 14 §6, doc 15 §14.5); doc 15 lists the required checks, the
ops pin, the host-mode toolchain rule and the secrets needed at M0;
doc 02 records how CI pins the cargo tools and the Qodana image.

actionlint 1.7.12 and zizmor 1.32.0 (offline, medium) pass on all four
workflows locally.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs: record the M0 bootstrap and the S1 kick-off
CI / ci-ok (push) Skipped
Security / workflow-lint (push) Skipped
Reusable / Security / .NET (NuGetAudit) (pull_request) Skipped
CI / Linux · fmt, clippy, rules, tests, coverage (pull_request) Successful in 58s
CI / Windows · clippy, tests (pull_request) Successful in 44s
Security / workflow-lint (pull_request) Successful in 23s
Reusable / Security / Secrets (gitleaks) (pull_request) Successful in 24s
Reusable / Security / SAST (Opengrep) (pull_request) Successful in 31s
Reusable / Security / Dependencies (osv-scanner) (pull_request) Successful in 25s
Reusable / Security / Rust (cargo-deny) (pull_request) Successful in 56s
Security / scan (pull_request) Successful in 2m18s
CI / ci-ok (pull_request) Successful in 4s
c8dba76c70
doc 17:
- A-01 is done: the workflows pin ops v2026.11.5.
- H-13 now lists the bootstrap steps in order. It registers two cron
  slots now; the fuzz slot is registered with fuzz.yml. The Qodana
  Cloud project points at the GitLab mirror.
- New decision D-29 (flagged for review): the M0 workflow set, and the
  kick-off order after M0. S1 (gpui-kit shell) goes first, because R-01
  is the highest-likelihood risk, S1 is the only P0 spike that can
  change the stack, and S2/S3 build on it. S5 (crypto core and format)
  runs in parallel.
- Three open questions found while bootstrapping: Velopack's HTTP
  client vs rule 5, the host's transitive reach to mv-crypto, and where
  spike code lives.

CHANGELOG records the bootstrap under [Unreleased].

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
poli0981 scheduled this pull request to auto merge when all checks succeed 2026-12-02 13:31:09 +00:00
poli0981 merged commit c4ccdccb50 into main 2026-12-02 13:53:18 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: poli0981/mutevault#1