Repository navigation
Description
Summary
WorldLimits.min_tick_ms defaults to 1000 and the architecture doc promises time.tick:<ms> is >= 1000 ms, but nothing ever reads the field. A world program can subscribe to time.tick:1 (or :10, :999) and the host will run its update, publish its records, and journal a system event at that interval for as long as anyone is present — up to ~1,000 journaled program runs per second per interval, with up to 4 distinct intervals subscribed.
Evidence (verified this run on main a120b9a9, and independently on the laptop clone)
pkgs/id/src/world/mod.rs:78,96—pub min_tick_ms: u64("Slowest tick a program may subscribe to, in milliseconds"), default1000. A repo-wide grep formin_tickreturns only these two lines: the field is never read, andWorldCore::new(pkgs/id/src/world/core.rs:59-75) validates every other limit nonzero but not this one.pkgs/id/docs/2026-10-07T00-20-00Z_architecture_roc_worlds/2026-10-07T00-20-00Z_architecture_roc_worlds.md:729— the catalog contract: "time.tick:<ms>(>= 1000 ms, delivered only while someone is connected, so idle worlds stay idle)".pkgs/id/src/world_caps.rs:165-172—Subscription::parseaccepts anytime.tick:<ms>withms > 0asSubscription::Tick(ms); only0/ non-numeric fall through toUnknown. Its tests (world_caps.rs:725-737) pin1000as a valid spec and0as unknown, but nothing at1..999.pkgs/id/src/world/actor.rs:468-478—arm()inserts the rawmsas the deadline offset (now + Duration::from_millis(*ms)), no clamp againstmin_tick_ms.pkgs/id/src/world/actor.rs:230-246,481-500— the run loop sleeps until the earliest tick deadline,fire_ticksre-arms at the same raw interval anddeliver()s each tick;deliver(actor.rs:341-376) runsprogram.update, publishes records, and persists aJournalEntry::System(incrementingsince_checkpoint) per tick.
So the intended floor exists in three places (field, default, doc) and is enforced in none.
Why it matters
Ticks are not free: each one is a full program execution plus a journal append. A buggy or hostile program subscribed at 1 ms turns one connected viewer into a busy loop that grows the journal ~1,000 entries/sec (checkpoint churn included), burning host CPU and disk — exactly the idle/DoS bound min_tick_ms and the doc's >= 1000 ms were meant to provide. The dead field also misleads admins: setting min_tick_ms changes nothing.
Acceptance criteria
- A subscription below the floor cannot drive delivery below the floor: either
time.tick:<ms>withms < min_tick_msparses/refuses as a refused subscription (consistent withtime.tick:0→Unknown), or arming clamps the interval tomin_tick_ms— one behaviour, chosen and documented. -
WorldCore::newvalidatesmin_tick_mslike the other limits (or the field is removed and the floor is a named constant where it is enforced — no dead config remains). - Tests pin the boundary:
999does not produce sub-second delivery,1000still works, and the existing0/non-numericUnknownbehaviour is unchanged. - The architecture doc and the code agree on the floor afterwards.
Dedup
Searched open + closed issues for time.tick, tick interval, min_tick: no filing covers the tick floor (only hit was the unrelated quota epic #1149). Adjacent but distinct: #1506 (joined-phase metrics capability check), #1537 (sync collect_batch cap).
Activity
developing-today commentedon Oct 28, 2026
CODE-597
dezren39 commentedon Oct 28, 2026
🤖 Agent note · filed
50 remaining items
dezren39 commentedon Oct 31, 2026
🤖 Agent note · parked
fix(id): refuse time.tick subscriptions below WorldLimits.min_tick_ms (…
dezren39 commentedon Oct 31, 2026
🤖 Agent note · done