Merged under Skylar's explicit Exec 430 override. Moves every nightly pin from craft-common-actions be00e5cc to 8389cad8 (#375), which carries the Windows ctime rule that stops the signer refusing a just-written JSON.
25 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. nightly-dispatch.yml stays literally off and there is no schedule:
it only forwards scheduled producers. The installed policy
.github/nightly-signing-policy.json is the real v3
policy. Its producer_workflow_id is the registration of nightly.yml on main, read with:
gh api repos/storytold/photocraft/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 8389cad8b849ea6bdb5e15fbce16772c3457565a, the craft-common-actions
main commit that merged #371, which
admits the built commit on its own Sonar analysis rather than main's latest. It includes #370,
#369 (the clean-source fix and the macos-15 runner), #367 and
#364, which
lets the signer run on the policy's signer branch (release or nightly-signer). It includes
#363 (the multi-app pipeline, which
makes the signer's app-name input required), #339 (605d5876) and #342 (a4f6fd51).
Both callers name it in uses and tooling-revision. A pin is reviewed
source availability, not provider, queue, native signing or crypto qualification.
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. nightly-dispatch.yml only matters once a
schedule is approved.
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 the dispatcher targets it. The branch only
fast-forwards to reviewed main commits, through python3 scripts/nightly_signer_settings.py advance --repos photocraft --sha <main commit>, run from a craft-common-actions checkout with PyYAML (see releasing.md for the exact steps; no queued signer
run, a trust-closure scan, then the full diff of .github/ and packaging/), and the existing
release environment trusts it alongside release. 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.
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, which can only read photocraft; 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, since #371, the candidate's own main Sonar analysis, so when to dispatch matters:
- Dispatch the producer only on a main commit pushed after that day's scheduled CI run (03:11 UTC). The scheduled run leaves out most of the 19 required jobs (the Windows legs, git-sources, the test without HEIF and the web build), and if it ran on the same commit it is the newest run there, so admission refuses.
- The candidate needs its own finished main SonarCloud analysis, at most a day old (Sonar keeps intraday analyses for only a day or two). Later merges and their analyses no longer stop admission, but every unresolved main vulnerability, and every one resolved since the candidate's analysis, must be in the reviewed debt. Wait for the candidate's CI and SonarCloud analysis to finish, then dispatch the producer and, once it succeeds, the signer within a day.
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, Windows included), 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. The shared Linux leg runs the app's
packaging/linux/nightly.sh --arch x86_64 (GUI-only photocraft-<version>-linux-x86_64-nightly.tar.gz)
and signs with the stable OpenPGP key; the macOS leg runs packaging/macos/nightly.sh --arch aarch64
unsigned on main, then packaging/macos/nightly-sign.sh (stable import-cert.sh, Developer ID,
hardened runtime, notarization and stapling) and nightly-verify.sh from the protected release
checkout. Those scripts are owned by PhotoCraft's Linux and macOS packaging authors, not by these
callers. Neither leg has run on hosted runners: launch, profile isolation beside stable and the
Launcher install still need Linux and macOS desktop QA.
This is not a hosted no-key test, a native signing result or a working nightly feed.
Installed policy values and their sources
Read on 2026-11-23, with the Sonar gate and debt re-read on 2026-11-24; re-read anything that may have moved before nightly-signer is advanced to it.
| Field | Value | Source |
|---|---|---|
repository_id |
1398080271 |
gh api repos/storytold/photocraft --jq .id |
producer_workflow_id |
428462603 |
gh api repos/storytold/photocraft/actions/workflows/nightly.yml after nightly.yml reached main (path .github/workflows/nightly.yml, state active) |
producer_tooling_revision, signer_tooling_revision, producer_workflow_ref |
8389cad8… (craft-common-actions #375, with #371, #370, #369, #367 and #364) |
The callers' pin |
manual_actors / automatic_signer_actors |
the five release managers / [] |
release-managers team (id 19837241) members who can push (4 admin, FredApps write); equals the producer caller's manual-actors |
max_age_seconds, max_artifact_bytes |
86400, 2147483648 |
Go-live checklist (Linux tarball is about 126 MB) |
platforms |
three rows | v0.23.1 stable identities, as in the example; the Windows publisher subject was confirmed by reading the stable v0.23.1 photocraft.exe Authenticode signature on Windows |
candidate_policy.required_workflows |
CI (ci.yml, workflow 371199934), 19 jobs |
Workflow list API; jobs that succeeded on every recent main push run (the only always-run main workflow without path filters) |
candidate_policy.sonar |
storytold / storytold_photocraft, app 12526 |
sonar-project.properties; the SonarCloud check on main commits |
| Sonar conditions | new_security_rating accepted (max 5); the other five required |
Quality gate of main analysis 19880b44 (commit 27c629f7, 2026-11-24 12:40 UTC) |
Sonar issue_types / debt |
VULNERABILITY; all 15 unresolved main vulnerabilities, accepted as debt for the first run (Skylar's decision) |
api/issues/search on main at the same analysis |
The candidate check refuses when any vulnerability that was open at the candidate commit (still
unresolved on main, or resolved since the candidate's analysis) isn't in debt, when main has an
unresolved vulnerability that isn't in debt (even one introduced after the candidate), when a
required condition fails, or when a listed CI job is renamed. A debt entry that was fixed later
doesn't refuse. Refresh those values in the same reviewed main change that nightly-signer is then
advanced to.
Ownership and interface
.github/workflows/nightly.yml: default-main registration of the unsigned producer, namedPhotoCraft unsigned nightly, enabled for manual dispatch bymanual-actors; no signing secrets may be passed or inherited..github/workflows/nightly-dispatch.yml: completion transport only, still literally off until a schedule is approved. On activation it accepts only a successful same-repository/main first scheduled producer attempt, then sends onlyproducer_run_idandproducer_run_attemptto the fixednightly-sign.ymlonrefs/heads/nightly-signer. No checkout, artifact parsing, application code or release environment is used here. Its filters are not authorization: a writer can edit main transport..github/nightly-linux-signing-key.asc: the stable Linux release public key, byte for byte therelease-signing-key.ascpublished with v0.23.1 (one ed25519 primary key,2B76741B414AAD6CD33E631213A005C0B9D7C3ED, with one signing subkey). The shared Linux verifier reads it from the protectednightly-signercheckout, never from a release asset. Public material only..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 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. The release callee's request inputs are consistentlyproducer_run_idandproducer_run_attempt, whiletooling-revisionkeeps its existing hyphen spelling. Confirm the final landed interface before any future pin update or activation. Unsigned inputs aretooling-revision,app-name,manual-actors(default[]),craft-fonts-refandplatforms; PhotoCraft's title is reviewed source, not anapp-titleinput. The reusable caller grants maximum permissions only; each callee job must narrow them independently. Shared code owns attestation validation, candidate quality, archive bounds, native signing, role-separated receipts and publication. App code must not duplicate those parsers. - The existing
packaging/windows/sign.ps1 -Requiredis the app-owned Windows adapter. Invoke it only from the immutable release execution SHA checkout, never the producer's main source or extracted archive. Shared Windows tooling must own the flat GUI-only ZIP, PE/inventory checks and post-sign verification; do not executenightly.ps1,package.ps1or the payload beside keys. No new wrapper is needed.sign.ps1is unchanged here.
Policy fields and their required authority
.github/nightly-signing-policy.json is installed with the values and sources listed above, and the
shared validator accepts it. The adjacent
nightly-signing-policy.example.json stays intentionally
invalid (null unresolved values), not installable configuration. Its platforms rows do carry
the reviewed public values: each fixed nightly-unsigned-<platform> artifact kind and stable's
identities, read from the v0.23.1 release (Windows Authenticode leaf subject in Windows form,
the Linux release key's primary fingerprint, and the Developer ID team DJ6XS33FX8 from the
macOS CLI's code signature). Install only independently
read, reviewed real values under explicit schema craft-nightly-release-policy/v3 (v2 top-level fields
without platform, unsigned_artifact_name and windows_publisher_subject, plus a platforms map):
| Field | Required source of authority |
|---|---|
repository, repository_id |
Exact PhotoCraft repository and authenticated numeric ID |
producer_workflow_id, producer_workflow_path |
Real default-branch registration ID and .github/workflows/nightly.yml |
producer_tooling_revision, producer_workflow_ref |
Approved shared unsigned producer/attester commit and exact reusable path at that commit |
signer_workflow_path, signer_tooling_revision |
.github/workflows/nightly-sign.yml and reviewed public shared signer commit |
release_branch, platforms keys |
nightly-signer (the shared validator allows release or nightly-signer); exactly the producer's platforms list and the targets admitted in the shared registry (windows-x86_64, linux-x86_64, macos-aarch64) |
manual_actors |
Reviewed manual producer/signer and rerun authority only: the five release managers, the same list as the producer's manual-actors |
automatic_signer_actors |
Empty while there is no schedule; separate reviewed automatic-only authority for signer attempt 1 after authenticating a scheduled producer attempt 1; no manual producer or rerun grant |
max_age_seconds, max_artifact_bytes, platforms.<platform>.unsigned_artifact_name |
Reviewed bounded age/size and each platform's fixed unsigned artifact kind/prefix; actual upload/discovery name is that prefix + - + authenticated producer run ID + - + authenticated producer attempt, never a caller pattern or substitution |
candidate_policy |
Full reviewed craft-nightly-candidate-policy/v3 with real required workflow/job/check/app IDs, Sonar organization/project/issue types/conditions and exact approved debt fingerprints; provider configuration is trusted as resolved, not a pinned scan inventory |
platforms.linux-x86_64.trust.fingerprint |
Full primary fingerprint of the stable Linux release key, independently reviewed; the signer-branch checkout must also hold exactly that one public key at .github/nightly-linux-signing-key.asc, and the existing LINUX_SIGNING_KEY must be in the release environment only |
platforms.macos-aarch64.trust.apple_team_id |
Stable's ten-character Developer ID team DJ6XS33FX8, read from the stable v0.23.1 macOS code signature, whose leaf is CN=Developer ID Application: Learning Machines LLC (DJ6XS33FX8), OU=DJ6XS33FX8, O=Learning Machines LLC. The Windows certificate names a different entity, Learning Machines Inc; only the team ID DJ6XS33FX8 is enforced on macOS. Never a repository variable. The six stable APPLE_*/KEYCHAIN_PASSWORD names must be in the release environment only |
platforms.windows-x86_64.trust.publisher_subject |
Exact independently reviewed protected policy string used by both signer and fresh credentialless Windows publisher; nonempty, at most 1024 characters (the native signer's bound, checked at policy validation since #339), no CR/LF/NUL; verified native subject must match exactly, never an artifact/caller input |
Live admission requires explicit policy v3 once the shared parser lands it; v2 is single-platform
Windows only and is not silently migrated. Historical v1 retains its exact old fields and
broad manual-list semantics, and is not silently migrated or accepted for live admission. The
v2 actor lists are separate, bounded and case-normalized; overlaps refuse. An automatic-only
actor may authorize only signer attempt 1, after the validator authenticates a scheduled
producer attempt 1. That list grants no manual producer, producer rerun or signer rerun
authority. Those requests require the independently reviewed manual_actors list.
Before future automatic dispatch is activated, its identity needs explicit review for
automatic_signer_actors; no bot is implicitly trusted or installed here. Never union that
list into manual_actors or the unsigned caller's manual-actors input. The producer's
manual-actors and the installed policy's manual_actors both list the five release managers;
automatic_signer_actors stays empty, and the example's lists stay empty.
Post-publication recovery limitation
The pinned shared revision now prevents a narrowly scoped failure, not general recovery:
only after the publisher returns through successful final verification may an ownership
receipt I/O failure be reported without failing that already-verified publication. A public
PATCH callback alone is insufficient. Pending bytes become canonical ownership.json only
after successful write, flush/fsync and close; incomplete receipts supply no canonical
ownership or pruning authority. The optional ownership upload uses only that canonical
path, warns if missing and cannot by itself fail the publication job.
This does not repair historical failed attempts or reconcile runner loss, timeouts, uncertain publication responses, or failed/incomplete final verification. Those cases remain stopped for release-manager reviewed manual handling; re-running does not repair an old recorded failure. No general authenticated reconciliation protocol, retry or public-state editing/ deletion authority is introduced. Manual handling of these remaining cases still needs preactivation review and qualification. These are source behaviors, not hosted/crypto proof.
Confirm the shared parser's final exact fields; unknown/missing/null values must refuse.
Do not derive policy, code/tool paths, trust anchors or ignored debt from a candidate archive.
Independently pinned signing tools are also unresolved; configure them, and the trust values
above, only through the reviewed shared/release contract, never a guessed app value or an
override from main. The unchanged stable release.yml forwards Windows/Azure
secret names from caller scope, while the nightly signer forwards none. Before activation,
verify the existing release environment holds the required names and that repository or
organization scopes do not expose signing copies to main. Environment-only missing values
must fail closed; repository/org-only values or same-name scope collisions are blockers,
not permission to copy keys or change settings. No secret names/scopes or protection settings
were audited by this source change; no secret values were read.
Bounded integration and acceptance
-
The callers reference the same reviewed public commit in
usesandtooling-revision. The producer and signer are enabled only for the reviewed manual actors; the dispatcher stays literally off until a schedule is separately approved. Future shared pin updates require review of the exact public immutable source and interface. Do not claim the enabled callers as a qualified pipeline before the first supervised runs pass. Do not temporarily call old same-run signing or use mutable@main/@releasetooling. Keep compiler permissions contents and Actions read only, with no OIDC, attestation write, release environment or platform secrets. Only the isolated unsigned attester receives its required Actions-read, attestation-write and OIDC, never platform keys. Re-run the no-cache static check over all trusted jobs/callees, including setup-action cache options. -
Register on main through normal review. Promote identical signer/policy/adapter contents only during an already-intended stable sync, following the release trust-closure review. A release push can build/update a stable draft or refuse an already-published version; this source change authorizes no push, skip-CI workaround or dummy version bump.
-
Hosted no-platform-key, separately authorized tests must establish actual release dispatch context/permissions, queue retention/displacement, re-runs/current actor denial, exact attestation
invocationIdrun/attempt and immutable reusable identity. Test wrong repository/ref/tag/event/actor, substituted run/attempt/artifact/transport ZIP/inner package, missing/expired artifacts and all digest/claim mismatches. Transport archive SHA, unsigned package SHA and final signed SHA are different roles, never interchangeable. -
Candidate-v3 quality must prove exact C required latest runs/jobs and take the Sonar snapshot first. Require coherent latest main-C revision/SCM at collection boundaries, complete paginated branch issues scoped to reviewed issue types with count/end reread, and the same analysis's gate and exact reviewed debt fingerprints. Profiles, rules, scanner configuration and warnings are trusted as resolved by the provider, like main CI; configuration changes can hide issues. This is not immutable scan-inventory proof, full scan-scope enforcement or a warning-free-scan guarantee. The example has no
sonar.scopefield; its exact Sonar fields match the shared candidate-v3 parser.Debt may shrink only with analysis-driven FIXED lifecycle proof and independently qualified exact-C source-hash absence; missing/manual/REMOVED/unchanged-source proofs refuse. Cloud source-hash normalization remains unqualified, so a vanished approved debt item currently refuses, rather than counting absence as a fix. Qualify the real hash semantics and lifecycle APIs without new credentials before claiming that path works.
Current main M may advance past C only by verified ancestry; C must strictly advance the previous authenticated publication P. Retained-snapshot revalidation currently refuses once the latest Sonar analysis advances past C: no qualified historical issue/proof API resolves that race. Do not promise publication survives a newer analysis. Repeat admission/pause/quality/ancestry/newest-run checks before keys and publication.
-
Separately authorize first native Windows signing/publication, signature/publisher/timestamp checks, Launcher install beside stable, launch/profile/version independence, rollback and uninstall preservation, and corrupt/unsigned/wrong-publisher rejection. No Linux/macOS coverage follows from Windows. Keep production/native/publication/prune switches off until their own acceptance. Nightly assets remain prerelease,
make_latest:false, with separate nightly tags/reservations. Historical failures, uncertain/failed final verification and runner loss retain the manual-handling limits described above; receipt-failure prevention does not supply general reconciliation.
Routine updates ride real stable windows, never automatic main-to-release copying. Pause or cancel via existing nightly workflow controls without pushing release; urgent repairs need one explicitly authorized bounded maintenance push. See the shared-identity incident note in the release guide. No daily witness renewal or per-run human approval is introduced by candidate-v3; provider gaps remain blockers.
Local regression checks
python3 packaging/nightly-release-tests.py executes the actual inline dispatcher with
synthetic, locally generated event fixtures and a mocked HTTPS opener. It verifies fixed
routing, refusal before contact and no retry; it does not contact GitHub or prove admission,
cryptography, native signing, hosted concurrency, or the shared candidate-v3 implementation.
It checks that the policy example's platforms equal the producer list, that each row names its
fixed artifact kind and stable identity, that .github/nightly-linux-signing-key.asc holds exactly
one public primary key whose fingerprint is the policy's, and that both callers share one pin in
uses and tooling-revision.
The same suite covers all three callers for the no-cache/no-platform-secret boundary,
requires nightly-dispatch.yml's jobs to stay explicitly off (a top-level OR cannot override
false), checks the enabled producer and signer for their exact context guards (every if: form
and continuation line is read), requires the manual actors to be exactly the release managers in
both the caller and the policy, and refuses any registered nightly schedule. It also rejects changed root serialization: the fixed PhotoCraft nightly group, queue: max,
and cancel-in-progress: false must remain literal. Mutation regressions reject invalid queue
values, cancellation and request-dependent groups. Packaging lint runs this suite in its
independent contents-read-only nightly-source-contract job, including config-only changes;
it does not rely on the shared Bash packaging hook to run the guard.
The existing .github/actionlint.yaml suppresses only actionlint 1.7.12's anchored exact
unsupported-queue message for .github/workflows/nightly-sign.yml. This operator-requested
compatibility exception is not a blanket syntax waiver: other files/messages still fail,
and the mandatory source guard supplies the missing queue-value/serialization checks.
No tool fork or shared lint change is needed. This same-PR nonprivileged CI hook is the
narrow correction requested for the nightly source; stable/release execution is unchanged.
Run through the normal task allocator; report actionlint/PowerShell/native/hosted checks
separately and never treat a missing runtime as a pass.