Skip to content

License field under MIT - #184

Merged
ninjudd merged 8 commits into
mainfrom
license/mit
Oct 11, 2026
Merged

ninjudd merged 8 commits into
mainfrom
license/mit

Conversation

@ninjudd

@ninjudd ninjudd commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Field is going public, and a repository without a license grants nobody the right to use, copy, or change it. This adds the MIT License, with Amnesiac, LLC as the copyright holder, and declares it where tooling reads it: "license": "MIT" in package.json for npm, and license = "MIT" in the three Python workers' pyproject.toml for uv and pip.

MIT covers field's own code, but not the daemon binary as a whole. field-audiod links JUCE 8, whose modules are all dual-licensed under AGPLv3 and the commercial JUCE license (JUCE 7's permissively licensed modules are gone in version 8), and it compiles in Steinberg's VST3 SDK to host VST3 plugins, which JUCE 8.0.4 bundles separately under GPLv3 or Steinberg's proprietary license. A commercial JUCE license therefore does not cover the whole binary on its own. The new License section in the README names both and the copyleft terms a binary built without their commercial licenses carries, so the MIT label does not overstate what someone can do with a built daemon. MIT code can be combined with AGPLv3 and GPLv3 code, so field's own code needs nothing further to ship that way. The Licensing paragraph in docs/architecture.md, which said a commercial JUCE license alone would cover a closed-source build, now names the VST3 SDK too.

Testing

From the root of a checkout of license/mit:

pnpm install --frozen-lockfile
node -p "require('./package.json').license"
sed -n '1,3p' LICENSE
pnpm typecheck
(cd python/worker && uv build --wheel --out-dir /tmp/field-wheels && uv lock --check)

You should see an install that finishes without complaining about the lockfile, since the license field does not change it; MIT; the license's first lines ending Copyright (c) 2026 Amnesiac, LLC; a clean typecheck; and a field_worker wheel whose .dist-info/METADATA carries License-Expression: MIT, with uv lock --check reporting the lockfile current. The same holds in python/aced and python/voiced. Output that would show the change is wrong: ERR_PNPM_OUTDATED_LOCKFILE from the install, undefined from the second command, or a wheel build that rejects the license field.

After the merge, GitHub should show "MIT license" in the repository's About panel, and gh api repos/okamnesiac/field/license --jq .license.spdx_id should print MIT. Before the merge that call returns 404, because GitHub reads the license only from the default branch.

Only the wheel build writes anything, to /tmp/field-wheels; the checkout is left unchanged.

📽️ Projector summary of ffc80da: https://field.amnes.ac/reviews/184

Field is going public, and a repository with no licence grants nobody the right to use it. MIT matches Projector's licence. The README says plainly what the label does not cover: field-audiod links JUCE, so a daemon binary built without a commercial JUCE licence is covered by AGPLv3 as a whole.

@ninjudd ninjudd left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

📽️ Projector review · 0.7.3 · model claude-opus-5-5 · effort xhigh · CHANGES REQUESTED · took 6m 02s

This change licenses field under MIT before the repository goes public. It adds the standard MIT LICENSE naming Amnesiac, LLC, sets "license": "MIT" in package.json, and adds a License section to the README. That section says field-audiod links JUCE, so a daemon binary built without a commercial JUCE license is covered by AGPLv3, which keeps the MIT label from overstating what someone can do with a built daemon. No code changes.

1 finding thread: 0 resolved, 1 open

Covered 3 of 3 changed files. No generated files.

Suggestions

  • README.md:175: spell the noun "license", as the section's own heading, docs/architecture.md, and 34 other lines of the repository's Markdown do. This line is the only "licence" in the repository, and the Google developer documentation style that AGENTS.md adopts uses American spelling.
  • docs/architecture.md:143: the Licensing paragraph says a commercial JUCE license "resolves" closed-source distribution, which leaves out the same VST3 SDK that the thread on README.md covers. It predates this change, so update it with the same fix.
  • python/worker/pyproject.toml:13, python/aced/pyproject.toml:8, and python/voiced/pyproject.toml:8: add license = "MIT" after description, so uv and pip report the workers' license the way package.json now reports it to npm.

What was checked

  • The license text. LICENSE matches GitHub's MIT template, from gh api licenses/mit, word for word with the year and holder filled in. The template differs only by one trailing blank line. The year 2026 is the year of the repository's first commit.
  • The JUCE claim. native/audiod/CMakeLists.txt pins JUCE 8.0.4. That tag's LICENSE.md, and the headers of the modules the daemon links (juce_core, juce_events, juce_audio_basics, juce_audio_devices, juce_audio_formats, juce_audio_processors, and the GUI modules they pull in), all say AGPLv3 or commercial. So the README's AGPLv3 statement matches the source the build fetches.
  • Other third-party code. The repository vendors nothing and carries no fonts or audio. examples/bloom holds only .gitkeep placeholders where samples go. The Python workers install ACE-Step and chatterbox-tts when a user runs their setup command, rather than shipping them, and SuperCollider runs as a separate sclang process. Apart from permissive libraries that JUCE bundles, such as FLAC and zlib, the VST3 SDK is the one component compiled into the daemon under terms of its own.
  • package.json. It parses, and license is the SPDX identifier MIT. No private or files field conflicts with it, and pnpm install --frozen-lockfile passes at this head. project check passes.

Comment thread README.md Resolved
@ninjudd
ninjudd marked this pull request as draft October 11, 2026 04:38
JUCE_PLUGINHOST_VST3=1 compiles Steinberg's VST3 SDK into field-audiod, and JUCE 8.0.4 bundles it under GPLv3 or Steinberg's proprietary licence, separately from JUCE's own. The section named JUCE alone, so a reader holding a commercial JUCE licence could conclude nothing else applied.

@ninjudd ninjudd left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

📽️ Projector review · 0.7.3 · model claude-opus-5-5 · effort xhigh · CLEAN · took 1m 30s

This change licenses field under MIT before the repository goes public. It adds the standard MIT LICENSE naming Amnesiac, LLC, sets "license": "MIT" in package.json, and adds a License section to the README. That section now names both third-party codebases compiled into field-audiod, JUCE and Steinberg's VST3 SDK, with their licenses, and says a daemon binary built without the non-copyleft license for each is under AGPLv3 and GPLv3. No code changes.

1 finding thread: 1 resolved, 0 open

Covered 3 of 3 changed files. No generated files.

Suggestions

  • README.md:183: "the commercial licence for each" calls Steinberg's option commercial. Line 180 names it the proprietary VST3 license, and the SDK's own LICENSE.txt calls it the "Proprietary Steinberg VST3 License", usable "commercial or not". Use the same name in both places.
  • docs/architecture.md:143: the Licensing paragraph still says a commercial JUCE license "resolves" closed-source distribution. That now contradicts the README's line 182, which says a commercial JUCE license does not cover the VST3 SDK. The paragraph predates this change.

What was checked

  • The fix for the License section. Lines 178 to 180 name the VST3 SDK, the JUCE version the daemon pins, and the SDK's two licenses. The pin is still GIT_TAG 8.0.4 in native/audiod/CMakeLists.txt, and that tag's SDK LICENSE.txt offers exactly GPLv3 or Steinberg's proprietary license. Line 182 matches JUCE's LICENSE.md, which lists the SDK as a dependency under its own license. The SDK's base/ and public.sdk/ files that the daemon also compiles carry a BSD license, which is more permissive and leaves the section's conclusion unchanged. The finding's thread was already resolved, and this head settles it.
  • Nothing else is compiled in. This pull request leaves native/ unchanged. JUCE is the build's only FetchContent dependency, and no file under native/audiod/src carries third-party code.
  • The rest of the change. LICENSE and package.json are unchanged since 27188ee. At that head, the license text matched GitHub's MIT template and pnpm install --frozen-lockfile passed. project check passes at this head.

@ninjudd
ninjudd marked this pull request as ready for review October 11, 2026 04:44

@ninjudd ninjudd left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

📽️ Projector review · 0.7.4 · model claude-opus-5-5 · effort xhigh · CLEAN · took 0m 36s

This change licenses field under MIT before the repository goes public. It adds the standard MIT LICENSE naming Amnesiac, LLC, sets "license": "MIT" in package.json, and adds a License section to the README. That section names both third-party codebases compiled into field-audiod, JUCE and Steinberg's VST3 SDK, with their licenses, and says a daemon binary built without the non-copyleft license for each is under AGPLv3 and GPLv3. The commit since the last review spells "license" the American way in that section. No code changes.

1 finding thread: 1 resolved, 0 open

Covered 3 of 3 changed files. No generated files.

Suggestions

  • README.md:183: "the commercial license for each" still calls Steinberg's option commercial. Line 180 names it the proprietary VST3 license, and the SDK's own LICENSE.txt calls it the "Proprietary Steinberg VST3 License", usable "commercial or not". Use the same name in both places.
  • docs/architecture.md:143: the Licensing paragraph is unchanged and still says a commercial JUCE license "resolves" closed-source distribution. The README's line 182 says a commercial JUCE license does not cover the VST3 SDK, so the two documents disagree. The paragraph predates this change.

What was checked

  • The new commit. It changes four words in README.md, from "licence" to "license", and nothing else. No Markdown file in the repository spells it "licence" now.
  • The license statements. Apart from the spelling, the License section is the text reviewed at e23a4f5. The pin is still GIT_TAG 8.0.4 in native/audiod/CMakeLists.txt, and that tag's JUCE LICENSE.md and VST3 SDK LICENSE.txt still match what the section says about each codebase.
  • The earlier finding. The thread on the VST3 SDK stays resolved, and this head still names the SDK and its two licenses beside JUCE.
  • The rest of the change. LICENSE, package.json, native/, and docs/ are unchanged by this commit. project check passes at this head.

@ninjudd
ninjudd marked this pull request as draft October 11, 2026 04:50
The paragraph said a commercial JUCE license resolves closed-source distribution, which leaves out the VST3 SDK the daemon compiles in and contradicts the README's License section. It now names both, the copyleft option a build from this repository takes, and both proprietary licenses a closed-source build would need. The stale price is gone; JUCE's EULA says fees change.
Line 180 named it Steinberg's proprietary VST3 license and line 183 called it a commercial license; the SDK's own LICENSE.txt calls it the Proprietary Steinberg VST3 License, usable commercially or not.
uv and pip now report the workers' license the way package.json reports field's to npm. Built wheels carry License-Expression: MIT, and each uv.lock is unchanged.

@ninjudd ninjudd left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

📽️ Projector review · 0.7.4 · model claude-opus-5-5 · effort xhigh · CLEAN · took 2m 02s

This change licenses field under MIT before the repository goes public. It adds the standard MIT LICENSE naming Amnesiac, LLC, and declares MIT in package.json and in the three Python workers' pyproject.toml files. The README's new License section and the Licensing paragraph in docs/architecture.md both name the two third-party codebases compiled into field-audiod, JUCE and Steinberg's VST3 SDK, with their licenses, and say a closed-source daemon needs both non-copyleft licenses. No code changes.

1 finding thread: 1 resolved, 0 open

Covered 7 of 7 changed files. No generated files.

Suggestions

  • docs/architecture.md:149: "JUCE and the SDK stay quarantined inside the daemon" leaves out field-fixture, the test plugin that the same CMake project builds and pnpm build:native produces. Its VST3 build carries both JUCE and the VST3 SDK, and its AU build carries JUCE. The plugin and the quarantine claim both predate this change, so naming the fixture beside the daemon is enough.

What was checked

  • The three new commits. They change the README's line 183 to name both licenses, rewrite the Licensing paragraph in docs/architecture.md, and add license = "MIT" to python/worker, python/aced, and python/voiced.
  • The two documents agree. Both say that JUCE 8 is licensed under AGPLv3 or a commercial license, that JUCE 8.0.4 bundles the VST3 SDK under GPLv3 or Steinberg's proprietary VST3 license, and that a commercial JUCE license does not cover the SDK. The pin is still GIT_TAG 8.0.4, and that tag's JUCE LICENSE.md and SDK LICENSE.txt match each statement.
  • The Python workers. field probes each worker with uv sync --check --locked, and uv lock --check passes for all three, so the new field leaves every uv.lock current. A wheel built from python/worker carries License-Expression: MIT in its metadata.
  • The earlier finding. The thread on the VST3 SDK stays resolved, and this head still names the SDK beside JUCE.
  • The rest of the change. LICENSE, package.json, and native/ are unchanged since d6b1926. project check passes at this head. Its one warning is about .github/workflows/projector-site.yml, which this pull request does not touch.

@ninjudd
ninjudd marked this pull request as ready for review October 11, 2026 04:55
@ninjudd
ninjudd marked this pull request as draft October 11, 2026 04:56
native/audiod also builds field-fixture, the test plugin for the hosting tests; its VST3 build carries JUCE and the VST3 SDK and its AU build carries JUCE. The claim that JUCE stays inside the daemon left it out.

@ninjudd ninjudd left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

📽️ Projector review · 0.7.4 · model claude-opus-5-5 · effort xhigh · CLEAN · incremental from c679fa9 · took 1m 01s

Incremental review of the change since the full review of c679fa9: +6 −3 lines in 1 file.

The Licensing paragraph in docs/architecture.md now names field-fixture beside the daemon and scopes the quarantine claim to native/audiod/. Both hold at this head. native/audiod/CMakeLists.txt builds the fixture with juce_add_plugin, as VST3 everywhere and AU on Apple, and native/ holds no other directory. The CLI and the Python workers link neither codebase, and the draft UI plan keeps plugin editors native rather than embedded.

@ninjudd
ninjudd marked this pull request as ready for review October 11, 2026 04:58
@ninjudd
ninjudd merged commit a6c1031 into main Oct 11, 2026
1 of 2 checks passed
@ninjudd
ninjudd deleted the license/mit branch October 11, 2026 05:04
ninjudd added a commit that referenced this pull request Oct 11, 2026
…aemon's terms

`main` licenses Field's code under MIT (#184), and its README records
that `field-audiod` links JUCE (AGPLv3 or commercial) and compiles in
the VST3 SDK (GPLv3 or Steinberg's proprietary license). Plan §7.1 still
said the repository had no `LICENSE` and weighed only JUCE.

§7.1 now states the license and leaves open the one decision that gates
chunk 2: publish the daemon under the copyleft terms, with its license
notices in the archive and its source at the release tag, or hold both
commercial licenses. §3.1 puts `LICENSE` in the CLI archive and points
the daemon archive at §7.1.
ninjudd added a commit that referenced this pull request Oct 11, 2026
…ent (install.md chunk 1) (#185)

Installing Field from a checkout has been four pnpm commands run inside
it, and nothing says when the result goes stale. After a `git pull`,
`field` runs the old `dist/` until someone rebuilds, `field-audiod`
stays the old build, and a worker's venv keeps its old packages. Each of
those has already cost a debugging round. This adds the installer
Projector has, in the same shape: `./install.sh` in a checkout installs
the `field` command (still a pnpm link to the checkout) and the `field
ui` client it serves, builds `field-audiod`, and re-syncs each
model-worker environment you already set up. It never sets up a new one,
because that starts a multi-gigabyte weights download. `field upgrade
[target]` runs that installer from any directory, and `field upgrade
status` prints one row per piece, with the command that fixes anything
out of date: the checkout against its upstream, `dist/` against `HEAD`,
the UI and the daemon against their sources, and each worker against its
lockfile. The installer never pulls or switches branches, since the
checkout may hold work in progress.

Three smaller changes support it. `field setup` gains `--existing` and
`--check`, so the CLI, which owns the list of workers and the test for
"set up", answers both questions instead of the installer guessing from
`python/*/.venv`. The CLI's remedies now name the upgrade instead of a
pnpm script, which is not a script in the song projects where those
messages fire: the eight daemon error messages name `field upgrade
audiod`, and `field --version`'s stale build, `field ui`'s missing
client, and its missing app shell name `field upgrade cli`. They all
come from `src/remedies.ts`. And `pnpm gen:limits` now writes
`plan-limits.h` only when it changes. Every `pnpm test` was rewriting it
with identical bytes, so the next daemon build recompiled every file
that includes it, and the new status row correctly reported the daemon
stale.

The branch merges `main`, which gained a Windows CI job and
`docs/cli.md` while this was in progress. `install.sh` is bash and does
not support Windows yet. So on Windows, `field upgrade` refuses and
lists the steps to run by hand, each remedy names its pnpm script in the
checkout, and the installer's tests skip. `docs/cli.md` now covers the
installer, `field upgrade`, and the new `field setup` options.

The plan, `docs/projects/install/readme.md`, carries the rest of the arc
in §3: releases that publish a prebuilt CLI and daemon, a release
installer that needs only Node 24, and `curl -fsSL
https://field.one/install.sh | bash` once the repository is public,
served by a rewrite in `apps/field-one` the way projector.bot serves
Projector's. Two open questions gate that. §7.1 is the daemon binary's
license. Field's code is MIT (#184), but `field-audiod` links JUCE,
which is AGPLv3 or commercial, and compiles in Steinberg's VST3 SDK,
which is GPLv3 or proprietary. So a published daemon either ships under
those copyleft terms, with its license notices and its source at the
release tag, or needs both a commercial JUCE license and Steinberg's
proprietary one. JUCE 8.0.11 bundles VST3 SDK 3.8.0, which is MIT, so
moving the daemon's JUCE 8.0.4 pin there would leave only JUCE's own
choice; §7.1 cites the sources, and moving the pin is a separate change.
§7.3 is where the macOS daemon builds, given the Actions spending cap.
`docs/install.md` documents each target and every status row.

## Testing

Run these from a checkout of `install-and-upgrade`, in the order given.
Step 3 uses a throwaway pnpm global directory, so your real `field`
stays linked to your main checkout throughout.

1. Build first:

   ```sh
   pnpm install --frozen-lockfile && pnpm build
   ```

2. Run the new tests:

   ```sh
pnpm exec vitest run src/install.test.ts src/commands/upgrade.test.ts
src/workers/setup.test.ts
   ```

You should see 3 files and 63 tests pass. `src/install.test.ts` runs the
real `install.sh` under your `/bin/bash`, which is bash 3.2 on macOS,
against a temporary clone, with stand-ins for pnpm, cmake, and the CLI
and nothing else on PATH. Linux CI runs the same tests under bash 5, and
Windows CI skips them. At the current head, after merging `main`, the
full suite passed here: 83 files, 1079 tests passed and 1 skipped. A
daemon built before the merge fails the daemon tests `main` added, so
run `./install.sh audiod` first if your checkout's daemon predates it.

3. Install for real into a throwaway pnpm global:

   ```sh
   export PNPM_HOME="$(mktemp -d)"
   ./install.sh cli
   export PATH="$PNPM_HOME/bin:$PATH"
   ./install.sh cli
   ./install.sh cli
   (cd /tmp && field upgrade status)
   ```

The first `cli`, before pnpm's bin directory is on PATH, should exit 69
with a message that says to run `pnpm setup`, and print nothing from
`pnpm install` or the build, because every prerequisite is checked
before anything changes. The second `cli` should end with a `linked`
row, `…/bin/field -> <this checkout>`. The third should print the same
row without pnpm's `+ field 0.1.0 <-` line, because a link that already
points here is left alone. `field upgrade status`, run from `/tmp`,
should first print `+ <this checkout>/install.sh status`, then rows
including `cli` pointing at this checkout, `cli-current`, and
`ui-current`. Each `cli` run builds the UI too: `pnpm run build:ui`
takes about two seconds, and a whole `cli` run took 4 to 5 seconds here.
Expect `audiod-missing` unless you also run `./install.sh audiod`, which
compiles JUCE the first time; that took 3 minutes 8 seconds here. A
branch with commits its upstream lacks shows `repo-ahead`, not
`repo-current`. The change is wrong if the first `cli` builds anything,
if a later `cli` run prints no `vite` build, if `field upgrade` names a
different checkout's `install.sh`, or if the third `cli` run links
again. Afterwards, close the shell and delete the `$PNPM_HOME`
directory.

4. If you built the daemon, check that a rebuild clears the stale row
even when CMake relinks nothing:

   ```sh
   touch native/audiod/src/dsp-check.cpp
   ./install.sh status | grep audiod
   ./install.sh audiod
   ./install.sh status | grep audiod
   ```

The first status should print `audiod-stale` naming `dsp-check.cpp`. The
build should link only `field-dsp-check`, and the second status should
print `audiod-current`. The change is wrong if the second status still
prints `audiod-stale`.

5. Check the header fix:

   ```sh
ls -lT native/audiod/src/plan-limits.h; pnpm gen:limits; ls -lT
native/audiod/src/plan-limits.h
   ```

It should print `…/plan-limits.h is current`, and both listings should
show the same modification time. Before this change it printed `wrote …`
and the time moved.

The commands leave behind a built `dist/` in the branch checkout, the
throwaway pnpm directory until you delete it, and `native/audiod/build/`
if you ran the `audiod` target. Re-syncing a real worker environment
through `field upgrade workers` is not exercised here, because it runs
`uv sync` against your venvs. `src/workers/setup.test.ts` covers which
workers it selects, and after this merges `field setup --check` in your
main checkout shows the state of the two you have set up.

<!-- projector-summary v=1 sha=bc3b54656f0e0a52e6fd75e94728ba99fddf10ac
-->
📽️ **Projector summary** of bc3b546: https://field.amnes.ac/reviews/185
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.

1 participant