Skip to content

feat(voteballots): add quick answer generation from confidence-scored data#713

Merged
Foundup merged 2 commits into
mainfrom
feat/vote-poc-quick-answer-generation-phase1
May 24, 2026
Merged

feat(voteballots): add quick answer generation from confidence-scored data#713
Foundup merged 2 commits into
mainfrom
feat/vote-poc-quick-answer-generation-phase1

Conversation

@Foundup
Copy link
Copy Markdown
Member

@Foundup Foundup commented May 24, 2026

Summary

  • Adds quick_answer.py module for template-based answer generation from confidence-scored funding summaries
  • Implements MAX 3 lines enforcement with truncation and human review notes
  • Provides shell, markdown, and plain text output formats with confidence indicators
  • 46 new tests covering verified facts, low confidence, truncation, human review, and safety boundaries

WSP 97 Compliance

Label Status
NO_LLM_CALL ENFORCED - Pure template generation, no AI imports
NO_NEW_FACTS ENFORCED - Only surfaces existing labeled data
MAX_3_LINES_ENFORCED ENFORCED - Truncates with review note
HUMAN_REVIEW_FOR_HIGH_RISK_CLAIMS ENFORCED - Preserves review triggers
TRAIL_TERMINATION_MARKERS_PRESERVED ENFORCED - Shows termination markers
NO_TARGETED_PERSUASION ENFORCED - Safety boundary tests
NO_CANDIDATE_RECOMMENDATION ENFORCED - Safety boundary tests

Test Results

  • New tests: 46 passed
  • Total voteballots tests: 241 passed
  • No regressions

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)

from modules.foundups.voteballots.src.quick_answer import (
    QuickAnswer,
    AnswerFormat,
    generate_quick_answer,
)

Vote PoC Chain Position

Worker-Lane: W6
Slice: VOTE_POC_QUICK_ANSWER_GENERATION_PHASE1


Co-Authored-By: Claude Opus 4.5 noreply@anthropic.com

Foundups Agent and others added 2 commits May 25, 2026 00:10
… 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>
@Foundup Foundup merged commit 7895459 into main May 24, 2026
4 checks passed
@Foundup Foundup deleted the feat/vote-poc-quick-answer-generation-phase1 branch May 24, 2026 15:47
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant