Commit Graph
3128 Commits
Author SHA1 Message Date
autocraft-bot[bot] e13bf04166 Merge pull request #15290 2026-12-01 15:26:27 +00:00
David Mann 03934fd0d9 Merge PR #13855: Gradient Fill layers and Gradient Overlay keep Photoshop's gradient 2026-11-30 23:55:19 +01:00
David Mann 57b391852a Merge pull request #18292 from davidmann4/fix/18208-headless-mcp-discovery
Fix headless MCP command discovery and edit validation (#18289)
2026-11-30 18:25:31 +01:00
David MannandClaude Opus 5.5 a8f0143b0e fix(automation): keep crops past the canvas working in gated sessions
The canvas-bounds check in `image.crop` and `document.pixel` ran whenever
an automation gate was installed, also on the desktop control channel and
for actions an agent wrote. It refused Reveal All, whose frame is always
larger than the canvas, and every crop that extends the canvas. Remove it.

Headless MCP no longer offers the `ui_*` tools: update the CLI test and the
control protocol doc, and keep the bridge-only hint in the instructions
for sessions that still list them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-30 16:08:08 +01:00
aiongg f1f90bd4c3 nightly: add aiongg to the manual actors
aiongg joined the release-managers team; the caller, the signing policy, the
release test and the docs list the same actors.
2026-11-30 13:29:05 +00:00
David MannandClaude Opus 5.5 bcf8072265 Merge main into fix/edit-presets-submenu
Port the Edit > Presets tests to main's menu API (menu_rows, base_rows,
control::Reply) and recount the parity and scorecard totals.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-29 22:34:58 +01:00
BFlat 71bc742294 Merge pull request #17447 from ruchirguitar/digits-indic-10996
Type: draw digits in an Indic script, Western or by the letters before them (#10996)
2026-11-30 02:19:15 +07:00
David MannandClaude Opus 5.5 dfb6eea5db Merge origin/main into fix/layers-to-files-adjustment-13966
Layers to Files moved to engine-core and now walks groups. The adjustment
rule moves into plan_layer_exports: PNG and JPEG export a top-level,
unmasked adjustment like an empty layer; one inside a group (not
measured) keeps the skip, pinned by a new test. PNG names now use dashes
for spaces, so the PNG test expects doc_0000_Levels-1.png.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-29 14:17:43 +01:00
Dan 59abe3368b Test Quick Export through the menu and clarify filename collisions 2026-11-29 10:14:33 +00:00
David Mann 0ea5307093 Merge #15201 into the merge queue batch
Layers to Files: one file per layer inside a group, none for the group
2026-11-29 04:41:24 +01:00
Dylan M. Taylor e0b1d8ff5f fix(nightly): enable Linux package_formats (including Flatpak) in signing policy (#17594) 2026-11-28 22:39:41 -05:00
David MannandClaude Opus 5.5 2c52a8eba6 Merge storytold/photocraft main (d3b040392) into fix/layers-to-files-groups
The engine moved to crates/engine-core, so the group walk is ported onto
its export.rs and kept together with main's later Layers to Files changes
(Include ICC Profile, dashes in PNG names, the Background-only alert). The
group tests use crate::session() and the PNG dash names. The MCP tool
description no longer says groups export merged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-29 00:37:50 +01:00
Dan ec07994126 Keep single-output Quick Export filename suggestions consistent 2026-11-28 20:59:25 +00:00
ruchirguitar 38bc5fd077 Type: draw digits in an Indic script, Western or by the letters before them (#10996) 2026-11-29 00:25:40 +05:30
Gert Pellin - GPEandFredApps 391cb01710 --version: name the commit of a dev build from git (#5247) (#5300)
* --version: name the commit of a dev build from git (#5247)

A plain cargo build reported only '0.8.2 (dev build)'. The desktop and
CLI build scripts now read the checkout's commit (git rev-parse HEAD,
rerun when HEAD moves) and the binaries hand it to build_info at start,
giving '0.8.2 (dev build, 6f8505421)'. Release builds keep
PHOTOCRAFT_BUILD_SHA and their format; without git, or when the
workspace isn't the root of the checkout (a source tarball unpacked in
another repository), it stays '(dev build)'. The engine itself still
doesn't shell out, so a commit doesn't rebuild it.

* --version: only watch git paths that exist (#5247)

Cargo treats a missing rerun-if-changed path as always changed: it re-ran
the build script and recompiled photocraft and photocraft-cli on every
build when packed-refs (or the branch's loose ref) did not exist. Watch
HEAD and packed-refs only when present, and for a packed branch the
nearest existing directory under refs/, so the first commit on it, which
writes the loose ref, still triggers a rebuild.

* --version: watch an unborn branch and reftable checkouts (#5247)

The git paths are now registered before asking for the commit, so the first
commit on an unborn branch re-runs the build script. A reftable checkout
watches reftable/tables.list, which every ref update rewrites, instead of a
loose ref or packed-refs.

* --version: git fixtures ignore the caller's repository and ref format (#5247)

The test fixtures run git without GIT_DIR, GIT_WORK_TREE, GIT_COMMON_DIR,
GIT_INDEX_FILE and GIT_DEFAULT_REF_FORMAT, and the files-format fixtures pass
init.defaultRefFormat=files, so a reftable default or an inherited GIT_DIR
can't move or reshape them.

* --version: the git fixtures join the app's tests/it binary (#5247)

Main builds each crate's integration tests as one binary. The desktop
--version test now hands the checkout's commit to build_info as the
binary does, so both print the same dev build string.

---------

Co-authored-by: FredApps <[email protected]>
2026-11-28 08:11:58 +01:00
FredApps 301922ccef Parity: RFC-0052 headless column from the engine registry (#17252)
The parity report gets a headless column computed from the engine command registry that photocraft-cli and the MCP server load: 517 yes, 48 no (window), 0 partial, 99 unknown of 664 items, per RFC-0052.
2026-11-28 02:00:02 +01:00
David Mann e5645b570e Merge #15154 into the merge queue batch
Actions: load every recorded Content-Aware Fill value and empty steps (#14254)
2026-11-27 12:08:36 +01:00
qvest-ssels f4fe8e0bc1 Merge main into fix/gradient-fill-overlay-source-13557
# Conflicts:
#	crates/engine-core/src/cmd/convert_gradient_tests.rs
#	crates/engine-core/src/cmd/gradient_fill_cmds/source.rs
2026-11-27 11:12:56 +01:00
David MannandClaude Opus 5.5 307761b442 Preferences: the Appearance Size row keeps Comfortable (#17096)
The Appearance page's Size pick was dropped: appearance_row copied back
only the mode and the theme slots, so the row showed Compact again on the
next frame. PhotoCraft also kept no size, sent none to the suite and never
gave the root a density.

Add interface.density (compact/comfortable), drawn by the Appearance page,
kept in step with the suite's shared size like the mode and themes, and
set as the root's density each frame.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-26 16:49:20 +01:00
RickiNano 9e8827aa45 Actions: an empty Content-Aware Fill step after a Custom fill stops and says why (#14254)
The workspace remembers Custom sampling but not its painted area (Custom
reopens empty), so an empty recorded step had no area to sample and failed
with the command's parameter error. It now stops before filling with a
message that says the Custom area isn't remembered and how to go on, and
never falls back to another sampling area. The document and the remembered
settings are unchanged.
2026-11-26 07:52:56 +01:00
skylar taylor-barrick 643a810fa2 Pin the nightly callers to craft-common-actions be00e5cc (#371) (#17033)
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.
2026-11-26 00:22:23 -06:00
skylar taylor-barrick f0205ae336 Pin the nightly callers to craft-common-actions fc7124a1 (#369, #370) (#17025)
Merged under Skylar's explicit override (Nightly 792) after green CI, CodeRabbit on this head with no open threads, and an independent adversarial review with no blockers.
2026-11-25 20:20:06 -06:00
David MannandClaude Opus 5.5 45b84b64b5 docs: color-picker wording
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-26 00:25:17 +01:00
David MannandClaude Opus 5.5 0202f45ddc Color Picker: no screen eyedropper button, as in the reference application (#17017)
The reference application's Color Picker has no eyedropper button; it samples
by a click on the canvas while the dialog is open, which PhotoCraft already
does. Build every full Color Picker dialog with eyedropper(false): the shared
launcher, the Layer Style picker and the text style picker (the last two never
served the button's press). Remove the dialog's unused screen-pick wiring,
update docs/color-picker.md and the color_picker_demo example. Compact
popovers keep their own screen eyedropper.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-26 00:17:53 +01:00
skylar taylor-barrick dbd191586f Sign PhotoCraft nightlies on the dedicated nightly-signer branch (#16906)
* 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.

* Move the nightly signer to the dedicated nightly-signer branch

nightly-sign.yml now runs only on refs/heads/nightly-signer, the dispatcher
(still off) targets that full ref, and the policy's release_branch names it,
so nightly signer files never need a stable release sync.

The contract tests add the trust-closure scan for that branch: no app
workflow binds an environment, only nightly-sign.yml calls nightly-release.yml
and it pins a full SHA, and the only caller of the shared stable release.yml
is release.yml. The guides describe the branch, its advance procedure and its
trust closure (all of .github/ and packaging/, including packaging/env.sh).

The shared pin is unchanged here; the shared signer at the current pin only
accepts release, so this needs the re-pin to the shared nightly-signer change.

* Pin the nightly callers to the shared signer-branch change

Both callers' uses and tooling-revision and the policy's tooling revisions
and producer_workflow_ref move to craft-common-actions 00ad6b9b691ff642feabde191c4fab678ebbddde,
which signs on the policy's signer branch (release or nightly-signer) and is
stacked on #363. nightly-sign.yml passes app-name: photocraft, which #363
makes required. Re-pin to the merge commit once the shared PR lands.

* Pin the nightly callers to the merged signer-branch change (#364)

Both callers' uses and tooling-revision, the policy's two tooling revisions
and producer_workflow_ref, and the guide move from 00ad6b9b to
88148a57ef09ef407d73c0f385e04cc7f4c2720a, the craft-common-actions main commit that
merged #364 (on top of #363). app-name: photocraft, the nightly-signer guard
and the policy's signer branch are unchanged.

* Read workflow keys properly in the nightly-signer trust-closure scan

The scan matched only an unquoted `environment:` at a line start, so a quoted
"environment": release key slipped through. It now reads every mapping key
with a narrow reader (no YAML parser ships with the runner's Python): plain,
single- and double-quoted keys in block and simple one-line flow mappings,
skipping block scalar bodies. It refuses the forms that could still hide a
key: escaped double-quoted keys, explicit keys, merge keys, anchors,
aliases, tags, tabs and nested or multi-line flow.

New refusal cases cover each form, and the accepted tree stays clean.

* Take every key the nightly-signer scan inspects from the workflow reader

The caller checks still found `uses:` with a regex over the raw text, so a
copied signer caller under a quoted "uses": key slipped past while the real
signer still satisfied the count. workflow_entries() now returns each entry's
one-line value and whether it continues over several lines, and
trust_closure_problems reads environment and uses only from it. A uses value
that is escaped, a block scalar or continued is refused, the shared owner and
repository match case-insensitively, and the signer count comes from the
same entries.

New refusal cases cover double- and single-quoted uses keys, a quoted value,
a flow mapping, a differently cased owner, folded and continued values, and a
quoted second signer call; the accepted tree stays clean.

* Make the nightly-signer workflow reader fail closed on quoting

A `#` inside a quoted flow scalar was cut off as a comment, so
`{name: "a} # b", ..., environment: release}` hid the binding. Comments are
now stripped with a quote-aware scan (a quote opens only where a scalar
starts, as in YAML). The reader refuses any line with an unterminated or
multi-line quoted scalar, any flow mapping whose quoted scalars contain
#, {, }, [, ] or a comma, and any flow mapping with an environment or uses
key, which must be block style. ci.yml's matrix rows still read cleanly.

New refusal cases cover the reported mapping, a single-quoted hash, a comma
or bracket in a quoted flow scalar, an unterminated quote, and environment or
uses in any flow mapping.
2026-11-25 15:20:18 -06:00
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
RickiNano f27cd5f0b9 Merge main into fix/new-doc-recent-items-14038
Since #15449 File › New is the shared NewDocumentDialog, so the old
app-local Recent heading, grid and tests are dropped in favour of main's
dialog code; that part now goes through storytold/craft-libs#2261.
Kept: document.recent.add and load_recent keep equal settings as
separate entries, now in crates/engine-core.
2026-11-24 20:42:15 +01:00
e6b7ac6df3 Fix-up for #11756: no Align Edges on the Star tool, as main's Polygon change says
Main's #13326 tests keep the Star tool without the checkbox (the reference
application has no Star tool; its stars are the Polygon tool's). Keep that,
and the comments and docs that name the Polygon drag.

Co-Authored-By: superplay2021 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-24 14:17:09 +01:00
f2ac09d2ec Fix-up for #11756: Align Edges as the reference application renders it
The PR snapped shapes with a per-edge heuristic (pixel_align.rs, dash-cap tie
rules, a PSD coordinate-frame field threaded through engine, format and caches),
defaulted the option to off, and renamed the existing Rectangle/Triangle
"Align Edges" checkbox to "Snap Bounding Box" next to a second checkbox.

The reference application fits the whole shape at render time: the bounds of
what it paints (fill, or the stroke's outer edge) get a whole-pixel left/top
(a half rounds up) and a whole width/height, and the path is translated and
scaled into that box. Fill and stroke take one transform; curves stay
antialiased; inner edges of several subpaths are not snapped.

- photocraft_vector::align_edges implements that rule; CompiledShape applies it,
  so caches, the compositor, previews and extents agree; the fill/stroke split
  under layer effects starts from the whole shape's transform.
- Removed pixel_align.rs, the rasterizer helpers it needed, the document-space
  drag preview and psd_coordinate_frame (rounding the bounds absorbs the PSD
  quantization it was for).
- One Align Edges checkbox (ToolOptions::align_edges, stored and scripted as
  useAlignedRendering, older align_edges still read) on every shape tool and the
  Pen, on by default and after Reset Tool; it snaps the drag and sets the layer.
- PSD sn2P: written as 1 when on and left out when off, as the reference saves it.
- Dropped the dead path.set param, moved the control-protocol paragraph,
  rewrote docs/pixel-aligned-strokes.md, reverted the unrelated raw, font,
  Cargo and test-harness changes.
- Tests reproduce the measured cases (rectangles at .25/.4/.5/.6/.75, ellipse
  extremes and curve symmetry, 1/2/3 px strokes, rotated rect, Pen triangle,
  two subpaths, toggle off, stored path unchanged, one checkbox, Reset Tool).

Co-Authored-By: superplay2021 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-24 13:02:42 +01:00
superplay2021 bc0560025a Merge latest main and preserve Align Edges shape edits 2026-11-24 11:58:55 +02:00
aiongg 4467301615 cargo xtask scorecard 2026-11-24 02:41:56 +00:00
aiongg 6d73dcee09 Engine split step 8: the vector crate (install, incomplete-docs list, layer comp recorded step, top wiring, corpus feature, core items vector uses made public, tooling) 2026-11-24 02:41:56 +00:00
skylar taylor-barrick a545419924 Prepare dormant PhotoCraft release-ref nightly callers (#16459)
* 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.
2026-11-23 18:38:20 -06:00
superplay2021 1cce444e29 Merge latest main and reconcile shape alignment controls 2026-11-23 23:02:33 +02:00
RickiNano 9acb1b80b9 Merge remote-tracking branch 'origin/main' into feat/caf-action-values-14254
The engine split moved atn_cmds and batch_run to crates/engine-core, so
caf_action_values_tests.rs moves with them. Session's Actions state is now
behind ActionsExt, so the engine-core and ui-egui tests set the list
through actions_mut(). In batch_run the scratch session keeps main's
actions_mut()/recording setup and still copies the remembered Content-Aware
Fill workspace.
2026-11-23 21:23:28 +01:00
superplay2021 47790f5e0d Merge latest main and resolve Align Edges conflicts 2026-11-23 21:25:02 +02:00
aiongg 85bfb27612 Engine split step 7: scorecard 2026-11-23 15:17:15 +00:00
aiongg 850e73c5fb Engine split step 7: the paint crate (installs per crate, registry order from command_ids.txt, helpers moved down, paint-only helpers moved up, live-stroke traits, admit hook, tooling) 2026-11-23 14:16:34 +00:00
Dylan M. Taylor 6f20a6b9f2 gpu, camera_raw: develop Detail on the GPU using craft_develop (#13519, #587) (#16480)
* gpu,camera_raw: develop Detail on the GPU using craft_develop::camera_raw (#13519, #587)

* ui-egui/camera_raw_gpu: remove temporary gpu_stages Detail filter (#16485)
2026-11-23 08:55:17 -05:00
aiongg 9cf019ed37 Delete files no module compiles (widgets, point curve, brush controls, analysis_ui, old cursors, dead editors and tests, nefc tests) 2026-11-23 05:50:07 +00:00
aiongg 3298b955c9 docs/scorecard.md: regenerated (cargo xtask scorecard) 2026-11-23 01:25:51 +00:00
aiongg 519a0c22a3 Engine split step 3: top crate with the wrapper Session
crates/engine keeps the package photocraft-engine: src/facade.rs re-exports
photocraft-engine-core, and its Session wraps core's and installs every engine
command. Core's Session::new() installs nothing; core gets install() and session().
The command registry keeps main's behaviour (empty before an install).

The top crate's dev-dependencies cover tests/ and examples/, including
craft-develop-model (camera raw baseline test) and photocraft-testkit (the
corpus-gated Photoshop oracle test). Dependents that need the core type or
borrowed two fields through the wrapper are fixed at the call site, and tests
that reach the registry before any session install first.

Tooling follows the package: workspace dependency, cl selection, xtask layers,
i18n report, scorecard and corpus paths, nextest overrides, ci-test-times rows,
display-names roots, prefs_usage paths, the engine split scripts, docs, and the
two release-perf steps in ci.yml.

Corpus .atn paths, the layer_menu registry read and the craft-develop-model
dev-dependency are FredApps' fixes from #16431.

Part of #15710
2026-11-22 19:29:06 +00:00
aiongg 3e05a3747b Merge remote-tracking branch 'upstream/main' into HEAD
# Conflicts:
#	.github/workflows/ci.yml
2026-11-22 15:29:46 +00:00
aiongg 44ac69dede Merge upstream/main into ci-pin-toolchain; gate runs when platforms fails, cold cache clear keeps newer entries, panic_hunt timeout 2026-11-22 05:59:39 +00:00
David Mann bdc6c0c780 Merge PR #16293: docs: explain automatic masks on new adjustment layers 2026-11-22 00:28:51 +01:00
David Mann fd28fa6808 Merge PR #15842: fix(automation): reject malformed doc.render requests 2026-11-22 00:28:15 +01:00
David Mann 6be13ed47a Merge PR #15216: docs: use the full shortcut snapshot test path 2026-11-22 00:27:00 +01:00
David Mann e3696eb67f Merge PR #14743: docs: document DPX bit depth for headless saves 2026-11-22 00:25:03 +01:00
David Mann e0e1ab7de5 Merge PR #14706: docs: describe absolute automation paths within granted roots 2026-11-22 00:24:38 +01:00
David Mann fbe6b1e594 Merge PR #14691: docs: correct MCP switches and repeatable read-root guidance 2026-11-22 00:24:17 +01:00