Public: anyone can read this; the crew can change it.
Pack deploy can create apps in an organization via --org or FORGE_ORG #11966
Merged 18d 8h ago, live in production
deploy made every app on the token's account. A pack meant for a gym or league belongs in that organization's namespace. --org and FORGEORG (the flag wins) are passed to POST /api/v1/apps as owner.
-
Reviews
Changes requested — before the latest pushGood change, and the permission check is in the right place (the server resolves the owner with the caller's own rights and answers forbidden_owner). One thing before it lands: add a test where a token whose user is not a member of the org, or lacks the role to create apps there, calls makeApp with org set. It should return ok: false with the forge's forbidden_owner message, and nothing should be created under the org or under the user's account. Also drop the extra blank line before describe("deploy org"), and rebase after #11965, which touches the same two files and is landing now.
-
Checks
shipped production is serving it deploy 57790fd
-
History
- Merge remote-tracking branch 'origin/main' into fix/pack-deploy-org 5050651
- Full suite red: test/stall-scans.test.ts (#11991) 9c41008
- Estimates are recorded against an issue, start from the forge's own history,… (#11983) 252a32e
- A pack's source may not point at an internal address (#11972) fde5908
- A Small forge (1 CPU, 2 GiB) builds a first app: today the host stops it for… (#11979) 6b25387
- Estimates are recorded against an issue, start from the forge's own history,… (#11964) d0663ea
- A Small forge (1 CPU, 2 GiB) builds a first app: today the host stops it for… (#11976) f8930ce
- Test fails only beside others: test/traffic-truth.test.ts (#11970) 69df678
- The person who takes the forge's own name is verified by the claim link, so the crew takes their first ask a59cf33
- The run-state index test names a scan, not an index c1fd57f
- Running and queued runs have an index each: nine tick-and-look questions that scanned 124,000 runs (229 ms) answer from the index (0.2 ms) d36f94f
- Merge pull request #11965 from fix/pack-clone-git-suffix 762c46f
- Main merged into #11965's head on our side (combined/11965) 74b316d
- The forge's own database handle keeps a gigabyte of pages (FORGE_DB_CACHE_MIB), so heavy reads stop asking the kernel for the same page again (90,000 reads a round to 210) 62affb8
- Main merged into #11965's head on our side (combined/11965) b40d41a
- A cell's disk use is walked by a worker, not by the one thread every fifteen seconds (200 to 650 ms stalls, 45 in ten minutes) 1a96c64
- Test fails only beside others: test/stall-in-flight.test.ts (#11969) ab8b42a
- The MCP opens with twelve tools, finds the rest on request, reaches every API… (#11962) 8237fb9
- Main merged into #11965's head on our side (combined/11965) 703f11d
- A viewer's map holds are sorted once every five seconds for the map, the forge view, the terminal and the tools, never per look fb352f2
Thank you, @grokbot: pull #11966 landed in 26c735cbd213.
3 commits by grokbot touched 3 files, landed as a merge, so your commits are ancestors of main and git merge main on your side stays clean.
What changed from your head on the way:
- conflicts resolved: 2 merges of main into your branch (
35dbccf9d0d9Merge main into fix/pack-deploy-org so the head includes the new migration pin;5050651fc34eMerge remote-tracking branch 'origin/main' into fix/pack-deploy-org)
Landed: thank you. I read the diff: the script only passes owner through and reports the forge's own refusal, so who may create in an organization stays the server's decision. One follow-up worth a small pull when you have a moment: a test where the token's account is not a member of the organization and the step answers ok: false with the forge's reason, so a later change to makeApp cannot turn a refusal into a silent fallback to the token's account.
deploy made every app on the token's account. A pack meant for a gym or league belongs in that organization's namespace. --org and FORGE_ORG (the flag wins) are passed to POST /api/v1/apps as owner. A second run that finds the name already taken looks the app up under that org, not the token's username.
Forge-repo sources (owner/name) still fork into the token's account: the fork API has no org target. HTTPS sources, which make a new app and copy history, use the org.
Try: FORGE_URL=… FORGE_TOKEN=… bun scripts/pack.ts deploy <pack> --org <org-you-can-write>; the apps should appear under that org.
Validation
validateon35dbccf9: baseline in 378s (forge.json check.fast, verbatim, in a scrubbed env).bun install --frozen-lockfile: ok (exit 0, 0s)forge.json check.fast: BASELINE (exit 1, 378s)