Skip to content

id: F12.10 fair scheduling and per-account quotas #1067

Open

Description

@dezren39

F12.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.

Activity

  1. developing-today commented on Oct 27, 2026

    @developing-today
    Contributor
  2. 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, 2026
  3. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed on Nov 1, 2026
  4. dezren39 commented on Nov 1, 2026

    @dezren39
    MemberAuthor

    🤖 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.

  5. 4 remaining items

  6. added
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 3, 2026
  7. dezren39 commented on Nov 3, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: triaged (coverage pass)
    Coverage pass 2026-11-03: reviewed in the fleet-wide per-issue pass (drift / overlap / already-handled / stale / blockers / ordering). Verdict: still live; queued in repo-health-code-pilot as triage at priority 40 (priority/normal). If this is already handled at current main, the triage closes it with evidence; if it needs splitting, the triage files the split.
    Found via: coverage pass 2026-11-03

  8. dezren39 commented on Nov 3, 2026

    @dezren39
    MemberAuthor

    Queue task 7637 is handed off to its bound OpenCode worker session ses_e5e5c6e6828ffen7IP6Jr3vP3N.

  9. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed
    queue/queuedHas a queued task in the Supabase agent queue
    on Nov 3, 2026
  10. dezren39 commented on Nov 3, 2026

    @dezren39
    MemberAuthor

    Picked up queue task 7637 for a current-main re-triage of #1067. Fresh GitHub checks are underway; the prior triage verdict will be revalidated against current source and roadmap before routing.

  11. dezren39 commented on Nov 3, 2026

    @dezren39
    MemberAuthor

    Triage verdict — still live; unimplemented; remains a planned Phase 12 item

    Revalidated against current GitHub main at 5c53272ff83bdf1ddffea2fb188c7d714182c9ab (2026-11-03T22:39:41Z). #1067 is OPEN. The stated prerequisites #553 (F11.7) and #539 (F11.8) are both CLOSED. No matching open PR was found.

    Current pkgs/id/crates/id-core/src/world_limits.rs still provides per-world Wasm/native ceilings, execution profiles, and a per-world memory budget; current code search found no quota implementation or fair-scheduler implementation. The Phase 12 plan still specifies hub-level fair sharing, per-account world/storage/fuel-per-second quotas, slow-client back-pressure, and the benchmark exit that a fuel-spinning world raises another world’s p99 latency by no more than 10%. planning/roadmaps/id.md still lists F12.10/#1067 as planned.

    Scope and routing: This is still an effort/l design-and-implementation item, not a small_fix. When scheduled, first define scheduler placement/ownership, fairness and per-account quota accounting, back-pressure behavior, and the contention benchmark; then split implementation and benchmark work into queue-sized slices. The F11.7/F11.8 dependencies are no longer blockers. Existing next roadmap ordering remains appropriate; no follow-up small-fix packet was enqueued from this triage.

    Found via: queue task 7637; current-main GitHub/API review.

  12. dezren39 commented on Nov 3, 2026

    @dezren39
    MemberAuthor

    Addendum after the initial source review: GitHub main advanced to 07168f959f65ffae0e6cd1756cdb01eb0d768d13 at 2026-11-03T22:44:59Z. The three intervening commits changed only pkgs/mcpx/...; no pkgs/id source or roadmap files changed. The triage verdict above therefore remains current at this newer main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

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, cloudnextOrg Project gate: queued next — orchestrator adds to the boardpriority/normalOrdinary priority (the default)source/humanFiled directly by a humantask/triageQueue packet kind: verify, reproduce, and route this item

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions