Skip to content

Fix review-fix loop skipping and narrow reference search#110

Merged
hua7450 merged 1 commit intoPolicyEngine:mainfrom
hua7450:review-fix-mandatory-rounds
Mar 6, 2026
Merged

Fix review-fix loop skipping and narrow reference search#110
hua7450 merged 1 commit intoPolicyEngine:mainfrom
hua7450:review-fix-mandatory-rounds

Conversation

@hua7450
Copy link
Collaborator

@hua7450 hua7450 commented Mar 6, 2026

Summary

Fixes two issues discovered during RI CCAP implementation:

  1. Review-fix loop skipping — Phase 6 used a conditional while loop, giving the orchestrator discretion to skip re-reviews after fixes. The agent exited early by assuming its fixes resolved criticals instead of re-running /review-program to verify. Replaced with 3 explicitly named rounds (6.1, 6.2, 6.3) where each re-review is a mandatory step the orchestrator cannot skip.

  2. Narrow reference search — The consolidator searched for reference implementations by program acronym (e.g., ccap), missing better references like TX CCS and DC CCSP that use different names for the same program type. Now searches by concept keywords derived from what the program does (e.g., child, care, provider).

  3. Hardcoded TANF references — The parameter-architect had hardcoded DC/IL/TX TANF paths. Now reads reference implementations from the consolidator's impl-spec instead.

Changes

  • commands/encode-policy-v2.md — Phase 6 restructured, consolidator STEP 1 rewritten
  • agents/country-models/parameter-architect.md — Hardcoded paths removed, reads from impl-spec

🤖 Generated with Claude Code

Phase 6: Replace conditional while-loop with 3 explicitly named rounds
(6.1, 6.2, 6.3). The orchestrator can no longer skip re-reviews after
fixes — each round is a mandatory named step, not a loop iteration.

Consolidator: Search for reference implementations by concept keywords
(e.g., 'child', 'care') instead of program acronym. This prevents
missing better references like TX CCS and DC CCSP when implementing
a CCAP program.

Parameter-architect: Remove hardcoded DC/IL/TX TANF paths. The agent
now reads reference implementations from the consolidator's impl-spec.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@hua7450 hua7450 merged commit e022470 into PolicyEngine:main Mar 6, 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