Skip to content

feat(constructcad): add ConstructCAD, an open-source BIM application (io.github.francisreboucas.constructcad) - #907

Merged
jing2uo merged 2 commits into
flatpark:mainfrom
3ddruck12:add/io.github.francisreboucas.constructcad
Oct 30, 2026
Merged

jing2uo merged 2 commits into
flatpark:mainfrom
3ddruck12:add/io.github.francisreboucas.constructcad

Conversation

@3ddruck12

@3ddruck12 3ddruck12 commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Adds ConstructCAD 0.7.0 (io.github.francisreboucas.constructcad), an open-source BIM application written in Rust (egui, wgpu).
  • The payload is the official constructcad-v0.7.0-x86_64-unknown-linux-gnu.tar.gz, unpacked with tar --no-same-owner. It runs on org.freedesktop.Platform//26.08. The Linux build is not rebuilt.
  • The resolver takes only constructcad-v<version>-x86_64-unknown-linux-gnu.tar.gz. Installers, the AppImage, and the macOS and Windows archives on the same release are skipped.

Sandbox

  • Shared: IPC, Wayland with X11 fallback, GPU, and the Documents folder so a project path keeps working.
  • CONSTRUCTCAD_NO_UPDATE_CHECK=1 turns off the in-app GitHub release notice. Updates come through FlatPark, and there is no network grant.
  • Open and Save otherwise go through the file chooser.
  • A project outside Documents is opt-in: flatpak override --user --filesystem=home io.github.francisreboucas.constructcad.
  • The headless runner is flatpak run --command=ccad io.github.francisreboucas.constructcad -h.

Tested

  • Descriptor audit, appstreamcli validate --no-net, and the resolver (0.7.0, the x86_64 Linux tarball). check-apply-extra unpacked the archive as root with no capabilities.
  • publish.sh --verify built the app and installed it from the local signed repo. ldd on both binaries reported no missing libraries. ccad -V printed 0.7.0.
  • After dropping the network grant, the installed app has CONSTRUCTCAD_NO_UPDATE_CHECK=1 and no network permission.
  • ccad created a wall from (0, 0) to (4, 0), height 2.8 m. The window opened that project: the floor plan showed the wall, and the 3D view rendered it. WM_CLASS is constructcad.

Flathub

Not published on Flathub. io.github.francisreboucas.constructcad returns 404 from the Flathub appstream API.

…(io.github.francisreboucas.constructcad)

Co-authored-by: Cursor <[email protected]>

@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.

Thanks — this is a clean submission. One change requested before merge (drop the network grant), plus an optional aarch64 suggestion. Everything below was checked statically per the review runbook; nothing was executed.

Verdict: PASS after one change — remove --share=network and turn off the in-app update check (see inline comment).

# Check Verdict Evidence
0 Static-only, isolated dir ✅ Artifacts fetched as bytes, extracted --no-same-owner --no-same-permissions, nothing run
1.1 Scope ✅ New app, registry/io.github.francisreboucas.constructcad/ only
1.2 High-scrutiny surface ✅ No .github/·scripts/·config/; resolver is in a brand-new app dir
2.1 Submitter ✅ Account since 2021-05; 7 prior merged app PRs (#793 BIMCraft, #629, #581, #582, #634, #815, #852)
2.2 Source repo ✅ francisreboucas/constructcad, not a fork, GPL-3.0, created 2026-10-18; owner account since 2009. Repo age doesn't matter per policies.md
2.3 Commit identity ✅ Normal author email + Cursor co-author trailer
2.4 Timeline ✅ Owner account → repo → release spans years, not hours
2.5 Trust tier ✅ Established
2.6 Provenance tier ✅ Tier 1 (open source, official GitHub release)
3.1 Source types ✅ One extra-data with sha256 + size 23659258; the rest are local file
3.1b Bytes into /app ✅ Only in-repo wrapper/desktop/metainfo/mime/icon
3.2 finish-args ⚠️ No escape perms; --share=network is only used for the update notice → requested change
3.3 policy: ✅ proprietary: false correct; no dangerous perms
3.4 build-commands ✅ install only; payload untouched
3.4b packaging: ✅ Nothing to declare (an env-only wrapper/--env is Unmodified)
3.5 Source URLs ✅ Genuine upstream repo
3.6 App id ✅ io.github.francisreboucas matches the repo owner
3.7 update.command ✅ ./resolve-update.sh
3.8 Download host ✅ github.com/francisreboucas/constructcad/releases/download/v0.7.0/…
3.9 Optional caps opt-in ✅ xdg-documents only; home documented as flatpak override in metainfo
3.10 Tested ✅ PR body lists build/install/launch/headless + GUI tests
4.1 Runtime fetch-and-exec ✅ None. update.rs only GETs api.github.com/.../releases/latest and shows a notice; downloads nothing
4.2 Resolver as code ✅ GitHub API only; asset name pinned by anchored regex; non-draft/non-prerelease; latest by published_at; no eval, no writes
4.3 Endpoints ⚠️ Only api.github.com (update notice) — not needed in a FlatPark package, see inline
5.1 sha256 == pin ✅ 6d206abc762c0f398a272eb6775e8fbe38175abcf431bafdf72ac2743f402553, matches upstream SHA256SUMS.txt
5.2 Tar inspection ✅ One top dir; 7 regular files (constructcad, ccad, README×2, CHANGELOG, LICENSE, casa_simples.ccad); no symlinks/traversal/setuid; owner runner/runner (GitHub Actions)
5.3 Nothing injected ✅ Wrappers just exec the binaries
5.4 Shipped == official ✅ Re-fetched and hash-compared; apply_extra only unpacks + renames the dir
5.5 Bundled runtimes ➖ None; static Rust binaries
5.6 IOC scan ✅ NEEDED only libc/libm/libgcc_s/ld-linux; no RPATH/RUNPATH; no persistence/miner/reverse-shell strings; only URL contacted is the GitHub releases API
6.1 Purpose ✅ BIM authoring tool
6.2 Non-FOSS ➖ GPL-3.0
7.1 Overall ⚠️ PASS after the network change
7.2 Hard-fail triggers ✅ None

Other files read: icon is byte-identical to upstream assets/icons/app-icon.png (sha256 0857df55…cfc3f, 512×512); desktop and mime files match upstream packaging/linux/constructcad.desktop / constructcad.xml with the icon renamed to the app id; the binary references org.freedesktop.portal.FileChooser, so Open/Save via the portal holds.

Optional — aarch64: upstream also ships constructcad-v0.7.0-aarch64-unknown-linux-gnu.tar.gz (sha256 8ebf218b67305e279660dcb38fa38e613cb3f9c11e51ebeb6388c9fbdd788f0c, size 23349009, in SHA256SUMS.txt) with the same single-dir layout, so apply_extra.sh works unchanged. Adding it means arches: [x86_64, aarch64], a second extra-data source with only-arches: [aarch64] and the same filename, and an aarch64 source in the resolver. Not blocking.

Reproduce:

curl -fsSLO https://github.com/francisreboucas/constructcad/releases/download/v0.7.0/constructcad-v0.7.0-x86_64-unknown-linux-gnu.tar.gz
sha256sum constructcad-v0.7.0-*.tar.gz && tar -tvzf constructcad-v0.7.0-*.tar.gz
readelf -d constructcad ccad | grep -E 'NEEDED|RPATH|RUNPATH'

Not covered: the app source isn't audited (Tier 1: artifact checks only), and the app wasn't run by the reviewer; runtime behavior relies on the PR's test record.

Turn off the in-app GitHub release notice and drop the network grant.

Co-authored-by: Cursor <[email protected]>
@jing2uo
jing2uo requested review from jing2uo and removed request for jing2uo October 30, 2026 11:55

@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.

Network grant dropped and the in-app update notice is off via CONSTRUCTCAD_NO_UPDATE_CHECK=1; metainfo updated to match. Rest of the earlier review still holds. Thanks!

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