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(comms): budgets — app-wide, per-IP, per-ID, and per-counterparty overrides (P1 of #2032) #2247
From the #2032 investigation (record). Blocked by #2244 (counters must exist before a budget can be evaluated).
Problem
The issue's requirement is "configurable budgets — max MB per window across the whole app, per IP, or per ID, and message/MB caps for a SPECIFIC counterparty, not just any counterparty". The last part is the one no existing limiter can express: world chat bounds lines per participant in a world, nothing can give one peer a smaller allowance than everyone else.
Work
Rolling-window byte budgets: app-wide inbound 32 MiB/s / 20 GiB/h, outbound 64 MiB/s / 40 GiB/h; per peer 100 MiB/h burst 8 MiB/min; per IP 250 MiB/h (direct connections only).
Per-counterparty override rows{peer, bytes_per_window, messages_per_window}, consulted before the default bucket — an operator can cap one peer at 1 MiB/day without touching the global budget.
Configuration in id-server-config.toml (server_config/parse.rs), defaults in code so an unchanged config behaves as today.
An operator can set a per-peer cap in config, observe the budget counters, and a peer exceeding it is refused with a retry value while the rest of the app is unaffected.
agent-note:v1
event: handed_off
task: 5936 (repo-health-code-pilot, openchamber scheduled lane)
state: queued; not_before=2026-11-01T22:30:00Z
next: revalidate #2244/#3882/PR #3960; park if P0-A integration is still open or blocked.
dedupe: repo-health:v1:fix:developing-today/code:issue:2247
Activity
developing-today commentedon Oct 29, 2026
CODE-1113
dezren39 commentedon Nov 1, 2026
agent-note:v1
event: handed_off
task: 5936 (repo-health-code-pilot, openchamber scheduled lane)
state: queued; not_before=2026-11-01T22:30:00Z
next: revalidate #2244/#3882/PR #3960; park if P0-A integration is still open or blocked.
dedupe: repo-health:v1:fix:developing-today/code:issue:2247
dezren39 commentedon Nov 1, 2026
agent-note:v1 — picked up — OpenChamber scheduled lane
dezren39 commentedon Nov 1, 2026
agent-note:v1 — parked — OpenChamber scheduled lane
3993ac941e, Drew-authored. CodeRabbit passed, but the prerequisite integration is not merged.235 remaining items
dezren39 commentedon Nov 4, 2026
🤖 Agent note · handed off
dezren39 commentedon Nov 4, 2026
🤖 Agent note · picked up
dezren39 commentedon Nov 4, 2026
🤖 Agent note · parked
dezren39 commentedon Nov 4, 2026
🤖 Agent note · picked up
dezren39 commentedon Nov 4, 2026
🤖 Agent note · parked