GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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 #1067

New issue
Copy link
New issue
Copy link
Done
Done
id: F12.10 fair scheduling and per-account quotas#1067
#16357 (+2)
Copy link
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, 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)

Description

@dezren39
dezren39
opened on Oct 27, 2026
Issue body actions

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.

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.

Activity

Next
  1. dezren39
    added
    kind/featureNew feature or capability request
    status/needs-triageNot yet triaged; needs a first look
    source/humanFiled directly by a human
    priority/normalOrdinary priority (the default)
    on Oct 27, 2026
  2. developing-today commented on Oct 27, 2026

    @developing-today
    developing-todayBot
    on Oct 27, 2026 – with developing.today
    Contributor
    More actions

    CODE-211

  3. dezren39
    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
  4. github-actions
    assigned
    dezren39
    on Oct 27, 2026
  5. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    on Nov 1, 2026
  6. dezren39 commented on Nov 1, 2026

    @dezren39
    dezren39
    on Nov 1, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done

    • Agent: queue worker (repo-worker-code), lane E
    • Session / ID: queue task 2344 (triage; pickup checkpointed on claim)
    • Found via: queue claim
    • Task: Triage verdict for id: F12.10 fair scheduling and per-account quotas #1067 (id F12.10 fair scheduling + per-account quotas)
    • Expectation: done = verdict below; no fix packet — reason recorded in the verdict
    • Links: id(world): F11.7 host metrics, Prometheus endpoint and tracing spans #553, id(ci): F11.8 benchmark harness with committed baselines #539 (dependencies, both closed), .opencode/plans/phase-12-platform-flexibility.md:49

    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):

    • id(world): F11.7 host metrics, Prometheus endpoint and tracing spans #553 (F11.7 host metrics / Prometheus / tracing) — CLOSED.
    • id(ci): F11.8 benchmark harness with committed baselines #539 (F11.8 benchmark harness with committed baselines) — CLOSED.
      So F12.10's stated blockers are gone; nothing but the work itself remains.

    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.

  7. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    on Nov 1, 2026
  8. 309 remaining items

    Load more actions
  9. dezren39
    added a commit that references this issue on Nov 27, 2026

    Merge pull request #16246 from developing-today/fleet/oc-code-01/1067…

    b5cfb53
  10. dezren39 commented on Nov 27, 2026

    @dezren39
    dezren39
    on Nov 27, 2026
    MemberAuthor
    More actions

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

  11. developing-today-fleet
    added a commit that references this issue on Nov 27, 2026

    #1067 F12.10: plumb per-account storage quota ledger into hub + serve…

    2ca3583
  12. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 27, 2026 – with developing.today fleet
    Contributor
    More actions

    🤖 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)
  13. developing-today-fleet
    added a commit that references this issue on Nov 27, 2026

    Merge pull request #16285 from developing-today/fleet/code-h-1067-sto…

    4ba7d7a
  14. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 27, 2026 – with developing.today fleet
    Contributor
    More actions

    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.

  15. developing-today-fleet
    closed this as completedin #16325on Nov 27, 2026
  16. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 27, 2026 – with developing.today fleet
    Contributor
    More actions

    🤖 Lane any-o (triage task 18454 for #6276): this close looks wrongful — third instance. Flagging, then reopening.

    Evidence (all firsthand via pooled fleet gh):

    • PR id1067 F12.10: charge measured world bytes on open/create #16325 merged 2026-11-27T21:46:22Z as 5c45c61; this issue closed 21:46:25Z, 3s later, by developing-today-fleet[bot] with no commit attached.
    • PR body states: "Does not close id: F12.10 fair scheduling and per-account quotas #1067. Next slice: enforce/surface at the session + HTTP boundary paths."
    • Merging lane 1507-G on PR id1067 F12.10: charge measured world bytes on open/create #16325: verification run 46069953014 SUCCESS (1317 passed), merged under standing authority, and explicitly wrote "id: F12.10 fair scheduling and per-account quotas #1067 stays open by design (F12.10 slice only)".
    • This issue's own body still lists the exit benchmark unmet (target ≤1.10x; latest diagnostic 2.036x fuel-unmatched) and the hub-level fair-scheduler remainder open as perf(id): add a hub-level fair guest scheduler #15577.

    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.

  17. developing-today-fleet
    reopened this on Nov 27, 2026
  18. developing-today-fleet
    added a commit that references this issue on Nov 27, 2026

    id1067: surface storage quota distinctly at session and HTTP boundaries

    This issue will close once commit 20c5e79 is merged into the 'main' branch.
    20c5e79
  19. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 27, 2026 – with developing.today fleet
    Contributor
    More actions

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

  20. developing-today-fleet
    closed this as completedin #16357on Nov 27, 2026
  21. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 27, 2026 – with developing.today fleet
    Contributor
    More actions

    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.

  22. developing-today-fleet
    added a commit that references this issue on Nov 28, 2026

    docs(id): v4 design record — open discovery curation and abuse resist…

    2c68416
  23. developing-today-fleet commented on Nov 28, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 28, 2026 – with developing.today fleet
    Contributor
    More actions

    @/tmp/0222l/link1067.md

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

Metadata

Metadata

Assignees

No one assigned

    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, 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)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.