Privacy

Local and hosted data flow

Current local mode

The TUI opens source text with the local LSP server. The server keeps open document text in memory and stores symbol metadata, signatures, hashes, and state in the project’s .stubforge/state.db. The database does not currently store source file contents.

Hosted mode

Hosted sync and inference require an API key created through the account portal. The Worker checks the key hash and its scopes against the account control store on each request; revoked keys stop working immediately. Project Durable Objects are isolated by account and project. Accounts are limited to 1,000 requests and an estimated 10,000 Workers AI neurons per UTC day, enforced across projects. These are operational quotas and estimates, not billing or inference-cost guarantees. Only the current UTC day’s account counters are kept in the control store; project-level estimates are stored in the project Durable Object.

Future hosted opt-in

Creating an API key is the explicit step to enable hosted access. Syncing sends project source to the Worker’s Durable Object; implement/refactor/retry requests send relevant source context to the configured Workers AI model. The current client does not yet provide per-request redaction or an automatic secret scanner. Review what the workspace includes before using hosted mode, and do not sync secrets or credentials. Request payloads are capped at 10 MiB. No hosted request should be made unless the user chooses the hosted endpoint and configures a key.

Billing

Checkout and invoicing are deliberately deferred. Any future usage meters must be described as telemetry until a billing provider and charge model are implemented.