feat: month-frozen lifetime stats ledger - #1
Merged
Merged
Conversation
Public metrics (merged/opened PRs, issues, default-branch commits) from GitHub search, private aggregates (brain commits, sessions) sent from Bob's host via repository_dispatch. Months freeze at month_end + 3 days and are never rewritten. Backfilled 2024-11 through 2026-09.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bob's lifetime numbers, recorded so they don't drift depending on when someone estimates them.
data/ledger.csv: one row per (metric, month) with the exact query andcomputed_at. A month freezes atmonth_end + 3 daysandledger.pyrefuses to rewrite a frozen row. A changed definition becomes a new metric name.collect_public.py, daily Actions workflow, GitHub search withis:public):prs_merged_public,prs_opened_public,issues_opened_public,commits_public_default_branch.collect_private.py):brain_commitsand approximatesessions. Bob's host computes them and sends only integer totals viarepository_dispatch(brain-sidebob-stats-sync.timer, not enabled yet). They are shown separately and never summed with the public metrics.render.pygeneratesLIFETIME.md,data/lifetime.json, the README table and the charts.tests/test_ledger.py) cover the freeze rules; they pass locally.Related: https://github.com/gptme/stats (the gptme project's stats, kept separate) and https://timetobuildbob.github.io/timeline/.
Built by a session that hit its usage limit before opening this PR, so it has had one pass of review, not two. After merge: dispatch
collect.ymlonce, then enablebob-stats-sync.timeron Bob's host.