feat(voteballots): add quick answer generation from confidence-scored data#713
Merged
Merged
Conversation
… data WSP 97 constraints enforced: - NO_LLM_CALL: Pure template-based generation - NO_NEW_FACTS: Only surfaces existing labeled data - MAX_3_LINES_ENFORCED: Truncates with human review note Adds quick_answer.py module with: - QuickAnswer dataclass with provenance tracking - generate_quick_answer() for template-based answer generation - format_funding_line() for confidence-annotated source lines - truncate_with_review_note() for MAX 3 line enforcement - Shell, markdown, and plain text output formats Test coverage: 46 new tests (241 total voteballots tests) - Verified fact clean answers - Low confidence uncertainty markers - Truncation enforcement - Human review flag preservation - Trail termination handling - No LLM call contract verification - Safety boundary tests (no recommendations, no persuasion) Slice 5 of Vote PoC Chain Lane. Worker-Lane: W6 Slice: VOTE_POC_QUICK_ANSWER_GENERATION_PHASE1 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Repair for W10 gate block: - src/__init__.py: Export Slice 5 carry-forward contract (6 items) - ModLog.md: Append WSP 22-compliant entry for Slice 5 - Audit doc: VOTE_POC_QUICK_ANSWER_GENERATION_PHASE1.md with * Dependencies: #707, #709, #710, #712 (all merged) * Internal Review Verdict: READY * Truth Boundary Checklist: 30/30 YES * Disallowed language scan: PASS * Carry-forward contract for Slice 6 All Slice 1-4 exports preserved. 241/241 tests pass. Worker-Lane: W6 Slice: VOTE_POC_QUICK_ANSWER_GENERATION_PHASE1 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This was referenced May 24, 2026
Foundup
added a commit
that referenced
this pull request
May 24, 2026
Locks the Vote PoC chain in implementation-complete, not-public-launched state. Records 6/6 merged slices with merge commits: - #707 FEC Adapter: 15de3d3 - #709 Entity Resolution: b5b3eea - #710 Funding Summary: 1a3d06b - #712 Confidence Scoring: 4559a8e - #713 Quick Answer: 7895459 - #714 Shell Integration: 7e4e571 Defines re-open criteria V1-V8 for future Vote work. Tests: 303 passed, entry_url remains empty. DOCS-ONLY: No code, test, manifest, or registry changes. Worker-Lane: W9 Slice: VOTE_POC_CHAIN_OBSERVATION_SNAPSHOT_PHASE1 Co-authored-by: Foundups Agent <dev@foundups.com> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
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.
Summary
quick_answer.pymodule for template-based answer generation from confidence-scored funding summariesWSP 97 Compliance
Test Results
Files Changed
modules/foundups/voteballots/src/quick_answer.py(new - 367 lines)modules/foundups/voteballots/tests/test_quick_answer.py(new - 570 lines)Carry-Forward Contract (for Slice 6)
Vote PoC Chain Position
Worker-Lane: W6
Slice: VOTE_POC_QUICK_ANSWER_GENERATION_PHASE1
Co-Authored-By: Claude Opus 4.5 noreply@anthropic.com