Skip to content

Improve user checkpoints with structured AskUserQuestion#105

Merged
hua7450 merged 1 commit intoPolicyEngine:mainfrom
hua7450:improve-user-checkpoints
Mar 5, 2026
Merged

Improve user checkpoints with structured AskUserQuestion#105
hua7450 merged 1 commit intoPolicyEngine:mainfrom
hua7450:improve-user-checkpoints

Conversation

@hua7450
Copy link
Collaborator

@hua7450 hua7450 commented Mar 5, 2026

Summary

Replaces vague "dump everything and ask open-ended question" checkpoints with structured AskUserQuestion calls — one decision at a time, with recommended options.

Changes

encode-policy-v2

  • Phase 2 (Scope Review): Requirements now displayed grouped by tag. Overall scope asked first, then each program-specific complexity decision separately (provider rates, TANF approach, income variable gaps) with recommended defaults.

backdate-program

  • Regulatory Checkpoint 1 (after research): Structured questions for proceed/Tier B-C items/source gaps
  • Regulatory Checkpoint 2 (after audit): Structured questions for reference fixes and each formula fix category separately

fix-pr (full rewrite)

  • Phase 0: Proper setup — file cleanup, PREFIX derivation, PR selection before posting mode
  • Phase 1: Delegated context gathering with comment freshness detection (CURRENT/STALE-BUT-OPEN/POSSIBLY-FIXED/RESOLVED)
  • Phase 2: Per-issue checkpoint with clear/ambiguous/research-needed classification, evidence extraction from review reports
  • Phase 3: Proper agent blocks with subagent_type, dependency-ordered execution, fix plan on disk
  • Phase 4: Verification agent, working_references.md cleanup, git pull --rebase before push, comment generated from actual results
  • Phase 5: Summary
  • Added: handoff table, error handling, context protection rules

🤖 Generated with Claude Code

- encode-policy-v2: Phase 2 now asks scope decisions one at a time with
  grouped requirements display and recommended defaults
- backdate-program: Both regulatory checkpoints (Phase 1 and Phase 2) now
  use structured questions for proceed/Tier B/C items/source gaps/formula fixes
- fix-pr: Full rewrite — proper phase structure (0-5), delegated context
  gathering with comment freshness detection, per-issue review with
  clear/ambiguous/research-needed classification, fix plan written to disk,
  proper agent blocks, handoff table, error handling, working_references.md
  cleanup, git pull --rebase before push

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@hua7450 hua7450 merged commit cd05c04 into PolicyEngine:main Mar 5, 2026
2 checks passed
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