mirror of
https://github.com/storytold/materialcraft.git
synced 2026-11-29 01:23:53 +01:00
Merge main into root graph parity work
Reconcile shared format writers, bounded image decoding and material export paths. Local integration checkpoint; lockfile regeneration and validation still pending.
This commit is contained in:
commit
da40569cef
245 files changed
+15771
-2758
No files matched your search
@@ -391,12 +391,7 @@ See [atomic-workflow.md](atomic-workflow.md) for the tested scope and remaining
|
||||
|
||||
## Other apps
|
||||
|
||||
A `.mcmat` portable material (`formats/src/material/`, `engine/src/material_cmds.rs`) holds a
|
||||
graph's cooked maps, its portable exposed inputs, presets and input nodes, and the source package.
|
||||
TextureCraft paints with it and re-cooks it by running `materialcraft-cli run <package>
|
||||
file.exportMaterial {path, size, values, inputs}`: the apps share the file format and the command
|
||||
line, never code. Graphs keep preview images for their input nodes (`Graph::input_images`, mesh
|
||||
maps from TextureCraft); `eval::cook` feeds them to the top-level graph, and a caller's images win.
|
||||
The MCMAT v3 publisher (`formats/src/material/`) copies a selected graph, its reachable graph and function definitions, and their resource bytes into a single SBS document with local references. The shared `craft-mcmat` crate writes the ZIP. The reader selects the sole root graph by its location. `engine/src/material_bake.rs` evaluates variations through the CPU cook engine. The CLI exposes the same entry for inspection, TextureCraft's labeled map export and the MaterialX OpenPBR export. Supplied images override the graph's saved input previews for that cook.
|
||||
|
||||
Preview cooks publish the editor graph and assigned material graphs together. A synchronous cook
|
||||
invalidates older worker results. Displacement uses the assigned Height source even while another
|
||||
|
||||
+32
-33
@@ -39,8 +39,8 @@ carry through subsequent saves.
|
||||
| `session.inspect` | all | package, graphs, the open graph's nodes (def, params, bindings, base, ports, cook error/size/mean/ms), wires, frames, comments, pins, exposed inputs, views, history |
|
||||
| `package.open {path}` / `package.save {path?}` | headless | workspace-scoped package I/O |
|
||||
| `bitmap.import {path, name?}` | headless | embed an image as a resource |
|
||||
| `outputs.export {dir, format?, pattern?, depth?, size?, graph?, outputs?, colorSpaces?}` | headless | cook at full size and write the outputs: `size` is the larger side or `[width, height]`, `outputs` lists identifiers (default all), `colorSpaces` maps identifiers to `srgb`, `linear` or `raw` (default by usage) |
|
||||
| `material.export {path, graph?, size?, values?}` | headless | write a portable `.mcmat` below the write root |
|
||||
| `outputs.export {dir, format?, pattern?, depth?, size?, graph?, outputs?, colorSpaces?, profile?, preset?, values?, inputs?, normalFormat?, displacementScale?}` | headless | cook at full size and write the outputs: `size` is the larger side or `[width, height]`, `outputs` lists identifiers (default all), `colorSpaces` maps identifiers to `srgb`, `linear` or `raw` (default by usage) |
|
||||
| `material.export {path, graph?}` | headless | write a portable `.mcmat` below the write root |
|
||||
| `render {view?, width?, height?, yaw?, pitch?, scene?, node?, port?, full?, tiling?, hq?, displacement?}` | headless | PNG (base64) of the 3D view or of one node; `hq` is the beauty render (displaced mesh, ray-traced AO, shadowed key light, 3×3 supersampling), `displacement` its depth in scene radii |
|
||||
| `ui.inspect` | app | UI state, the graph view rectangle, every node's screen rectangle, every port's identifier, display label and screen position, fps, toasts |
|
||||
| `ui.menu.list` / `ui.menu.invoke {id}` | app | the menu catalog; behave like a click. While a dialog or prompt is open (an app dialog, the unsaved-changes prompt, a file dialog, or the update prompt or result window; not Home, the Shortcuts list or the notice that an update installed), an item lists as disabled and `ui.menu.invoke` returns an error. When a file dialog is the only one open, the items that show a file dialog stay enabled and bring it forward |
|
||||
@@ -90,7 +90,7 @@ Types: `move`, `down`, `up`, `click`, `doubleClick`, `drag`, `scroll`, `key` (eg
|
||||
| `graph.function.variables` | `{id, target?: FunctionGraphTarget}` returns ordered suggestions matching a Get node's type and caller scope; typed custom names remain supported |
|
||||
| `session.environment` | `{timeSeconds?, uvTile?: [int, int], normalFormat?: int}` updates host evaluation values without modifying the package; `{}` reads them; defaults are zero and the normal-format code is passed through |
|
||||
| `graph.context` | `{physicalSize?: [x, y, z], pixelRatio?: 0\|1, tiling?: [horizontal, vertical]}` edits material-graph metadata with undo; `{}` reads it; reusable functions receive their caller's context |
|
||||
| `file.new` | `{template?, name?, size?}`; templates from `graph.templates` (`empty`, `pbr`, `bricks`, `stone_tiles`, `wood`, `rusty_metal`, `fabric`, `ground`) |
|
||||
| `file.new` | `{template?, name?, folder?, kind?, size?, height?, document?, newPackage?}`. Use `graph.templates` for the supported material templates. `size` is the width in pixels and `height` defaults to it (powers of two, 16 to 8192). `document` selects an open package. `newPackage: true` creates a new untitled package and cannot be combined with `document` or a nonempty `folder` |
|
||||
| `graph.node.edit` | `{}` resolves the selected FX-Map, processor or graph instance to `{kind, node, parameter?, graph?, document?, path?}`; use `ui.menu.invoke` to open its reference in the graph panel |
|
||||
| `graph.node.info` | `{id}` returns `{text}` describing a main-graph node without changing the document or node clipboard |
|
||||
| `graph.instance.add` | `{document, graph, function?: FunctionGraphTarget, at?, snapToGrid?}` adds a linked graph instance from an open package; requires a source output and rejects dependency cycles |
|
||||
@@ -351,42 +351,41 @@ includes frame, comment and pin rectangles for synthetic input.
|
||||
|
||||
## Portable materials (TextureCraft)
|
||||
|
||||
A `.mcmat` portable material is a zip: `material.json` (manifest), `maps/<usage>.png` and
|
||||
`source.sbs` (the package). TextureCraft applies it as a fill layer and keeps the exposed inputs
|
||||
editable, re-cooking through `materialcraft-cli`. The format is a convention the two apps share;
|
||||
each has its own reader and writer (`crates/formats/src/material.rs` here), so keep them in step.
|
||||
A v3 `.mcmat` publishes a single material graph for procedural cooking. Choose **Export material… → MCMAT → Root graph** or give the graph's full SBS path to the CLI.
|
||||
|
||||
```json
|
||||
{ "format": "craft-material", "version": 2, "name": "Brick wall", "graph": "Brick_wall", "size": [2048, 2048],
|
||||
"maps": [{"usage": "baseColor", "file": "maps/baseColor.png", "colorSpace": "srgb"}],
|
||||
"parameters": [{"id": "wear", "label": "Wear", "default": {"t": "float", "v": 0.5}, "min": 0, "max": 1,
|
||||
"value": {"t": "float", "v": 0.8}}],
|
||||
"inputs": [{"identifier": "curvature", "kind": "gray"}],
|
||||
"presets": [{"name": "Worn", "values": {"wear": {"t": "float", "v": 1.0}}}],
|
||||
"source": "source.sbs" }
|
||||
The commands below assume `surfaces.sbs` has a connected material graph at `Materials/Oak`, a scalar control named `wear`, a preset named `Worn`, and an image input named `curvature`. Supply a mesh map at `mesh/curvature.exr`.
|
||||
|
||||
```sh
|
||||
materialcraft-cli publish surfaces.sbs Oak.mcmat --graph Materials/Oak
|
||||
materialcraft-cli info Oak.mcmat
|
||||
materialcraft-cli cook Oak.mcmat --size 1024 --set wear=0.2
|
||||
materialcraft-cli export Oak.mcmat build/oak --profile materialx --size 2048 \
|
||||
--preset Worn --set wear=0.7 --input curvature=mesh/curvature.exr
|
||||
```
|
||||
|
||||
- Usages come from the shared `ComponentUsage` catalog (the first output of each, excluding
|
||||
`any`). The catalog includes PBR, diffuse/specular, coat, sheen, scattering and user channels.
|
||||
Color maps are 8-bit sRGB PNGs; data maps are 16-bit linear. Each map records its color space.
|
||||
Additional usage identifiers do not change the manifest version; consumers may ignore usages
|
||||
they do not support. Normals are tangent space, OpenGL (Y+); height is 0..1 with 0.5 at the surface.
|
||||
The 3D preview supports base color (including `diffuse`), normal, roughness, metallic, height,
|
||||
ambient occlusion, emissive and opacity; other usages remain available for SBS and exports.
|
||||
- Parameters are the exposed inputs other apps can set (float, float2-4, int, int2, bool, color,
|
||||
enum), values in the typed form `{"t", "v"}`; colors are linear RGBA.
|
||||
- Inputs are the graph's input nodes. Mesh maps feed them by identifier: `ambientOcclusion`,
|
||||
`curvature`, `thickness`, `position`, `worldNormal`, `normal`, `height`, `id`, `bentNormal`,
|
||||
`opacity`, `colorMap`, `worldDirection`.
|
||||
- Readers ignore unknown fields and require manifest `version` 2.
|
||||
The ZIP contains a version marker (`material.json` with `{"version":3}`), a DEFLATE-compressed `source.sbs`, and the source assets its graphs reference under `resources/`. The sole graph at the root of the SBS document is the entry. Reachable helper graphs and functions have local paths under `Dependencies/`. Republish v1 and v2 archives from the original authoring project.
|
||||
|
||||
`info` reads the entry's path, dimensions, supported resolutions, typed defaults, saved values, presets, image inputs and output usages. A cook starts from the saved values, applies the named preset, then applies each explicit override. `--set` accepts numbers, booleans, JSON vectors, colors and typed values such as `{"t":"float","v":0.7}`. The size is the longer side in pixels. The graph retains its aspect ratio within the supported powers of two from 16 to 8192. Use `--size 1024x512` to choose both sides. An omitted size uses the authored dimensions. An explicit size also sets the final dimensions of outputs fed by fixed-size nodes.
|
||||
|
||||
TextureCraft requests `--profile maps` at its texture set's resolution and supplies mesh maps through repeated `--input identifier=path`. Common identifiers include `ambientOcclusion`, `curvature`, `thickness`, `position`, `worldNormal`, `normal`, `height`, `id`, `bentNormal`, `opacity`, `colorMap` and `worldDirection`. An image override uses the published preview binding’s color space when present. Otherwise the input’s declared usage determines the transfer, with the identifier as a fallback for untagged inputs. The JSON report lists each map's identifier, usage, filename, color space and actual dimensions.
|
||||
|
||||
The CLI's `--graph-path` selects a literal SBS path, including a numeric name, while `--graph` retains numeric-index shorthand.
|
||||
|
||||
The `materialx` profile writes `material.mtlx` with relative texture paths and an OpenPBR surface. Color textures default to sRGB PNG, data textures to linear 16-bit PNG, and out-of-range values to floating-point EXR. Both bake profiles write tangent-space Y+ normals. A directly connected Normal node supplies its evaluated convention, including through routing dots. Other normal sources default to Y+. Use `--normal-format directx` for a Y− source or `--normal-format opengl` for Y+. OpenPBR scalar and normal inputs require linear data. Height becomes signed EXR displacement in scene units using `(height - 0.5) × displacementScale`. The CLI accepts `--displacement-scale`. MaterialX texture filenames include a hash of the output name and bytes. Re-export writes the document last and keeps earlier texture versions, so a failed export leaves the previous material usable. Outputs without an OpenPBR connection are written alongside the document and listed in `unmapped`.
|
||||
|
||||
The named profiles choose their own file names and formats. Use `--format` and `--pattern` with plain image export. `--normal-format` applies to both named profiles, and `--displacement-scale` applies to MaterialX. Profile EXR files are linear. Leave the color space automatic, or choose linear or raw explicitly.
|
||||
|
||||
| Command | Params |
|
||||
|---|---|
|
||||
| `file.exportMaterial` | `{path, graph?, size? (px), values? {input: value}, inputs? {identifier: image path}}`: cook and write a `.mcmat`. TextureCraft runs `materialcraft-cli run source.sbs file.exportMaterial {...}` to re-cook at its texture set's resolution with its own values and baked mesh maps. In the app, Export material... (and `ui.menu.invoke file.exportMaterial`) opens the Export window on its MCMAT tab, whose #190 options wait for the new exporter |
|
||||
| `file.exportMaterial` | `{path, graph?}` publishes the chosen source graph by SBS path or index. The default is the open graph. |
|
||||
| `material.info` | `{graph?}` reads the material interface. |
|
||||
| `material.cook` | `{graph?, size?, preset?, values?, inputs?}` returns output dimensions and mean values. |
|
||||
| `file.export` | `{dir, graph?, profile?, size?, preset?, values?, inputs?, normalFormat?, displacementScale?}` bakes images using the selected profile. |
|
||||
| `file.sendToTextureCraft` | `{graph?}`: export into TextureCraft's library folder (`Documents/TextureCraft/library`), where its shelf lists it |
|
||||
| `graph.input.bind` / `graph.input.unbind` | `{identifier, resource? \| path?, linear?}` / `{identifier}`: a preview image for an input node (a mesh map exported from TextureCraft), saved in the package |
|
||||
| `file.open` | `{path}` opens `.sbs` XML or an independent `.mcraft` ZIP. Also opens a `.mcmat`'s source without a save path. Returns `warnings` for unsupported content; also in `session.inspect` as `package.warnings` |
|
||||
| `file.save` / `file.saveAs` / `file.saveCopyAs` | `{path?}` / `{path}` / `{path}`: `.sbs` writes XML and adjacent `resources/`; `.mcraft` writes a ZIP containing `package.sbs` and `resources/`. Unrecognized extensions get `.sbs` appended. Save Copy preserves the active path and modified state |
|
||||
| `file.saveAll` | Native only. `{}` saves every modified package that has a local file and returns `{saved, withoutFile, failed}`. `saved` lists paths, `withoutFile` lists packages that need `file.saveAs`, and `failed` lists `{package, error}` entries. The original package stays active |
|
||||
| `file.importBitmap` / `file.importVector` | `{path, name?, folder?}` imports a supported bitmap / SVG into Resources or a subfolder without adding a node. Unsaved imports and their original bytes participate in undo. `session.inspect` reports resource name, folder, file, byte count and missing status |
|
||||
| `graph.resource.add` | `{resource, document?, at?}` places a resource from the source document on the active material graph. Cross-document drops copy the asset; resource and node creation undo together |
|
||||
| `folder.properties` / `folder.attributes` | `{folder, document?}` reads Identifier/Description; add `identifier?` and/or `description?` to edit. Folder attributes persist as native SBS group identifiers and descriptions. The reserved root Resources identifier cannot change |
|
||||
@@ -401,10 +400,10 @@ each has its own reader and writer (`crates/formats/src/material.rs` here), so k
|
||||
`ui_screenshot`, `ui_inspect`, `ui_menu_invoke`, `ui_input`. Bridged to the app, `package_save`
|
||||
without a path runs File > Save through `ui.menu.invoke`, so it returns that call's error when a
|
||||
dialog or prompt blocks it. `package_open` opens `.mcmat` files
|
||||
too, and `material_export` `{path, graph?, size?, values?}` writes one below `--write-root` (`path` is
|
||||
relative, the parent folder must exist, `values` are exposed input values). The workspace sandbox
|
||||
still refuses `file.*` commands, so a sandboxed agent exports through the tool, not `file.exportMaterial`;
|
||||
mesh-map `inputs` stay a CLI feature.
|
||||
too. `material_export` accepts `{path, graph?}` and publishes below the write root. Use
|
||||
`outputs_export` to bake variations with `profile`, `size`, `preset`, `values` and `inputs`.
|
||||
Image paths are relative to the read root and the destination is relative to the write root.
|
||||
Workspace publication limits both the combined uncompressed assets and the final archive to 256 MiB.
|
||||
|
||||
While an FX-Map subgraph is open, `ui.inspect.subgraph` identifies its owner and selection. Canvas
|
||||
node IDs and ports refer to that embedded graph. `ui.menu.invoke` with `ui.graph.parent` returns
|
||||
|
||||
+1
-2
@@ -36,7 +36,7 @@ generators, Spline & Path tools, MCF functions, 3D view, PBR materials and Value
|
||||
library packages for them are added to `assets/sbs`; the CC0 environments in `assets/hdr` are not
|
||||
listed yet.
|
||||
|
||||
> **Last reviewed:** 2026-11-02 · **Last updated:** 2026-11-02 · **Change:** minor (portable `.mcmat` materials closed the published-archive gap) · **Target:** the professional node-based material workflow
|
||||
> **Last reviewed:** 2026-11-02 · **Last updated:** 2026-11-18 · **Change:** procedural MCMAT publishing and baking are available over MCP · **Target:** the professional node-based material workflow
|
||||
|
||||
Every known shortfall, most important first. Pick from the top.
|
||||
|
||||
@@ -45,7 +45,6 @@ Every known shortfall, most important first. Pick from the top.
|
||||
| 1 | Node library breadth | 227 nodes vs. ~400 in the reference library | Recipes that need scan processing, more grunges, splines or SDF shapes | 30 h | target-app-parity (Node library) |
|
||||
| 2 | GPU 3D view and a path tracer | The CPU renderer has tessellation, lights and shadows, but a large or finely tessellated view takes tens of milliseconds a frame; no ground plane, one material per mesh | Smooth navigation at high resolution, reference-quality renders | 12 h | target-app-parity (3D view) |
|
||||
| 3 | Mesh-based generators and bakers | None | Workflows that start from a mesh | 15 h | target-app-parity (Node library) |
|
||||
| 4 | Portable materials over MCP | `.mcmat` export runs from the app and the CLI; the MCP workspace sandbox refuses `file.*` commands and has no `material_export` tool | Sandboxed agents can't hand a material to TextureCraft | 1 h | target-app-parity (Files) |
|
||||
| 5 | Function loops and reusable functions | Functions live on one parameter or processor | Iterative effects; sharing logic between nodes | 5 h | target-app-parity (Function graphs) |
|
||||
| 6 | Input visibility conditions | Visibility expressions are not implemented; instance output sizes can use parameter functions | Organizing large graphs' inputs | 4 h | target-app-parity (Graph parameters) |
|
||||
| 7 | `ui.screenshot` times out on this test machine | The window-capture callback never fires here; `view.screenshot` and the offscreen snapshot test work | Agents bridged to the app see views but not the whole window | 1 h | — |
|
||||
|
||||
@@ -0,0 +1,125 @@
|
||||
# Windows, Linux and macOS release-ref nightly: supervised manual go-live
|
||||
|
||||
**Enabled for supervised manual runs, not yet qualified.** The producer (`nightly.yml`, main) and the
|
||||
signer (`nightly-sign.yml`, on the dedicated `nightly-signer` branch) keep only their exact context
|
||||
guards and run when one of the reviewed manual actors dispatches them. There is no schedule yet. The
|
||||
installed policy [`.github/nightly-signing-policy.json`](../.github/nightly-signing-policy.json) is the
|
||||
v3 policy; its `producer_workflow_id` is the registration ID of `nightly.yml` on `main` (`429715578`),
|
||||
read with:
|
||||
|
||||
```bash
|
||||
gh api repos/storytold/materialcraft/actions/workflows/nightly.yml --jq .id
|
||||
```
|
||||
|
||||
The callers pass no platform secrets. The unsigned reusable caller's maximum OIDC/attestation
|
||||
permissions are for its isolated attester; its compiler narrows to contents and Actions read
|
||||
only, with no OIDC, attestation write, release environment or platform signing secrets.
|
||||
Shared tooling is pinned to `be00e5ccd18b68e950c8a08532f2230e7c3d0cba`, the craft-common-actions
|
||||
main commit that merged [#371](https://github.com/storytold/craft-common-actions/pull/371) (the
|
||||
candidate is admitted on the built commit's own Sonar analysis, not main's latest) after
|
||||
[#370](https://github.com/storytold/craft-common-actions/pull/370) (the Windows and macOS nightly
|
||||
registry rows for the 14 apps) and
|
||||
[#369](https://github.com/storytold/craft-common-actions/pull/369) (shared helper checkouts kept out
|
||||
of the app's clean-source check, and macOS on `macos-15`), following
|
||||
[#364](https://github.com/storytold/craft-common-actions/pull/364) (the signer may run on the
|
||||
policy's signer branch) and [#363](https://github.com/storytold/craft-common-actions/pull/363) (the
|
||||
multi-app pipeline, which makes the signer's `app-name` input required and admits any reviewed
|
||||
registry app), with #342 (`a4f6fd51`, policy v3 and the `platforms` input) and #339 (`605d5876`)
|
||||
earlier. Both callers name it in `uses` and `tooling-revision`. A pin is reviewed source
|
||||
availability, not provider, queue, native signing or crypto qualification.
|
||||
Existing stable workflows are unchanged.
|
||||
|
||||
**The shared-workflow port is in place.** At this pin the shared pipeline runs for any app in its
|
||||
reviewed registry: `nightly-unsigned.yml` and `nightly-release.yml` resolve the app from the caller's
|
||||
`app-name` and require the matching `storytold/<app>` repository, and the registry
|
||||
(`nightly-apps.json`) carries this app's Linux tar row. A MaterialCraft dispatch therefore builds and
|
||||
signs only the platforms that registry admits. Both callers' `uses`, `tooling-revision` and the policy
|
||||
pins must move to the same reviewed revision together.
|
||||
|
||||
**First runs.** The first runs are manual dispatches in this order: `nightly.yml` on main (only a
|
||||
listed manual actor passes the producer's plan step), then `nightly-sign.yml` on `nightly-signer` with
|
||||
that producer run ID and attempt, by a listed manual actor.
|
||||
|
||||
**Signer branch.** The signer runs on `refs/heads/nightly-signer`, not on the stable `release` branch,
|
||||
so nightly signer files never need a stable release sync. The policy's `release_branch` names it and
|
||||
the signer's guard requires it; this app has no `nightly-dispatch.yml` at all, so nothing transports
|
||||
a run automatically. The branch only fast-forwards to reviewed main commits, through the settings
|
||||
script's `advance` (no queued signer run, a trust-closure scan, then the full diff of `.github/` and
|
||||
`packaging/`), and the existing `release` environment must admit `nightly-signer` alongside
|
||||
`release` before the first dispatch (a repository settings change, not a workflow one). Its trust
|
||||
closure is all of `.github/` and `packaging/`, including `packaging/env.sh`, which `import-cert.sh`
|
||||
sources with the Apple keys. On that branch only the pinned `nightly-sign.yml` caller may reach an
|
||||
environment: no app workflow binds one and nothing else calls `nightly-release.yml`.
|
||||
`packaging/nightly-release-tests.py` checks that in-repo part on every main PR. Stable releases
|
||||
still come only from `refs/heads/release`.
|
||||
|
||||
**Manual actors.** `bflatastic`, `dylanmtaylor`, `echelon`, `FredApps` and `skylartaylor`, in the
|
||||
producer's `manual-actors` and the policy's `manual_actors`. The list mirrors the release-managers
|
||||
team (id 19837241), leaving out `echelon-robot`; when the team changes, update it by PR in **three**
|
||||
places: the caller, the policy, and `RELEASE_MANAGERS` in `packaging/nightly-release-tests.py`, whose
|
||||
`reviewed_manual_actors` check rejects a caller and policy that no longer match it.
|
||||
|
||||
**Admission timing.** The candidate check reads the newest CI run on the candidate commit and
|
||||
main's latest finished Sonar analysis, so pick a quiet `main`, wait for its CI and SonarCloud
|
||||
analysis to finish green, then dispatch the producer and, once it succeeds, the signer, before
|
||||
another `main` push lands a newer analysis.
|
||||
|
||||
**Platform rows.** The producer caller lists
|
||||
`platforms: '["windows-x86_64","linux-x86_64","macos-aarch64"]'` on its single job: one producer
|
||||
run builds every listed platform for one all-or-nothing release (one failed or
|
||||
skipped platform stops that night's release, Windows included), and the release-ref signer admits
|
||||
platforms only from the protected policy, so there is no separate Linux or macOS caller job and
|
||||
the signer caller has no platform input.
|
||||
|
||||
## Installed policy values and their sources
|
||||
|
||||
Read on 2026-11-24; re-read anything that may have moved before `nightly-signer` is advanced to it.
|
||||
|
||||
| Field | Value | Source |
|
||||
|---|---|---|
|
||||
| `repository_id` | `1442148584` | `gh api repos/storytold/materialcraft --jq .id` |
|
||||
| `producer_workflow_id` | `429715578` | `gh api repos/storytold/materialcraft/actions/workflows/nightly.yml --jq .id` (path `.github/workflows/nightly.yml`, state `active`) |
|
||||
| `producer_tooling_revision`, `signer_tooling_revision`, `producer_workflow_ref` | `be00e5cc…` (craft-common-actions exact-analysis admission, #371 after #370 and #369, following #364) | The callers' pin |
|
||||
| `release_branch` | `nightly-signer` | The shared validator allows `release` or `nightly-signer`; the signer guard names the same ref |
|
||||
| `manual_actors` / `automatic_signer_actors` | the five release managers / `[]` | release-managers team (id 19837241) members who can push; equals the producer caller's `manual-actors` |
|
||||
| `max_age_seconds`, `max_artifact_bytes` | `86400`, `2147483648` | Go-live checklist |
|
||||
| `platforms` | three rows (`windows-x86_64`, `linux-x86_64`, `macos-aarch64`) | Stable Learning Machines signing identities (Authenticode publisher subject, OpenPGP primary fingerprint, Apple Developer ID team `DJ6XS33FX8`) |
|
||||
| `candidate_policy.required_workflows` | CI (`ci.yml`, workflow `404098816`), 2 gate jobs | Workflow list API; jobs that succeeded on main push runs (`gate / gate (ubuntu-24.04)`, `gate / gate (windows-latest)`) |
|
||||
| `candidate_policy.sonar` | `storytold` / `storytold_materialcraft`, app `12526` | SonarCloud workflow (`.github/workflows/sonarcloud.yml`) |
|
||||
| Sonar conditions | `new_security_rating` accepted (max 5); the other five required | Standard SonarCloud quality gate conditions |
|
||||
| Sonar `issue_types` / `debt` | `VULNERABILITY`; `[]` | Any unresolved main vulnerability refuses admission |
|
||||
|
||||
The candidate check refuses whenever main's unresolved vulnerability set differs from `debt`, whether
|
||||
an issue is new or fixed, and whenever a required condition fails or a listed CI job is renamed. Refresh
|
||||
those values in the same reviewed main change that `nightly-signer` is then advanced to.
|
||||
|
||||
## Ownership and interface
|
||||
|
||||
- `.github/workflows/nightly.yml`: default-main registration of the unsigned producer, named
|
||||
`MaterialCraft unsigned nightly`, enabled for manual dispatch by `manual-actors`; no signing secrets
|
||||
may be passed or inherited.
|
||||
- `.github/workflows/nightly-sign.yml`: top-level signer registration, enabled for manual dispatch on
|
||||
`nightly-signer`, which carries a reviewed main commit. It rejects wrong repository/event/actual branch,
|
||||
including same-name tags. Its constant whole-run concurrency (`materialcraft-nightly-release`) is
|
||||
distinct from stable, cancellation is off. The caller itself passes no credentials and names the
|
||||
registry `app-name`; only the shared callee's sign jobs bind the `release` environment.
|
||||
- Shared reusable entrypoints are `nightly-unsigned.yml` and `nightly-release.yml` in
|
||||
`storytold/craft-common-actions`. Both must resolve to a **real reviewed public immutable
|
||||
commit**; the defining workflow SHA and tooling input must match.
|
||||
- The existing `packaging/windows/sign.ps1 -Required` is the app-owned Windows adapter.
|
||||
Invoke it only from the immutable **release execution SHA** checkout, never the producer's
|
||||
main source or extracted archive.
|
||||
|
||||
## Local regression checks
|
||||
|
||||
`python3 packaging/nightly-release-tests.py` verifies the MaterialCraft nightly workflow and policy
|
||||
contracts locally without contacting GitHub:
|
||||
|
||||
- `nightly.yml` and `nightly-sign.yml` keep their exact context guards, single-job structure,
|
||||
matching `craft-common-actions` commit pin in `uses` and `tooling-revision`, no schedule, and
|
||||
no-cache/no-platform-secret boundary.
|
||||
- `nightly-sign.yml` preserves its root concurrency serialization (`materialcraft-nightly-release`,
|
||||
`cancel-in-progress: false`, `queue: max`).
|
||||
- `.github/nightly-signing-policy.json` matches the v3 schema, repository identity, callers' pin,
|
||||
platform list, trust anchor shapes, `manual_actors` (identical to the producer's `manual-actors`),
|
||||
required main-push CI workflow, and SonarCloud scope.
|
||||
+63
-3
@@ -48,13 +48,35 @@ cargo xtask version set 0.2.0 # or 0.2.0-rc.1 for a pre-release
|
||||
`set` rewrites `[workspace.package] version` in the root `Cargo.toml` (the single source of truth)
|
||||
and refreshes `Cargo.lock`. Commit, push, and wait for CI on `main` to pass.
|
||||
|
||||
### 3. Cut the release
|
||||
### 3. Review the release trust boundary, then cut the release
|
||||
|
||||
Fast-forward `release` to `main` and push it (only the `release-managers` team and org admins can):
|
||||
Compare the proposed tree with the **previous trusted release**, not a manifest from main.
|
||||
Review and preserve:
|
||||
- `.github/workflows/nightly-sign.yml`, `.github/nightly-signing-policy.json`, and every
|
||||
transitive reusable workflow/action pin;
|
||||
- `packaging/windows/sign.ps1`, its signing configuration, tool installers and imports;
|
||||
- the macOS nightly signing scripts (`packaging/macos/nightly-sign.sh`, `nightly-verify.sh`,
|
||||
`nightly-lib.sh`, `import-cert.sh`) and entitlements, and the Linux public key
|
||||
`.github/nightly-linux-signing-key.asc`;
|
||||
- **every other workflow that can reach the `release` environment**, including reusable
|
||||
callees, dynamic environment selection and changed executable dependencies. A new workflow
|
||||
outside the named nightly paths is not exempt.
|
||||
|
||||
Stop the sync if that closure is unreviewed. The intended signer-owned files are identical on
|
||||
main and release after promotion; actual top-level repository/event/branch checks and the
|
||||
existing environment restrictions provide authority, not permanent branch divergence. Main CI
|
||||
changes do not need a separate blanket review gate.
|
||||
|
||||
Then fast-forward `release` to the commit that was reviewed and push **that commit** (only the
|
||||
`release-managers` team and org admins can). Record the SHA before the review starts: pushing
|
||||
`origin/main` after a later fetch would promote whatever `main` became in the meantime, which nobody
|
||||
reviewed.
|
||||
|
||||
```sh
|
||||
git fetch origin
|
||||
git push origin origin/main:refs/heads/release
|
||||
reviewed=$(git rev-parse origin/main) # record this before the review above, at that commit
|
||||
# ...review the closure above while it is still $reviewed...
|
||||
git push origin "$reviewed:refs/heads/release"
|
||||
```
|
||||
|
||||
That push runs `release.yml`, and also `freebsd.yml` and `windows-arm64.yml` (build, test, install
|
||||
@@ -94,6 +116,44 @@ storytold/materialcraft --draft=false --latest`, or `--prerelease` for an rc). A
|
||||
place by a re-run; a published release is never overwritten, so bump the version before building
|
||||
again.
|
||||
|
||||
## Release-ref nightly preparation
|
||||
|
||||
The Windows, Linux and macOS source preparation is documented in
|
||||
[`nightly-release-preparation.md`](nightly-release-preparation.md). It is not an activated
|
||||
signing or publication pipeline.
|
||||
|
||||
A Nightly build only starts with the Launcher's protocol (`--launch-profile nightly-v1
|
||||
--profile-root <dir> -- files...`), and every Linux nightly format starts it that way: the deb/rpm
|
||||
wrapper (`/usr/bin/materialcraft-nightly`), the AppImage `AppRun`, the Arch launcher and the Flatpak
|
||||
command use `$XDG_DATA_HOME/materialcraft-nightly` (the nightly Flatpak uses the same folder inside
|
||||
its own sandbox), so an installed, integrated, extracted or unpacked nightly keeps its autosaves,
|
||||
saved layout and preview cache out of `~/Documents/MaterialCraft` and the stable cache. A plain
|
||||
`--version` (and the Launcher's query form) is passed straight to the binary, which answers it
|
||||
without creating the profile. The plain nightly `.tar.gz` is the one format whose launcher is not
|
||||
ours: its `materialcraft` is craft-common-actions' shared template (craft-common-actions #363,
|
||||
rendered for this app), which adds its own profile tokens unless the first argument is already a `--launch-profile` pair,
|
||||
names the GUI `materialcraft-bin`
|
||||
beside it and uses `$XDG_DATA_HOME/ai.storyteller.materialcraft.nightly`, and which asks a bare
|
||||
`--version`/`-V` in the Launcher's own form. Stable `release.yml`, its schedule, tags, concurrency,
|
||||
environment values and environment rules are unchanged.
|
||||
|
||||
Initial installation **and later signer/policy updates** ride an already-intended reviewed
|
||||
stable release sync, with an appropriate version/build state. Every release-branch push may
|
||||
rebuild/update a stable draft or refuse an already-published version. An urgent change that
|
||||
cannot wait means pause/cancel nightlies using existing workflow controls, then request one
|
||||
bounded maintenance push with its exact stable consequences understood. Pausing must never
|
||||
require a release push. Do not bypass CI, overwrite a stable release or make a dummy version
|
||||
bump. Verify the actual environment permits only the release **branch**, excludes main and
|
||||
same-name tags, and introduces no per-run approval requirement before activation; unresolved
|
||||
protection or secret-scope collisions are blockers, not permission to change settings.
|
||||
|
||||
Nightlies share the existing Windows signing identity with stable. A suspected key or signing
|
||||
service compromise therefore affects **both channels**: stop/cancel nightlies immediately,
|
||||
notify the release maintainers/security owner privately, and have the identity's authorized
|
||||
owner revoke/rotate it and assess already-signed stable and nightly packages. Stopping one
|
||||
workflow does not revoke signatures or make stable safe. No credentials or identity values
|
||||
are recorded in this procedure.
|
||||
|
||||
## What gets built
|
||||
|
||||
All file names are `materialcraft-<version>-<platform>-<arch>.<ext>`, written to `dist/release/`.
|
||||
|
||||
@@ -23,7 +23,7 @@ Explorer now preserves native SBS folder hierarchies and provides package, folde
|
||||
menus for creation, copying, pasting, renaming, removal and package file actions. Moving items within
|
||||
a package and removing folder subtrees support undo; empty folders survive saves.
|
||||
|
||||
> **Last reviewed:** 2026-11-02 · **Last updated:** 2026-11-15 · **Change:** major (3D view 55% → 75%: the reference menus, tool strip, properties, shaders and lights) · **Target:** the professional node-based material workflow (desktop app; the web app is assessed later)
|
||||
> **Last reviewed:** 2026-11-02 · **Last updated:** 2026-11-18 · **Change:** minor (UI workflow update: menus, Preferences, New graph and Home) · **Target:** the professional node-based material workflow (desktop app; the web app is assessed later)
|
||||
|
||||
**Overall: ≈ 69%** of a material artist's daily workflow works end to end (engine + UI +
|
||||
automation + tests), weighted by how much of the day each area carries. **Remaining: ≈ 83 Opus
|
||||
@@ -38,8 +38,8 @@ automation + tests), weighted by how much of the day each area carries. **Remain
|
||||
| Graph parameters and instances | 8 | 70% | Exposed inputs (float, int, bool, enum, color) bound to parameters of any compatible type, shown in groups, edited with one shared editor on the graph and on its instances; presets (save, apply, delete); sub-graph instances with their own inputs and outputs; graph attributes; `--set` on the CLI | Visibility conditions, embedded vs. linked packages |
|
||||
| 2D view | 5 | 90% | The reference layout: a toolbar above the image (background image, save, copy to the clipboard, output choice, UV overlay, Information and Histogram panels) and one below (channel menu with C/R/G/B/A keys, checkerboard, premultiplied alpha, sRGB or linear display, tiling across the whole view, physical size, exact fit, 1:1, stepped zoom with a zoom field, zoom lock); an Information panel with the pixel under the pointer and a color sampler (values at the image's bit depth and as floats, HSV, position); a Histogram panel with channel choice, bit depth, square-root scale, used range and a selectable range; size/format line | Color picker to parameters, floating the two panels, UV sets beyond the first |
|
||||
| 3D view | 10 | 75% | The reference layout: menus (Scene, Materials, Lights, Camera, Environment, Display, Renderer), a tool strip (scene browser, Select, Camera and Light tools, environment background, shadows, a displacement pop-up, the display helpers) and a bar with the channels, the color space and the scene; the material, lights, camera, environment and renderer in the Properties panel. Thirteen built-in meshes and OBJ, glTF and GLB meshes; nine shaders (the OpenPBR Surface model with coat, fuzz, thin film, transmission and subsurface, metallic/roughness with coated and subsurface variants, specular/glossiness, Blinn, Lambert, unlit and mesh information) with every parameter editable, switchable and replaced by a graph output; height by tessellation and displacement or parallax occlusion; an ambient light and two point lights with shadows; 4 procedural environments with rotation, exposure and an on/off switch; focal length, perspective or orthographic projection, viewpoints, framing, clip planes, a studio backdrop, a background color or the environment behind the mesh, and a render resolution of its own; wireframe, backface culling, grid, axes with a scale, bounding box, light helpers, vertex tangent space, scene statistics, resolution and frame rate; tiling, UV scale and physical size; alpha transparency and an alpha channel view; save and copy the render, export the tessellated mesh as OBJ, state files and a saved default state | A GPU renderer and a path tracer, a ground plane that catches shadows, several materials on one mesh, loading shader definitions, anisotropy, dispersion and thin-walled transmission in the renderer |
|
||||
| Files | 8 | 70% | `.mcraft` packages with embedded bitmaps; `.mcmat` portable materials (cooked maps, exposed inputs, presets, input nodes, the source package) that TextureCraft paints with and re-cooks through the CLI at its own resolution, values and mesh maps; preview images for input nodes; an Export window (From graph, Batch at a chosen output size, and MaterialX and MCMAT tabs holding the #190 publishing options) writing the checked outputs (PNG, JPEG, TGA, BMP, WEBP, EXR, HDR; DDS listed for later; 8/16/32 bits; name pattern; sRGB, linear or raw per output); bitmap import (PNG, JPEG, TGA, TIFF, BMP, WEBP, EXR, HDR); mesh import (OBJ, glTF, GLB); open, save, import and export in the browser; atomic writes; autosave; recent files | An MCP tool for portable materials, package dependencies, SVG and font files as resources |
|
||||
| UI and UX | 8 | 70% | Dockable/floatable panels (explorer, library, graph, 3D, 2D, properties, console, history), menus, main toolbar, graph toolbar with atomic quick-insert, library with live previews, properties with curve/gradient/color editors and a Levels editor over the input histogram, New graph dialog with rendered templates, export dialog, preferences (brightness, accent, scale, preview size, autosave, 3D pan limit and speed), shortcuts list, home screen at startup (samples and recent files), visual function editor, presets bar, accessible names on every widget, status bar | Translations, keymap editor, minimap, multi-graph tabs |
|
||||
| Files | 8 | 70% | `.mcraft` packages with embedded bitmaps; `.mcmat` portable materials (selected root graph, reachable helper graphs and source assets) that TextureCraft paints with and re-cooks through the CLI at its own resolution, values and mesh maps; preview images for input nodes; an Export window (From graph, Batch at a chosen output size, and OpenPBR MaterialX baking and procedural MCMAT publishing) writing the checked outputs (PNG, JPEG, TGA, BMP, WEBP, EXR, HDR; DDS listed for later; 8/16/32 bits; name pattern; sRGB, linear or raw per output); bitmap import (PNG, JPEG, TGA, TIFF, BMP, WEBP, EXR, HDR); mesh import (OBJ, glTF, GLB); open, save, import and export in the browser; atomic writes; autosave; recent files | Package dependencies, SVG and font files as resources |
|
||||
| UI and UX | 8 | 70% | Dockable/floatable panels (explorer, library, graph, 3D, 2D, properties, console, history), menus, main toolbar, graph toolbar with atomic quick-insert, library with live previews, properties with curve/gradient/color editors and a Levels editor over the input histogram, the reference File, Tools, Windows and Help menus (Save all, Cancel rendering, Suspend engine, main toolbar toggle, help and community links), New graph dialog with template cards, a category filter, width and height and a target package, export dialog, a paged Preferences window (General, Projects, Graph, 3D View, Library and Shortcuts pages with OK, Cancel and Apply; recent list length, invert zoom, numbered autosave copies, node search on Tab and on wire drop, outputs in the 3D view on open, node creation shortcuts), a Plugin Manager window (no plugin loading yet), shortcuts list, a home screen at startup (templates, recent packages, learn and community links), visual function editor, presets bar, accessible names on every widget, status bar | A plugin system, bakers, keymap editor for application commands, minimap, multi-graph tabs |
|
||||
| Platforms | 4 | 50% | Windows, macOS, Linux, FreeBSD and web builds compile; browser file I/O; packaging scripts and release workflows | First release run |
|
||||
| **Total** | **100** | **≈ 69%** | | |
|
||||
|
||||
@@ -58,6 +58,7 @@ and is tested.
|
||||
|
||||
| Date | Change | Summary |
|
||||
|---|---|---|
|
||||
| 2026-11-18 | minor | Updated File, Tools, Windows and Help menus, paged Preferences, node creation shortcuts, New graph with independent sizes and a target package, a Plugin Manager window and Home (#269). The historical scores remain as recorded |
|
||||
| 2026-11-15 | major | 3D view 55% → 75%: the reference menus, tool strip and properties; shaders with editable parameters, lights with shadows, camera lens and projection, render resolution, display helpers, state files (#221); overall ≈ 67% → ≈ 69% |
|
||||
| 2026-11-14 | minor | 2D view 80% → 90%: the reference toolbars, the Information and Histogram panels, display settings and stepped zoom (#221); overall unchanged at ≈ 67% |
|
||||
| 2026-11-02 | minor | ≈ 66% → ≈ 67%: `.mcmat` portable materials and TextureCraft interop (Files 70%) |
|
||||
|
||||
Reference in new issue
Block a user