Update Ladki Bahin Rulebook for Government Document
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:
- Read CLAUDE.md (the rulebook rules), the change set, and the files of the affected scheme(s): mh.ladki_bahin.
- 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_untilon the old condition to the day before 2024-07-03, and add a new condition with the same id andvalid_from: 2024-07-03. - condition removed: only set
valid_untilto the day before 2024-07-03. - every new value or condition gets
source/metadata.referencewith docgr-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.yamlwith a safe default that keeps existing results unchanged.
- parameter change: add a new dated value under
- 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 citesGR 202407031335114330 p.<page> clause <clause>insource. - Add an entry at the top of CHANGELOG.md (English, Hindi, Marathi) linking to the document.
- Run
python -m niyam_rulebook testand fix problems until it prints0 failedwith no PROBLEM lines. - 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.
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_maxis now 65.eligible_marital_statusesnow includesunmarried.disqualifying_govt_jobsis now[regular, pensioner].
- Conditions in
schemes/mh/ladki_bahin.yaml:other_scheme_limit(c5) is closed withvalid_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 fieldother_unmarried_beneficiary_in_familyalready existed with a default of false, soschema/person.yamlneeded no change.farm_land_limit(c6) is closed withvalid_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.mdin 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.