release-core and release-ffi publish to the forge's Cargo registry, proven by a v* and an ffi-v* tag #2

Closed
opened 2026-11-24 02:17:15 +00:00 by hygiea · 11 comments
Member

Purpose (port): a v* tag on this repository publishes that version to the forge's own Cargo registry on git.macula.io, read back from that registry, and an ffi-v* tag does the same for macula-rust-ffi; nothing on GitHub is needed for either, and no crates.io credential exists in this repository.

Refs macula-io/forge-setup#30 section 4 step 2 and its section 1 rust row. Two owner rulings carry this package:

  • DECIDED 2026-11-24 "Yes, token plan (Recommended)" — the release credential is the repository's own publisher account, not a crates.io token.
  • DECIDED 2026-11-24 "we will ONLY use our own package management on the forge....no API key theatre we are sovereign" — the destination is the forge's registry, not crates.io.

What the port changes, as it now stands on master

.github/workflows/release-core.yml (v* → macula-rust) and release-ffi.yml (ffi-v* → macula-rust-ffi) run on the forge's host00 runner (runs-on: docker; this repository is private, so the runner is the local one), tag-triggered only, and publish with cargo publish --registry macula.

  • The registry alias macula is named once, in .cargo/config.toml, and resolves the forge's sparse index at /api/packages/macula-pub/cargo/, which Forgejo answers anonymously ("auth-required": false), so the dry run proves the destination with no credential at all.
  • The credential is the named repository secret FORGE_PACKAGES_TOKEN — the sdk-publisher account in macula-pub, write:package only, made and proven by forge-setup's sdk-publisher-account.sh (forge-setup#49, #50, #51; its run of 2026-11-25 lists macula-rust among the repositories that took the secret) — and reaches cargo as CARGO_REGISTRIES_MACULA_TOKEN: Bearer <token>. There is no crates.io token anywhere in this repository.
  • Checkout and the Go toolchain are plain shell, not marketplace actions (DECIDED 2026-11-22 "do both"); the Go version is read from tests/teststation/go.mod and the tarball's sha256 is pinned in the workflow, so a moved go.mod fails by name rather than installing whatever the URL now serves.
  • The advisories scan runs inside the forge's public macula-pub copy of the CI image, by digest, as uid 1000 (macula-rust#4), and the two shared gates are local copies, because the forge calls into another repository only when that repository is public.

Done when

A v* tag on the forge publishes macula-rust to the forge's Cargo registry, read back from that registry, and an ffi-v* tag likewise publishes macula-rust-ffi once the core version it depends on is there; nothing on GitHub is needed for either.

What the first tag still needs

v0.15.1 and ffi-v0.13.1 already exist as git tags (both at 4ca8de0), and master is 39 commits past them with an [Unreleased] section for both crates. A release tag is never moved, so the first forge release is the next version: the version bump lands as its own reviewed change, and the tag follows it — the workflow refuses a tag whose name is not the version Cargo.toml carries.

Purpose (port): a `v*` tag on this repository publishes that version to the forge's own Cargo registry on git.macula.io, read back from that registry, and an `ffi-v*` tag does the same for `macula-rust-ffi`; nothing on GitHub is needed for either, and no crates.io credential exists in this repository. Refs macula-io/forge-setup#30 section 4 step 2 and its section 1 rust row. Two owner rulings carry this package: - DECIDED 2026-11-24 "Yes, token plan (Recommended)" — the release credential is the repository's own publisher account, not a crates.io token. - DECIDED 2026-11-24 "we will ONLY use our own package management on the forge....no API key theatre we are sovereign" — the destination is the forge's registry, not crates.io. ## What the port changes, as it now stands on master `.github/workflows/release-core.yml` (`v*` → `macula-rust`) and `release-ffi.yml` (`ffi-v*` → `macula-rust-ffi`) run on the forge's host00 runner (`runs-on: docker`; this repository is private, so the runner is the local one), tag-triggered only, and publish with `cargo publish --registry macula`. - The registry alias `macula` is named once, in `.cargo/config.toml`, and resolves the forge's sparse index at `/api/packages/macula-pub/cargo/`, which Forgejo answers anonymously (`"auth-required": false`), so the dry run proves the destination with no credential at all. - The credential is the named repository secret `FORGE_PACKAGES_TOKEN` — the `sdk-publisher` account in `macula-pub`, `write:package` only, made and proven by forge-setup's `sdk-publisher-account.sh` (forge-setup#49, #50, #51; its run of 2026-11-25 lists `macula-rust` among the repositories that took the secret) — and reaches cargo as `CARGO_REGISTRIES_MACULA_TOKEN: Bearer <token>`. There is no crates.io token anywhere in this repository. - Checkout and the Go toolchain are plain shell, not marketplace actions (DECIDED 2026-11-22 "do both"); the Go version is read from `tests/teststation/go.mod` and the tarball's sha256 is pinned in the workflow, so a moved `go.mod` fails by name rather than installing whatever the URL now serves. - The advisories scan runs inside the forge's public `macula-pub` copy of the CI image, by digest, as uid 1000 (macula-rust#4), and the two shared gates are local copies, because the forge calls into another repository only when that repository is public. ## Done when A `v*` tag on the forge publishes `macula-rust` to the forge's Cargo registry, read back from that registry, and an `ffi-v*` tag likewise publishes `macula-rust-ffi` once the core version it depends on is there; nothing on GitHub is needed for either. ## What the first tag still needs `v0.15.1` and `ffi-v0.13.1` already exist as git tags (both at `4ca8de0`), and master is 39 commits past them with an `[Unreleased]` section for both crates. A release tag is never moved, so the first forge release is the next version: the version bump lands as its own reviewed change, and the tag follows it — the workflow refuses a tag whose name is not the version `Cargo.toml` carries.
Author
Member

Built on hygiea/2-release-on-the-forge at 499bf68, based on master 78d495c. Four files: the two release workflows ported, and the two shared gates carried as local copies.

What the branch does

  • The token. CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} in both files. That is the forge repository secret this issue's section 2 names; the owner fills it from ~/.config/forge/crates-macula-rust.token. The workflow only references it and never prints it.
  • The two cross-repository reusables are ./.github/workflows/ci-images-release-guard.yml and ci-images-dependency-advisories.yml, each byte for byte its upstream file below its STAND-IN header: the guard at b4c41abb (what these workflows pinned), the advisories at 476b5724. The advisories pin moves from 83a76a35 because that file still checks out with actions/checkout@v4 and dies at exitcode 127 in an image with no node; 476b5724 is the file with the plain-shell checkout (macula-ci-images#12).
  • The guard job runs on the runner's default job image, not in a container, because upstream's file still checks out with actions/checkout@v4 and needs node. That is the class macula-ci-images#11 tracks, and a copy cannot patch it alone (its STAND-IN header requires byte identity). A comment there names this repository as one more instance.
  • Checkout is the PLAIN-SHELL CHECKOUT block, verified identical to mcl-mail's.
  • Go is installed in the job, as ruled: the version is read from tests/teststation/go.mod (go 1.27.4), and the tarball's sha256 is the one literal, checked before anything is unpacked. go.dev/dl answers 302 to dl.google.com/go/, so the download follows redirects; without that the step saves the redirect stub and the check refuses it (found and fixed on this branch).
  • The publish job runs in git.macula.io/macula-io/macula-ci-otp@sha256:3e202cf7…, pulled with the org's read-only ci-image-puller account (vars.CI_IMAGE_PULL_USER / secrets.CI_IMAGE_PULL_TOKEN, the account martha's links job uses). That image carries rustup 1.29.1, cmake, build-essential, libssl-dev, git and python3; rustup installs the version rust-toolchain.toml pins, so no workflow names a toolchain.

What was run, and what it printed

In the pinned image, on this branch's tree:

  • rustup show → info: syncing channel updates for 1.99.1-x86_64-unknown-linux-gnu … downloading 6 components, active toolchain 1.99.1-x86_64-unknown-linux-gnu, active because: overridden by '/src/rust-toolchain.toml'; then scripts/assert_toolchain.sh → rustc 1.99.1, as pinned in rust-toolchain.toml. (rustup warns that auto-install of a missing active toolchain is deprecated; it works today on rustup 1.29.1, which is the pinned one in the image. If a later image's rustup drops it, the port needs rustup toolchain install in front — a change to make then, not a check to add now.)
  • the Go step, verbatim from the workflow: tarball 71 MB, sha256sum -c - → OK against 7226736c…, go version → go version go1.27.4 linux/amd64, then ./scripts/build-teststation.sh → go: downloading github.com/macula-io/macula-go v0.31.0 … and built /src/target/teststation (11,798,947 bytes).
  • actionlint on both files: silent except label "docker" is unknown, which is this runner's own label.

Still open, in order

  1. The repository reads has_actions=false: the first run of either file comes after the per-repo GO turns Actions on (Mars asks the Supervisor for it).
  2. The first proof is a tag. Until the crates token arrives, a run proves everything up to the upload and stops at cargo publish for want of the secret; the end-to-end proof is the first real tag after the token lands.
  3. ffi-v* publishes macula-rust-ffi only after the core version it names is on crates.io (the dry run proves that dependency resolves).
Built on `hygiea/2-release-on-the-forge` at 499bf68, based on master 78d495c. Four files: the two release workflows ported, and the two shared gates carried as local copies. ## What the branch does - **The token.** `CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}` in both files. That is the forge repository secret this issue's section 2 names; the owner fills it from `~/.config/forge/crates-macula-rust.token`. The workflow only references it and never prints it. - **The two cross-repository reusables** are `./.github/workflows/ci-images-release-guard.yml` and `ci-images-dependency-advisories.yml`, each byte for byte its upstream file below its STAND-IN header: the guard at b4c41abb (what these workflows pinned), the advisories at 476b5724. The advisories pin moves from 83a76a35 because that file still checks out with `actions/checkout@v4` and dies at exitcode 127 in an image with no node; 476b5724 is the file with the plain-shell checkout (macula-ci-images#12). - **The guard job runs on the runner's default job image**, not in a container, because upstream's file still checks out with `actions/checkout@v4` and needs node. That is the class macula-ci-images#11 tracks, and a copy cannot patch it alone (its STAND-IN header requires byte identity). A comment there names this repository as one more instance. - **Checkout** is the PLAIN-SHELL CHECKOUT block, verified identical to mcl-mail's. - **Go** is installed in the job, as ruled: the version is read from `tests/teststation/go.mod` (`go 1.27.4`), and the tarball's sha256 is the one literal, checked before anything is unpacked. `go.dev/dl` answers 302 to `dl.google.com/go/`, so the download follows redirects; without that the step saves the redirect stub and the check refuses it (found and fixed on this branch). - **The publish job** runs in `git.macula.io/macula-io/macula-ci-otp@sha256:3e202cf7…`, pulled with the org's read-only ci-image-puller account (`vars.CI_IMAGE_PULL_USER` / `secrets.CI_IMAGE_PULL_TOKEN`, the account martha's links job uses). That image carries rustup 1.29.1, cmake, build-essential, libssl-dev, git and python3; rustup installs the version `rust-toolchain.toml` pins, so no workflow names a toolchain. ## What was run, and what it printed In the pinned image, on this branch's tree: - `rustup show` → `info: syncing channel updates for 1.99.1-x86_64-unknown-linux-gnu … downloading 6 components`, active toolchain `1.99.1-x86_64-unknown-linux-gnu`, `active because: overridden by '/src/rust-toolchain.toml'`; then `scripts/assert_toolchain.sh` → `rustc 1.99.1, as pinned in rust-toolchain.toml`. (rustup warns that auto-install of a missing active toolchain is deprecated; it works today on rustup 1.29.1, which is the pinned one in the image. If a later image's rustup drops it, the port needs `rustup toolchain install` in front — a change to make then, not a check to add now.) - the Go step, verbatim from the workflow: tarball 71 MB, `sha256sum -c -` → OK against 7226736c…, `go version` → `go version go1.27.4 linux/amd64`, then `./scripts/build-teststation.sh` → `go: downloading github.com/macula-io/macula-go v0.31.0 …` and `built /src/target/teststation` (11,798,947 bytes). - `actionlint` on both files: silent except `label "docker" is unknown`, which is this runner's own label. ## Still open, in order 1. The repository reads `has_actions=false`: the first run of either file comes after the per-repo GO turns Actions on (Mars asks the Supervisor for it). 2. The first proof is a tag. Until the crates token arrives, a run proves everything up to the upload and stops at `cargo publish` for want of the secret; the end-to-end proof is the first real tag after the token lands. 3. `ffi-v*` publishes `macula-rust-ffi` only after the core version it names is on crates.io (the dry run proves that dependency resolves).
Author
Member

The proof shape changed on the Supervisor's ruling (via Mars, 2026-11-24): no tag is pushed for the port. Branch now at b5c7f71, second commit on PR 3.

Both release workflows take workflow_dispatch and stop before the upload:

  • workflow_dispatch declares no inputs at all, and the one non-dry-run cargo publish step is guarded on github.event_name == 'push'. Nothing a caller sends can reach it, and a dispatch started on a tag ref publishes nothing either, because the guard reads the event and not the ref.
  • The two tag checks (extract the version from the tag, compare it to the manifest) are skipped on a dispatch, since a dispatch's GITHUB_REF_NAME names a branch.
  • The dry run is unconditional, so it is what a dispatch proves.

Checked mechanically on the branch by parsing both files: exactly one non-dry-run cargo publish per file, its if is the event guard, and workflow_dispatch has no inputs block.

For the lander's first run: dispatch release-core.yml. A dispatch of release-ffi.yml runs its dry run, and that dry run proves macula-rust-ffi's dependency on the core version against crates.io, so it would fail for a reason that is not the port.

The proof shape changed on the Supervisor's ruling (via Mars, 2026-11-24): no tag is pushed for the port. Branch now at b5c7f71, second commit on PR 3. Both release workflows take `workflow_dispatch` and stop before the upload: - `workflow_dispatch` declares no inputs at all, and the one non-dry-run `cargo publish` step is guarded on `github.event_name == 'push'`. Nothing a caller sends can reach it, and a dispatch started on a tag ref publishes nothing either, because the guard reads the event and not the ref. - The two tag checks (extract the version from the tag, compare it to the manifest) are skipped on a dispatch, since a dispatch's `GITHUB_REF_NAME` names a branch. - The dry run is unconditional, so it is what a dispatch proves. Checked mechanically on the branch by parsing both files: exactly one non-dry-run `cargo publish` per file, its `if` is the event guard, and `workflow_dispatch` has no inputs block. For the lander's first run: dispatch **release-core.yml**. A dispatch of release-ffi.yml runs its dry run, and that dry run proves `macula-rust-ffi`'s dependency on the core version against crates.io, so it would fail for a reason that is not the port.
Author
Member

R1 (Neptunus, r=1) folded in on a81ca86 — PR 3 now changes six files.

ci.yml, ported to the forge (plain-shell checkout, runs-on: docker, the CI image by digest with the org pull account): fmt, clippy, test, coverage, doc, erlang-helper-lint, go-helper-lint, and audit through the local advisories copy. The Go toolchain is installed from the tarball tests/teststation/go.mod names (sha256 pinned); golangci-lint comes from go install at the version the action pinned (v2.15.0, confirmed on the module proxy); the Rust dependency cache action goes with the runner's cache server, which is off.

Seven jobs are guarded with if: github.server_url == 'https://github.com', nothing deleted:

  • windows-keystore, android, android-keystore, ios, ffi-bindings-swift — no Windows/macOS/Android runner on the forge (the Supervisor's ruling, 2026-11-24: platforms decided with macula-ts#2's).
  • key-files-without-hard-links — it runs each built suite in docker run --security-opt seccomp=…, and the forge mounts no docker socket into a job by design (runner config: docker_host: "-", no host volumes); it also needs jq, which the image lacks.
  • ffi-bindings — scripts/compile_kotlin_bindings.sh runs kotlinc, which needs a JDK; java and javac are both absent from the CI image (checked inside it at this commit).

sealed-interop.yml: the sealed job is guarded too. Its only JavaScript actions are checkout and setup-go, so it looks portable, but scripts/interop/sealed.sh starts both sides with podman run (lines 96, 115, 149, 183) — the interop proof needs a runner with podman, which the forge's job containers deliberately do not provide.

That makes five open points on this issue for Raf to settle later: the three platform groups, the seccomp/docker job, and the podman interop job. None of them is dropped; each shows as skipped on the forge.

Checked statically (script over all six files, asserting three properties): no cross-repository uses: remains, so nothing fails to expand and hides a waiting job; every guarded job carries runs-on:; every unguarded job carries runs-on: docker, a label the runner serves. Also asserted: every container: job carries vars.CI_IMAGE_PULL_USER / secrets.CI_IMAGE_PULL_TOKEN (Mercurius's 401 finding), 8 of them, with go-helper-lint the only job without a container, on purpose. The tag version now reaches both validation scripts through env:, never pasted into the command text.

R1 (Neptunus, r=1) folded in on a81ca86 — PR 3 now changes six files. **ci.yml, ported to the forge** (plain-shell checkout, `runs-on: docker`, the CI image by digest with the org pull account): `fmt`, `clippy`, `test`, `coverage`, `doc`, `erlang-helper-lint`, `go-helper-lint`, and `audit` through the local advisories copy. The Go toolchain is installed from the tarball `tests/teststation/go.mod` names (sha256 pinned); golangci-lint comes from `go install` at the version the action pinned (`v2.15.0`, confirmed on the module proxy); the Rust dependency cache action goes with the runner's cache server, which is off. **Seven jobs are guarded** with `if: github.server_url == 'https://github.com'`, nothing deleted: - `windows-keystore`, `android`, `android-keystore`, `ios`, `ffi-bindings-swift` — no Windows/macOS/Android runner on the forge (the Supervisor's ruling, 2026-11-24: platforms decided with macula-ts#2's). - `key-files-without-hard-links` — it runs each built suite in `docker run --security-opt seccomp=…`, and the forge mounts no docker socket into a job by design (runner config: `docker_host: "-"`, no host volumes); it also needs `jq`, which the image lacks. - `ffi-bindings` — `scripts/compile_kotlin_bindings.sh` runs kotlinc, which needs a JDK; `java` and `javac` are both absent from the CI image (checked inside it at this commit). **sealed-interop.yml**: the `sealed` job is guarded too. Its only JavaScript actions are checkout and setup-go, so it looks portable, but `scripts/interop/sealed.sh` starts *both* sides with `podman run` (lines 96, 115, 149, 183) — the interop proof needs a runner with podman, which the forge's job containers deliberately do not provide. That makes five open points on this issue for Raf to settle later: the three platform groups, the seccomp/docker job, and the podman interop job. None of them is dropped; each shows as skipped on the forge. **Checked statically** (script over all six files, asserting three properties): no cross-repository `uses:` remains, so nothing fails to expand and hides a waiting job; every guarded job carries `runs-on:`; every unguarded job carries `runs-on: docker`, a label the runner serves. Also asserted: every `container:` job carries `vars.CI_IMAGE_PULL_USER` / `secrets.CI_IMAGE_PULL_TOKEN` (Mercurius's 401 finding), 8 of them, with `go-helper-lint` the only job without a container, on purpose. **The tag version now reaches both validation scripts through `env:`**, never pasted into the command text.
Author
Member

The forge-only ruling folded in on eaffa86 (DECIDED 2026-11-24, Raf: "we will ONLY use our own package management on the forge....no API key theatre we are sovereign", forge-setup#30 c3130).

  • .cargo/config.toml names the registry once: [registries.macula] index = https://git.macula.io/macula-sdk/_cargo-index, with git-fetch-with-cli for a git index. Third-party dependencies still resolve from crates.io; only publishing moves.
  • Both release workflows publish with --registry macula, and their dry runs target the same registry — a dry run that reads crates.io proves nothing about where the crate goes.
  • The credential is this repository's own publisher account in macula-sdk, made by the crew's script (forge-setup#36), and reaches a job only as the named secret CARGO_REGISTRY_TOKEN. No crates.io token exists in the tree.
  • The FFI dry run's core-version claim now names the forge registry.

One consequence to plan around, proved not guessed: a dry run against a registry that does not exist yet stops at the index fetch — cargo publish --dry-run --registry macula in the pinned CI image answers unexpected http status code: 404 on https://git.macula.io/macula-sdk/_cargo-index (probed 2026-11-24). So the first dispatched proof run needs macula-sdk to exist; until then that step is red for a reason that is not the port.

Also unverified until macula-sdk exists: whether cargo's publish verification resolves the FFI's path + version dependency from the macula registry rather than crates.io. The first real dry run settles it; if it resolves from crates.io, the FFI check needs an explicit index check and that is a small follow-up, not this round's.

Not changed, named for later: README.md lines 4-5 and several CHANGELOG.md links still point readers at crates.io crate pages, which this ruling makes stale documentation. That is a docs decision, not the release path's.

The forge-only ruling folded in on eaffa86 (DECIDED 2026-11-24, Raf: "we will ONLY use our own package management on the forge....no API key theatre we are sovereign", forge-setup#30 c3130). - `.cargo/config.toml` names the registry once: `[registries.macula] index = https://git.macula.io/macula-sdk/_cargo-index`, with `git-fetch-with-cli` for a git index. Third-party dependencies still resolve from crates.io; only publishing moves. - Both release workflows publish with `--registry macula`, and their dry runs target the same registry — a dry run that reads crates.io proves nothing about where the crate goes. - The credential is this repository's own publisher account in macula-sdk, made by the crew's script (forge-setup#36), and reaches a job only as the named secret `CARGO_REGISTRY_TOKEN`. No crates.io token exists in the tree. - The FFI dry run's core-version claim now names the forge registry. **One consequence to plan around, proved not guessed:** a dry run against a registry that does not exist yet stops at the index fetch — `cargo publish --dry-run --registry macula` in the pinned CI image answers `unexpected http status code: 404` on `https://git.macula.io/macula-sdk/_cargo-index` (probed 2026-11-24). So the first dispatched proof run needs macula-sdk to exist; until then that step is red for a reason that is not the port. **Also unverified until macula-sdk exists:** whether cargo's publish verification resolves the FFI's `path` + `version` dependency from the `macula` registry rather than crates.io. The first real dry run settles it; if it resolves from crates.io, the FFI check needs an explicit index check and that is a small follow-up, not this round's. **Not changed, named for later:** `README.md` lines 4-5 and several `CHANGELOG.md` links still point readers at crates.io crate pages, which this ruling makes stale documentation. That is a docs decision, not the release path's.
Author
Member

R2 (Neptunus, r=2) folded in at 723a076 — a fast-forward from 61a90ba, 8 lines in two files, nothing else in the range.

The defect. Both upload steps had ${ secrets.FORGE_PACKAGES_TOKEN } with single braces, so the runner would pass that text literally as the token; and cargo sends the value as the Authorization header verbatim, so a bare token gets 401 from the forge and Bearer <token> gets 200. Both now read CARGO_REGISTRIES_MACULA_TOKEN: Bearer ${{ secrets.FORGE_PACKAGES_TOKEN }}, with a comment saying why.

Checked on the tip after reading it, not on the report:

  • one occurrence of that name per file, on the step whose run is cargo publish --registry macula (and -p macula-rust-ffi in ffi), value exactly Bearer ${{ secrets.FORGE_PACKAGES_TOKEN }};
  • no malformed ${ ... secrets ... } expression left in any of the three workflows;
  • both files parse as YAML, and the range 78d495c..723a076 is the same seven files as at 61a90ba plus those 8 lines;
  • 723a076's parent is 61a90ba, and PR 3's head is 723a076 and mergeable.

The dispatch dry run is untouched: the upload step is guarded on github.event_name == 'push', and the dry run needs no token.

Open point, not a fail (named at r=2): sealed.sh could take a local switch like the Go helper's MACULA_LOCAL_ERL, because the CI image carries both OTP 28 and Rust; until then the sealed-interop job stays guarded off.

R2 (Neptunus, r=2) folded in at 723a076 — a fast-forward from 61a90ba, 8 lines in two files, nothing else in the range. **The defect.** Both upload steps had `${ secrets.FORGE_PACKAGES_TOKEN }` with single braces, so the runner would pass that text literally as the token; and cargo sends the value as the `Authorization` header verbatim, so a bare token gets 401 from the forge and `Bearer <token>` gets 200. Both now read `CARGO_REGISTRIES_MACULA_TOKEN: Bearer ${{ secrets.FORGE_PACKAGES_TOKEN }}`, with a comment saying why. **Checked on the tip after reading it, not on the report:** - one occurrence of that name per file, on the step whose `run` is `cargo publish --registry macula` (and `-p macula-rust-ffi` in ffi), value exactly `Bearer ${{ secrets.FORGE_PACKAGES_TOKEN }}`; - no malformed `${ ... secrets ... }` expression left in any of the three workflows; - both files parse as YAML, and the range 78d495c..723a076 is the same seven files as at 61a90ba plus those 8 lines; - 723a076's parent is 61a90ba, and PR 3's head is 723a076 and mergeable. The dispatch dry run is untouched: the upload step is guarded on `github.event_name == 'push'`, and the dry run needs no token. **Open point, not a fail (named at r=2):** `sealed.sh` could take a local switch like the Go helper's `MACULA_LOCAL_ERL`, because the CI image carries both OTP 28 and Rust; until then the sealed-interop job stays guarded off.
Author
Member

Dry run 3203 (release-core.yml on master 39135a78) and its fix, PR 4.

What 3203 was. Not an advisory and not a broken parse: the scan never ran. cargo audit exits 1 both for findings and for a failed advisory-database fetch, the stand-in accepts 1 as "findings", and its empty stdout then reads as "did not print JSON" — with the stderr that named the cause dropped, which is why the log had nothing.

Reproduced with the workflow's pinned cargo-audit 0.22.2 in this checkout: a working run prints 23,850 bytes of JSON and exits 1; an unwritable HOME and an unreachable database each print nothing on stdout and exit 1, with the reason on stderr (couldn't fetch advisory database: I/O operation failed: Permission denied and git operation failed).

What PR 4 does. The scan runs in ghcr.io/macula-io/macula-ci-otp:20261031-2106 by digest (public mirror, no credentials) with --user 1000:1000, in all three call sites — ci.yml's audit, release-core.yml, release-ffi.yml. With a known image the scan ran, and it found three real ones: RUSTSEC-2026-0523 and -0524 in quinn-proto 0.11.18, RUSTSEC-2026-0538 in quinn-udp 0.5.15. All fixed in patch releases inside quinn = "0.11", so the fix is a lock update to quinn-proto 0.11.19 and quinn-udp 0.5.16; the same scan on the updated tree reports 0 findings, rc 0.

Not fixed here. The stand-in still drops stderr when a scan cannot run; that is upstream in macula-ci-images (its own issue, per the Supervisor's split). After it lands, this repository, macula-py and macula-dotnet re-copy the stand-in byte for byte.

Dry run 3203 (release-core.yml on master 39135a78) and its fix, PR 4. **What 3203 was.** Not an advisory and not a broken parse: the scan never ran. `cargo audit` exits 1 both for findings and for a failed advisory-database fetch, the stand-in accepts 1 as "findings", and its empty stdout then reads as "did not print JSON" — with the stderr that named the cause dropped, which is why the log had nothing. Reproduced with the workflow's pinned cargo-audit 0.22.2 in this checkout: a working run prints 23,850 bytes of JSON and exits 1; an unwritable HOME and an unreachable database each print nothing on stdout and exit 1, with the reason on stderr (`couldn't fetch advisory database: I/O operation failed: Permission denied` and `git operation failed`). **What PR 4 does.** The scan runs in `ghcr.io/macula-io/macula-ci-otp:20261031-2106` by digest (public mirror, no credentials) with `--user 1000:1000`, in all three call sites — ci.yml's `audit`, release-core.yml, release-ffi.yml. With a known image the scan ran, and it found three real ones: RUSTSEC-2026-0523 and -0524 in quinn-proto 0.11.18, RUSTSEC-2026-0538 in quinn-udp 0.5.15. All fixed in patch releases inside `quinn = "0.11"`, so the fix is a lock update to quinn-proto 0.11.19 and quinn-udp 0.5.16; the same scan on the updated tree reports 0 findings, rc 0. **Not fixed here.** The stand-in still drops stderr when a scan cannot run; that is upstream in macula-ci-images (its own issue, per the Supervisor's split). After it lands, this repository, macula-py and macula-dotnet re-copy the stand-in byte for byte.
Author
Member

Parked 2026-11-24 on the crew cut. PR 4 is unchanged and pushed at df8812c df8812c71f for #4 (range 39135a7..df8812c, 4 files: 3 workflows + Cargo.lock).

The CI reds are NOT this diff. Reproduced both ways on msi00: cargo test --workspace --all-features --locked at df8812c passes outside a container (47 binaries, exit 0, ~750s); inside the pinned CI image (git.macula.io/macula-io/macula-ci-otp@sha256:3e202cf7…) with the runner's own limits (--memory=6g --cpus=4) only two tests fail, both keystore: keystore::tests::save_then_load_returns_the_same_key (src/keystore.rs:386) and keystore::tests::delete_is_idempotent (src/keystore.rs:443), each Backend(PlatformFailure(Unknown(38))) = ENOSYS on the keyctl round trip. So test and coverage fail for the same reason, while fmt/clippy/doc pass because they never call add_key.

Cause is the job container's default seccomp profile, proved in that same image: raw syscall(248, add_key, …) answers errno=38 (ENOSYS); the same container with --security-opt seccomp=unconfined answers rc=1005086489 (keyctl works). test_store()'s comment "keyutils is always available on Linux" is the false assumption.

So the fix is a policy call, not a code fix, and it needs the Supervisor's ruling because ci.yml guards jobs off the forge only by ruling: either (a) name the two keyutils tests as excluded on the forge (cargo test … -- --skip keystore::tests::, visible in the workflow, but that backend is then tested nowhere since GitHub CI is off), or (b) keep them running with container.options: --security-opt seccomp=unconfined on just test and coverage — container.options does reach the runner (the advisories job already passes --user 1000:1000 through it), at the cost of syscall filtering on those two jobs. I recommend (b) with the option scoped to those two jobs; (a) leaves real production code untested.

Not touched: nothing was changed on the branch, so there is no new tip. Worktree ~/work/worktrees/macula-rust-2-advisories-in-the-image stays as it is.

Also unclaimed, seen while parked: macula-py's first run on main (47cacc2) is red — test, wheels, wheel (manylinux_2_28_x86_64), tests (the image's python3) — nobody has it on macula-py#2.

Job logs are still unreadable for member tokens (the web route 404s too, at /actions/runs/2/jobs/2/attempt/1/logs with the token as header and as a query parameter); forge-setup#28 already covers that, so nothing new filed.

Parked 2026-11-24 on the crew cut. PR 4 is unchanged and pushed at df8812c df8812c71fcd4f045622b329feb9c0debd3d5b48 for #4 (range 39135a7..df8812c, 4 files: 3 workflows + Cargo.lock). The CI reds are NOT this diff. Reproduced both ways on msi00: `cargo test --workspace --all-features --locked` at df8812c passes outside a container (47 binaries, exit 0, ~750s); inside the pinned CI image (git.macula.io/macula-io/macula-ci-otp@sha256:3e202cf7…) with the runner's own limits (`--memory=6g --cpus=4`) only two tests fail, both keystore: `keystore::tests::save_then_load_returns_the_same_key` (src/keystore.rs:386) and `keystore::tests::delete_is_idempotent` (src/keystore.rs:443), each `Backend(PlatformFailure(Unknown(38)))` = ENOSYS on the keyctl round trip. So `test` and `coverage` fail for the same reason, while fmt/clippy/doc pass because they never call `add_key`. Cause is the job container's default seccomp profile, proved in that same image: raw `syscall(248, add_key, …)` answers `errno=38 (ENOSYS)`; the same container with `--security-opt seccomp=unconfined` answers `rc=1005086489 (keyctl works)`. `test_store()`'s comment "keyutils is always available on Linux" is the false assumption. So the fix is a policy call, not a code fix, and it needs the Supervisor's ruling because ci.yml guards jobs off the forge only by ruling: either (a) name the two keyutils tests as excluded on the forge (`cargo test … -- --skip keystore::tests::`, visible in the workflow, but that backend is then tested nowhere since GitHub CI is off), or (b) keep them running with `container.options: --security-opt seccomp=unconfined` on just `test` and `coverage` — `container.options` does reach the runner (the advisories job already passes `--user 1000:1000` through it), at the cost of syscall filtering on those two jobs. I recommend (b) with the option scoped to those two jobs; (a) leaves real production code untested. Not touched: nothing was changed on the branch, so there is no new tip. Worktree ~/work/worktrees/macula-rust-2-advisories-in-the-image stays as it is. Also unclaimed, seen while parked: macula-py's first run on main (47cacc2) is red — `test`, `wheels`, `wheel (manylinux_2_28_x86_64)`, `tests (the image's python3)` — nobody has it on macula-py#2. Job logs are still unreadable for member tokens (the web route 404s too, at /actions/runs/2/jobs/2/attempt/1/logs with the token as header and as a query parameter); forge-setup#28 already covers that, so nothing new filed.
Owner

Supervisor ruling 2026-11-24 (for when SDK work resumes; SDKs are parked under Raf's "6 on 3 goals"): option (b), container.options: --security-opt seccomp=unconfined on the test and coverage jobs only, so the keystore tests keep running. Raf may overrule.

Supervisor ruling 2026-11-24 (for when SDK work resumes; SDKs are parked under Raf's "6 on 3 goals"): option (b), `container.options: --security-opt seccomp=unconfined` on the `test` and `coverage` jobs only, so the keystore tests keep running. Raf may overrule.
Member

Done-when progress (issue stays open; the tag publish is still owed).

Landed: master 17dd454be9f14c46a3f84961ddbe672a69dfa19c (PR 7) drops the Windows, macOS and Android jobs from ci.yml — the repository now builds and tests Linux x64 only, quoting DECIDED 2026-11-25 "Linux x64 only (Recommended)". The round on that tip (ci.yml 6459) is green except the separate Dependency advisories / rust in . reds tracked by #4.

Still waiting for the Done-when: a v* tag on the forge publishing macula-rust to crates.io and being read back, and an ffi-v* tag doing the same for macula-rust-ffi. That needs the publish credential and the macula-sdk registry in place; the ci.yml platform change neither proves nor blocks it. So #2 stays open until that first real tag publish is read back — same shape as macula-go#2.

Done-when progress (issue stays open; the tag publish is still owed). **Landed:** master `17dd454be9f14c46a3f84961ddbe672a69dfa19c` (PR 7) drops the Windows, macOS and Android jobs from `ci.yml` — the repository now builds and tests Linux x64 only, quoting DECIDED 2026-11-25 "Linux x64 only (Recommended)". The round on that tip (`ci.yml` 6459) is green except the separate `Dependency advisories` / `rust in .` reds tracked by #4. **Still waiting for the Done-when:** a `v*` tag on the forge publishing `macula-rust` to crates.io and being read back, and an `ffi-v*` tag doing the same for `macula-rust-ffi`. That needs the publish credential and the `macula-sdk` registry in place; the `ci.yml` platform change neither proves nor blocks it. So #2 stays open until that first real tag publish is read back — same shape as macula-go#2.
titan changed title from release-core and release-ffi on the forge: crates.io from CARGO_REGISTRY_TOKEN, and the Go toolchain the forge lacks to release-core and release-ffi publish to the forge's Cargo registry, proven by a v* and an ffi-v* tag 2026-12-01 18:48:22 +00:00
Member

Progress on master, for the first-tag menu:

  • PR 10 (titan/2-forge-registry-rename) landed at 5ba17852: the index this repository names points at macula-pub, the org's name since the rename, and the ten prose lines in release-core.yml / release-ffi.yml follow it.
  • PR 11 (titan/2-version-bump-0-16) landed at eeeab071e22a0b030c2c70e01acbf7977a235884 — master's tip. macula-rust is 0.16.0 and macula-rust-ffi is 0.14.0, its dependency on the core at 0.16.0, Cargo.lock following both. Jupiter's review round added the notes 0.16.0 was missing: the public/fallback station tiers of #68, the move to this registry, and the three RUSTSEC fixes.

CI on the landed tip: ci.yml run 6482 on eeeab07, every job green (the three skips are the workflow's own shape, the same three every run here skips).

What waits is the Done-when this issue still owes: v0.16.0 on eeeab07, read back from macula-pub, then ffi-v0.14.0 likewise — the FFI dry run resolves the published core from that registry, so the order is load-bearing. Both tags are the owner's yes, through the Supervisor.

Progress on master, for the first-tag menu: - PR 10 (`titan/2-forge-registry-rename`) landed at `5ba17852`: the index this repository names points at `macula-pub`, the org's name since the rename, and the ten prose lines in `release-core.yml` / `release-ffi.yml` follow it. - PR 11 (`titan/2-version-bump-0-16`) landed at `eeeab071e22a0b030c2c70e01acbf7977a235884` — master's tip. `macula-rust` is `0.16.0` and `macula-rust-ffi` is `0.14.0`, its dependency on the core at `0.16.0`, `Cargo.lock` following both. Jupiter's review round added the notes 0.16.0 was missing: the public/fallback station tiers of #68, the move to this registry, and the three RUSTSEC fixes. CI on the landed tip: `ci.yml` run 6482 on `eeeab07`, every job green (the three skips are the workflow's own shape, the same three every run here skips). What waits is the Done-when this issue still owes: `v0.16.0` on `eeeab07`, read back from `macula-pub`, then `ffi-v0.14.0` likewise — the FFI dry run resolves the published core from that registry, so the order is load-bearing. Both tags are the owner's yes, through the Supervisor.
Member

Done-when met, checked against the registry itself rather than the release logs.

v0.16.0 publishes macula-rust — annotated tag object 67291706, pointing at eeeab071e22a0b030c2c70e01acbf7977a235884 (the 0.16.0 landing). release-core.yml run 6494 on ref v0.16.0 is success; its publish to the forge's Cargo registry job is 26757. macula-pub carries cargo/macula-rust 0.16.0, yanked: false, cksum f4455411663b5fec08cf5c44c7552e906a20619bccba74abbbc491fb18447024, published by sdk-publisher at 2026-12-01T20:42:04Z.

ffi-v0.14.1 publishes macula-rust-ffi — signed tag 61db87d8, pointing at 4b72f2719b6109f77e807a804912e8f8ebc554d7 (the 0.14.1 landing). release-ffi.yml run 6534 on ref ffi-v0.14.1 is success; its publish to the forge's Cargo registry job is 26889. macula-pub carries cargo/macula-rust-ffi 0.14.1, yanked: false, cksum 8d30dcdf58d079ed6997473a29e6a592d2f62fd52f8618790fd189d8c76d2633, published by sdk-publisher at 2026-12-01T23:21:36Z.

And a real consumer resolves it, which is what "read back" has to mean — a scratch crate whose only dependency is macula-rust-ffi = { version = "0.14.1", registry = "macula" } resolves both crates out of the forge:

macula-rust     0.16.0  src=sparse+https://git.macula.io/api/packages/macula-pub/cargo/
macula-rust-ffi 0.14.1  src=sparse+https://git.macula.io/api/packages/macula-pub/cargo/

Nothing came from crates.io. (The published index entry writes registry: null for that dependency, which is Forgejo's same-registry marker; the resolution above is the proof of what cargo does with it.)

ffi-v0.14.0 is tagged and published nowhere, and this issue carries the reason: its release run 6510 failed at the publish job 26794, whose dry run went to the crates.io index for macula-rust ^0.16.0 and found no such version, because macula-rust-ffi/Cargo.toml's dependency named path and version but no registry. 0.14.1 carries registry = "macula"; the tag ffi-v0.14.0 is not moved, and the CHANGELOG records it.

Rulings this package was built under:

  • DECIDED 2026-11-24 "Yes, token plan (Recommended)"
  • DECIDED 2026-11-24 "we will ONLY use our own package management on the forge....no API key theatre we are sovereign"
  • DECIDED 2026-12-01 "Yes, tag both (Recommended)"
  • DECIDED 2026-12-01 "Yes, fix and tag 0.14.1 (Recommended)"

Nothing on GitHub is involved in either release.

Done-when met, checked against the registry itself rather than the release logs. **`v0.16.0` publishes `macula-rust`** — annotated tag object `67291706`, pointing at `eeeab071e22a0b030c2c70e01acbf7977a235884` (the 0.16.0 landing). `release-core.yml` run 6494 on ref `v0.16.0` is success; its `publish to the forge's Cargo registry` job is 26757. `macula-pub` carries `cargo/macula-rust 0.16.0`, `yanked: false`, cksum `f4455411663b5fec08cf5c44c7552e906a20619bccba74abbbc491fb18447024`, published by `sdk-publisher` at 2026-12-01T20:42:04Z. **`ffi-v0.14.1` publishes `macula-rust-ffi`** — signed tag `61db87d8`, pointing at `4b72f2719b6109f77e807a804912e8f8ebc554d7` (the 0.14.1 landing). `release-ffi.yml` run 6534 on ref `ffi-v0.14.1` is success; its `publish to the forge's Cargo registry` job is 26889. `macula-pub` carries `cargo/macula-rust-ffi 0.14.1`, `yanked: false`, cksum `8d30dcdf58d079ed6997473a29e6a592d2f62fd52f8618790fd189d8c76d2633`, published by `sdk-publisher` at 2026-12-01T23:21:36Z. **And a real consumer resolves it**, which is what "read back" has to mean — a scratch crate whose only dependency is `macula-rust-ffi = { version = "0.14.1", registry = "macula" }` resolves both crates out of the forge: ``` macula-rust 0.16.0 src=sparse+https://git.macula.io/api/packages/macula-pub/cargo/ macula-rust-ffi 0.14.1 src=sparse+https://git.macula.io/api/packages/macula-pub/cargo/ ``` Nothing came from crates.io. (The published index entry writes `registry: null` for that dependency, which is Forgejo's same-registry marker; the resolution above is the proof of what cargo does with it.) **`ffi-v0.14.0` is tagged and published nowhere**, and this issue carries the reason: its release run 6510 failed at the publish job 26794, whose dry run went to the crates.io index for `macula-rust ^0.16.0` and found no such version, because `macula-rust-ffi/Cargo.toml`'s dependency named `path` and `version` but no registry. 0.14.1 carries `registry = "macula"`; the tag `ffi-v0.14.0` is not moved, and the CHANGELOG records it. Rulings this package was built under: - DECIDED 2026-11-24 "Yes, token plan (Recommended)" - DECIDED 2026-11-24 "we will ONLY use our own package management on the forge....no API key theatre we are sovereign" - DECIDED 2026-12-01 "Yes, tag both (Recommended)" - DECIDED 2026-12-01 "Yes, fix and tag 0.14.1 (Recommended)" Nothing on GitHub is involved in either release.
titan closed this issue 2026-12-01 23:23:43 +00:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
macula-io/macula-rust#2
No description provided.