GeezerVison is showing github.com — id: F12.10 fair scheduling and per-account quotas · Issue #1067 · developing-today/code
id: F12.10 fair scheduling and per-account quotas #1067Labels app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/lLarge: multi-day or open-ended; expect staged check-inskind/featureNew feature or capability requestmode/onlineFully doable remotely: design, config, code, cloudnowOrg Project gate: active priority — orchestrator adds to the boardpriority/highImportant and time-sensitivesource/humanFiled directly by a humanstatus/readyTriaged and ready for queued implementation workstray-workStray work: not tied to a design or roadmap item (AUDIT-7 Lane 7)stray/needs-parentStray work with no appropriate parent/epic/design yet (AUDIT-7 Lane 7) DescriptionF12.10 — Fair scheduling and quotas
From the Phase 12 plan (.opencode/plans/phase-12-platform-flexibility.md, workstream D):
A hub scheduler that shares fuel and CPU fairly across worlds, with per-account quotas for worlds, storage, and fuel per second, and back-pressure for slow clients. Depends on F11.7 (#553) and F11.8 (#539).
Exit: a world that spins on fuel cannot raise another world's p99 latency by more than 10 percent, shown in a benchmark.
Coordination (2026-10-26 reprioritization, per Drew): every id roadmap item now has its own GitHub issue, and priority encodes the order: (1) the path to Phase 12 — now + priority/high; (2) Phase 12 itself — next; (3) Phase 13 and long-term ideas — priority/low. The dashboard mirrors this list (org Project "Developing Today" #4, Area id-train; Grist Program roadmap, Area id). If this item turns out to be blocked, wrong, or superseded, park or close it with a note rather than letting it stall the queue — dropping an issue is always allowed; silently stalling is not.
Slice progress (F12.10)
- Exit benchmark (a fuel-spinning world raises another world's p99 by ≤10%): measured, unmet, attributed — reference ratio 2.517 (2026-11-10, in
pkgs/id/benches/BASELINES.md); slice 1 profile: PR bench(id): profile the fuel-spin isolation gap (#1067 slice 1) #12572 — the spinning-phase victim p99 is runtime wake starvation (~86–100% of the tail), not victim service. Latest diagnostic (PR bench(id): profile persistent fuel spinners #15573, merged 2026-11-26, AMD reference host): respawn profile ratio 27.859x at 29.8B settled spinner fuel; persistent-spinner profile ratio 2.036x at 202.2B settled fuel — fuel-unmatched, diagnostic only; target ≤1.10x still unmet.
- Hub scheduler sharing fuel and CPU fairly across worlds: partially implemented; remainder tracked as perf(id): add a hub-level fair guest scheduler #15577 — guest-burn admission merged (PR id-worlds: guest-burn admission - bound concurrent guest burns, charged per world (#1067 slice 2) #12615: process-wide concurrency bound, least-attained-service grants, per-world charge key); the hub-level fair scheduler slice itself is perf(id): add a hub-level fair guest scheduler #15577 (open, status/ready).
- Per-account quotas (worlds, storage, fuel per second): implemented at the charge funnel — PR id-caps: per-account quota policy and fuel-rate ledger (F12.10 slice 1) #12539 (AccountQuotas + FuelRateBudget contract in id-caps), PR id-worlds: charge an installed account fuel-rate budget per update (#1067 slice 2) #12557 (per-invocation charging at the invocation boundary), PR id: per-account quotas — ownership resolution at the guest-burn charge path (#1067) #12739 (merged 2026-11-23: per-account concurrency bound + ownership resolution registry > creator-config > caller, per Drew's 2026-11-22 ownership decision). PR feat(id): carry session account to guest input charges (#1067) #16002 carries authenticated session account context through participant-input guest updates and record projection. PR fix(id): attribute session view charges to account (#1067) #16033 (merged 2026-11-27) extends that context to session view/layout calls. Fleet run 45973861131 passed the sandbox-backed account-charge test. World-count enforcement at hub open/create landed in PR #1067 F12.10: enforce per-account world-count limits at hub open/create #16151 (+ session-account threading and
--world-max-per-account in PR #1067 F12.10: thread session account into hub lease/create, add --world-max-per-account #16246). Storage: ledger contract in PR #1067 F12.10: per-account storage ledger contract (AccountStorageQuota) #16217, hub plumbing (HubLimits field, owned ledger, charge/release API) + --world-storage-max-per-account in PR #1067 F12.10: plumb per-account storage quota into hub + serve flag #16285. Write-path measurement of world bytes into the storage ledger remains open.
- Back-pressure for slow clients: bounded-send slice implemented — PR fix(id): bound stalled world-session sends #15918 (merged 2026-11-27) closes a session when one outbound text or binary send remains blocked for 30 seconds, releasing its lease and session permit.
- Next slice: measure a world's bytes on the write path and charge the hub storage ledger (enforcement refusals at the write boundary); fuel-per-second rate enforcement stays a separate follow-up after that.
Activitydeveloping-today commented on Oct 27, 2026 added app/idPackage/app: id (pkgs/ or apps/ in this repo) nextOrg Project gate: queued next — orchestrator adds to the board effort/lLarge: multi-day or open-ended; expect staged check-ins on Oct 27, 2026dezren39 commented on Nov 1, 2026 🤖 Agent note · done
Triage verdict: CONFIRMED unimplemented; dependencies now closed; too large for a small_fix packet — stays as the tracked next roadmap item
Dependencies — both closed (fresh check this run):
Confirmed absent at origin/main b56ccda (laptop probes this run):
grep -rn 'fair|per-account|per_account' pkgs/id/src --include='*.rs' → zero hits; grep -rln quota pkgs/id --include='*.rs' → zero source files.
- What exists is static per-world execution ceilings, not fair scheduling or quotas:
pkgs/id/src/world_limits.rs defines server-admin RuntimeLimits (Wasm fuel/memory/payload caps; native rlimits + per-call deadline) and a per-world WorldExecutionProfile clamped beneath those ceilings. There is no hub scheduler sharing fuel/CPU across worlds, no per-account quota accounting (worlds/storage/fuel-per-second), and no back-pressure mechanism for slow clients.
- The plan text stands at
.opencode/plans/phase-12-platform-flexibility.md:49 with the benchmark exit: a fuel-spinning world must not raise another world's p99 latency by >10%.
Routing — why no follow-up packet from this triage: the queue's follow-up kind for implementation is small_fix (45-minute timebox); this is effort/l design+implementation (a scheduler + quota accounting + a p99 benchmark on the F11.8 harness). Enqueuing it as a small_fix would guarantee a park/evaporation cycle. The issue itself — open, next, priority/normal per the 2026-10-26 coordination — remains the tracking vehicle. Recommended next step when Phase 12 work is picked: a design slice first (scheduler placement: world actor vs hub; quota store; benchmark shape on #539's harness), then implementation slices sized to the queue. dezren39 commented on Nov 27, 2026 🤖 F12.10 session-account hub lease/create slice — merged PR #16246 #16246
Merged as b5cfb53f95184ca77da6d45bca01cf99f20598f4 (2026-11-27T18:09:42Z) by lane 1122-H under standing merge authority. Session traffic now routes through hub.create_as/hub.lease_as with the authenticated caller account, so the per-account world quota from #16151 fires on live sessions; new --world-max-per-account flag (default 0 = unbounded) threads into HubLimits.
Verification (exact head 926592ea): fleet-command run 46042876404 = SUCCESS; log firsthand — world_session 103 passed / 0 failed incl. new oracle session_world_creation_enforces_the_caller_account_quota, CLI parse test ok, cargo check clean. Evidence on the PR: #16246 (comment)
#1067 stays open: storage-bytes wiring and the 1.10x benchmark exit target remain later slices, per the PR body. added a commit that references this issue on Nov 27, 2026#1067 F12.10: plumb per-account storage quota ledger into hub + serve… developing-today-fleet commented on Nov 27, 2026 🤖 Agent note · slice landed — storage-quota plumbing
- Agent: code-h lane (repo-worker-code), slice of id: F12.10 fair scheduling and per-account quotas #1067 F12.10
- PR: #1067 F12.10: plumb per-account storage quota into hub + serve flag #16285 — per-account storage quota plumbing: HubLimits field, hub-owned AccountStorageQuota ledger, charge/release/snapshot API, --world-storage-max-per-account flag
- Evidence: cargo test -p id-worlds --lib -- world_hub:: account_charge:: → 33 passed; -p id-cli --lib -- test_cli_parse_world_ → 21 passed; cargo check clean; rustfmt clean on touched files
- Next slice: measure a world's bytes on the write path and charge the hub storage ledger (enforcement refusals at the write boundary)
developing-today-fleet commented on Nov 27, 2026 F12.10 storage-measurement slice ready for review: PR #16325.
- Measures a world's bytes on the write path (opener stat of journal, never an open) and charges the hub storage ledger on new hold at open/create.
- Whole refusal with StorageQuota before slot insert; rollback with hold on failed/cancelled open.
- Oracle storage_quota_charges_measured_bytes_on_write_path passes; full id-worlds lib 1317 passed (fleet-build-lock).
Does not close this issue. Next slice: enforce/surface at the session + HTTP boundary paths. developing-today-fleet commented on Nov 27, 2026 🤖 Lane any-o (triage task 18454 for #6276): this close looks wrongful — third instance. Flagging, then reopening.
Evidence (all firsthand via pooled fleet gh):
Precedent: wrongful merge-close on 2026-11-10 (reopened 11-14) and auto-close at the slice-2 merge 2026-11-22 (reopened 11-23). Reopening per the drop-rule inverse: the record names open remainder, so a silent close is not the done verdict. added a commit that references this issue on Nov 27, 2026This issue will close once commit 20c5e79 is merged into the 'main' branch.20c5e79 developing-today-fleet commented on Nov 27, 2026 F12.10 storage-boundary slice ready for review: PR #16357 surfaces the per-account storage refusal distinctly instead of as "no such world".
- HTTP lease paths (world_ws host-view/directory/invite, seitan invite/admit): 507 with the quota message via a shared
lease_failure_response helper; global ceilings stay 503, unknown stays 404.
- SSH boundary (
world_ssh::act): quota message verbatim.
- Session
create_world + lease paths already surfaced the message; now locked by oracle.
Local evidence: oracle lease_failures_answer_storage_quota_with_507 + session_world_creation_surfaces_the_caller_storage_quota green; neighbors 4/4 storage+quota hub/session, 27/27 world_ws, 10/10 seitan-adjacent; fmt clean on touched files. Clippy could not run (stale shared-cache E0514, environmental).
Does not close this issue. Proposed next slice: plumb caller account through the HTTP/SSH lease paths so the 507 arm is reachable in production (today only session paths carry an account). developing-today-fleet commented on Nov 27, 2026 Lane code-f: F12.10 storage-boundary slice landed.
PR #16357 MERGED as 5e8581b (2026-11-27T23:21:03Z). Post-merge main contains the change; oracle re-run green on identical content; no failing checks on the merge commit.
Does not close this issue. Proposed next slice: plumb caller account through the HTTP/SSH lease paths so the 507 arm is reachable in production. developing-today-fleet commented on Nov 28, 2026
MetadataMetadataapp/idPackage/app: id (pkgs/ or apps/ in this repo)effort/lLarge: multi-day or open-ended; expect staged check-inskind/featureNew feature or capability requestmode/onlineFully doable remotely: design, config, code, cloudnowOrg Project gate: active priority — orchestrator adds to the boardpriority/highImportant and time-sensitivesource/humanFiled directly by a humanstatus/readyTriaged and ready for queued implementation workstray-workStray work: not tied to a design or roadmap item (AUDIT-7 Lane 7)stray/needs-parentStray work with no appropriate parent/epic/design yet (AUDIT-7 Lane 7) DevelopmentNo branches or pull requestsIssue actions
|