Skip to content

Commit 1aa4e92

Browse files
feat(VMR0015): replace tc1_full_lifecycle.record with institutional-pilot recording (full lifecycle including wq block)
Re-recorded against current build with wq<0.95 hard gate in customLogicBlock and dormant calculate_project_fields removed. Recording exercises full lifecycle: role choice -> PP profile -> regrequest -> monrequest -> wqrequest -> valrequest -> verrequest -> ownerconfirmrequest. Updated tests/README.md to drop the prior caveat about the older 1000-HH recording. Signed-off-by: Bikram Biswas <106413198+BikramBiswas786@users.noreply.github.com>
1 parent 2eec926 commit 1aa4e92

2 files changed

Lines changed: 19 additions & 16 deletions

File tree

Methodology Library/DLT Earth Methodology Bounty Program/Emission Reductions from Safe Drinking Water Supply/tests/README.md

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,48 @@
11
# Tests
22

33
This folder contains the canonical TC1 specification and a recorded MGS
4-
dry-run that exercises the full policy lifecycle.
4+
dry-run that exercises the full policy lifecycle against the current
5+
`VMR0015.policy` build.
56

67
## Files
78

89
| File | Purpose |
910
|---|---|
1011
| `tc1_expected.json` | Canonical TC1 input/output specification — the oracle every other artefact reproduces |
11-
| `tc1_full_lifecycle.record` | Recorded MGS dry-run (role choice → PP profile → project creation → monitoring report → VVB approveowner approvemint) |
12+
| `tc1_full_lifecycle.record` | Recorded MGS dry-run (role choice → PP profile → project registration → monitoring report → water-quality block → VVB validationVVB verificationowner confirmation) |
1213

1314
Expected outcomes match [`../evidence/CANONICAL_TC1.md`](../evidence/CANONICAL_TC1.md):
1415
`ER_total = 10.00 tCO₂e` → mint **1000 base units** (= 10.00 CER, decimals = 2)
1516
on token `0.0.8865898`.
1617

17-
## Honest note on the binary fixture
18+
## About the recording
1819

19-
`tc1_full_lifecycle.record` was recorded against an earlier build of the
20-
policy that used a 1000-household input set. The canonical TC1 input set in
21-
`tc1_expected.json` (200 HH, `f_woody = 0.60`, `wq_pass_rate = 0.98`,
22-
expected mint = 1000 base units) is the single source of truth. The
23-
recording will be re-captured against the current `VMR0015.policy` build
24-
(with the `wq < 0.95` hard gate and dormant `calculate_project_fields`
25-
removed) before the v1.0.0 tag is cut; until then, prefer the oracle path:
20+
`tc1_full_lifecycle.record` is an MGS dry-run recording captured against
21+
the current `VMR0015.policy` build (with the `wq < 0.95` hard gate active
22+
in `customLogicBlock.calculate_report_fields` and the dormant
23+
`calculate_project_fields` block removed). It walks the institutional-pilot
24+
lifecycle end to end, including the water-quality (`wqrequest`) block, so
25+
reviewers can verify the math-layer wq-gate is exercised.
26+
27+
## Oracle (preferred reproducibility path)
2628

2729
```bash
2830
python3 tools/verify_oracle.py
2931
```
3032

31-
This re-runs the canonical TC1 inputs against a Python port of the policy
32-
math and returns `Result : PASS` if the math layer is consistent with the
33-
specification.
33+
This re-runs the canonical TC1 inputs (200 HH, `f_woody = 0.60`,
34+
`wq_pass_rate = 0.98`) against a Python port of the policy math and
35+
returns `Result : PASS` if the math layer is consistent with the
36+
specification (BE = 12.00, PE = 1.00, LE = 1.00, ER = 10.00,
37+
mint_base_units = 1000).
3438

3539
## To replay the recorded fixture
3640

3741
1. Import `VMR0015.policy` into a fresh MGS instance.
3842
2. Open the policy in Test mode.
3943
3. Load `tc1_full_lifecycle.record`.
40-
4. Run; the recording exercises the full lifecycle. The legacy mint
41-
amount will reflect the older 1000-HH input set, not the canonical TC1
42-
inputs in `tc1_expected.json`.
44+
4. Run; the recording exercises the full lifecycle including the
45+
water-quality block.
4346

4447
## To produce a fresh canonical-TC1 recording
4548

0 commit comments

Comments
 (0)