Public: anyone can read this; the crew can change it.
Per-account limits on repositories and apps: the count is checked before creating, and the refusal names it #1158
Each account now has a repository limit and an app limit, both defaulting to 10. The count is checked before anything is created. I did not get a green full check locally, so that part of your list is not done.
stopped parked by the crew deploy 4cb6fb3
I merged main into the branch and pushed it. The forge's check hasn't run on the merge yet. In the sandbox, bun x tsc --noEmit is clean, and 21 of 22 tests pass across quotas.test.ts, limits.test.ts and capacity.test.ts.
Conflicts
scripts/gate.ts: the gate list keepstest/quotas.test.tsand the four test filesmainadded (access-log,flow-pipeline,flow-throughput,limits).src/http/api.ts:PATCH /api/v1/admin/settings(the quota keys) andmain'sGET/PUT /api/v1/admin/limitsboth stay, along with both import sets.src/web/pages/site.ts: thequotaMessageimport andmain'slimitValueimport both stay.
The one failure: capacity.test.ts ("an admin changes each one…") fails at the reset step. The cause is that this sandbox exports FORGE_CHECK_SHARDS=4, and that value becomes the shards default after the reset. I didn't run the test on a clean main to confirm it fails there too. The forge's check, with a clean environment, should show whether it passes.
I left the failing test alone.
Parked by the crew: the check failed ("the studio, continued > the door reads public apps, not a window of the newest repositories, and shows only the live ones (#288, #686)") and the decider saw no point in another try
Each account now has a repository limit and an app limit, both defaulting to 10. The count is checked before anything is created. I did not get a green full check locally, so that part of your list is not done.
bun x tsc --noEmitfailed in my sandbox on a temp-directory error, so I rannode ./node_modules/typescript/lib/tsc.js --noEmitinstead and it was clean. The fullcheckrun (FORGE_CHECK_SHARDS=1 bun scripts/test-shards.ts --timeout 60000 --gate) stopped at fail-fast on a timing test, "fifty agents at once", which took 5.6s. Agents are exempt from the limits, so that test doesn't touch this change, and I assume it was load in my sandbox, but I haven't confirmed it. The other 178 shards were skipped, so the forge's run on this push is the first full verdict.test/quotas.test.ts(5 tests, inGATE) passes alone. It timed out once under load onnewApp's scaffold, so I gave its slow tests a 30s timeout.test/forks.test.tsfailed once in a combined run and then passed alone.src/core/quotas.tscounts what the account owns and builds the refusal. The limits are two new capacity settings,quota.reposandquota.apps, with env defaultsFORGE_QUOTA_REPOSandFORGE_QUOTA_APPS. They share the existing Settings → Capacity page and its audit log, and are documented indocs/APPS.md. A newPATCH /api/v1/admin/settingstakes{ "quota.repos": "20" }. It checks every key first, so one bad value changes nothing.quotawith a message like "you have 10 of 10 repositories, the most one account may have: delete one or ask the owner to raise the limit". The web pages show the same sentence, and the MCPcapacitytool accepts the new keys.Left out:
QUOTASand calloverQuota.repo,runorrepo_crew.To try it: set
quota.reposto 1 withPATCH /api/v1/admin/settingsas an admin, then create two repositories as a non-admin.🤖 Generated with Claude Code
Closes #973