Merged under Skylar's explicit Exec 476 grant after a fresh argon review returned MERGE on both halves, CI green on this head, and CodeRabbit on this head with no open threads. Forwards exactly the fifteen signing secrets the shared nightly signer declares (craft-common-actions #376, pinned at 3dee1822), with no `environment:` anywhere, and relaxes one trust-closure assertion to exactly that allowlist for the signer caller only.
12 KiB
Windows, Linux and macOS release-ref nightly: supervised manual go-live
Enabled for supervised manual runs, not yet qualified. The producer (nightly.yml, main) and the
signer (nightly-sign.yml, on the dedicated nightly-signer branch) keep only their exact context guards and run when one of the reviewed
manual actors dispatches them. There is no schedule yet. The installed policy
.github/nightly-signing-policy.json is the v3 policy
adapted from storytold/photocraft#16594. producer_workflow_id is the registered
nightly.yml workflow id, read with:
gh api repos/storytold/gridcraft/actions/workflows/nightly.yml --jq .id
The callers pass no platform secrets. The unsigned reusable caller's maximum OIDC/attestation
permissions are for its isolated attester; its compiler narrows to contents and Actions read
only, with no OIDC, attestation write, release environment or platform signing secrets.
Shared tooling is pinned to 3dee18226ed28134896f69fb8b280fff9247ec7f, the craft-common-actions
main commit that merged the signer Windows fix (#375), following the shared work already
reviewed here. Both callers name it in uses and tooling-revision. A pin is reviewed source
availability, not provider, queue, native signing or crypto qualification.
Signer branch. The signer runs on refs/heads/nightly-signer, not on the stable release
branch, so nightly signer files never need a stable release sync. The policy's release_branch
names it, the signer's guard requires it and its caller passes app-name. The branch only
fast-forwards to reviewed main commits, through the nightly-signer settings script's advance (no
queued signer run, a trust-closure scan, then the full diff of .github/ and packaging/), and the
existing release environment must admit nightly-signer alongside release before the first
dispatch (a repository settings change, not a workflow one). Its trust closure is all of .github/
and packaging/, including packaging/env.sh, which import-cert.sh sources with the Apple keys.
On that branch only the pinned nightly-sign.yml caller may reach an environment: no app workflow
binds one, nothing else calls nightly-release.yml, and the only caller of the shared stable
release.yml is release.yml, whose callee must carry the stable-only environment guard. The
contract tests check the in-repo part on every main PR; the settings scan also resolves the callee.
Stable releases still come only from refs/heads/release. History does not carry over a switch
between release and nightly-signer, so the switch happens before the first publication.
Existing stable workflows are unchanged.
First runs. The first runs are manual dispatches in this order: nightly.yml on main (only a
listed manual actor passes the producer's plan step), then nightly-sign.yml on nightly-signer with that
producer run ID and attempt, by a listed manual actor.
Manual actors. bflatastic, dylanmtaylor, echelon, FredApps and skylartaylor, in the
producer's manual-actors and the policy's manual_actors. The list mirrors the release-managers
team (id 19837241), leaving out echelon-robot; update it by PR in both places when the team changes.
Admission timing. The candidate check reads the newest CI run on the candidate commit and main's latest finished Sonar analysis, so when to dispatch matters:
- Pick a quiet main, wait for its CI and SonarCloud analysis to finish green, then dispatch the producer and, once it succeeds, the signer, before another main push lands a newer analysis.
Platform rows. The producer caller lists
platforms: '["windows-x86_64","linux-x86_64","macos-aarch64"]' on its single job: one producer
run builds every listed platform for one all-or-nothing release (one failed or skipped platform stops
that night's release), and the release-ref signer admits platforms only from the protected policy,
so there is no separate Linux or macOS caller job and the signer caller has no platform input.
Installed policy values and their sources
Read on 2026-11-24; re-read anything that may have moved (and populate producer_workflow_id and
any Sonar debt snapshot) before nightly-signer is advanced to it.
| Field | Value | Source |
|---|---|---|
repository_id |
1408285582 |
gh api repos/storytold/gridcraft --jq .id |
producer_workflow_id |
429713469 |
gh api repos/storytold/gridcraft/actions/workflows/nightly.yml (path .github/workflows/nightly.yml, state active) |
producer_tooling_revision, signer_tooling_revision, producer_workflow_ref |
3dee1822… (the signer Windows fix (#375)) |
The callers' pin |
manual_actors / automatic_signer_actors |
the five release managers / [] |
release-managers team (id 19837241) members who can push; equals the producer caller's manual-actors |
max_age_seconds, max_artifact_bytes |
86400, 2147483648 |
Go-live checklist |
platforms |
three rows | Suite stable identities (Windows Authenticode publisher subject, Linux OpenPGP release key fingerprint, macOS Apple Developer ID team DJ6XS33FX8) |
candidate_policy.required_workflows |
CI (ci.yml, workflow 380135773), 1 job (gate / gate (ubuntu-24.04)) |
Workflow list API and recent green main push run |
candidate_policy.sonar |
storytold / storytold_gridcraft, app 12526 |
sonar-project.properties; the SonarCloud check on main commits |
Sonar issue_types / debt |
VULNERABILITY / [] |
Refresh from api/issues/search on main before promoting to release |
Ownership and interface
.github/workflows/nightly.yml: default-main registration of the unsigned producer, namedGridCraft unsigned nightly, enabled for manual dispatch bymanual-actors; no signing secrets may be passed or inherited..github/workflows/nightly-sign.yml: top-level signer registration, enabled for manual dispatch onnightly-signer, which carries a reviewed main commit. It rejects wrong repository/event/actual branch, including same-name tags. Its constant whole-run concurrency (gridcraft-nightly-release) is distinct from stable, cancellation is off andqueue: maxmust be hosted-qualified. The caller itself passes no credentials; only the shared callee's sign jobs bind thereleaseenvironment.- Shared reusable entrypoints are
nightly-unsigned.ymlandnightly-release.ymlinstorytold/craft-common-actions. Both must resolve to a real reviewed public immutable commit; the defining workflow SHA and tooling input must match.
Local regression checks
python3 packaging/nightly-release-tests.py verifies the GridCraft nightly source contract:
- Both callers share one pinned 40-hex commit in
usesandtooling-revision. - No cache actions, cache setup options,
environment:, orsecretsappear in the callers. - No nightly schedule is registered.
- Producer and signer keep their exact context guards (every
if:form and continuation line is read). - Manual actors are exactly the reviewed release managers in both
nightly.ymland.github/nightly-signing-policy.json, withautomatic_signer_actorsempty. - Root serialization in
nightly-sign.ymlremains literal (group: gridcraft-nightly-release,cancel-in-progress: false); it carries noqueue:key while actionlint 1.7.12 rejects that key, and the value is re-added when the hosted queue is qualified. - Installed policy v3 fields, bounds, platforms, candidate workflows, and Sonar identity match
sonar-project.propertiesand the callers. - The
nightly-signertrust-closure scan: no app workflow bindsenvironment:, onlynightly-sign.ymlcallsnightly-release.ymlat a 40-hex SHA, and the only caller of the shared stablerelease.ymlisrelease.yml.
GridCraft's nightly-v1 flavor (the same branch)
On top of the callers above, this branch makes the app a real nightly-v1 channel: a nightly build is a
separate identity with its own data root, and every format starts it through the flavor's launch
protocol. None of this changes stable's behavior or the callers' authority.
Identity and version line. build.rs maps GRIDCRAFT_BUILD_CHANNEL=nightly-v1 to
cfg(gridcraft_nightly_v1) and refuses any other value; a nightly build requires the prepared
GRIDCRAFT_VERSION and answers --version with exactly GridCraft <version> (nightly-v1) — plain,
and in the Launcher's --launch-profile nightly-v1 --profile-root <abs> --version form, before any
root validation, logging, window or token. packaging/nightly-common.sh, macos/nightly-verify.sh
and windows/nightly.ps1 compare that exact line, so the packaged scripts and the binary cannot
disagree. Stable still prints its Cargo version.
Data root. A nightly starts from --launch-profile nightly-v1 --profile-root <dir> -- files…
(separate tokens, refused in any other form) and keeps settings, prefs, logs and the control token
inside that folder; profile_root refuses the stable rows in both directions, a relative or
traversing root, a root that resolves through a link into a fenced folder, an inherited
FLATPAK_ID other than ai.storyteller.gridcraft.nightly, and the running installation. Users get
${XDG_DATA_HOME:-$HOME/.local/share}/gridcraft-nightly/profile, a sibling of stable's
<xdg>/gridcraft, never an ancestor.
Every Linux format ships a launcher. The flat nightly tar's gridcraft is craft-common-actions'
shared launcher template (scripts/nightly-launcher.sh.in from #363, rendered for this app), so it always
supplies its own profile; the packaged formats pass an already-supplied profile through.
| Format | Launcher | GUI | Data root |
|---|---|---|---|
| deb/rpm | /usr/bin/gridcraft-nightly |
/usr/lib/gridcraft-nightly/gridcraft |
<xdg>/gridcraft-nightly/profile |
| AppImage | AppRun (a script) and usr/bin/gridcraft-nightly |
usr/bin/gridcraft |
same |
| flat nightly tar | gridcraft (the shared template) |
gridcraft-bin |
<xdg>/ai.storyteller.gridcraft.nightly |
| plain tree tarball | bin/gridcraft-nightly |
bin/gridcraft |
<xdg>/gridcraft-nightly/profile |
| Arch handoff | bin/gridcraft-nightly |
.gridcraft-nightly/gridcraft |
<xdg>/gridcraft-nightly/profile |
| Flatpak bundle | /app/bin/gridcraft-nightly |
/app/bin/gridcraft |
the sandbox's own ~/.local/share |
The flat nightly tar uses the kit's standard layout: <app> is the launcher people run and
<app>-bin is the GUI ELF it starts, so the shared Unix verifier can keep requiring gridcraft
as the entrypoint. That launcher is the shared template: it resolves its own directory once and execs
gridcraft-bin with --launch-profile nightly-v1 --profile-root <xdg>/ai.storyteller.gridcraft.nightly --
and the user's arguments, asking a bare --version/-V in the Launcher's own form.
macOS and Windows. GridCraft Nightly.app (CFBundleIdentifier ai.storyteller.gridcraft.nightly, associations removed) is built and verified unsigned on main and
signed/notarized in the release signer; Windows gets a GUI-only x86_64 .unsigned.zip with the AUMID
ai.storyteller.gridcraft.nightly-v1, no MSI, no CLI and no portable marker. Both refuse signing
material during compilation.
Local checks. python3 packaging/nightly-tests.py runs every synthetic suite in one pass: the
flat-archive policy, the macOS plist and sign/verify suites, the Linux launch and staging suites and
packaging/nightly-release-tests.py. python3 packaging/nightly-icons.py --check proves the
committed nightly icons still match assets/app-icon/nightly-provenance.json. packaging-lint.yml
runs both in its nightly-source-contract job. None of these compile the app or touch a key.
Still unqualified. No hosted producer or signer run, no native signing, no Flatpak build and no Linux/macOS desktop QA beside a stable install have happened for this flavor; the Rust unit tests have only been type-checked where no capacity was available. Treat the first supervised run as the first real qualification.