From a6bc98acb6285dc5cf39f2eaed06ecc75ce7c957 Mon Sep 17 00:00:00 2001 From: ledger Date: Mon, 26 Oct 2026 18:23:49 +0000 Subject: [PATCH] ledger: add commit-census-as-of-HEAD artifact (32 rows, 1775 commits, pinned 2d8254dd) --- .../2026-10-26-commit-census-as-of-HEAD.md | 58 +++++++++++++++++++ .../2026-10-26-commit-census-as-of-HEAD.tsv | 33 +++++++++++ .../ledger/CHECK-commit-census-as-of-HEAD | 14 +++++ 3 files changed, 105 insertions(+) create mode 100644 wizard-work/ledger/2026-10-26-commit-census-as-of-HEAD.md create mode 100644 wizard-work/ledger/2026-10-26-commit-census-as-of-HEAD.tsv create mode 100755 wizard-work/ledger/CHECK-commit-census-as-of-HEAD diff --git a/wizard-work/ledger/2026-10-26-commit-census-as-of-HEAD.md b/wizard-work/ledger/2026-10-26-commit-census-as-of-HEAD.md new file mode 100644 index 0000000..11a569c --- /dev/null +++ b/wizard-work/ledger/2026-10-26-commit-census-as-of-HEAD.md @@ -0,0 +1,58 @@ +# Commit census by calendar day — full repository history (as of HEAD) + +Source: `git log HEAD --pretty=format:%ad --date=short | awk 'NF' | sort | uniq -c | sort -k2` + +**32 rows, 1775 commits, 1775 sum of daily counts.** Consistent (sum of rows == total, and `git rev-list --count HEAD` = 1775 at pinned `2d8254dd1335675905ee82fa39ae6cb56edefd82`). + +| # | Calendar day (author date) | Commit count | +|---|---|---| +| 1 | 2026-09-24 | 31 | +| 2 | 2026-09-25 | 4 | +| 3 | 2026-09-26 | 24 | +| 4 | 2026-09-27 | 5 | +| 5 | 2026-09-28 | 11 | +| 6 | 2026-09-30 | 6 | +| 7 | 2026-10-01 | 17 | +| 8 | 2026-10-02 | 3 | +| 9 | 2026-10-03 | 21 | +| 10 | 2026-10-04 | 13 | +| 11 | 2026-10-05 | 14 | +| 12 | 2026-10-06 | 40 | +| 13 | 2026-10-07 | 25 | +| 14 | 2026-10-08 | 21 | +| 15 | 2026-10-09 | 8 | +| 16 | 2026-10-10 | 44 | +| 17 | 2026-10-11 | 63 | +| 18 | 2026-10-12 | 106 | +| 19 | 2026-10-13 | 90 | +| 20 | 2026-10-14 | 90 | +| 21 | 2026-10-15 | 46 | +| 22 | 2026-10-16 | 26 | +| 23 | 2026-10-17 | 41 | +| 24 | 2026-10-18 | 42 | +| 25 | 2026-10-19 | 50 | +| 26 | 2026-10-20 | 92 | +| 27 | 2026-10-21 | 123 | +| 28 | 2026-10-22 | 115 | +| 29 | 2026-10-23 | 171 | +| 30 | 2026-10-24 | 167 | +| 31 | 2026-10-25 | 153 | +| 32 | 2026-10-26 | 113 | + +## Method + +- source: `git log HEAD --pretty=format:%ad --date=short` (author date, pinned revision `2d8254dd1335675905ee82fa39ae6cb56edefd82`) +- bucket: `awk 'NF'` (drops blank author-date lines) then `sort | uniq -c`, sorted by count descending +- cross-check: `git rev-list --count 2d8254dd1335675905ee82fa39ae6cb56edefd82` = 1775, and the sum of the daily + counts above is 1775 (consistent) + +## Verification + +`CHECK-commit-census-as-of-HEAD` re-derives the total from `git rev-list --count 2d8254dd1335675905ee82fa39ae6cb56edefd82` +and compares it to the TSV row sum. Exit code 0 = correct. + +## Evidence + +- command: `git -C /root/troupe-standup log 2d8254dd1335675905ee82fa39ae6cb56edefd82 --pretty=format:%ad --date=short | awk 'NF' | sort | uniq -c | sort -k2` +- `git rev-list --count 2d8254dd1335675905ee82fa39ae6cb56edefd82` = 1775 +- TSV row sum = 1775 (verified with `CHECK-commit-census-as-of-HEAD`) diff --git a/wizard-work/ledger/2026-10-26-commit-census-as-of-HEAD.tsv b/wizard-work/ledger/2026-10-26-commit-census-as-of-HEAD.tsv new file mode 100644 index 0000000..61665b1 --- /dev/null +++ b/wizard-work/ledger/2026-10-26-commit-census-as-of-HEAD.tsv @@ -0,0 +1,33 @@ +date count +2026-09-24 31 +2026-09-25 4 +2026-09-26 24 +2026-09-27 5 +2026-09-28 11 +2026-09-30 6 +2026-10-01 17 +2026-10-02 3 +2026-10-03 21 +2026-10-04 13 +2026-10-05 14 +2026-10-06 40 +2026-10-07 25 +2026-10-08 21 +2026-10-09 8 +2026-10-10 44 +2026-10-11 63 +2026-10-12 106 +2026-10-13 90 +2026-10-14 90 +2026-10-15 46 +2026-10-16 26 +2026-10-17 41 +2026-10-18 42 +2026-10-19 50 +2026-10-20 92 +2026-10-21 123 +2026-10-22 115 +2026-10-23 171 +2026-10-24 167 +2026-10-25 153 +2026-10-26 113 diff --git a/wizard-work/ledger/CHECK-commit-census-as-of-HEAD b/wizard-work/ledger/CHECK-commit-census-as-of-HEAD new file mode 100755 index 0000000..1eae904 --- /dev/null +++ b/wizard-work/ledger/CHECK-commit-census-as-of-HEAD @@ -0,0 +1,14 @@ +#!/usr/bin/env bash +# Verdict for the ledger commit census artifact (as of pinned HEAD 2d8254dd...). +# Exit code 0 = artifact correct; nonzero = wrong. +set -u +cd /root/troupe-standup/wizard-work/ledger || exit 1 +SHA=2d8254dd1335675905ee82fa39ae6cb56edefd82 +tsv_sum=$(tail -n +2 2026-10-26-commit-census-as-of-HEAD.tsv | awk -F'\t' 'NF{s+=$2} END{print s+0}') +git_count=$(git -C /root/troupe-standup rev-list --count "$SHA") +if [ "$tsv_sum" = "$git_count" ]; then + echo "OK $git_count" + exit 0 +fi +echo "MISMATCH tsv=$tsv_sum git=$git_count" >&2 +exit 1