Files
AiSOC/docs/adoption
Beenu Arora a2d53aca07 fix(ci): adoption snapshot lands on an unprotected data branch, needing no owner credential (#1445) (#1470)
The monthly snapshot pushed to protected main and failed GH006 on every
scheduled run since protection landed; a PR opened with GITHUB_TOKEN can
never merge because events created by that token do not trigger the
pull_request workflows the ~28 required checks come from, and every
escape that keeps the data on main (PAT, App installation, protection
bypass actor) is an owner-provisioned credential.

The ledger moves to the unprotected adoption-data branch instead, which
GITHUB_TOKEN's contents:write can push today. The workflow overlays the
branch's docs/adoption before collecting (the collector appends to the
history it finds), then commits a root tree holding ONLY docs/adoption,
parented on the branch tip -- an append, never a force push, and a tree
that cannot be mistaken for a code branch. The branch tip is carried via
GITHUB_ENV rather than re-read from FETCH_HEAD, because actions/checkout
sets FETCH_HEAD to main's tip and a data commit parented there would
render as a mass deletion. The branch is seeded with the ledger
previously committed on main (September baseline), and main's copy
becomes a pointer; nothing on main read snapshot.json programmatically.

Plumbing proven locally against the seeded branch: overlay from the
seed, append a row, rebuilt tree holds exactly the two ledger files,
commit chains on the seed, history reads 2 rows.
2026-10-22 12:28:28 +07:00
..

Adoption snapshot — the ledger lives on the adoption-data branch

The monthly adoption ledger is committed to the unprotected adoption-data branch, not to main:

Collected by scripts/adoption_snapshot.py, refreshed monthly by .github/workflows/adoption-snapshot.yml. Everything in it comes from public GitHub and registry APIs — the project ships no usage telemetry that phones home. A value of not measured means the source could not be read on that run; it does not mean zero.

Why a branch: main is branch-protected with no bypass actors, so the workflow's direct push fails (GH006), and a PR opened with GITHUB_TOKEN can never merge because events created by that token do not trigger the pull_request workflows the required checks come from. Every path that keeps the data on main needs an owner-provisioned credential; the data branch needs none, and nothing on main reads these files programmatically. The history is carried inside snapshot.json itself, so the ledger is complete wherever it lives.