Eval-2: eligibility completeness and childcare subsidy patterns#121
Merged
hua7450 merged 3 commits intoPolicyEngine:mainfrom Mar 9, 2026
Merged
Eval-2: eligibility completeness and childcare subsidy patterns#121hua7450 merged 3 commits intoPolicyEngine:mainfrom
hua7450 merged 3 commits intoPolicyEngine:mainfrom
Conversation
…tterns Second RI CCAP eval revealed the rules-engineer agent was missing eligibility variables (work requirements, assets, immigration) despite them being in the spec and reference implementations. Also missing childcare subsidy pattern using pre_subsidy_childcare_expenses. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Person-level variables like reimbursement rates should use defined_for with the person-level eligibility variable, not just the state code, to avoid unnecessary computation. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
When using select() with Enum variables, list all values explicitly and set default to match the Enum's default_value for consistency. Co-Authored-By: Claude Opus 4.6 <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
Second RI CCAP eval found the rules-engineer agent was dropping eligibility requirements despite them being in the spec and reference implementations. Also missing the standard childcare subsidy calculation pattern.
Fixes gaps identified in eval-2 (follow-up to #120).
Changes
Rules-engineer agent (
agents/country-models/rules-engineer.md)Code-organization skill
{prefix}_activity_eligibleto standard eligibility variable componentsVariable-patterns skill
activity_eligibleto parameter-to-variable mapping tablepre_subsidy_childcare_expensesEval-2 findings (12/12 eval-1 issues passed, 4 new issues found)
🤖 Generated with Claude Code