Commit Graph
157 Commits
Author SHA1 Message Date
skylartaylor c4f05da1ce 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.
2026-11-24 01:41:44 +01:00
skylartaylor 73e04afa97 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.
2026-11-24 01:10:57 +01:00
skylartaylor 881757d49b 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.
2026-11-24 00:29:49 +01:00
skylartaylor bf3f64b097 Merge the Apple-silicon Nightly build (#16559) into the nightly callers
Both branches added a nightly test file: sonar-project.properties and the
packaging/nightly-tests.py suite list keep both, and the Sonar fixture test
expects packaging/macos/nightly_sign_tests.py as well.
2026-11-23 23:34:46 +01:00
skylartaylor b64808af37 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).
2026-11-23 23:15:10 +01:00
skylartaylor 6766ab287f 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.
2026-11-23 23:04:13 +01:00
skylartaylor 381ebd72f6 Stop the macOS Nightly scripts' --help at their header comment 2026-11-23 22:50:05 +01:00
skylartaylor df9e561409 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.
2026-11-23 20:49:57 +01:00
skylartaylor 7df5eb88a4 Merge storytold/photocraft main into the nightly caller branch 2026-11-23 20:45:56 +01:00
skylartaylor 1739753b32 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.
2026-11-23 19:52:54 +01:00
skylartaylor 2dcc260e87 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.
2026-11-23 19:49:42 +01:00
skylartaylor d0f8f1d148 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.
2026-11-23 19:43:58 +01:00
skylartaylor 4d96a88d15 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.
2026-11-23 19:43:48 +01:00
skylartaylor caa629c188 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.
2026-11-23 18:33:33 +01:00
skylartaylor c0dd6c81a5 Check the Windows Nightly source identity and widen the profile fences
nightly.ps1 now enforces what the Linux helper does: an exact 40-hex commit, a
version naming that commit, the original run date, and a clean checkout of it
before and after the build. package.ps1 no longer defaults those for Nightly.

The profile root also refuses the default MSI install folders, folders under a
portable copy and the stable Flatpak data folder, and every existing entry in
the profile must resolve inside it. An empty build channel means stable.
2026-11-23 15:32:44 +01:00
skylartaylor 5cd4bc3d1c Merge main into nightly/windows-flavor (picks up #16483) 2026-11-23 05:57:20 +01:00
skylartaylor 4bd2624279 Build archive headers from the opened stage file
Each tar header now comes from fstat of the stage file this run opened, with the
same fields TarFile.gettarinfo records, and its name is checked to be a flat
entry inside the stage in the same helper. Nothing in the header is read back
from the archive being written.
2026-11-23 05:14:54 +01:00
skylartaylor 3ed1b1709c Record archive members under their checked stage name
The name written to each tar header is now the basename of its realpath-checked
destination inside the stage, checked in the same function as addfile.
2026-11-23 03:37:14 +01:00
skylartaylor 50eba6f012 Check resolved build paths and archive member names before each file operation
Each helper path is now resolved and compared against the fixed build root
(realpath and commonpath), and a path whose resolved form differs from its
written form is refused. Every name passed to a descriptor-relative open or
unlink is checked to be a single component. Archive members must be flat
names that stay inside the stage before they are added.
2026-11-23 02:38:18 +01:00
skylartaylor c5e0204f44 Confine Nightly packaging helpers to the private build directory
The plist and archive helpers now treat the launcher's private working
directory as the only allowed root. Every path is opened through directory
descriptors without following symlinks, reads are bounded, outputs are
created exclusively, and a failed write removes only the file this run
created. The Linux packager runs the archive step from its mktemp directory
with relative arguments.
2026-11-23 01:11:18 +01:00
skylartaylor 182269b47d Refresh dormant nightly policy and shared-source pin 2026-11-23 00:23:35 +01:00
skylartaylor 6d7d26a737 Keep dormant nightly callers lintable and guarded 2026-11-22 22:55:31 +01:00
skylartaylor f0d32c68cd Prepare dormant PhotoCraft release-ref nightly callers 2026-11-22 22:19:21 +01: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
skylartaylor 85d49dc552 Cover packaging CLI dispatch and failed-output ownership 2026-11-22 00:26:54 +01:00
skylartaylor fdec30403d Report existing packaging tests to Sonar without excluding helpers 2026-11-22 00:21:16 +01:00
skylartaylor 9a9f5caf8e Separate secret-free nightly compilation from required Windows signing 2026-11-21 15:43:13 +01:00
skylartaylor 0ceaf2e1df Exercise successful exclusive Nightly plist publication 2026-11-21 13:24:31 +01:00
skylartaylor e8335bce13 Render app-owned Nightly Mac bundle metadata without associations 2026-11-21 13:18:05 +01:00
skylartaylor 78bcbd0b14 Prepare private nightly isolation and channel source
Unqualified source checkpoint. Current-main composition, remaining source closure and platform validation are pending; frozen Windows functional proof is separate.
2026-11-21 08:48:39 +01:00
aiongg 8ca6d3c767 web CI: skip wasm-opt --converge on pull requests 2026-11-19 20:19:35 +00:00
FredApps abb30dff47 Merge pull request #2929 from FredApps/fix/apprun-preserve-custom-launcher-2905
fix(linux): preserve customized AppImage desktop launchers
2026-11-15 11:25:02 +01:00
FredAppsandFredApps 0fd3210c20 i18n: move the craft-i18n pin to e56d262 (#14689)
Brings in the translations merged to craft-i18n since the last pin.
The flatpak manifests name the same commit.

Co-authored-by: FredApps <[email protected]>
2026-11-14 21:39:15 +01:00
FredApps 7cf4a2fa64 Merge branch 'main' into fix/apprun-preserve-custom-launcher-2905 2026-11-13 20:43:25 +01:00
David MannandClaude Opus 5.5 fd626999fc One switch for agents, in the ArtCraft Launcher; plain mcp works in the open app
As agreed in craft-ai-integrations#195: one switch for every Craft app, in
the launcher; only the launcher writes MCP client configurations; plain
`<app>-cli mcp` works in the open app.

- Consent: with the AI-MCP flag, the launcher's switch alone decides,
  read through `craft-ai-agents` (craft-ai-integrations#197), the crate the
  launcher writes the app list with and the gateway reads it with. The
  "Let AI agents connect" box is gone; without the flag everything is as on
  main (a saved Control Port keeps its connection).
- `photocraft-cli mcp`: works in the open window while agents may use it
  (what `--live` did), and headless otherwise, exactly as before (only the
  roots given to it; the app is never started). `--headless` forces that;
  `--bridge` / PHOTOCRAFT_CONTROL_PORT as before. `--live` and `mcp install`
  are gone. Several read roots work again, invalid roots stop the start, and
  `--gpu` applies to the headless session.
- Client setup is the launcher's: the client code (Claude Desktop, Claude
  Code, Cursor, JSON), Copy Configuration, its service and its docs are
  removed (about 740 lines net).
- CLI tests run with their own settings, launcher and flags folders: plain
  `mcp` would otherwise find (or start) the developer's own PhotoCraft.
- Docs, book, README, scorecard row, packaging comments follow.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-12 23:41:14 +01:00
David Mann 09ad48fcee Keep the page named AI Integrations, not MCP
The Integrations page holds more than the agent connection: open PRs add the
AI services for Generative Fill and other AI features to it (#10903, #12391,
#7007). The menu item stays "AI Integrations…" and the page "Integrations", as
on main; messages and docs say Edit › Preferences › AI Integrations.
2026-11-12 15:38:51 +01:00
David Mann a16144256f Merge main into integration-mcp
# Conflicts:
#	docs/scorecard.md
2026-11-12 13:51:25 +01:00
Dylan M. Taylor eee667f1d9 Fix Flatpak updates and bump to 0.23.1 (#13322)
* fix(flatpak): allow release checks and self-update helpers

* test: keep Flatpak permission parsing within strict Clippy rules

* chore: bump version to 0.22.1 for the Flatpak update fix

* test: assert paint operations succeed with fallible APIs
2026-11-11 21:30:36 -05:00
David MannandClaude Opus 5.5 cd41d63394 Batch: Preferences page is "MCP"; Copy Prompt for an Agent
The page only holds the MCP connection, so Edit › Preferences › AI Integrations… is now
Edit › Preferences › MCP… (command id and the `integrations` preference keys unchanged).

Copy Prompt for an Agent puts a text on the clipboard that an agent with a terminal
(Claude Code, Codex, Cursor's agent) pastes to register `photocraft-cli mcp --live` itself
and check the connection; Claude Desktop has no terminal and keeps Add to Claude Desktop.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-12 02:56:45 +01:00
7444ab6c03 Merge PR #5525: AI Integrations: connect Claude Desktop, Claude Code and Cursor to PhotoCraft without a terminal
Ported onto current main and #11363:
- The dialog moved into prefs/prefs_ui/agents.rs (prefs_ui.rs was split on main); the port
  field is labelled for the accessibility check.
- One agent connection: Preferences start and stop it live (agent_link service); only
  --control opens a port at launch. #11363's token reuse, folder rules (absolute paths,
  warnings) and readRoot/writeRoot names are kept; a saved controlPort from before loads
  with connectAgents on.
- agent_link.rs: #11363's connection file code plus #5525's client install code.
- CLI: mcp --live, --when-closed and mcp install --client on main's clap parser.
- control_server: listen()/Listening on top of main's challenge authentication.
- app_dirs: main's resolver moved to photocraft-automation so the CLI finds the same folder.
- Interface catalogs moved to craft-i18n on main; the PR's rows are not carried over.

Co-Authored-By: Furoxfufu <[email protected]>
Co-Authored-By: ingling <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-12 02:26:09 +01:00
Dylan M. Taylor f6741eff4d macOS signing: decode the certificate into an exclusive temp file (#11028)
import-cert.sh wrote the decoded .p12 to a fixed name in the temp
directory. If another account had created that file first, the shell
redirection truncated and reused it, keeping its owner and mode, and the
signing key was readable to that account. Create it with mktemp.
2026-11-11 16:22:40 -05:00
Tanish Manku e5cffe2375 Merge pull request #7239 from haranishi/review/packaged-cli-docs-20261018
Linux packages: ship the CLI in source Flatpaks and offline automation guides
2026-11-10 23:58:52 -07:00
skylar taylor-barrick fcda5fec94 Pin craft-i18n to merged PhotoCraft freeze top-up
storytold/craft-i18n#216 merged as e02939ef009218e81c44e8ec001fbb7603461de4; both Flatpak sources match craft-i18n.rev.
2026-11-10 20:27:15 -06:00
skylar taylor-barrick 1f77e59589 Merge origin/main (2772ac1e7) into craft-i18n cutover
Keep all 34 catalog deletions; sync crop options and fill rasterization text via craft-i18n 4a642c06dbcb8172f307f827c1167cd5dd8ac341. Adapt the fill prompt catalog test to embedded catalogs and preserve both parity-document updates.
2026-11-10 20:16:09 -06:00
Dylan M. Taylor a5342b134d packaging: use [[ for bash tests (SonarCloud S7688) (#13050)
Behaviour-preserving: `[[ ]]` in place of `[ ]` for bash tests (SonarCloud shell:S7688). Every script has a bash shebang; no test uses `-a`/`-o`, escaped parentheses or an unquoted pattern on the right of `=`. `bash -n` passes on each script; the rest is left to CI.

- `packaging/linux/apprun-cli-test.sh` (14)
2026-11-10 19:52:30 -05:00
Martin BallandClaude Opus 5.5 4a4dad43c2 Merge origin/main (7c64653d5, #11193 toolbar side) into craft-i18n-cutover
Keeps the TSV deletions; pins craft-i18n 87f45ab (storytold/craft-i18n#216
head, now also carrying #11193's Move Toolbar rows) until #216 merges.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-09 14:55:19 +00:00
Martin BallandClaude Opus 5.5 8d8fb69d6d Merge origin/main (d06ad7327, #12403 RAW Develop) into craft-i18n-cutover
Keeps the TSV deletions. The Hindi and RAW Develop catalog tests read the
embedded craft-i18n catalogs behind needs_catalogs(); display_names scans
CRAFT_I18N_DIR's locales/*/photocraft.tsv instead of the deleted src/i18n.
Pins craft-i18n 31d158f (storytold/craft-i18n#216 head, the #12403 top-up)
until #216 merges.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-09 07:38:51 +00:00
Martin BallandClaude Opus 5.5 b49901c6c3 build: pin craft-i18n 723a3b4 (craft-i18n#215 merge: Scroll All Windows)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-09 01:10:34 +00:00
Martin BallandClaude Opus 5.5 b28623800b build: pin craft-i18n 77873ea (craft-i18n#209 merge)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-08 22:46:46 +00:00
Martin BallandClaude Opus 5.5 015f3806ec docker: embed the craft-i18n translations at craft-i18n.rev
COPY . . used to bring the in-repo catalogs; the builder now fetches the
pinned craft-i18n commit and builds with CRAFT_I18N_DIR and
CRAFT_I18N_REQUIRED=1, so the image is not English only.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-08 22:32:16 +00:00