Skip to content

RFC: Public Usage Profile — Zero Database Changes Proposal#899

Open
kilo-code-bot[bot] wants to merge 1 commit intomainfrom
rfc/public-profile-no-db-changes
Open

RFC: Public Usage Profile — Zero Database Changes Proposal#899
kilo-code-bot[bot] wants to merge 1 commit intomainfrom
rfc/public-profile-no-db-changes

Conversation

@kilo-code-bot
Copy link
Contributor

@kilo-code-bot kilo-code-bot bot commented Mar 6, 2026

Summary

Architectural RFC proposing four options for building a public usage profile page that lets users showcase their Kilo usage stats — without any database schema changes or modifications to the hot write path (insertUsageAndMetadataWithBalanceUpdate).

  • Option A: New endpoint on the existing abuse worker returning filtered getState() data.
  • Option B: New Cloudflare Worker with a service binding to the abuse worker.
  • Option C: New Cloudflare Worker with a direct AbuseTracker DO binding (RPC, no HTTP).
  • Option D (recommended): Hybrid approach reading from both the AbuseTracker DO and existing Postgres tables (read-only, no schema changes).

Recommends a phased rollout: Phase 1 ships abuse-data-only profiles quickly (Option A), Phase 2 enriches with Postgres reads (Option D). Includes a data safety matrix, page structure mockup, mermaid data flow diagram, and open questions on caching, opt-in, and vanity URLs.

Requested in Slack by Brendan.

Verification

  • Document renders correctly in GitHub Markdown preview (headers, tables, code blocks, mermaid diagram)
  • No code changes — RFC document only

Visual Changes

N/A

Reviewer Notes

This is a discussion document, not an implementation PR. The goal is to align on an approach before writing code. Key decision points are captured in the "Open Questions" section. The bdo/public-profile-data branch has related exploratory work.


Built for Brendan by Kilo for Slack

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.

0 participants