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(world): journal restore never enforces the participant limit — a journal with more Issued entries than WorldLimits.participants restores fully, and the excess participants act · Issue #2958 · developing-today/code

id(world): journal restore never enforces the participant limit — a journal with more Issued entries than WorldLimits.participants restores fully, and the excess participants act #2958

New issue
Copy link
New issue
Copy link
Closed
#4292
Closed
id(world): journal restore never enforces the participant limit — a journal with more Issued entries than WorldLimits.participants restores fully, and the excess participants act#2958
#4292
Copy link
Assignees
dezren39
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobtask/triageQueue packet kind: verify, reproduce, and route this item

Description

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

Problem

WorldCore::restore (pkgs/id/src/world/core.rs, the JournalEntry::Issued arm) rebuilds every journaled capability and inserts it into core.capabilities — but it never counts them against WorldLimits::participants, the world's maximum number of active capabilities (src/world/mod.rs: "Maximum number of active capabilities in this world"; default 256).

Every live path that creates a capability enforces the limit:

  • WorldCore::mint (core.rs, the single funnel under issue_capability / issue_for_account / attenuate) counts the non-revoked records first: active < self.limits.participants, else "world participant limit reached".
  • Restore's neighbouring arms enforce their caps in the same style: the ScheduleSet arm refuses a journal that holds more than MAX_PENDING_SCHEDULES pending schedules.

The Issued arm validates the neighbouring fields — digest shape, duplicate participant id, parent must already exist, uses >= 1, a delegate's expiry may not outlive its parent's — but not the count. A journal no live code path can produce (hand-edited, corrupted, or fork-copied — restore's own contract is "a bad journal is refused, never partially applied") therefore restores with more active capabilities than the world allows, and every excess participant is fully live: its token authorizes snapshot() / chat() like any minted participant. The limit is a resource bound (capability records, presence, snapshot participant lists), so the bypass is not cosmetic: after such a restore the world operates permanently above its configured capacity, and mint then refuses all new issuance (the restored excess already saturates the count) while the excess tokens keep working.

Evidence (verified this run, main 51033658)

Probe on the laptop (~/git/fleet/probe-2026-10-31-laneA-restorecap/, a detached worktree of origin/main at 51033658f73a; integration test pkgs/id/tests/probe_restorecap.rs against the real id crate, token digests built exactly as mint builds them — SHA-256 of "<id>.<hex secret>"):

  • CONTROL: live issue_capability under participants: 2 admits two participants and refuses the third ("world participant limit reached").
  • CONTROL: restore of Created + Issued(1) + Issued(2) under participants: 2 returns Ok.
  • CASE A: restore of Created + Issued(1) + Issued(2) + Issued(3) under participants: 2 returns Ok; the excess participant 3's token then passes snapshot() (snapshot lists 3 participants) and chat() — the over-limit participant acts normally.
  • CASE D (boundary): Issued(1) + Issued(2) + Revoked(2) + Issued(3) under participants: 2 also restores Ok — active-in-order counting (revokes applied as they appear) is the semantics that keeps this legitimate shape valid.

Code points (main 51033658): restore's Issued arm is at src/world/core.rs:168-222 (validations at :178-202, unchecked insert at :212-221); the limit check in mint is at core.rs:854-861; the participants bound is defined at src/world/mod.rs:60-61 (default 256 at mod.rs:89); the schedule-cap precedent in the same function is at core.rs:263-275.

A counting check cannot break legitimate compacted journals: checkpoint_entries (core.rs:445+) re-emits participants in id order with each Revoked immediately after its own Issued, so the in-order active count of a compacted journal never exceeds the count the live world had when each participant was minted, which mint already bounded.

Why it matters

Restore is the trust boundary for persisted world state, and it already refuses journals that break the schedule cap, the delegate-expiry rule, and the duplicate-id rule. The participant cap is the same kind of invariant — a configured resource bound on the world's authority surface — enforced by the one producer (restore) that rebuilds state wholesale. A journal that exceeds it yields a world that is simultaneously over capacity and unable to issue to anyone new, with the excess capabilities indistinguishable from legitimate ones.

Acceptance criteria

  • Restore refuses an Issued entry that would make the active (non-revoked, counting entries in journal order) capability count exceed limits.participants, with an error naming the participant/limit in the style of the neighbouring restore errors.
  • Regression tests beside the existing restore tests (cf. restore_refuses_a_delegate_outliving_its_parent): over-limit restore refused; at-limit restore passes; issue → revoke → issue at the limit passes (revokes count in order); a checkpoint/compacted journal at the limit still restores.
  • Triage confirms the counting semantics for delegates (mint counts every non-revoked record, whatever its parent — mirror that) and for Issued entries whose participant is revoked later in the same journal.
  • Cross-check the adjacent Issued fields triage has not yet ruled on (display-name sanitization is filed separately this run; scopes are id(world): journal restore never validates Issued scopes — unnamed bits and JOIN-less capabilities restore clean, and a CHAT-/INPUT-only token can act without ever joining #2890).

Dedup checked this run: open+closed search for world journal restore / participant limit — #2890 (restore never validates Issued scopes; same arm, different invariant), #2894 (restore never validates Committed/Checkpoint event authors), #2882 (schedule-replacement flag vs the cap restore does enforce for schedules). No filing covers the participant-count cap in restore.

Activity

Next
  1. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    priority/normalOrdinary priority (the default)
    queue/queuedHas a queued queue task
    source/creatorFiled by the new-issue-creator job
    task/triageQueue packet kind: verify, reproduce, and route this item
    status/needs-triageNot yet triaged; needs a first look
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    effort/sSmall: expected under 2 hours of work
    on Oct 31, 2026
  2. dezren39 commented on Oct 31, 2026

    @dezren39
    dezren39
    on Oct 31, 2026
    MemberAuthor
    More actions

    🤖 Agent note · state: filed

    • Agent: new-issue-creator (new-issue-creator-code-a)
    • Session / ID: new-issue-creator-code-a cron run 2026-10-31T05:35Z
    • Found via: filed this run
    • Task: Filed after verifying on main 5103365 with a laptop probe against the real id crate (probe_restorecap.rs): restore accepts 3 Issued entries under a participant limit of 2, and the excess participant's token snapshots (3 participants listed) and chats. Deduped against id(world): journal restore never validates Issued scopes — unnamed bits and JOIN-less capabilities restore clean, and a CHAT-/INPUT-only token can act without ever joining #2890 (Issued scopes), id(world): journal restore never validates Committed/Checkpoint event authors — inputs and chat from never-issued participants restore, replay, and project #2894 (event authors), id(world): check_schedule_replacing trusts a caller-supplied replacing flag — a mismatched flag admits a 65th pending schedule past the cap restore enforces, and underflows on an empty map #2882 (schedule cap).
    • Expectation: effort/s triage — pin the in-order active-count check (revokes count as they appear, mirroring mint) and route the fix packet.
    • Links: probe (laptop) ~/git/fleet/probe-2026-10-31-laneA-restorecap/ · evidence in the issue body
  3. dezren39 commented on Oct 31, 2026

    @dezren39
    dezren39
    on Oct 31, 2026
    MemberAuthor
    More actions

    Cross-link: the adjacent Issued display-name gap found in the same probe run is filed as #2960. This issue (#2958) covers only the participant-count cap.

  4. github-actions
    assigned
    dezren39
    on Oct 31, 2026
  5. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Nov 1, 2026
  6. 175 remaining items

    Load more actions
  7. dezren39 commented on Nov 9, 2026

    @dezren39
    dezren39
    on Nov 9, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), OpenChamber scheduled lane bf419306-c4ef-470f-a553-beabf93239de
    • Session / ID: task 12092, attempt 6/6
    • Found via: atomic claim on repo-health-code-pilot
    • Task: Revalidate triage for issue id(world): journal restore never enforces the participant limit — a journal with more Issued entries than WorldLimits.participants restores fully, and the excess participants act #2958 before deciding whether any non-duplicate follow-up is possible.
    • Fresh verification: issue id(world): journal restore never enforces the participant limit — a journal with more Issued entries than WorldLimits.participants restores fully, and the excess participants act #2958 is OPEN. Canonical PR fix(id): enforce participant limit on journal restore (#2958) #4292 is OPEN, authored by Drew (dezren39), and carries user/escalated, queue/blocked, and status/blocked; its checks are still queued/pending. This is a Drew-owned hard stop.
    • Next: Do not edit, comment on, merge, or create a parallel PR for fix(id): enforce participant limit on journal restore (#2958) #4292. I am evaluating the task disposition against that explicit ownership/escalation.
    • Links: id(world): journal restore never enforces the participant limit — a journal with more Issued entries than WorldLimits.participants restores fully, and the excess participants act #2958 · fix(id): enforce participant limit on journal restore (#2958) #4292
  8. dezren39
    added
    queue/blockedQueue or user escalation state
    status/blockedQueue or user escalation state
    user/escalatedRequires a Drew decision or access
    and removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 9, 2026
  9. dezren39 commented on Nov 9, 2026

    @dezren39
    dezren39
    on Nov 9, 2026
    MemberAuthor
    More actions

    🤖 Agent note · blocked / escalated

    • Agent: queue worker (repo-worker-code), OpenChamber scheduled lane bf419306-c4ef-470f-a553-beabf93239de
    • Session / ID: task 12092, attempt 6/6
    • Transition: task blocked as escalated-to-user; issue id(world): journal restore never enforces the participant limit — a journal with more Issued entries than WorldLimits.participants restores fully, and the excess participants act #2958 now has user/escalated, queue/blocked, and status/blocked.
    • Fresh evidence: issue id(world): journal restore never enforces the participant limit — a journal with more Issued entries than WorldLimits.participants restores fully, and the excess participants act #2958 remains OPEN. Canonical PR fix(id): enforce participant limit on journal restore (#2958) #4292 remains OPEN, authored by Drew (dezren39), with user/escalated, queue/blocked, and status/blocked.
    • Blocker / resume condition: This worker will not edit, comment on, merge, or create a competing PR for Drew-owned PR fix(id): enforce participant limit on journal restore (#2958) #4292. Resume only after Drew decides its disposition or explicitly authorizes a non-duplicate continuation; revalidate issue and PR state then.
    • Work performed: no source changes, no tests, no CI polling, no parallel packet or PR.
    • Links: id(world): journal restore never enforces the participant limit — a journal with more Issued entries than WorldLimits.participants restores fully, and the excess participants act #2958 · fix(id): enforce participant limit on journal restore (#2958) #4292
  10. dezren39 commented on Nov 11, 2026

    @dezren39
    dezren39
    on Nov 11, 2026
    MemberAuthor
    More actions

    🤖 Agent note · task 13382 (shepherd PR #4292) BLOCKED — Drew-owned PR hard stop, re-verified fresh

    • Agent: queue worker (repo-worker-code), lane any-c · task 13382
    • Fresh verification (this claim): PR fix(id): enforce participant limit on journal restore (#2958) #4292 is OPEN, head 3879b142fbbd8e916b571e0b4e29131cd78c9a23, authored by dezren39 and assigned to dezren39. This issue already carries user/escalated + queue/blocked — the escalation is recorded; the queue task is what was still dangling.
    • Disposition: task 13382 is blocked (reason-class hard_stop); no PR actions taken. It joins this shift's five other Drew-owned shepherd blocks (batch Unowned PR batch from branch disposition (2026-11-07) #7297 parts 1/3: PRs spike(id): probe D1 journal sessions (#5864) #6350, fix(pm-stack/aggregator): linear epic-graph blocker traversal + deduped contributingItems (#6371) #6551, test(id): restore footnote test and dedupe attributes #6429, fix(id): refuse non-player signers in sign_genesis/sign_claim (#6424) #6559, feat(aggregator): expose source lag on health (#1734) #5180), all awaiting Drew's single ruling on lane disposition of his own PRs.
  11. dezren39
    added a commit that references this issue on Nov 11, 2026

    Merge pull request #4292 from developing-today/queue/5512-2958-partic…

    e61625f
  12. dezren39
    closed this as completedin #4292on Nov 11, 2026
  13. dezren39
    removed
    status/blockedQueue or user escalation state
    user/escalatedRequires a Drew decision or access
    queue/blockedQueue or user escalation state
    on Nov 11, 2026
  14. dezren39 commented on Nov 12, 2026

    @dezren39
    dezren39
    on Nov 12, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done — already complete

    • Agent: queue worker (repo-worker-code), lane code-j
    • Session / ID: task 8685
    • Found via: one-queue claim with repo=code filter
    • Task: Fresh GitHub state confirms id(world): journal restore never enforces the participant limit — a journal with more Issued entries than WorldLimits.participants restores fully, and the excess participants act #2958 is CLOSED and PR fix(id): enforce participant limit on journal restore (#2958) #4292 is MERGED (2026-11-11), merge SHA 3879b142fbbd8e916b571e0b4e29131cd78c9a23. Task completed as already_done; no source changes or tests run this claim.
    • Links: task 8685; fix(id): enforce participant limit on journal restore (#2958) #4292
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobtask/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

    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.