Files
photocraft/docs/nightly-release-preparation.md
skylar taylor-barrick 9d317c5fbb Enable the PhotoCraft nightly for supervised manual runs (#16594)
* Prepare dormant PhotoCraft release-ref nightly callers

* Keep dormant nightly callers lintable and guarded

* Refresh dormant nightly policy and shared-source pin

* Pin the dormant nightly callers to merged craft-common-actions main

craft-common-actions #330 merged as 077d4657. Both reusable workflows keep the
same inputs and secrets; the callers stay literally off.

* Finish the Nightly session in the app's exit hook

On macOS every quit (Cmd+Q, the close button, File > Quit, app.quit) leaves
through craft::quit, which sends -[NSApplication terminate:]. winit's
applicationWillTerminate: delivers LoopExiting, eframe runs the app's
on_exit, and AppKit then ends the process, so eframe::run_native never
returns there and the controlled-return code after it (the Nightly
session finish) never ran: every Mac Nightly start reported the previous
session as unclean.

Services gets an at_exit hook that on_exit runs once, last. The desktop
app finishes the shared Nightly session there, and again after run_native
for the paths that create no window (renderer failure), where the second
call is a no-op.

* Add the Apple-silicon Nightly build, signing and verification scripts

packaging/macos/nightly.sh compiles the GUI-only PhotoCraft Nightly.app
for aarch64 with no signing material (it refuses any) and writes the
unsigned photocraft-<version>-macos-aarch64-nightly.zip: the nightly-common
source and identity checks, nightly_plist.py's Info.plist, the Nightly icon
and notices, no CLI, DMG or document types, zipped without xattrs. It no
longer runs the bundle before signing.

packaging/macos/nightly-sign.sh is the trusted step the shared signer calls
(--arch aarch64 --input <unsigned zip> --output <final zip>). It requires
all six release secrets, imports the Developer ID with import-cert.sh into
a private keychain it deletes on exit, signs inside-out with the hardened
runtime, timestamp and entitlements, notarizes with notarytool, staples the
ticket into the bundle, and checks the final archive as the Launcher
unpacks it (signature, team, ticket, Gatekeeper) before writing it without
replacing anything. It never compiles or runs the payload.

packaging/macos/nightly-verify.sh runs in a job without secrets (it refuses
any): the same archive checks, then the bundle's --version with an empty
environment, for the signed feed artifact or the unsigned compile output.

nightly-common.sh splits the compile from the version query; Linux keeps
both. The new suite runs the scripts against stand-in Apple tools.

* Build the unsigned macOS Nightly in pull-request CI

A hosted macos-15 job, with no secrets or environment, builds the
aarch64 Nightly bundle with packaging/macos/nightly.sh when a pull
request changes the Mac Nightly packaging or flavor, and checks it with
nightly-verify.sh --expect unsigned, including the bundle's version.

* Add the Linux row to the dormant nightly callers

The single unsigned producer job lists linux-x86_64 beside windows-x86_64:
one producer run builds both platforms for one all-or-nothing release, and
the release-ref signer admits platforms from the protected policy, so there
is no separate Linux job and nightly-sign.yml is unchanged. The pinned shared
revision has no platforms input or Linux leg yet; the callers must be
re-pinned to a reviewed commit that defines them before activation. Every
job stays literally off.

The policy example moves to v3 with a per-platform map; each platform keeps
only its own trust anchor and every authority value stays null.

Packaging lint path filters now cover the files the contract tests read: the
policy example, the installed policy and Linux key paths, and the Sonar
properties.

* Cap the failure-only notarization log in nightly-sign.sh

The shared signer bounds a step's output at 256 KiB; notarytool's log on a
rejected submission is the one large output, now cut at 128 KiB.

* Add the macOS row and stable trust anchors to the dormant nightly callers

The single producer job now lists windows-x86_64, linux-x86_64 and
macos-aarch64, so one producer run builds all three platforms for one
all-or-nothing release. The signer caller still has no platform input; the
release-ref signer admits platforms from the protected v3 policy and reads
signing secrets from the release environment, so neither caller forwards
secrets.

Both callers pin a placeholder for the unmerged multi-platform shared
signer. It must be replaced with the reviewed merged commit before this is
published or activated. Every job stays literally off with no schedule.

The v3 policy example now carries each platform's fixed
nightly-unsigned-<platform> artifact kind and stable's public identities:
the Windows Authenticode subject, the Linux release key fingerprint and the
Apple Developer ID team DJ6XS33FX8 (read from the v0.23.1 macOS code
signature). Other authority values stay null and no policy is installed.

.github/nightly-linux-signing-key.asc is the v0.23.1 release-signing-key.asc
byte for byte. The contract tests check that it holds exactly one public
primary key matching the policy fingerprint, that every platform row names its
artifact kind and identity, and that both callers share one pin.

* Address review: macOS-only exit hook, clean-tree recheck, wider refusals

- The Nightly exit hook is installed only on macOS; Linux and Windows keep
  finishing the session after run_native returns.
- nightly_build_gui checks the tree is still clean after --version (Linux).
- nightly_refuse_signing_env also refuses the Windows, Azure and Linux
  signing names release.yml passes.
- nightly-sign.sh drops the single spctl run before the retried final check.
- nightly-macos.yml also runs for Cargo.toml, Cargo.lock and the text and
  ui-egui build scripts.

* List the macOS Nightly signing tests as tests for Sonar

packaging/macos/nightly_sign_tests.py is a fixture runner like the other
nightly suites; without this Sonar counts it as production code.

* Run the macOS Nightly PR build only with the full-ci label

macOS runners are shared with release builds: no path filters, and a pull
request runs the job only when it carries full-ci (a labeled event only
when the added label is full-ci). ci.yml's concurrency pattern keeps other
labels from running or cancelling a run. workflow_dispatch stays.

* Pin the nightly callers to the merged multi-platform shared signer

Both callers now name craft-common-actions a4f6fd51e854773de8b24b4f92e1ad7e770c08d7, the main
commit that merged #342 (policy v3, the platforms input and the Linux and
macOS legs, all switched off), in uses and tooling-revision. The contract
test now also requires a full 40-character commit for the shared pin.
Every job stays literally off with no schedule.

* Keep the unsigned macOS Nightly archive as a short-lived artifact

Seven-day retention, unsigned zip only, no secrets. It lets keyless signer tests and hand
testing use the exact verified build.

* Keep unlabelled events out of the macOS build's concurrency group

A push to a full-ci PR and the label event arrive together; the event that would be skipped
was sharing the group and cancelling the real build.

* Stop the macOS Nightly scripts' --help at their header comment

* Answer the Launcher's profile-form version query before startup (#16559)

`PhotoCraft --launch-profile nightly-v1 --profile-root <dir> --version`,
the shared producer's smoke, was refused by the strict launch-profile
parser (no `--`), and the refusal opens a native dialog on macOS, which
never returns on a headless runner: the hosted run did not exit in 180 s.

A Nightly build now treats exactly the selector/root pair followed by
`--version` or `-V` as a version query: the same line as plain
`--version`, exit 0, before root validation, process identity, IPC or any
window. Only parse()'s lexical checks apply; every other refusal is
unchanged and `-- --version` stays a file name.

nightly-verify.sh checks both forms, each within 15 seconds and with
nothing on standard error, so the PR's Mac build covers the smoke.

* Harden the Mac Nightly signing helpers (review of #16559)

- nightly_publish_archive runs python3 -I: nightly-sign.sh calls it with
  the signing secrets loaded, so no module from the working directory or
  user site may be imported.
- nightly-sign.sh and nightly-verify.sh list the archive's entries before
  unpacking (python3 -I, zipfile) and refuse absolute paths, `..`, empty
  or backslash components, entries outside PhotoCraft Nightly.app, links
  and special files. The check after unpacking stays.
- The signature check matches the Identifier line literally (grep -F).

* Describe the three-platform nightly and the two signing entities

releasing.md now covers Windows, Linux and macOS and names the macOS signing
scripts and the Linux public key in the release trust review. The preparation
guide lists `platforms` among the unsigned inputs and states the exact macOS
Developer ID leaf (Learning Machines LLC, team DJ6XS33FX8). The Windows
certificate names Learning Machines Inc, and only the team ID is enforced on
macOS.

* Enable the PhotoCraft nightly for supervised manual runs

The producer and release-ref signer callers drop their literal off-guard and
keep only their exact context guards. Both run only when dispatched by the
reviewed manual actor, skylartaylor, who is listed in the producer's
manual-actors and in the policy. nightly-dispatch.yml stays off and there is
no schedule.

.github/nightly-signing-policy.json installs the v3 policy from values read
at their sources: the repository ID, the callers' shared pin, CI's workflow
and jobs, the SonarCloud project, gate and open vulnerabilities, and the
stable v0.23.1 platform identities. producer_workflow_id stays null until
nightly.yml is registered on main, so the shared validator refuses the policy
until that ID is committed.

The contract tests check the guards, the manual actor, the policy's ties to
the callers, Sonar properties and CI triggers. The preparation guide lists
each value's source.

* Pin the nightly callers to craft-common-actions #339

Both callers and the policy's tooling revisions move from a4f6fd51 (#342) to
605d58766e8f536564da8fc81d3676ac86816dea, the main commit that merged #339:
bounded lineage compares, an unresolved-issue reread at the end of candidate
admission and a 1024-character Windows subject bound at policy validation.
Neither callee's inputs nor the policy fields change.

* Let every release manager who can push start nightly runs by hand

The producer's manual-actors and the policy's manual_actors are now the five
members of the release-managers team (id 19837241) with push access:
bflatastic, dylanmtaylor, echelon, FredApps and skylartaylor, sorted the same
way in both. echelon-robot only has read access and is left out. There is
still no automatic signer, no schedule, and the dispatcher stays off.

The contract test requires that exact list in both places and refuses an
actor outside it, a reordered list or a case change.

* Fill in the producer workflow ID now that nightly.yml is on main

producer_workflow_id is 428462603, read from
gh api repos/storytold/photocraft/actions/workflows/nightly.yml (path
.github/workflows/nightly.yml, state active). The shared validator at the
callers' pin now accepts the policy as committed, and the contract test
requires a real numeric ID.

* Bring the nightly guide in line with the enabled callers

The guide no longer says the manual-actor lists are empty or the policy is
unpopulated: the producer and the installed policy both list the five
release managers. The test description now says only the dispatcher must
stay explicitly off, while the enabled producer and signer are checked for
their exact guards. The Windows subject bound is 1024 characters, as
validated since #339, and the remaining "dormant" wording is gone.

* Accept main's current Sonar vulnerabilities as debt for the first run

The policy's Sonar debt is now exactly main's 15 open VULNERABILITY issues,
re-read live from SonarCloud at analysis 19880b44-8bb0-4538-a124-437045a56be2
(commit 27c629f789): the 8 pinned before plus 7 new
pythonsecurity:S8707 issues in scripts/engine_split. The gate conditions are
unchanged. The epoch names the new analysis, and the guide records it.
2026-11-25 07:53:48 -06:00

23 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, release) 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 605d58766e8f536564da8fc81d3676ac86816dea, the craft-common-actions main commit that merged #339 (bounded lineage compares and an issue reread at the end of candidate admission) on top of #342 (policy v3, the platforms input and the Linux and macOS legs). Both callers name it in uses and tooling-revision; #339 changes neither callee's inputs nor the policy fields. The earlier pins, a4f6fd51 (#342) and 077d4657 (#330), lack those follow-ups or are Windows-only. 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 release with that producer run ID and attempt, by a listed manual actor. nightly-dispatch.yml only matters once a schedule is approved.

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 main's latest finished 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 must be main's latest finished Sonar analysis. 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, 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 the policy is promoted to release.

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 605d5876… (craft-common-actions #339) 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 whenever main's unresolved vulnerability set differs from debt, whether an issue is new or fixed, and whenever a required condition fails or a listed CI job is renamed. Refresh those values in the same reviewed change that promotes the policy to release.

Ownership and interface

  • .github/workflows/nightly.yml: default-main registration of the unsigned producer, named PhotoCraft unsigned nightly, enabled for manual dispatch by manual-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 only producer_run_id and producer_run_attempt to the fixed nightly-sign.yml on release. 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 the release-signing-key.asc published with v0.23.1 (one ed25519 primary key, 2B76741B414AAD6CD33E631213A005C0B9D7C3ED, with one signing subkey). The shared Linux verifier reads it from the protected release checkout, never from a release asset. Public material only.
  • .github/workflows/nightly-sign.yml: top-level release registration, enabled for manual dispatch, and identical on main and release after reviewed promotion. It rejects wrong repository/event/actual branch, including same-name tags. Its constant whole-run concurrency is distinct from stable, cancellation is off and queue: max must be hosted-qualified. The caller itself passes no credentials; only the shared callee's sign jobs bind the release environment.
  • Shared reusable entrypoints are nightly-unsigned.yml and nightly-release.yml in storytold/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 consistently producer_run_id and producer_run_attempt, while tooling-revision keeps its existing hyphen spelling. Confirm the final landed interface before any future pin update or activation. Unsigned inputs are tooling-revision, app-name, manual-actors (default []), craft-fonts-ref and platforms; PhotoCraft's title is reviewed source, not an app-title input. 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 -Required is 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 execute nightly.ps1, package.ps1 or the payload beside keys. No new wrapper is needed. sign.ps1 is 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 release; 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 release 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

  1. The callers reference the same reviewed public commit in uses and tooling-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/@release tooling. 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.

  2. 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.

  3. Hosted no-platform-key, separately authorized tests must establish actual release dispatch context/permissions, queue retention/displacement, re-runs/current actor denial, exact attestation invocationId run/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.

  4. 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.scope field; 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.

  5. 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.