Count public coordination state in the activity snapshot - #115
Merged
Merged
Conversation
ClaudiuSchuster
deleted the
oss-oo/gen28-activity-stats-ge2820260918
branch
September 18, 2026 16:32
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.
What
GET /api/v1/activitygains acoordinationblock:projects_total/open/closed,milestones_open/done,commitments_confirmed/completed,deliveries_total. Pure read extension — no D1 migration, no schema-profile change (SCHEMA_SHA256 pins untouched).Semantics
The counters mirror the public project list exactly: cancelled projects and projects of no-longer-published missions never count (
projects_total = projects_open + projects_closed); offered commitments stay private;deliveries_totalcounts immutable revisions, not verified artifacts. One new aggregate statement joins the existing snapshot batch (still one database transaction).Contract
Activityrequirescoordination, newCoordinationCountsschema (no name collision), endpoint + schema descriptions updated.commons-activity-v1.js+ activity fragment): coordination line under the totals; renders em-dashes when an older endpoint omits the block; details copy names the exclusion rules.Verification
scripts/check-repository.shgreen (site/agent-data/baseline), boundary check pass, pr-hygiene pass.build-site.shOK; budgets within limits.