* feat: add reusable notify-services workflow for release state changes
* notify-services: build the dispatch payload with jq
A tag may contain a double quote or backslash; interpolating it into the
JSON body made the dispatch fail with invalid JSON. Serialize the payload
with jq --arg/--argjson and send it with --data-binary @-.
---------
Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
From FredApps' review: import-macos-certificate and setup-windows-signing
were called at @main, so a release workflow pinned to a commit still
signed with whatever main held. release.yml and windows-arm64.yml now
call them as $/actions/..., the workflow's own repository and commit, as
ast-grep.yml and windows-install-policy.yml do. A test fails if either
goes back to another reference. The app caller convention (@main) and the
other shared action calls are unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged under Skylar's PR-specific Nightly 1044 override: "do a final astra review and merge if clear. this is an explicit override from me." The final Astra review returned clear on a real hosted checkout of the same tree, confirmed the sole bot finding fixed, and independently reproduced the old failure. No separate PR approval was added and no admin bypass was used.
What it does: the first-signer-attempt creation time is reconciled the same way during historical verification as during live admission, so a retained row is accepted on re-read — the case where the earlier fix let the first publication pass and a later nightly refuse that same attempt. The round-trip fixture fails on the previous head and passes here, and start-time, source, attempt and any other creation-time skew are still refused. Verified at this head: base 6bde9f8b9b, all named checks green, CodeRabbit on the head, and zero unresolved threads after the original bot thread was answered and resolved.
Merged under Skylar's PR-specific Executive 508 grant: "we can merge #379 once green with CodeRabbit and Sonar findings clear". Verified at this exact head rather than carried over: CodeRabbit completed a review on f09e009e with zero unresolved threads, and every hosted check is green — the test job, offline, git-sources, lint, Nix eval, packaging lint, the Windows install policy and the nightly synthetic suites, plus SonarCloud Scan and its plan job. Two Sonar coverage jobs are skipped rather than passed and are not claimed as coverage: the instrumented archive and the sharded Tests matrix. Mergeable CLEAN against the current base. No approval was added from Skylar's account.
Merged under Skylar's explicit Exec 476 grant ("let's do a careful final review in a fresh argon agent, then if it's good yes let's merge them"), after a fresh argon review returned MERGE on the diff, CI green on this head, and CodeRabbit on this head with no open threads.
Declares exactly the fifteen signing secrets the nightly sign steps read (all required: false) and removes the three `environment: release` bindings from the callee's sign jobs, which never attached for a cross-repo call: the failing gridcraft run reported `environment: null` with an empty LINUX_SIGNING_KEY. No behaviour change until a caller forwards them (#4779).
Merged under Skylar's explicit Nightly 860 override after green CI, CodeRabbit on this head with no open threads, and an independent review (eight rounds) with the measured Windows proof.
Cause, measured: Python 3.12+ fills a path's stat from the directory entry and fstat from the handle, and for a just-written file they report a ctime ~0.3 ms apart until the entry settles, so the signer's validate step refused the JSON its admit step had just written. On Windows only, st_ctime_ns is no longer compared between path and handle; device, inode, size and mtime still bind them everywhere, and the handle is still compared with itself across the read.
Merged under Skylar's explicit override (Nightly 818) after green CI, CodeRabbit on this head with no open threads, and an independent adversarial review with no blockers.
Merged under Skylar's explicit override (Nightly 777) after green CI, CodeRabbit on this head with no open threads, and an independent adversarial review with no blockers.
Merged under Skylar's explicit Nightly 792 override after green CI, CodeRabbit on this head with no open threads, and an independent adversarial review with no blockers.
Merged under Skylar's explicit Nightly 777 override after green CI, CodeRabbit on this head with no open threads, and an independent adversarial review with no blockers.
Merged under Skylar's explicit Nightly 777 override after green CI, CodeRabbit on this head with no open threads, and an independent adversarial review with no blockers.
* nightly: derive Linux package names from the app name
The nightly Linux package checks compared deb, rpm, Arch and Flatpak names against PhotoCraft
literals. scripts/nightly_linux_names.py derives them from inputs.app-name (the reviewed registry
identity when present, else ai.storyteller.<app>.nightly), and the checks and smoke steps use it.
* nightly: read the names registry from its fixed checkout path
nightly_linux_names.py no longer takes a --registry path (Sonar S8707): it reads the nightly-apps.json
beside scripts/ in its own checkout, and the workflow stops passing one.
* nightly: refuse partial package reads and test the checks' behaviour
Each deb, rpm and .PKGINFO read is its own assignment, so a tool failure after partial output
refuses instead of passing a matching name. New tests run the workflow's own check steps against
package-metadata fixtures with stub tools: designcraft packages pass, PhotoCraft-named ones and
partial reads refuse.
* nightly: run the shared nightly pipeline for any reviewed registry app
The registry row gains display_name, env_prefix and per-platform entrypoints, and
scripts/nightly_app.py (replacing nightly_linux_names.py) derives every app-specific name
from it. An admit-app job replaces the literal PhotoCraft gates in nightly-unsigned.yml,
nightly-release.yml takes a required app-name, and the compile and smoke steps use the
row's build prefix and binary paths. A plain Linux nightly tar may start through a short
launcher that execs the registry-named x86_64 ELF with the nightly profile; the smoke runs
the ELF directly. Every PhotoCraft name and fixture is unchanged.
* test: compare PhotoCraft's registry row with a fixture, not git history
CI checkouts are shallow, so `git show 8f58b6d0:nightly-apps.json` failed with exit 128. The
pre-change PhotoCraft row is now tests/fixtures/nightly-apps-photocraft-targets-8f58b6d0.json.
* nightly: launcher grammar, launcher layout at admission, optional pending (CodeRabbit)
- nightly_unix: a launcher must match a fixed grammar (its directory, quoted profile-root values with only
parameter expansions, a case on $1, set -e/-eu, and the exec of the GUI binary); any other command,
command substitution or backticks refuses.
- nightly_app: admission requires the GUI binary in or below its launcher's directory, the layout the
archive check derives the exec path from.
- nightly_signing: the optional pending file is resolved once and used for both the inventory and the
final Mac check, so omitting --pending no longer fails after signing.
* nightly: one canonical Linux launcher template instead of validating scripts
The Linux nightly tar's entrypoint is now either the GUI ELF itself or, byte for byte,
scripts/nightly-launcher.sh.in rendered for the app (only the registry row's strictly validated
binary path and the app's package identity are substituted). The template resolves its own
directory once, makes the directory, target and profile root readonly, sets the profile root from
XDG data home (or HOME) and the app identity, and execs the target with the nightly launch profile.
The line-grammar launcher validator is removed. `nightly_app.py launcher` prints the rendered file.
* nightly: launcher passes the Launcher's own profile argv through unchanged
The ArtCraft Launcher starts the tar's entrypoint with `--launch-profile nightly-v1 --profile-root
<per-install root> -- [files...]`. Wrapping that again gave the app two profile pairs, with the fixed
root overriding the Launcher's. When $1 is exactly --launch-profile, the template now execs the
readonly target with "$@" unchanged and lets the app's own parser validate the pair; everything
else keeps the fixed profile.
---------
Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
gh api refuses to print a response with terminal escape sequences in it,
and the job log has the runner's colour codes, so the log check found no
log. curl saves it as it is; carriage returns are stripped before the
checks.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
From FredApps' review: the fixture jobs call the local composite action, so
nothing ran the reusable workflow itself. A new job calls
windows-install-policy.yml on the wixui fixture, the way an app calls it,
and the next job reads its log to check that:
- the action is the copy GitHub downloaded at the workflow's own commit,
not ./actions from the checkout;
- the checkout, and so the installer, is the caller's repository at the
caller's commit, and all three architectures passed.
Here the workflow and the caller are the same commit; the README says so,
and that the first app migration confirms the pairing across repositories.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
From FredApps' review:
- The reusable workflow called the action at @main, so a caller that
pinned the workflow to a commit still got whatever main held. It now
uses $/actions/windows-install-policy, as ast-grep.yml does: the action
always comes from the workflow's own repository and commit. A test
checks it.
- The msi-path help and the README say what the check is for: MSIs from
the caller's own build, or this repository's fixtures. It is not an
inspector for third-party MSI packages. The README's msi-path example
is a packaging job checking the MSI it just built.
- The README states the workflow/action pairing, and that the fixture
test runs the local action: the first app migration confirms the
pairing for callers.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* nightly: derive Linux package names from the app name
The nightly Linux package checks compared deb, rpm, Arch and Flatpak names against PhotoCraft
literals. scripts/nightly_linux_names.py derives them from inputs.app-name (the reviewed registry
identity when present, else ai.storyteller.<app>.nightly), and the checks and smoke steps use it.
* nightly: read the names registry from its fixed checkout path
nightly_linux_names.py no longer takes a --registry path (Sonar S8707): it reads the nightly-apps.json
beside scripts/ in its own checkout, and the workflow stops passing one.
* nightly: refuse partial package reads and test the checks' behaviour
Each deb, rpm and .PKGINFO read is its own assignment, so a tool failure after partial output
refuses instead of passing a matching name. New tests run the workflow's own check steps against
package-metadata fixtures with stub tools: designcraft packages pass, PhotoCraft-named ones and
partial reads refuse.
* Recheck Sonar after the final workflow freshness pass
Sonar rereads (latest analysis and unresolved issues) now bracket the final workflow
freshness pass in admission and revalidation, so a Sonar change during the last GitHub
reads is refused while a workflow rerun during the first Sonar rereads still is. That
costs two fixed reads (FIXED_READS 18 -> 20). Adds status/ahead_by missing-field cases
and documents the room the fixed reads take out of the 640-read budget.
* Say exactly what the Sonar bracket covers
The bracket catches a Sonar change during the freshness reads and a workflow rerun during the
first Sonar rereads; any resource can still change after its own last read. Comment and docs only.
RFC-0072 obsoletes RFC-0006; an AGENTS.md that still carries the craft-house-rules blocks now fails the check instead of passing. The old validator stays reachable through check_file(allow_house_rules=True) for its tests until the house-rules sources are deleted.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
AGENTS.md copies standards/app-agents.md from craft-contrib at e0bf5c9 and adds this repository's section; CLAUDE.md is @AGENTS.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* nightly: require policy when naming validated bundle files
validated_names and stage_bundle fell back to scanning the bundle
directory for any Linux package file when no policy was passed. Every
production caller passes the policy, so drop the scan and make the
argument required; tests now pass their fixture policy.
* nightly: reject non-object OCI signature identity/image as invalid
A gpgv-verified payload whose critical.identity or critical.image was not
an object raised AttributeError instead of InvalidNightly.
* arch-package: namespace nightly metainfo icon/binary, mime icon and name
The nightly rename left the stable stock icon and <binary> in metainfo
and the stable icon in mime XML, and kept the display name, so stable and
nightly menu entries looked identical. Point them at the nightly ids and
binaries, and suffix the desktop entry Name= and metainfo <name> with
' Nightly', matching the photocraft deb/rpm nightly convention.
* test: pin basename subject names in multi-subject attestations
verify_unsigned_attestation(subject_name=...) relies on the pinned
attest-build-provenance (v3.2.0) naming subject-path subjects by
basename.
* Address review: developer-first metainfo name, cross-package digest test
Skip every <name> inside <developer> when suffixing the metainfo display
name, so a developer block before the component name no longer leaves the
component name unsuffixed. Also refuse a package basename paired with a
different package's digest in the multi-subject attestation test.
* arch-package: rewrite nightly XML metadata in one scope-aware pass
Metainfo and mime files now go through one whole-file awk pass that skips
comments and tracks <developer> scope across lines and whitespace. It
suffixes every component <name>, translated ones included, with ' Nightly',
and rewrites every stock icon and mime <icon name> in either quote style.
The desktop entry also suffixes localized Name[xx]= keys. Plain POSIX awk,
so it runs in the Arch container and on the FreeBSD test runner.
* arch-package: share one icon-id resolution between XML pass and icon renamer
The XML pass resolved stock/mime icons from desktop Icon= records only,
while the icon file renamer preferred a same-named desktop ID. An icon
for a desktop entry without Icon= was renamed on disk but still referenced
by its stable name. Resolve every icon id once into the desktop map and
have both read it.
* feat(nightly): dispatch artcraft-services version bump after nightly publish
* feat(nightly): build, sign, and publish Linux packages and Flatpak OCI tags
* fix(nightly): build and publish Linux packages whenever Linux is enabled
* test(nightly): allow LINUX_SIGNING_KEY in publish-linux-packages
* fix(nightly): address CodeRabbit review findings on #345
* refactor(nightly): keep Linux packages inside v3 validation and isolate OCI push
* refactor(nightly): move website dispatch out of release-ref signer
* fix(nightly): resolve CodeRabbit and review findings on #345
* nightly: address review findings on Linux packages and bundle validation
* nightly: verify skopeo inline .oci.sig payload against manifest digest and docker-reference
* nightly: preserve aarch64 tarball handoff for Arch job and verify OCI config arch
* nightly: attest and admit Linux packages, add OCI freshness check, and tighten verify
* nightly: use real v-prefixed nightly tags, newest_nightly, and NIGHTLY.json schema in OCI check
* arch-package: build -nightly pkgname and binary for nightly tarballs
* arch-package: namespace all nightly paths for side-by-side install
* arch-package: fix sed delimiter, subcommand manpages, WMClass, and completion renames
* arch-package: use awk for desktop/metainfo rewrites and # delimiter for completions
* fix(nightly): validate signed Linux package receipts, gate package_formats, and harden OCI/Arch
* test(arch): run offline makepkg and pacman side-by-side install tests without Docker Hub egress
* fix(arch): replace --nodeps with explicit --assume-installed in pacman smoke tests and pin image digest
* Fix OCI release pagination and Arch smoke handoff
* Validate Linux format types and match Arch package identities literally
* Keep stable and nightly Arch package resources distinct
* Bind OCI copies to immutable nightly publication evidence
* Use the PhotoCraft Nightly wrapper archive for Arch packages
* Bind package attestations and limit signing key exposure
* Keep one end-to-end Linux release history test
* Preserve Arch launcher metadata and completion names
* Separate Nightly OCI publication from signing
* Check the OCI entry points after moving workflow logic
* Allow OCI publication from a verified release ancestor
* Bound nightly lineage compares and tidy release-ref follow-ups
* Make candidate ancestry refusal tests reach the ancestry rule
Each override is now a complete bounded compare page (commits plus the five lineage
keys) with only the property under test changed, beside a passing control, and each
asserts the specific ancestry refusal. Before, missing keys made compare_page refuse
first, so the asserts passed even with the ancestry checks removed.
* nightly: add Linux and macOS to the PhotoCraft nightly signer (switched off)
* Address CodeRabbit on the Linux and macOS nightly signer
* Apply the metadata size limit only to JSON metadata, not Linux tarballs
Windows-first unsigned producer and attester, plus a separate release-ref validator, signer and publisher that reuse the existing release environment and keys without exposing them to main's build. Dormant: no production policy, caller or activation.
Shared nightly workflows that build PhotoCraft Windows nightlies without keys, sign and verify them in a separate protected job, and publish separate prereleases. Publishing, production signing and pruning are all off by default.