Batch 2A review fixes on top of 4279762e:
- One launcher (packaging/linux/nightly-launcher.sh) serves the app-owned
nightly tar, the deb/rpm wrapper, the AppImage AppRun, the Arch handoff and
the Flatpak bundle. It passes an already-supplied --launch-profile (and
--version/-V) straight through, so the ArtCraft Launcher's own profile root is
honoured instead of being wrapped into file names, and it resolves its own
folder (also when a shell finds it through PATH) rather than a relative path.
- The profile moves to ${XDG_DATA_HOME:-$HOME/.local/share}/wordcraft-nightly,
which persists inside the Flatpak sandbox; the sandbox home does not, so
preferences, recovery and autosaves were lost on every exit.
- package.sh's nightly tar step uses the tar's real member paths (no usr/), so
the tar format no longer aborts and the Flatpak bundle can be built from it.
- The app-owned tar uses the standard layout: `wordcraft` is the launcher and
`wordcraft-bin` the GUI (was wordcraft.real). The archive allowlist and its
tests follow, and nightly-build.yml's exact member check accepts the OFL-*.txt
licences CRAFT_FONTS_DIR adds.
- Windows: the print helper runs before prepare_launch(), so File > Print works
in a Nightly build instead of hitting the launch-profile refusal.
- sign.ps1 keeps the stable signing step's random create-new temp folder; only
the Nightly additions remain.
- Drop our dormant nightly-dispatch.yml, as in the other apps.
- profile_root: a test pins the Flatpak's own data folder as an accepted profile.
Tests: new packaging/linux/nightly-package-test.sh renders package.sh's nightly
tar with stub binaries and runs the extracted launcher (plain, the Launcher
form, --version, XDG_DATA_HOME, a PATH lookup from another directory, and the
AppImage and flat layouts); nightly-arch-tar-test.sh covers the Launcher form
and the data-home profile.
- Fix a compile error in the flavour's own window body: the unclean-session notice flag
(an Arc) was moved into the window closure and then read after run_native, so
cargo check failed with E0382. The window body now takes its own clone, as the exit
hook already did; found by the first capped cargo check in this pass.
On top of dylanmtaylor's Linux packaging (#7746), whose nightly-common.sh, nightly.sh,
helpers, callers, policy and preparation doc this branch reuses unchanged.
A separately identified WordCraft Nightly build: its own build channel and version line, the
Launcher's launch-profile protocol with the early --version answer, one private data root for
all user state (preferences, window place, logs, recovery, fonts, templates, dictionary, and the
suite font store), its own Windows AUMID, window titles and About, launcher-owned updates, and a
session health record. Its Linux counterpart is the Arch handoff in #7746; a Nightly build here
needs the Launcher's profile flag, so that wrapper gains one line.
Windows packaging (GUI-only intermediate ZIP through package.ps1 -Nightly and the sign.ps1
required-signing modes), macOS packaging with signing and verification, derived Nightly icons,
and a label-gated three-leg unsigned build check that exercises all three scripts without
secrets.
- Remove unsupported 'queue: max' key from concurrency in .github/workflows/nightly-sign.yml and update packaging/nightly-release-tests.py to match
- Use FLATPAK_ID (falling back to ai.storyteller.wordcraft) for runtime app_id in apps/wordcraft/src/main.rs
- Append -nightly marker to BASENAME in packaging/linux/package.sh and flatpak-bundle.sh when channel-only Nightly builds lack -nightly in VERSION
Port Skylar's (@skylartaylor) supervised manual nightly workflow and v3
signing policy setup from storytold/photocraft#16594 to WordCraft:
- Add .github/workflows/nightly.yml and .github/workflows/nightly-sign.yml
pinned to craft-common-actions@605d58766e8f536564da8fc81d3676ac86816dea
for supervised manual workflow_dispatch runs by release managers.
- Add .github/nightly-signing-policy.json adapted for storytold/wordcraft
(repository ID 1408489772, CI workflow 380135788, SonarCloud project
storytold_wordcraft; producer_workflow_id left null until nightly.yml
is registered on main).
- Add docs/nightly-release-preparation.md and packaging/nightly-release-tests.py.
Co-authored-by: skylartaylor <hi@skylar.cc>
The coverage shards failed six tests on every main push:
- three UI glyph tests: the Sonar job had no craft-fonts. Pass the same
fonts-ref as ci.yml.
- three layout linear-time tests: llvm-cov instrumentation pushes the
8x time ratio past 24 (24.2-31.2). Ignore them under cfg(coverage),
which cargo llvm-cov sets; the gate CI still runs them.
Claude-Session: https://claude.ai/code/session_01FypgCXtSjB6e5jmy9Uq7u8
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
printing.yml's native job ran its own apt-get, its own checkouts of
craft-i18n and craft-fonts, and its own Rust setup. It now calls
craft-common-actions gate.yml on the same three runners with the same
commands, so Ubuntu packages come through install-apt-packages (cached,
with the mirror fallback) and suite-wide CI fixes reach it.
release.yml also runs nightly on main with craft-common-actions' dry-run: every release build
except macOS, with nothing signed, pushed or drafted. Breakage that only the release build hits
(riscv64, Flatpak, FreeBSD, packaging) then shows up the next morning instead of on release
day, as it did on 11 Nov 2026.
Each third-party action that StepSecurity publishes a secure drop-in
replacement for now uses that replacement, pinned to a commit with its
version as a comment. Versions follow what we used: the newest
StepSecurity release in the same major, or the closest major they
publish. dtolnay/rust-toolchain refs that named a toolchain (stable,
nightly, 1.76) become the replacement's `toolchain` input.
Adds step-security/harden-runner (audit, pinned to v2.22.4 like
craft-common-actions) as the first step of each job that did not have it,
so every workflow in the org's public repos reports its egress to
StepSecurity. Audit, not block: block-mode allow lists come from each
job's observed traffic.
The Print job runs its own apt-get, so it failed while ubuntu.com did not resolve on the runners
(11 Nov 2026). configure-apt-mirrors (craft-common-actions) points apt at mirrors outside
ubuntu.com when those don't answer, as the shared jobs already do.
About > Contributors still showed an old snapshot, because nothing
regenerated contributors/contributors.json before a release. Opt in to
the shared refresh from craft-common-actions: a read-only credits job
regenerates the snapshot for the release commit, and the shared release
workflow installs it before every source build. The snapshot is not
committed back.
CodeRabbit on #5202:
- AGENTS.md, ATTRIBUTION.md, README.md, docs/architecture.md: without
CRAFT_I18N_DIR English spelling falls back to an installed Hunspell English
or craft-proof's built-in Moby list, and only pattern hyphenation is off
(Bulgarian, Turkish and Russian hyphenate by rule); they said English
wasn't spell-checked. (CLAUDE.md carries the same sentence; left for the
maintainer, as agents don't edit it.)
- NOTICE: craft-i18n's patterns are language-data/<lang>/hyphenation.pat,
not en-us.pat, pl.pat, pt.pat, de.pat, it.pat.
- docs/spelling-dictionaries.md: the Flatpak's dictionaries folder is
~/.var/app/ai.storyteller.wordcraft/data/wordcraft/dictionaries; the host's
folders are outside its sandbox.
- printing.yml: the repository checkout doesn't persist credentials.
- tests.rs no_language_data: also probes the American/British variant table,
so a craft-i18n checkout missing some files skips the dialect tests
instead of failing them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCX8LsYYE8fsj4byBm2
OpenSSF Scorecard (v5.6.0, 4.0/10) flagged:
- Token-Permissions: release.yml granted contents: write at the top level.
Now read at the top, write on the release job only (same effective access).
- Security-Policy: no SECURITY.md. Added one pointing to GitHub private
vulnerability reporting (already enabled on the repo).
- Vulnerabilities: ctutils 0.4.3 -> 0.4.7 (RUSTSEC-2026-0385); clipboard-win
5.4.1 -> 5.4.3 (yanked).
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
AGENTS.md (and CLAUDE.md where present) gets a CI workflows section: workflows only call
craft-common-actions at @main, with no other jobs; feature and fix PRs don't touch CI and
link or open a craft-common-actions issue (a PR only for a small fix that is safe for
every app and does not increase CI time); legacy jobs
aren't added to and move only as their own task, staying until a shared workflow runs them.
windows-arm64.yml moves from its SHA pin to @main. The pinned revision is on
craft-common-actions main and the workflow (and the actions it calls) is identical
there, so nothing changes in behaviour.
ci.yml calls the shared workflow (cached apt packages, nextest, main-only cache saves, Cargo.lock check). FreeBSD runs nightly and on pushes to release instead of on pull requests. Depends on storytold/craft-common-actions#69.
Pin craft-fonts a71c20e3 in ci.yml, freebsd.yml and release.yml; web-craft-fonts so the web
build keeps the Geor face; the interface font definitions add it; the Thai run test
accepts the embedded Thai face that pin brings (#3561).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YMTAbGNRxnMEzRvYnQGphF
Pin third-party actions to full-length commit SHAs (with version comments)
instead of mutable tags/branches to prevent supply-chain tampering via
retagged releases. Resolves SonarCloud rule githubactions:S7637.
Calls storytold/craft-common-actions/.github/workflows/sonarcloud.yml@main
with secrets: inherit. Adds SonarCloud badge to README where missing and
removes the redundant sonar-project.properties (config now passed by the
reusable workflow).
Since the release workflow moved to storytold/craft-common-actions, it has
passed only the Apple and WINDOWS_CERTIFICATE secrets. The signing job reads
values from the release environment, but only for names the caller lists, so
the AZURE_* names that Trusted Signing uses came through empty and Windows
builds would ship unsigned. Same fix as storytold/craft-launcher#174.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
They ran on every push to main and on any PR touching Cargo.toml/Cargo.lock,
which is nearly every PR. See craftrules release/playbook.md §2.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>