Skip to content

Conversation

@policyengine
Copy link
Contributor

@policyengine policyengine bot commented Dec 18, 2025

Summary

Adds UK-specific guidance to the reference-validator agent based on learnings from PolicyEngine/policyengine-uk#1459.

Key Learning

When adding legislative references to UK parameters, it's critical to distinguish between:

  1. Establishing legislation (e.g., Social Security Act 1992, National Minimum Wage Act 1998)

    • Provides legal authority but rarely contains specific parameter values
    • Should NOT be used alone for value-specific parameters
  2. Value-containing legislation (e.g., SI 2024/432, Finance Act 2023 s. 6(4))

    • Contains the actual rates, amounts, and thresholds
    • These are what should be referenced

What Changed

Added section 3.1 "UK-Specific Reference Rules" covering:

  • Distinction between establishing vs. value-containing legislation
  • Examples of correct and incorrect references
  • Common UK parameter types and appropriate reference sources
  • What NOT to reference (statistical data, monetary policy decisions, etc.)

Example from PR #1459

The PR initially added 294 generic legislative references that didn't contain the actual parameter values (e.g., referencing National Minimum Wage Act 1998 for the £11.44 rate instead of SI 2024/432 which actually contains it).

After correction, only verified references were added where the legislation actually contained the specific parameter values.

Impact

This guidance will help future Claude Code sessions working on UK parameters avoid the same mistake of adding plausible-but-unverified generic Act references.

🤖 Generated with Claude Code

Based on learnings from policyengine-uk PR #1459, add specific guidance
for validating UK legislative references to distinguish between:

- Establishing legislation (Acts) that provide authority but not values
- Value-containing legislation (SIs, Finance Act sections) with actual rates
- Uprating regulations vs. original establishing legislation

Key additions:
- Examples of correct UK reference patterns
- Common mistakes to avoid (e.g., citing base rate to BoE Act 1998)
- Guidance on what parameter types need which reference types

This helps prevent adding generic Act references that don't actually
contain the parameter values being referenced.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <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.

2 participants