Add comprehensive test suite, CI workflow, and .gitignore#2
Open
SuperInstance wants to merge 2 commits intomainfrom
Open
Add comprehensive test suite, CI workflow, and .gitignore#2SuperInstance wants to merge 2 commits intomainfrom
SuperInstance wants to merge 2 commits intomainfrom
Conversation
added 2 commits
April 12, 2026 18:32
- 61 pytest tests covering all module components: - score_handoff(): all 7 scoring categories, thresholds, caps, edge cases - generate_autobiography(): single/multiple handoffs, section extraction, missing data - Baton.__init__(): defaults, keeper URL, credentials, repo resolution - Baton.restore(): fresh/invalid/full baton, all file types, JSON error handling - Baton.snapshot(): quality gate pass/fail, force bypass, generation tracking, file writes - Baton.write_handoff(): template generation, open threads, task counts - Baton.print_restore_summary(): fresh and restored agent display - Baton.acquire_lease(): success/failure - Baton._keeper(): error handling - GitHub Actions CI with Python 3.10, 3.11, 3.12 matrix - Standard Python .gitignore
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
score_handoff()— all 7 scoring categories (surplus_insight, causal_chain, honesty, actionable_signal, compression, human_compat, precedent_value), pass/fail thresholds, score caps, empty text, compression word count rangesgenerate_autobiography()— empty/single/multiple handoffs, section extraction (Where Things Stand, What I Was Thinking), missing generation/score defaultsBatonclass — init defaults, keeper URL handling, repo resolution, restore (fresh/invalid/full baton, all file types, JSON errors), snapshot (quality gate pass/fail, force bypass, generation increment, expected file writes), write_handoff (template, open threads, tasks), print_restore_summary, acquire_leaseWhy
The repo had no tests, no CI, and no .gitignore. This brings it to production-ready standards with full mock-based testing of the keeper integration.
Test results