Skip to content

[CTX-0055] fix(transport): enforce sustained refill and bounded burst - #115

Merged
Xuepoo merged 1 commit into
mainfrom
ctx-0055/fix-sustained-rate
Sep 17, 2026
Merged

Xuepoo merged 1 commit into
mainfrom
ctx-0055/fix-sustained-rate

Conversation

@Xuepoo

@Xuepoo Xuepoo commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Scope

Task: CTX-0055. Closes #102.

Enforce sustained refill with capped initial burst and rolling burst ceiling in the TS/Rust client helper. Count and admission share a nondecreasing clock. Validate TS numeric inputs before mutation; preserve native Rust u64 time support. No wire/protocol version or server-enforcement change; reconnect #106 remains separate.

Review and verification

Independent APPROVE: PX-0252. Delivery commander read the full diff and verified all three approved blobs unchanged. Local scoped Bun: 26 passed; full Bun: 301 passed; full Rust: 65 passed. Typecheck, build, pinned Prettier, markdownlint, scoped oxlint, cargo fmt/check/clippy (offline, locked, warnings denied), diff check and prepush gitleaks passed. Existing local synthetic fixtures only, no live campaign. Pinned Prettier is authoritative; previously documented oxfmt defaults differ.

Documentation and ordering

Canonical docs synchronization is prepared and tracked separately in bitty-terminal-docs CarryCtx CTX-0026, scope specifications/devtools-rfc.md, requirements PX-0245/PX-0253. Docs are pending, not delivered or verified. User explicitly authorizes code merge and closing linkage while this docs task exists; CarryCtx implementation task stays REVIEW, not completed. Delivery sequence: CTX-0055, CTX-0059, CTX-0053. No snapshots/export/publication or worktree cleanup.

Complexity: amortized O(1) admission, worst O(burst) eviction, O(burst) space.

@Xuepoo Xuepoo added this to the v0.1.0 milestone Sep 17, 2026
@Xuepoo Xuepoo added area:devtools devtools area fix Bug fix P2 Priority: medium labels Sep 17, 2026
@Xuepoo
Xuepoo merged commit f42f303 into main Sep 17, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:devtools devtools area fix Bug fix P2 Priority: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[TERM-DEV-013] Investigate sustained-rate policy in client-side limiter

1 participant