Skip to content

feat(texturecraft): add TextureCraft 3D texture painter (ai.storyteller.texturecraft) - #938

Merged
jing2uo merged 1 commit into
flatpark:mainfrom
dylanmtaylor:add/ai.storyteller.texturecraft
Nov 2, 2026
Merged

jing2uo merged 1 commit into
flatpark:mainfrom
dylanmtaylor:add/ai.storyteller.texturecraft

Conversation

@dylanmtaylor

Copy link
Copy Markdown
Contributor

Adds TextureCraft (https://github.com/storytold/texturecraft) v0.2.0, the ArtCraft suite's Substance 3D Painter-style 3D texture painter.

  • extra-data: official texturecraft-0.2.0-linux-{x86_64,aarch64}.tar.gz, staged by apply_extra with --no-same-owner, using the exact 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: Wayland + fallback-x11, ipc, dri, xdg-pictures, xdg-documents. No network granted by default; the metainfo documents --share=network as an override for the --control automation server.
  • Desktop & MIME: Desktop file, icons, and .tcraft + 3D mesh format definitions from upstream. StartupWMClass=TextureCraft matches window title / WM class.
  • CLI & MCP: texturecraft-cli headless runner and MCP server exposed via --command=texturecraft-cli.
  • Collections: Added to the artcraft collection under "Graphics and design".
  • Verification:
    • read-descriptor.mjs and audit-descriptor.mjs pass with 0 warnings/errors.
    • check-apply-extra.sh OK as root with no capabilities.
    • publish.sh --verify built, signed, and installed from a temporary local repo cleanly.
    • Tested texturecraft-cli --version inside the sandbox: returns TextureCraft 0.2.0.
    • resolve-update.sh tested and outputs valid release metadata for both x86_64 and aarch64.

@dylanmtaylor
dylanmtaylor force-pushed the add/ai.storyteller.texturecraft branch from f75df75 to 8f4ff34 Compare November 2, 2026 01:02

@jing2uo jing2uo left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review: TextureCraft (ai.storyteller.texturecraft) at 8f4ff347

Verdict: PASS. Thanks — this is a clean package and matches the rest of the ArtCraft suite.

Nothing high-risk is granted: no network, no home, dangerous_permissions: []. The package files match FigCraft's apart from names, pins, and one comment. The finish-args are the same as upstream's own packaging/linux/flatpak/ai.storyteller.TextureCraft.yml. CI is green on 8f4ff347: guard-infra, lint-and-test, and both arch builds. The earlier f75df755 also added the app to the ArtCraft list in config/collections.yml, which tripped guard-infra as designed. 8f4ff347 drops that line and keeps registry/ identical, so the maintainers will add the collection entry themselves.

Legend: ✅ pass · ❌ fail · ⚠️ warn · 👤 needs-human · ➖ N/A. Tier: 1 = open source · ★ = all.

# Phase Check Tier Verdict Evidence
0 Safety Static-only; artifacts handled in an isolated dir ★ ✅ Both tarballs fetched as bytes into a scratch dir, listed before extracting, extracted with --no-same-owner --no-same-permissions, analysed statically. No PR script was executed.
1.1 Scope Classified ★ ✅ New app: 10 files, all under registry/ai.storyteller.texturecraft/
1.2 Scope High-scrutiny surface ★ ✅ Nothing under .github/, scripts/ or config/ at 8f4ff347 (guard-infra: "No repo-automation or existing-app resolver changes", run 41370376357). The earlier f75df755 touched config/collections.yml (one line, ArtCraft list) and failed the gate. That line was dropped. The resolver is in a brand-new app dir.
2.1 Provenance Submitter ★ ✅ dylanmtaylor, account from 2010-05, 221 public repos, 225 followers. First FlatPark PR (#939 open alongside). Also a contributor to storytold/texturecraft itself (3 commits).
2.2 Provenance Source repo age, corroboration ★ ✅ storytold/texturecraft, fork: false, created 2026-10-14, ~155 commits (main author bflatastic, 129), 131 stars, releases v0.1.0 and v0.2.0. Owner org storytold dates from 2021-01 with 73 repos, and is the same upstream as the 13 ArtCraft apps already in the registry.
2.3 Provenance Commit identity ★ ✅ Dylan M. Taylor <[email protected]>
2.4 Provenance Timeline plausible ★ ✅ Account 2010 → org 2021 → repo 2026-10-14 → v0.1.0 2026-10-24 → v0.2.0 2026-11-01
2.5 Provenance Trust tier ★ ✅ Submitter: established. Upstream: established (existing ArtCraft upstream).
2.6 Provenance Artifact tier ★ ✅ Tier 1: MIT OR Apache-2.0 (Cargo.toml:10, LICENSE-MIT + LICENSE-APACHE), official upstream build
3.1 Manifest Source types ★ ✅ Two extra-data sources (x86_64 / aarch64) with sha256 + non-zero size. The rest are local file sources. No git or archive.
3.1b Manifest Nothing remote in /app ★ ✅ build-commands only install local files (.yml:35-41). The payload is extra-data.
3.2 Manifest finish-args ★ ✅ wayland, fallback-x11, ipc, device=dri, xdg-pictures, xdg-documents. Identical to upstream's Flatpak manifest, each with a comment. No escape or broad permissions.
3.3 Manifest policy: honest ★ ✅ proprietary: false correct; dangerous_permissions: [] correct
3.4 Manifest Install-only, payload unmodified ★ ✅ apply_extra.sh untars, renames the version-stamped top dir to texturecraft/, checks both binaries exist, deletes the archive. The wrappers are one exec line each. No patch, no sed, nothing injected. It is byte-identical to FigCraft's apply_extra.sh modulo the name.
3.4b Manifest packaging: ★ ✅ None needed: no env, injected code, host command or sandbox-off
3.5 Manifest Genuine upstream ★ ✅ github.com/storytold/texturecraft (fork: false)
3.6 Manifest app-id ★ ✅ ai.storyteller.texturecraft is upstream's own id (upstream manifest id:, desktop file, metainfo, icon names) and matches the suite. The metainfo has the unaffiliated community-package line.
3.7 Manifest update.command ★ ✅ ./resolve-update.sh
3.8 Manifest Download host ★ ✅ github.com/storytold/texturecraft/releases/download/v0.2.0/texturecraft-0.2.0-linux-{x86_64,aarch64}.tar.gz
3.9 Manifest Optional caps as overrides ★ ✅ --share=network (for --control from host agents) and --filesystem=home are documented as flatpak override commands in the metainfo, not pre-granted
3.10 Manifest PR body: what was tested ★ ⚠️ Reports check-apply-extra as root, publish.sh --verify, texturecraft-cli --version in the sandbox, and the resolver output for both arches. It does not say the GUI was launched or a mesh opened. Minor for a suite-template package, but please include that next time (testing playbook).
4.1 Runtime No runtime fetch-and-exec ★ ✅ No updater or download code in the binary: no api.github.com, releases/latest or update-check strings. URLs are docs and issue links (wgpu, egui, the app's own issues/readme, getartcraft.com).
4.2 Runtime Resolver reviewed as code ★ ✅ Read-only releases/latest call (GITHUB_TOKEN only as a header to api.github.com), jq selects assets by exact name texturecraft-$version-linux-$arch.tar.gz, fails closed if either arch is missing. No eval, no writes, JSON on stdout. Same shape as the FigCraft resolver.
4.3 Runtime Endpoints; filesystem×network ★ ✅ No network granted. The only listener is the opt-in --control server on 127.0.0.1, gated by TEXTURECRAFT_CONTROL_TOKEN (strings in the binary). No filesystem×network combo.
5.1 Artifact sha256 == pin ★ ✅ x86_64: 9919068b…e1393d7cfb2, 36972234 bytes. aarch64: 88024d81…85668b3ea646a, 35613347 bytes. Both re-fetched and equal to the manifest pins and GitHub's asset digest.
5.2 Artifact Inspected per type ★ ✅ tar.gz, both arches: one top-level dir texturecraft-0.2.0-linux-<arch>/, 22 regular files + 29 dirs. No symlinks, hardlinks, setuid, absolute paths or ... Contents: bin/texturecraft, bin/texturecraft-cli (0755), share/{applications,metainfo,mime,icons,doc}. Owner runner/runner, hence the --no-same-owner.
5.3 Artifact Nothing injected, no vendor file changed 1 ✅ Only a directory rename. Binaries untouched.
5.4 Artifact Shipped == official ★ ✅ Same hashes as 5.1. The registry's desktop/mime/icon are upstream's: mime.xml identical to packaging/linux/ai.storyteller.texturecraft.mime.xml, 512px PNG identical to the one in the tarball (705513dc…).
5.5 Artifact Bundled runtimes ★ ➖ Two static-ish Rust ELFs, no bundled runtime
5.6 Artifact IOC scan ★ ✅ NEEDED: libgcc_s, libm, libc (+ ld-linux on x86_64) only, max GLIBC_2.35. No RPATH/RUNPATH, no embedded ELF. No persistence, miner or reverse-shell strings (one false positive: a zbus error-name blob). IPs: 127.0.0.1 (control server) and test/version-like literals (9.9.9.9, 1.3.5.7, 2.4.6.8). Spawned helper: zenity (rfd dialog fallback).
6.1 Compliance Purpose ★ ✅ 3D texture painter. "Substance 3D Painter-style" is a descriptive comparison, same wording style as the other ArtCraft listings.
6.2 Compliance Non-FOSS not a reason ★ ➖ MIT OR Apache-2.0
7.1 Verdict Overall ★ ✅ PASS
7.2 Verdict Hard-fail triggers ★ ✅ None
7.3 Verdict Recommendation ★ ✅ A maintainer merges

Read, file by file

  • flatpark.yml: descriptor, mode: extra-data, both arches, proprietary: false, empty dangerous_permissions. Differs from FigCraft's only in name, summary and tags.
  • ai.storyteller.texturecraft.yml: runtime org.freedesktop.Platform//26.08, finish-args as in 3.2, install-only module, managed extra-data block. Differs from FigCraft's only in names, pins and the --share=network comment (no live-session feature here).
  • apply_extra.sh: see 3.4.
  • texturecraft-wrapper, texturecraft-cli-wrapper: exec /app/extra/texturecraft/bin/<bin> "$@".
  • resolve-update.sh: see 4.2.
  • .desktop: upstream's file with one change, StartupWMClass=texturecraft → TextureCraft. That change is correct: apps/texturecraft/src/main.rs sets APP_NAME = "TextureCraft" and never calls with_app_id, so eframe uses TextureCraft as the Wayland app_id and X11 WM_CLASS. The lowercase string doesn't occur in the binary. FigCraft carries the same fix. Worth reporting upstream.
  • .metainfo.xml: community-package line, sandbox disclosure, the two overrides, four screenshots (all return 200 from raw.githubusercontent.com/storytold/texturecraft/main/docs/images/), releases 0.2.0 (2026-11-01) and 0.1.0 (2026-10-24) matching the GitHub releases.
  • .mime.xml: identical to upstream.
  • .png: identical to upstream's 512×512 icon.
  • Upstream v0.2.0: packaging/linux/flatpak/ai.storyteller.TextureCraft.yml, packaging/linux/*.desktop|*.mime.xml|*.metainfo.xml.in, Cargo.toml, apps/texturecraft/src/main.rs (window identity only).

Reproduce

for a in x86_64 aarch64; do
  curl -fsSL -o tc-$a.tgz https://github.com/storytold/texturecraft/releases/download/v0.2.0/texturecraft-0.2.0-linux-$a.tar.gz
  sha256sum tc-$a.tgz; tar -tzvf tc-$a.tgz | awk '$1 !~ /^[-d]/ || $1 ~ /[sS]/'
done
gh release view v0.2.0 -R storytold/texturecraft --json assets -q '.assets[]|select(.name|test("linux-(x86_64|aarch64).tar.gz$"))|.name+" "+.digest'
readelf -d texturecraft-0.2.0-linux-x86_64/bin/texturecraft | grep -E 'NEEDED|RPATH|RUNPATH'
node scripts/audit-descriptor.mjs registry/ai.storyteller.texturecraft/flatpark.yml
./scripts/check-apply-extra.sh ai.storyteller.texturecraft
./scripts/publish.sh --verify ai.storyteller.texturecraft

Not covered

  • The app's source was not audited; only the window-identity code was read.
  • The reviewer did not run the packager-side scripts (audit-descriptor, check-apply-extra, publish.sh --verify, appstreamcli validate) or the resolver. The PR body reports them passing, and CI's lint-and-test and both arch builds passed on 8f4ff347.
  • Untested: launching the GUI, opening a mesh, painting, baking, exporting, and the --control server.

@jing2uo
jing2uo merged commit 19167e6 into flatpark:main Nov 2, 2026
jing2uo added a commit that referenced this pull request Nov 2, 2026
…Craft and Craft Anything to ArtCraft (#941)

* fix(audit): check --filesystem grants regardless of :ro/:rw/:create

The WATCH and ESCAPE lists matched finish-args by exact string, so
--filesystem=home:ro (and host:ro and the like) passed with no warning
even though read access to the whole home is high-risk per
docs/packagers/permissions.md. Strip the mode before comparing, on both
the finish-args and the declared policy.dangerous_permissions.

Blueshell is the only package newly flagged: declare its home:ro, using
the reason already given in its manifest.

* feat(collections): add TextureCraft and Craft Anything to ArtCraft

TextureCraft (#938) joins Graphics and design. Craft Anything gets a new
Developer tools group; #939 was meant to add it, but the change was lost
in the squash merge.
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