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 — #1067 F12.10: thread session account into hub lease/create, add --world-max-per-account by developing-today-fleet[bot] · Pull Request #16246 · developing-today/code

Conversation

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Nov 27, 2026 •
edited by blacksmith-sh Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Part of #1067 (F12 fair-use quotas: world-count enforcement slice).

Problem: run_session_inner read authenticated_caller_account but called the account-blind hub.create/hub.lease, so per-account world quotas (HubLimits.max_worlds_per_account, enforced in create_as/lease_as per #16151) never fired on live session traffic. The serve path also hardcoded the limit to 0 (unbounded) with no flag to set it.

Change:

  • world_session/mod.rs: route admin create_world through hub.create_as(name, caller_account) and the join/invite lease through hub.lease_as(world, token, caller_account). None account still skips the quota, preserving pre-quota behaviour.
  • CLI: new --world-max-per-account (default 0 = unbounded) on ServeArgs, threaded through ServeOptions into serve's HubLimits.
  • Tests: new oracle session_world_creation_enforces_the_caller_account_quota (create-frame refusal + lease-path refusal with TooManyWorlds for the full account; second account and account-less sessions still succeed) + CLI parse test. Full world_session suite (103) green; id-cli targeted CLI tests green; cargo check clean for id-worlds/id-cli/id.

Not in this slice: storage-bytes wiring (ledger is contract-only; measuring hub bytes is a later slice); benchmark movement (exit target still 1.10x).

Verification:

  • cargo test -p id-worlds --lib -- world_session:: -> 103 passed
  • cargo test -p id-cli --lib -- test_cli_parse_world_max_per_account ... -> ok (+ neighbours)
  • cargo check -p id-worlds / -p id-cli / -p id -> ok
{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-27T17:10:36Z",
    "session_id": "ses_e5de2788a39ffdgbyVpWUZ4fn9",
    "lane": null,
    "host": "amd",
    "worktree": "/home/user/git/code",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/user/git/code",
      "repo": "developing-today/code",
      "branch": "main",
      "sha": "6fd30c93b62a4b6fba19e6444c7d69f343fb93a1"
    },
    "auth_subject": "oc-code-03",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@dezren39
#1067 F12.10: thread session account into hub lease/create, add --wor…
926592e
…ld-max-per-account

Session paths read authenticated_caller_account but called the
account-blind hub.create/hub.lease, so per-account world quotas never
fired on live traffic. Route both through create_as/lease_as with the
caller's account (None still skips, preserving pre-quota behaviour),
and expose HubLimits.max_worlds_per_account as --world-max-per-account
(default 0 = unbounded, wired through ServeOptions into serve).

Oracle: session_world_creation_enforces_the_caller_account_quota covers
create_world-frame and lease-path refusal with TooManyWorlds while a
second account and account-less sessions still succeed; plus a CLI
parse test for the new flag.
@coderabbitai

coderabbitai Bot commented Nov 27, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5a5547ab-5f08-44cc-bbca-62e0ea561279

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

  • X
  • Mastodon
  • Reddit
  • LinkedIn
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39

dezren39 commented Nov 27, 2026

Copy link
Copy Markdown
Member

🤖 Agent note · lane 1122-H (Archer, delta PRESS run 2026-11-27 11:22 CST) — LANDINGS claim: verify-then-merge on this PR.

Claim-scan done firsthand via gh CLI: PR comments = only CodeRabbit review-skipped (7224115648); 0 reviews; linked issue #1067 comments contain no claim on this PR and no mention of #16246; lane 1122-G holds this PR as bench only, 1122-H is primary.

State at claim: OPEN, non-draft, CLEAN/MERGEABLE, head 926592ea6935f7b34a03be3511bc6cd65d67b8de (matches brief), files 6 (+100/-5) matching body scope. Check-runs on head = CodeRabbit + Proof, both skipped; 0 Actions runs on head/branch — no exact-head SUCCESS evidence exists yet, so this lane is dispatching remote verification (fleet Actions exec / fleet-command on the exact head) and will merge under standing authority only on exact-head SUCCESS, else park here with the wake condition.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39

dezren39 commented Nov 27, 2026

Copy link
Copy Markdown
Member

Lane 1122-H — exact-head verification SUCCESS, merging under standing authority.

  • Run: fleet-command 46042876404 https://github.com/developing-today/fleet/actions/runs/46042876404 (dispatch_id 1122H-16246, developing-today/fleet) = completed/SUCCESS. (fleet actions exec start was tried first and failed at dispatch with the known TLS UnknownIssuer, no run created; rotated to fleet-command per the established route.)
  • Linux job 140657108171 log read firsthand: checkout at exact head 926592ea6935f7b34a03be3511bc6cd65d67b8de ("HEAD is now at 926592e"), command cd pkgs/id && cargo test -p id-worlds --lib -- world_session:: && cargo test -p id-cli --lib -- test_cli_parse_world_max_per_account && cargo check -p id-worlds -p id-cli -p id.
  • Results in log: world_session suite 103 passed / 0 failed, including the new oracle session_world_creation_enforces_the_caller_account_quota ... ok; CLI parse test test_cli_parse_world_max_per_account ... ok (1 passed); cargo check finished dev profile clean.
  • Head stable across three reads (926592e…), PR OPEN/non-draft, fresh re-read CLEAN/MERGEABLE immediately before merge.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 merged commit b5cfb53 into main Nov 27, 2026
2 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 deleted the fleet/oc-code-01/1067-acct-thread-20261127 branch November 27, 2026 18:09
@dezren39 dezren39 mentioned this pull request Nov 27, 2026
id: F12.10 fair scheduling and per-account quotas #1067
Closed
@developing-today-fleet developing-today-fleet Bot mentioned this pull request Nov 27, 2026
#1067 F12.10: plumb per-account storage quota into hub + serve flag #16285
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@dezren39
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.