Repository navigation
feat(guild-ledger): validate human_stop events and add touches report - #72
Merged
Merged
Conversation
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.
Why
Unit 1 of #28: let the outcome ledger compute human touches per merged PR per repo for a window from ledger events alone, without relaxing the event schema for PR-less route asks.
What changed
bin/guild-ledger, validatedecisionevents withdata.action == "human_stop": requiredata.stopfrom{split_decision, posting_go, manual_merge, ack_loop, one_way_ack, brief_approval}and optionaldata.answered_atas ISO 8601 time (or null); reject unknown stops with exit 2.guild-ledger touches [--days 7] [--repo OWNER/NAME ...]to joinhuman_stopdecisions to mergedpr-lifecycleoutcomes by(repo, pr)in the window from the ledger file alone (no GitHub calls) and print merged PRs, human stops, touches per merged PR, and counts by stop name per repo.human_stopandguild-ledger touchesindocs/outcome-ledger.md.Verification
/home/linuxbrew/.linuxbrew/bin/python3 -m unittest -v tests/test_guild_ledger.py(24 tests pass, covering good/bad stop validation, touches join math, and zero-stop PRs).