Skip to content

feat(materialcraft): add MaterialCraft, node-based procedural material designer (ai.storyteller.materialcraft) - #954

Merged
jing2uo merged 2 commits into
flatpark:mainfrom
dylanmtaylor:add/ai.storyteller.materialcraft
Nov 3, 2026
Merged

jing2uo merged 2 commits into
flatpark:mainfrom
dylanmtaylor:add/ai.storyteller.materialcraft

Conversation

@dylanmtaylor

Copy link
Copy Markdown
Contributor

Adds MaterialCraft (https://github.com/storytold/materialcraft), the ArtCraft suite's Substance Designer-style procedural material designer.

Draft: blocked on the upstream release. v0.1.0 in storytold/materialcraft is still a draft release, so the pinned URLs return 404 and CI's check-apply-extra.sh will fail on the download, as will resolve-update.sh (/releases/latest is 404 for a repo whose only release is a draft). The pin itself is correct — the sha256 and size come from the release's asset metadata and were checked against downloads of both architectures. It needs the release publishing, then this is ready for review.

  • extra-data: official materialcraft-0.1.0-linux-{x86_64,aarch64}.tar.gz, staged by apply_extra with --no-same-owner, using the same template as the rest of the ArtCraft suite.
  • Manifest: App id, runtime (org.freedesktop.Platform 26.08) and finish-args follow upstream's own packaging/linux/flatpak manifest, so this package and the single-file bundle upstream attaches to each release are the same application: Wayland + fallback-x11, --share=ipc, --device=dri, xdg-pictures, xdg-documents. No network granted by default; the metainfo documents --share=network as an override for the --control automation server, and --filesystem=home for opening files by path.
  • Desktop & MIME: Upstream's desktop file, 512×512 icon and the .mcraft MIME definition. StartupWMClass=materialcraft matches the window's WM class.
  • CLI & MCP: materialcraft-cli, the headless runner and MCP server, is exposed via --command=materialcraft-cli.
  • Collections: Added to the artcraft collection under "Graphics and design" (TextureCraft's PR listed this but left the file out, so it followed in fix(audit): check --filesystem grants regardless of mode; add TextureCraft and Craft Anything to ArtCraft #941).
  • Flathub: Not on Flathub (ai.storyteller.materialcraft returns 404), so there is no overlapping package to compare against.

Tested:

  • read-descriptor.mjs and audit-descriptor.mjs pass with no failures.
  • appstreamcli validate on the metainfo: successful.
  • check-apply-extra.sh passes as root with no capabilities, against the real v0.1.0 tarball bytes (run against a local copy of them, since the release is not public yet).
  • publish.sh --verify built the app and exported it to a signed local repo; the built ref installed from it with apply_extra running at install time.
  • Ran the installed build: materialcraft --version and materialcraft-cli --version both report 0.1.0, and the GUI starts and stays up without writing to stderr.

Not tested: saving a .mcraft package and reopening it, and exporting texture maps. I launched the window but did not drive the node editor.

Assisted by GPT-6 Luna (High).

…l designer (ai.storyteller.materialcraft)

Package the official Linux tarballs from storytold/materialcraft as
extra-data, pinned to v0.1.0 for x86_64 and aarch64.

The app id, runtime and finish-args follow upstream's own Flatpak manifest
(packaging/linux/flatpak), so this package and the single-file bundle
upstream attaches to each release are the same application. MaterialCraft
also ships a headless CLI and MCP server, exposed as materialcraft-cli.

Assisted by GPT-6 Luna (High).
@jing2uo
jing2uo marked this pull request as ready for review November 3, 2026 00:32
@jing2uo

jing2uo commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator

Review: ai.storyteller.materialcraft (#954)

Recommendation: PASS on provenance and packaging; hold the merge until the main feature is tested. No hard-fail trigger hit. Two items need a maintainer: the one-line config/collections.yml change (high-scrutiny path, submitter has read access only), and the untested main feature (testing playbook: a listing waits until its main feature is tested).

The draft blocker is resolved: upstream published v0.1.0 on 2026-11-03 00:09 UTC, the pinned URLs return 200, and /releases/latest now resolves to v0.1.0. CI results are reviewed separately.

Static review only: nothing from the PR or the artifacts was executed.

# Check Verdict Evidence
0 Static-only, isolated dir ✅ Artifacts fetched as bytes, extracted --no-same-owner --no-same-permissions; PR's resolve-update.sh not run
1.1 Scope ✅ New app registry/ai.storyteller.materialcraft/ + 1 line in config/collections.yml
1.2 High-scrutiny surface 👤 config/collections.yml:48 adds ai.storyteller.materialcraft to the ArtCraft group, next to texturecraft. Submitter permission: read. The change is a list entry only; maintainer to accept
2.1 Submitter ✅ dylanmtaylor, account since 2010, 221 public repos, 229 followers; 3 merged ArtCraft PRs here (#938, #939, #940)
2.2 Source repo ✅ storytold/materialcraft, org storytold (getartcraft.com) since 2021, 74 repos, 15 sibling apps already in the registry; repo created 2026-11-01, 40 commits by org members (bflatastic, echelon, …), not a fork
2.3 Commit identity ✅ Dylan M. Taylor <[email protected]>
2.4 Timeline ✅ Young repo, but in an established org that ships its apps the same way; matches the sibling pattern
2.5 Trust tier ✅ Established
2.6 Provenance tier ✅ Tier 1: open source, MIT OR Apache-2.0 (Cargo.toml:40, both LICENSE files at tag)
3.1 Source types ✅ Two extra-data (x86_64/aarch64) with sha256 + non-zero size; the rest are local file sources
3.1b Bytes in /app ✅ Only in-repo wrapper/desktop/metainfo/mime/icon installed
3.2 finish-args ✅ wayland, fallback-x11, ipc, dri, xdg-pictures, xdg-documents. Identical to upstream packaging/linux/flatpak/ai.storyteller.MaterialCraft.yml and .bundle.yml at v0.1.0; no network, no home
3.3 policy: ✅ proprietary: false correct; dangerous_permissions: [] matches
3.4 build-commands ✅ install lines only; payload untouched; wrappers are a bare exec
3.4b packaging: ✅ Nothing to declare (no injection, host commands or sandbox-off); audit-descriptor.mjs exit 0
3.5 Source URLs ✅ github.com/storytold/materialcraft/releases/download/v0.1.0/…
3.6 App id ✅ ai.storyteller.materialcraft = upstream's own id (upstream manifest, desktop, metainfo)
3.7 update.command ✅ ./resolve-update.sh
3.8 Download host ✅ Upstream org, not submitter namespace
3.9 Optional caps ✅ --share=network (for --control) and --filesystem=home are documented as flatpak override in metainfo, not granted
3.10 What was tested ⚠️ Honest and specific (unpack as root, publish.sh --verify, install, --version of both binaries, GUI starts). Not tested: save/reopen .mcraft, texture export, which is the main feature and the portal file-chooser path. Restart persistence, home-folder diff and bus names aren't recorded either
4.1 Runtime fetch-exec ✅ No updater; URLs in binary are docs/issue links, getartcraft.com, discord; no fetch-and-exec strings
4.2 Resolver as code ✅ curl to api.github.com/repos/storytold/materialcraft/releases/latest (token only to api.github.com), jq --arg exact-name asset match, no eval; draft/prerelease excluded by /latest; same as merged texturecraft resolver
4.3 Endpoints / fs×net ✅ No network granted; --control listens on 127.0.0.1 inside the sandbox
5.1 sha256 == pin ✅ x86_64 67d051ee…0091 16544243 B; aarch64 0bd60225…ddb1 15421818 B, matching the release asset digests
5.2 Tar inspection ✅ 50 entries each, one top dir materialcraft-0.1.0-linux-<arch>/, regular files/dirs only: no symlinks, setuid/setgid, absolute paths or ..; owner runner/runner (hence --no-same-owner)
5.3 Nothing injected ✅ No preload, no file replaced
5.4 Shipped == official ✅ Re-fetched and hashed (5.1); build doesn't touch /app/extra
5.5 Bundled runtimes ➖ Single Rust binaries; none bundled
5.6 IOC scan ✅ All 4 ELFs: NEEDED libc/libm/libgcc_s/ld-linux only, no RPATH/RUNPATH, max GLIBC_2.35; no miner/reverse-shell/persistence/LD_PRELOAD strings, no hardcoded IPs; second \x7fELF hit in the x86_64 binaries is a cmp dword [rsi],0x464c457f instruction (ELF-header check), not an embedded ELF; dlopen targets libwayland-client/-egl, libEGL, libxkbcommon(-x11), libX11(-xcb), libxcb, libdbus-1, all in the runtime
6.1 Purpose ✅ Material designer
6.2 Non-FOSS ➖ FOSS
7.1 Overall 👤 PASS on provenance/packaging; maintainer gate on 1.2 and 3.10
7.2 Hard-fail triggers ✅ None

Files read

  • ai.storyteller.materialcraft.desktop, .mime.xml: byte-identical to upstream packaging/linux/ at v0.1.0 and to the copies in the tarball. desktop-file-validate passes.
  • ai.storyteller.materialcraft.png: git blob 9d3c36b5… = upstream assets/app-icon/hicolor/512x512/apps/ai.storyteller.materialcraft.png.
  • ai.storyteller.materialcraft.metainfo.xml: upstream template plus the community-package line, the CLI and permission/override paragraphs, 4 screenshots (all return 200) and vcs-browser instead of help; the stock <icon> is dropped. Keyword mesh → texture.
  • ai.storyteller.materialcraft.yml, apply_extra.sh, wrappers, resolve-update.sh, flatpark.yml: line for line the merged ai.storyteller.texturecraft template, with only names, pins and metadata changed.
  • Branch merges cleanly onto current main (3 commits behind).

Nits (non-blocking)

  • metainfo.xml:81 <release date="2026-11-02">: the release was published 2026-11-03 (UTC). The resolver compares versions only, so it doesn't matter functionally; the next bump fixes it.

Before merge

  1. pr-checks green, incl. check-apply-extra.sh against the now-public URLs.
  2. Test the main feature on the installed build and add it to the PR: build a graph, save as .mcraft via the file chooser, quit, reopen it (restart persistence), export a set of maps to Pictures/Documents, and diff ls -A ~ before/after.

Not covered by this review

App source was not audited (Tier 1 policy: artifact IOC scan only). appstreamcli validate wasn't re-run here (not installed locally); CI covers it. The app was not run.

…is live

https://getartcraft.com/apps/materialcraft returns 404 for now, which fails
the dead-link check. Use the upstream repository for website and the
metainfo homepage; switch back once the product page exists.
@jing2uo
jing2uo merged commit 51b9228 into flatpark:main Nov 3, 2026
jing2uo added a commit that referenced this pull request Nov 3, 2026
cadcraft, deckcraft, gridcraft, soundcraft and wordcraft now have live
product pages under https://getartcraft.com/apps/<name>. Switch website
and the metainfo homepage there to match the other ArtCraft apps;
source_url, bugtracker and vcs-browser stay on GitHub.

materialcraft keeps the GitHub homepage: its product page still 404s
(see #954).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants