Update Ladki Bahin Rulebook for Government Document

Claude Code·Sonnet 5.5·Unknown author·yesterday·1min·1 Checkpoint·8 file changes·+209/-3·9.1K tokens

You are the Niyam encoder. Update this rulebook so it matches a new government document.

The validated change set is in .niyam/changeset.json. It lists each change with its exact source quote, page and clause. The source document is registered in sources/index.yaml as gr-202407031335114330 (date 2024-07-03).

Do this:

  1. Read CLAUDE.md (the rulebook rules), the change set, and the files of the affected scheme(s): mh.ladki_bahin.
  2. Apply every change in the change set, following CLAUDE.md exactly:
    • parameter change: add a new dated value under values: starting 2024-07-03. Never edit or delete older values.
    • condition change: set valid_until on the old condition to the day before 2024-07-03, and add a new condition with the same id and valid_from: 2024-07-03.
    • condition removed: only set valid_until to the day before 2024-07-03.
    • every new value or condition gets source / metadata.reference with doc gr-202407031335114330, page, clause, quote (copied from the change set) and quote_en.
    • if a change needs a new person field, add it to schema/person.yaml with a safe default that keeps existing results unchanged.
  3. Add test citizens to tests/ for every change, dated on or after 2024-07-03: just below, at, and just above each limit, plus one case dated before 2024-07-03 proving the old rule still applies. Each case cites GR 202407031335114330 p.<page> clause <clause> in source.
  4. Add an entry at the top of CHANGELOG.md (English, Hindi, Marathi) linking to the document.
  5. Run python -m niyam_rulebook test and fix problems until it prints 0 failed with no PROBLEM lines.
  6. Do not run git. Do not edit files outside schemes/, parameters/, tests/, sources/, glossary/, schema/ and CHANGELOG.md.

Finish with a short summary of what you changed and the final test result.

yesterday·57.4s

I applied all six changes from the change set. python -m niyam_rulebook test prints tests: 46 passed, 0 failed, with no PROBLEM lines.

  • Parameters (new values from 2024-07-03, older values untouched):
    • age_max is now 65.
    • eligible_marital_statuses now includes unmarried.
    • disqualifying_govt_jobs is now [regular, pensioner].
  • Conditions in schemes/mh/ladki_bahin.yaml:
    • other_scheme_limit (c5) is closed with valid_until: 2024-07-02. A new version from 2024-07-03 uses <, so receiving Rs 1,500 or more now disqualifies.
    • unmarried_one_per_family (c3) is a new condition from 2024-07-03. The person field other_unmarried_beneficiary_in_family already existed with a default of false, so schema/person.yaml needed no change.
    • farm_land_limit (c6) is closed with valid_until: 2024-07-02. Nothing replaces it.
  • Tests: 21 new cases in tests/mh/ladki_bahin.yaml. Each change has cases just below, at and just above its limit. Each also has one case dated 2024-07-02 showing the old rule still applies. Every case cites GR 202407031335114330 with page and clause.
  • Changelog: new entry at the top of CHANGELOG.md in English, Hindi and Marathi, linking to the GR.

I did not model the two ambiguities the change set flagged: whether the Rs 2.50 lakh cap for contract staff means their own income or family income, and the yellow/orange ration card income-certificate exemption. The family income condition still applies to everyone, so contract staff now pass the job test and are checked only by that income condition.

I didn't run git, and I edited nothing outside the allowed folders.