469 Commits
Author SHA1 Message Date
Dylan M. Taylor 600daba9e3 feat: allow @main ref for craft-common-actions in nightly workflows and scripts (#391) 2026-11-28 16:03:25 -05:00
Dylan M. Taylor a9d6186576 Emit signed Linux distro package artifacts into NIGHTLY.json v2 feeds (#390) 2026-11-28 15:44:34 -05:00
FredApps 3fe7aa009c Merge pull request #149 from nanox333/feat/release-shared-signing
Release: sign with the shared macOS import and Windows signing script
2026-11-27 22:46:51 +01:00
skylar taylor-barrick bf94b15b70 nightly: handle normal PowerShell signing returns (#385) 2026-11-27 09:25:57 -06:00
Dylan M. Taylor 68718895f5 Allow signed launcher catalog fetch during coverage compilation (#384) 2026-11-27 09:44:51 -05:00
Dylan M. TaylorandFredApps 71ebbb2340 feat: add reusable notify-services workflow for release state changes (#383)
* 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>
2026-11-27 09:13:42 -05:00
nnaannooandClaude Opus 5.5 0207f3a0bc Shared signing: the release workflows load the signing helpers from their own commit
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>
2026-11-27 15:01:00 +01:00
skylar taylor-barrick f94a43818d nightly: reconcile first signer attempt creation time (#382)
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.
2026-11-26 19:48:43 -06:00
skylar taylor-barrick 6bde9f8b9b nightly: allow a caller to forward the reviewed signing secrets, and nothing else (#379)
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.
2026-11-26 15:05:53 -06:00
skylar taylor-barrick 3dee18226e nightly: declare the signing secrets the release-ref signer consumes (#376)
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).
2026-11-26 09:03:22 -06:00
FredApps 4ec2a14646 Merge pull request #136 from nanox333/codex/shared-windows-install-policy
ci: share the Windows installer policy checks
2026-11-26 10:05:29 +01:00
skylar taylor-barrick 8389cad8b8 nightly: read just-written JSON on Windows (fixes the validate refusal) (#375)
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.
2026-11-25 23:11:09 -06:00
skylar taylor-barrick 15c319f7a6 nightly: compare signer rulesets without GitHub's default rule parameters (#374)
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.
2026-11-25 20:27:19 -06:00
skylar taylor-barrick 7378f388db nightly: add the nightly-signer settings script (plan, apply, readback, advance, rollback) (#368)
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.
2026-11-25 20:01:09 -06:00
skylar taylor-barrick be00e5ccd1 nightly: admit the built commit on its own Sonar analysis, not main's latest (#371)
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.
2026-11-25 19:10:30 -06:00
skylar taylor-barrick fc7124a1de nightly: admit Windows and macOS rows for 14 apps (PhotoCraft unchanged) (#370)
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.
2026-11-25 17:53:01 -06:00
skylar taylor-barrick 843cd279d7 nightly: keep shared helper checkouts out of the app's clean-source check (#369)
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.
2026-11-25 17:52:22 -06:00
skylar taylor-barrick 88148a57ef nightly: sign on the policy's signer branch (release or nightly-signer) (#364)
Independent review: dylanmtaylor re-reviewed 96c61f69 (https://github.com/storytold/craft-common-actions/pull/364#issuecomment-7172084024), no code blocker identified; this head adds only a normal merge of main (dec63506, #367) on top.
2026-11-25 13:30:59 -06:00
skylar taylor-barrick dec63506af nightly: admit 14 apps' Linux nightly tar rows (#367)
Independent review: dylanmtaylor at this exact head (https://github.com/storytold/craft-common-actions/pull/367#issuecomment-7172085284), no code blocker identified.
2026-11-25 13:23:13 -06:00
skylar taylor-barrickandDylan M. Taylor e08bf3b8d4 nightly: run the shared nightly pipeline for any reviewed registry app (PhotoCraft unchanged) (#363)
* 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>
2026-11-25 11:19:37 -05:00
nnaannooandClaude Opus 5.5 775e410255 Windows install policy: the smoke job fetches the job log with curl
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>
2026-11-25 11:42:07 +01:00
nnaannooandClaude Opus 5.5 3890b1d374 Windows install policy: a smoke job calls the reusable workflow and checks where its action came from
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>
2026-11-25 11:38:48 +01:00
nnaannooandClaude Opus 5.5 e5ef0852c5 Windows install policy: the workflow runs the action from its own commit, and the caller contract is stated
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>
2026-11-25 08:02:24 +01:00
nnaannoo b6e779be35 Merge remote-tracking branch 'upstream/main' into codex/shared-windows-install-policy 2026-11-25 08:00:50 +01:00
skylar taylor-barrick 1754016e67 nightly: derive Linux package names from the app name (#360)
* 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.
2026-11-24 19:08:16 -05:00
skylar taylor-barrick 9be49e51f3 release: install cmake-core in the FreeBSD release guest (#362) 2026-11-24 14:51:27 -06:00
aiongg d46951f0b3 Merge pull request #355 from storytold/agents-md-rfc-0072
Adopt the shared AGENTS.md (RFC-0072)
2026-11-24 10:58:45 -05:00
aiongg 1e8283ce77 Merge pull request #356 from storytold/house-rules-retire-old-blocks
house-rules: fail the retired RFC-0006 house-rules blocks
2026-11-24 10:58:29 -05:00
skylar taylor-barrick 9fad9f26c0 release: use 16 codegen units for FreeBSD release builds (fixes OOM-killed link) (#357) 2026-11-24 14:18:59 +00:00
skylar taylor-barrick 04d4087f02 nightly: recheck Sonar after the final workflow freshness pass (#350)
* 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.
2026-11-24 07:48:45 -06:00
FredAppsandClaude Opus 5.5 966385d031 AGENTS.md: only some actions have a test workflow
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 13:32:26 +01:00
FredAppsandClaude Opus 5.5 461562b597 house-rules: fail the retired RFC-0006 house-rules blocks
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>
2026-11-24 13:13:22 +01:00
FredAppsandClaude Opus 5.5 dcdc147ca8 Adopt the shared AGENTS.md (RFC-0072)
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>
2026-11-24 13:07:43 +01:00
Martin Ball 82f995029c nightly: follow-ups to #345 (policy-required names, OCI payload shape, Arch nightly metadata, attestation subject names) (#353)
* 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.
2026-11-24 11:50:06 +00:00
Dylan M. Taylor 1d1155edbf feat(nightly): build, sign, and publish Linux packages and Flatpak OCI tags (#345)
* 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
2026-11-24 08:01:29 +00:00
Dylan M. Taylor 778230c1a2 feat(nightly): dispatch artcraft-services version bump after nightly publish (#344)
* feat(nightly): dispatch artcraft-services version bump after nightly publish

* refactor(nightly): move website dispatch out of release-ref signer
2026-11-23 23:33:12 +00:00
skylar taylor-barrick 605d58766e Bound nightly lineage compares and tidy release-ref follow-ups (#339)
* 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.
2026-11-23 16:35:33 -06:00
skylar taylor-barrick d2a1022758 release: cap the ZFS ARC in the FreeBSD release guest (fixes OOM-killed link) (#347) 2026-11-23 21:47:22 +00:00
skylar taylor-barrick a4f6fd51e8 nightly: add Linux and macOS to the PhotoCraft nightly signer (switched off) (#342)
* 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
2026-11-23 14:47:27 -05:00
Dylan M. Taylor 504b7852c7 Revert "feat(release): support scheduled nightly prereleases on main (#341)" (#343)
This reverts commit 08977e824c.
2026-11-23 14:42:43 -05:00
Dylan M. Taylor 08977e824c feat(release): support scheduled nightly prereleases on main (#341) 2026-11-23 13:14:24 -05:00
Dylan M. Taylor 01891bc4df feat(release): push nightly-<arch> Flatpak OCI tag for nightly builds (#340) 2026-11-23 12:16:09 -05:00
FredApps 077d4657f7 Add Windows release-ref nightly signing pipeline (#330)
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.
2026-11-23 17:22:29 +01:00
FredApps 6e3414d099 Merge branch 'main' into nightly/release-ref-signer 2026-11-23 17:17:50 +01:00
FredApps af78cf2e46 Merge branch 'nightly/signed-workflows' into nightly/release-ref-signer 2026-11-23 17:02:28 +01:00
FredApps d700079e73 nightly: build, sign and publish nightly prereleases (switched off) (#315)
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.
2026-11-23 17:02:09 +01:00
FredApps 479c4558b4 Merge branch 'main' into nightly/signed-workflows 2026-11-23 16:57:41 +01:00
skylartaylor 1c63ff547c Merge the go-live fixes from #315 2026-11-23 15:35:57 +01:00
skylartaylor 43beed1762 Fix the before-go-live points: read past 400 releases and default signing off 2026-11-23 15:35:45 +01:00
Dylan M. Taylor 74af283fc4 feat(release): trigger website repo version bump after publishing (#338) 2026-11-23 09:23:35 -05:00