Skip to content

Host cost projections and maintenance accounting boundaries - #15

Merged
FelineStateMachine merged 3 commits into
mainfrom
feat/maintenance-accounting
Sep 4, 2026
Merged

FelineStateMachine merged 3 commits into
mainfrom
feat/maintenance-accounting

Conversation

@FelineStateMachine

@FelineStateMachine FelineStateMachine commented Sep 4, 2026 •

Copy link
Copy Markdown
Owner

Motivation

Fuel's four tenant meters do not cover every provider expense. The previous projection mixed socket messages with platform requests and could be read as a complete provider bill. Maintenance planning needs the accounting gaps and budget boundaries to be explicit before a backend upgrade.

Change

  • Separate assumed raw HTTP/RPC/alarm traffic from inbound WebSocket messages, apply the 20:1 ratio, and keep frames out of Worker request counts. Label forecasts as partial pro-rata estimates with omitted expenses.
  • Document current durable accounting, batching/crash/month-boundary gaps, shared retained Git storage and a proposed bounded maintenance contract. Correct awake-meter descriptions without changing runtime behavior.
  • Show dated 40% gross-margin scenarios, pooled allowances and an operation-heavy stress example. No rates, allowances, default margin target, ntig pin, jobs, migration or deployment changes.

Host costs remain the existing storage, execution and operation expenses. Tenant usage stays on the same four meters, with traffic uncharged and Git storage sharing the file allowance. This PR adds no runtime work or new customer charge.

#14 is merged. Projection/tests and documentation remain separate logical commits; a test-only follow-up makes PR-ref checks wait through temporary Git alarm contention. README and landing-page claims were reviewed; the landing page already describes aggregate meters and host overhead accurately.

Testing Completed

  • Focused GRASP object suite: 11 tests pass after the contention fix.

  • npm run typecheck, including generated console/templates and configuration checks.

  • npm test -- --project unit test/unit/margin.test.ts: 2 tests pass for gross-margin arithmetic, default target, the socket billing ratio and pooled request allowance.

  • Dated BTC scenario runs, local documentation links and git diff --check.

Responsible AI disclosure

Codex prepared the changes and source review with agent assistance. Provider claims were checked against official Cloudflare documentation; proposed maintenance remains documentation, not enabled behavior.

Base automatically changed from feat/grasp to main September 4, 2026 21:22
@FelineStateMachine
FelineStateMachine force-pushed the feat/maintenance-accounting branch from c164fb4 to 055f3d6 Compare September 4, 2026 21:22
@FelineStateMachine
FelineStateMachine merged commit df3cd48 into main Sep 4, 2026
1 check passed
@FelineStateMachine
FelineStateMachine deleted the feat/maintenance-accounting branch September 4, 2026 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant