Skip to content

docs: propose ADR-0081 for crates.io Trusted Publishing and shared Homebrew tap - #246

Merged
monk-eee merged 1 commit into
mainfrom
docs/adr-0081-crates-io-and-homebrew-tap
Dec 3, 2026
Merged

monk-eee merged 1 commit into
mainfrom
docs/adr-0081-crates-io-and-homebrew-tap

Conversation

@monk-eee

@monk-eee monk-eee commented Dec 3, 2026

Copy link
Copy Markdown
Owner

Problem

On v0.4.0, Azuifer publishes native GitHub Release archives, SHA256SUMS, azuifer.rb, an SPDX SBOM, and GHCR container images, while all six workspace crates remain publish = false and no public Homebrew tap is synced yet. We need an approved architecture decision locking in the crates.io Trusted Publishing (GitHub OIDC) and shared az* family Homebrew tap (monk-eee/homebrew-tap) design now, while intentionally holding implementation until sibling Azuniverse foundation crate extractions settle so we do not publish throwaway pre-extraction crate boundaries.

Change

  • Added ADR-0081 (docs/adr.d/0081-crates-io-trusted-publishing-and-homebrew-tap.md, Status: Proposed):
    • Records the empirical 2026-12-04 baseline (crates.io availability of all 8 names, current v0.4.0 Cargo.toml metadata, and existing packaging/homebrew.py formula generation) without claiming anything is published yet.
    • Defines Part 1 (crates.io Trusted Publishing): Azuniverse =x.y.z prerequisite pins, manifest readiness (version + path, sub-crate metadata, explicit tarball exclude under 10 MiB, cargo package --workspace --locked CI gate), strict DAG topological publish order (Wave 1 azuifer-core ? Wave 2 azuifer-{blob,files,queue,table} ? Wave 3 azuifer), and tag-only GitHub OIDC authentication (id-token: write, protected crates-io environment, one-time initial crate bootstrap note, zero standing tokens).
    • Defines Part 2 (Shared az* Family Homebrew Tap monk-eee/homebrew-tap): shared Formula/azuifer.rb (and future azcipher.rb / optional azuniverse.rb), reuse of packaging/homebrew.py + SHA256SUMS, least-privilege post-publish sync in .github/workflows/release.yml, and tap CI (brew audit --strict + macOS/Linux smoke tests).
    • Includes a Tracks & Dependencies table (Tracks A, B, C), alternatives/consequences (including reverse-wave yank/rollback policy), and acceptance verification criteria.
  • Indexed ADR-0081 (Proposed) in docs/adr.d/README.md.
  • Added a concise planned-rollout cross-reference in docs/releases.md under Native package managers (cargo-binstall and Homebrew) clarifying that neither crates.io publication nor a synced Homebrew tap is live yet.
  • Docs-only change: zero Rust source, Cargo.toml, Cargo.lock, or workflow edits.

Linked decisions

Always-required safety

  • No credentials, SAS tokens, raw Azure traffic or private references are included

Validation

  • python scripts/audit-docs.py ? passed (docs ok: 110 Markdown files audited)
  • python scripts/audit-workspace-dag.py ? passed (workspace ok: 6 crates verified, strict DAG, workspace lints inherited, all sources < 800 lines)
  • python scripts/audit-azure-recording-plan.py ? passed (1585 / 1634 recorded and matched)
  • python scripts/audit-wire-discrepancies.py ? passed (total=138)
  • python -m unittest discover -s scripts -p "test_*.py" ? passed (Ran 90 tests in 426.577s, OK (skipped=1))

Behavior and tooling tests (when applicable)

  • N/A ? docs-only Proposed ADR; no runtime behavior changed
  • python -m unittest discover -s scripts -p "test_*.py" for Python tooling or docs/evidence checks

Rust checks (when Rust or its build is affected)

  • N/A ? docs-only ADR (cargo fmt --check not run locally; Rust and its build are unaffected)
  • N/A ? docs-only ADR (cargo clippy not run locally; Rust and its build are unaffected)
  • N/A ? docs-only ADR (cargo test not run locally; Rust and its build are unaffected)

Conformance and docs

Conformance (when supported behavior or its evidence changes)

  • The matching specs/conformance/*.json manifest is updated, or this change does not alter supported behavior
  • No operation is marked exact without Azure differential evidence

Docs and evidence (when applicable)

  • Docs, counts and links I touched still agree with the manifests (python scripts/audit-docs.py)
  • python scripts/audit-azure-recording-plan.py and python scripts/audit-wire-discrepancies.py, when recording or discrepancy evidence changes

Sign-off

Always required.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: monk-eee <260355687+monk-eee@users.noreply.github.com>
@monk-eee monk-eee added the documentation Improvements or additions to documentation label Dec 3, 2026
@monk-eee
monk-eee merged commit 50c873c into main Dec 3, 2026
14 checks passed
@monk-eee
monk-eee deleted the docs/adr-0081-crates-io-and-homebrew-tap branch December 3, 2026 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant