Skip to content

chore: shared Windows agent launcher and full third-party licence notices - #17

Merged
nodemode-ai merged 5 commits into
mainfrom
chore/launcher-and-notices
Nov 30, 2026
Merged

nodemode-ai merged 5 commits into
mainfrom
chore/launcher-and-notices

Conversation

@gbarnai

@gbarnai gbarnai commented Nov 29, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Replace backend/app/agent/agent_lookup.py byte for byte with FormVis's canonical 1.1.0 (sha256 313fcd40...) and record that hash for 1.1.0 in agent_manifest.LOOKUP_HASHES
  • Map the new CommandLineRefused (an OSError) to a 422 with its own message, so a refused tab start no longer shows up as a storage error
  • Windows start tests updated for 1.1.0: CommandLineRefused, pnpm and bun shims, mixed runners, ::$DATA names, spaced paths with @ or quoted words, and the 422 route
  • Add setup/notices.py and setup/notices_crates.py (based on FormDAM's) to generate THIRD-PARTY-NOTICES.txt covering the Python runtime and packages for all three platforms, the PyInstaller bootloader, production npm packages, all Rust crates from src-tauri and native/formref-core, and the model weights
  • Ship the notices in the Tauri bundle and the frozen engine (the selfcheck now requires them), serve them at GET /api/notices, and show them in Settings > About with translations in every full language table
  • CI test job runs python setup/notices.py --check; NOTICE.md, Engine-Contract.md and both HASHOUT logs updated

Tests

  • The notices check and the tests for the launcher behaviour this app depends on were run locally on macOS; failures seen locally also fail on main. Please rely on this PR's CI.

How to ship

  • Independent of other repos. The shared launcher file is the same byte for byte in every Form app (agent_lookup 1.1.0, source in FormVis). No version bump; it can go into the next release.

Replace agent_lookup.py byte for byte with FormVis's 1.1.0 and record its
hash. It follows pnpm and bun shims, reads a .cmd name with a ::$DATA stream,
and refuses a spaced program path that cmd /c would unquote. Its refusal is
CommandLineRefused, an OSError, so the service maps it to a 422 with its own
sentence instead of the storage error.
Add setup/notices.py, which writes THIRD-PARTY-NOTICES.txt from the Python
packages frozen into the engine on every platform, the PyInstaller bootloader,
the production npm packages, every Rust crate the desktop shell and the board
engine compile from, and the model weights. The desktop bundle and the frozen
engine carry the file, /api/notices serves it, Settings > About shows it, and
the CI test job runs setup/notices.py --check. NOTICE.md stays the human list.
@gbarnai
gbarnai requested a review from nodemode-ai as a code owner November 29, 2026 23:14
gbarnai and others added 3 commits November 29, 2026 19:52
36 packages publish no licence file (35 crates and the flatbuffers wheel).
Their upstream licence files, or the SPDX text for selectors, which has none
upstream, now live in setup/licence_texts with a SOURCE.txt each. The
generator uses them and names the upstream file and ref, or the SPDX text, in
each entry's note, and --check reports a kept text nothing uses.
Merging main resolved the VERSION conflict in backend/app/core/config.py by
taking main's side whole, which removed NOTICES_NAME and notices_path(). The
engine imports notices_path at start, so it could not boot.
@nodemode-ai
nodemode-ai merged commit 3cecd98 into main Nov 30, 2026
5 checks passed
@nodemode-ai
nodemode-ai deleted the chore/launcher-and-notices branch November 30, 2026 20:23
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