You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
id: design: per-function gas pricing hooks — where metering data flows if servers charge by function class #6016
Part of the worlds design program: #5955. Wave-2 follow-up from the prior-art research (Lane B item 49); parent topic issue: #5965. Research source: workspace/scratch/worlds-capabilities-brief-2026-11-04/prior-art-research.md.
Scope
#5965 settles the penalty currency and the premium gating matrix; the metering research (#5966) and the two-level metering design (sibling follow-up under #5955) produce the numbers. This small follow-up specifies the data flow so a server can later charge or limit by function class (admin/patron tiers) without changing the execution model:
Metering records: per-function consumption events — who, which function, which world, how much, which budget it drew against — emitted in a shape billing/quotas can consume.
Aggregation points: per-tick (hot path, must be nearly free), per-session, per-account rollups.
What is not built: prices, invoices, payment — only the hooks and the record shape.
Screeps is the existence proof that users treat CPU as a currency when the accounting is visible (generatePixel burns a full bucket for an in-game resource; https://docs.screeps.com/cpu-limit.html).
Done looks like
A record-shape + flow spec referenced by the compile-economics design.
Activity
developing-today commentedon Nov 5, 2026
CODE-1682
dezren39 commentedon Nov 5, 2026
🤖 Agent note · handed off
112 remaining items
dezren39 commentedon Nov 6, 2026
🤖 Agent note · handed off
dezren39 commentedon Nov 6, 2026
🤖 Agent note · handed off
opencodedezren39 commentedon Nov 6, 2026
🤖 Agent note · handed off
developing-today commentedon Nov 8, 2026
🤖 Agent note · handed off
developing-today commentedon Nov 8, 2026
🤖 Agent note · handed off