@mudraforge/statutory 2.9.0 → 2.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +80 -0
- package/CONTRIBUTING.md +1 -0
- package/README.md +142 -158
- package/SECURITY.md +2 -2
- package/SKILL.md +7 -2
- package/bin/cli.js +213 -8
- package/docs/ARCHITECTURE.md +10 -10
- package/docs/ARCHITECTURE_DECISIONS.md +5 -4
- package/docs/CATALOG.md +489 -89
- package/docs/CORPUS_QUALITY.md +17 -9
- package/docs/DATA_LICENSING.md +1 -1
- package/docs/DOMAIN_BREADTH_AND_DEPTH_COMPARISON.md +35 -33
- package/docs/ENTERPRISE_GOVERNANCE.md +81 -22
- package/docs/OKF_MAINTENANCE_SOP.md +12 -12
- package/docs/PILOT_EVALUATION_GUIDE.md +155 -90
- package/docs/PROVENANCE.md +4 -4
- package/docs/VERIFICATION.md +8 -8
- package/okf/corporate_ma_restructuring/tax_clearance_sec281/circulars/cbdt_circular_04_2011_sec281_clearance.md +57 -0
- package/okf/corporate_ma_restructuring/tax_clearance_sec281/forms/form_281_tax_clearance_application.json +42 -0
- package/okf/corporate_ma_restructuring/tax_clearance_sec281/section.json +70 -0
- package/okf/direct_tax/statutory_disallowance_43b/circulars/supreme_court_checkmate_services_2022.md +64 -0
- package/okf/direct_tax/statutory_disallowance_43b/forms/tax_audit_form_3cd_clause_26_schedule.json +71 -0
- package/okf/direct_tax/statutory_disallowance_43b/section.json +77 -0
- package/okf/direct_tax/tds_ecommerce_194o/circulars/cbdt_circular_20_2020_guidelines_194o.md +36 -0
- package/okf/direct_tax/tds_ecommerce_194o/forms/form_26q_ecommerce_schedule.json +75 -0
- package/okf/direct_tax/tds_ecommerce_194o/section.json +65 -0
- package/okf/direct_tax/tds_individual_contract_194m/circulars/finance_act_2024_194m_rate_cut_memo.md +24 -0
- package/okf/direct_tax/tds_individual_contract_194m/forms/form_26qd_contractor_statement.json +64 -0
- package/okf/direct_tax/tds_individual_contract_194m/section.json +58 -0
- package/okf/direct_tax/tds_interest_194a/circulars/cbdt_circular_03_2010_interest_tds.md +28 -0
- package/okf/direct_tax/tds_interest_194a/forms/form_15g_15h_interest_declaration.json +55 -0
- package/okf/direct_tax/tds_interest_194a/forms/form_26q_interest_schedule.json +72 -0
- package/okf/direct_tax/tds_interest_194a/section.json +64 -0
- package/okf/direct_tax/tds_perquisites_194r/forms/form_26q_perquisites_schedule.json +83 -0
- package/okf/direct_tax/tds_perquisites_194r/section.json +1 -1
- package/okf/direct_tax/tds_property_194ia/circulars/cbdt_notification_67_2022_property_tds.md +57 -0
- package/okf/direct_tax/tds_property_194ia/forms/form_26qb_property_tds_challan.json +43 -0
- package/okf/direct_tax/tds_property_194ia/section.json +73 -0
- package/okf/direct_tax/tds_rent_individual_194ib/circulars/finance_act_2024_rent_rate_cut_memo.md +24 -0
- package/okf/direct_tax/tds_rent_individual_194ib/forms/form_26qc_challan_cum_statement.json +74 -0
- package/okf/direct_tax/tds_rent_individual_194ib/section.json +57 -0
- package/okf/indirect_tax_gst/itc_reversal_rule37_37a/circulars/cbic_notification_19_2022_rule37.md +31 -0
- package/okf/indirect_tax_gst/itc_reversal_rule37_37a/forms/gstr_3b_table_4b_reversal.json +81 -0
- package/okf/indirect_tax_gst/itc_reversal_rule37_37a/section.json +64 -0
- package/okf/manifest.json +48 -6
- package/package.json +18 -1
- package/src/calculators.js +5374 -49
- package/src/constants.js +10 -0
- package/src/index.js +289 -13
- package/src/outcomes.js +483 -0
- package/types/index.d.ts +95 -0
package/docs/CORPUS_QUALITY.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# MudraForge Statutory Knowledge Quality Card
|
|
2
2
|
|
|
3
3
|
> **Format Reference**: Inspired by Google's *Data Cards Playbook* and the OpenSSF Project Quality Standards.
|
|
4
|
-
> **Target Package**: `@mudraforge/statutory` v2.
|
|
4
|
+
> **Target Package**: `@mudraforge/statutory` v2.11.0
|
|
5
5
|
> **Evaluation Mode**: Machine-audited against primary sources, official gazettes, and test fixtures.
|
|
6
|
-
> **Generated Timestamp**: 2026-10-
|
|
6
|
+
> **Generated Timestamp**: 2026-10-29T07:06:23.134Z
|
|
7
7
|
|
|
8
8
|
---
|
|
9
9
|
|
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
|
|
12
12
|
| Dimension | Metric | Denominator / Baseline | Coverage Rate | Status |
|
|
13
13
|
| :--- | :--- | :--- | :--- | :--- |
|
|
14
|
-
| **Primary Source Citations** |
|
|
15
|
-
| **Temporal Validity Bounds** |
|
|
16
|
-
| **Dual-Act 2025 Transition Bridges** |
|
|
17
|
-
| **Attached Administrative Circulars** |
|
|
18
|
-
| **Attached Return/Compliance Schemas** |
|
|
19
|
-
| **Cryptographic Merkle Verification** |
|
|
14
|
+
| **Primary Source Citations** | 98 resolvable gazette URLs | 98 total citations declared | **100.0%** | VERIFIED |
|
|
15
|
+
| **Temporal Validity Bounds** | 37 sections with explicit dates | 37 total bundled sections | **100.0%** | VERIFIED |
|
|
16
|
+
| **Dual-Act 2025 Transition Bridges** | 15 direct tax provisions mapped | 16 direct tax provisions | **93.8%** | VERIFIED |
|
|
17
|
+
| **Attached Administrative Circulars** | 38 official circulars | 37 provisions across active domains | **100% Attached** | VERIFIED |
|
|
18
|
+
| **Attached Return/Compliance Schemas** | 37 schemas/templates | 37 provisions across active domains | **100% Attached** | VERIFIED |
|
|
19
|
+
| **Cryptographic Merkle Verification** | 112 bundle files verified | SHA-256 Merkle root digest | **0 Mismatches** | VERIFIED |
|
|
20
20
|
|
|
21
21
|
---
|
|
22
22
|
|
|
@@ -50,15 +50,22 @@
|
|
|
50
50
|
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
|
|
51
51
|
| **ITA-SEC-79** | Carry Forward and Set Off of Accumulated Losses on Change in Shareholding | Income-tax Act, 1961 (Act No. 43 of 1961) | `1962-04-01` to `OPEN_ENDED` | `ACTIVE` | 3 | 1 | 1 | Income-tax Act, 2025 (Chapter on Set-off and Carry Forward of Losses) (Provisions on Loss Set-Off on Shareholding Continuity) |
|
|
52
52
|
| **50B** | Special provision for computation of capital gains in case of slump sale | Income-tax Act, 1961 (Act No. 43 of 1961) | `2000-04-01` to `OPEN_ENDED` | `ACTIVE` | 3 | 2 | 2 | Income-tax Act, 2025 (Section 78 (Capital gains on slump sale of undertakings)) |
|
|
53
|
+
| **281** | Certain Transfers to be Void & Tax Clearance Requirements in Corporate Restructuring (Section 281) | Income-tax Act, 1961 (Act No. 43 of 1961) | `1962-04-01` to `OPEN_ENDED` | `ACTIVE` | 3 | 1 | 1 | Income-tax Act, 2025 (Section 497 (Transfers to defraud revenue to be void)) |
|
|
53
54
|
| **115BAA-115JB** | Tax on income of certain domestic companies (Section 115BAA) and Minimum Alternate Tax (Section 115JB) | Income-tax Act, 1961 (Act No. 43 of 1961) | `2019-04-01` to `OPEN_ENDED` | `ACTIVE` | 3 | 1 | 1 | Income-tax Act, 2025 (Chapter XI (Corporate Taxation & Special Regimes)) |
|
|
54
55
|
| **206AB** | Special provision for deduction of tax at source for non-filers of income-tax return (Omitted effective 1 April 2025) | Income-tax Act, 1961 (Act No. 43 of 1961) | `2021-07-01` to `2025-03-31` | `SUNSET_SUPERSEDED` | 1 | 1 | 0 | Finance Act, 2025 (Statutory Omission) (Section 206AB Omitted) |
|
|
56
|
+
| **43B** | Statutory Disallowance on Certain Deductions to be Only on Actual Payment (Section 43B) and Employee Welfare Deductions (Section 36(1)(va)) | Income-tax Act, 1961 (Act No. 43 of 1961) | `1984-04-01` to `OPEN_ENDED` | `ACTIVE` | 3 | 1 | 1 | Income-tax Act, 2025 (Section 47 (Deductions on actual payment basis) and Section 35(1)(xvi)) |
|
|
55
57
|
| **206C(1H)** | Collection of tax at source by seller on receipt of consideration for sale of goods (Omitted effective 1 April 2025) | Income-tax Act, 1961 | `2020-10-01` to `2025-03-31` | `SUNSET_SUPERSEDED` | 2 | 1 | 0 | Finance Act, 2025 (Statutory Sunset) (Section 206C(1H) Omitted) |
|
|
56
58
|
| **194H** | Deduction of tax at source on commission or brokerage | Income-tax Act, 1961 (Act No. 43 of 1961) | `2001-06-01` to `2026-03-31` | `SUNSET_SUPERSEDED` | 3 | 1 | 1 | Income-tax Act, 2025 (Section 393(1), Table 4, Item (i)) |
|
|
57
59
|
| **194C** | Deduction of tax at source on payments to contractors and sub-contractors | Income-tax Act, 1961 (Act No. 43 of 1961) | `1972-04-01` to `2026-03-31` | `SUNSET_SUPERSEDED` | 3 | 1 | 2 | Income-tax Act, 2025 (Section 393(1), Table 3, Item (i)) |
|
|
60
|
+
| **194O** | Payment of certain sums by e-commerce operator to e-commerce participant | Income-tax Act, 1961 (Act No. 43 of 1961) | `2020-10-01` to `2026-03-31` | `SUNSET_SUPERSEDED` | 3 | 1 | 1 | Income-tax Act, 2025 (Section 393(1), Table 8, Item (i)) |
|
|
58
61
|
| **194Q** | Deduction of tax at source on payment of a certain sum for purchase of goods | Income-tax Act, 1961 (Act No. 43 of 1961) | `2021-07-01` to `2026-03-31` | `SUNSET_SUPERSEDED` | 2 | 2 | 2 | Income-tax Act, 2025 (Section 393(1), Table 8, Item (ii)) |
|
|
59
62
|
| **393** | Deduction of tax at source on payment of a certain sum for purchase of goods | Income-tax Act, 2025 (Act No. 1 of 2025) | `2026-04-01` to `OPEN_ENDED` | `ACTIVE` | 3 | 0 | 0 | N/A |
|
|
60
|
-
| **
|
|
63
|
+
| **194M** | Payment of Certain Sums by Certain Individuals or Hindu Undivided Family (Section 194M) | Income-tax Act, 1961 (Act No. 43 of 1961) | `2019-09-01` to `2026-03-31` | `SUNSET_SUPERSEDED` | 2 | 1 | 1 | Income-tax Act, 2025 (Section 393(1), Table 5, Item (m)) |
|
|
64
|
+
| **194A** | Deduction of tax at source on payment of interest other than interest on securities | Income-tax Act, 1961 (Act No. 43 of 1961) | `1967-04-01` to `2026-03-31` | `SUNSET_SUPERSEDED` | 3 | 1 | 2 | Income-tax Act, 2025 (Section 393(1), Table 4, Item (i)) |
|
|
65
|
+
| **194R** | Deduction of tax at source on benefit or perquisite in respect of business or profession | Income-tax Act, 1961 (Act No. 43 of 1961) | `2022-07-01` to `OPEN_ENDED` | `ACTIVE` | 2 | 1 | 1 | Income-tax Act, 2025 (Section 393(1), Table 8, Item 12) |
|
|
66
|
+
| **194-IA** | Payment on Transfer of Certain Immovable Property Other than Agricultural Land (Section 194-IA) | Income-tax Act, 1961 (Act No. 43 of 1961) | `2013-06-01` to `2026-03-31` | `SUNSET_SUPERSEDED` | 3 | 1 | 1 | Income-tax Act, 2025 (Section 393(1) Table 4 Item (q)) |
|
|
61
67
|
| **194I** | Deduction of tax at source on payment of rent | Income-tax Act, 1961 (Act No. 43 of 1961) | `1994-06-01` to `2026-03-31` | `SUNSET_SUPERSEDED` | 3 | 1 | 1 | Income-tax Act, 2025 (Section 393(1), Table 5, Item (i)) |
|
|
68
|
+
| **194-IB** | Payment of Rent by Certain Individuals or Hindu Undivided Family (Section 194-IB) | Income-tax Act, 1961 (Act No. 43 of 1961) | `2017-06-01` to `2026-03-31` | `SUNSET_SUPERSEDED` | 2 | 1 | 1 | Income-tax Act, 2025 (Section 393(1), Table 5, Item (ib)) |
|
|
62
69
|
| **194J** | Fees for professional or technical services, royalty, and non-compete fees | Income-tax Act, 1961 | `1995-07-01` to `2026-03-31` | `SUNSET_SUPERSEDED` | 2 | 1 | 1 | Income-tax Act, 2025 (Section 393(1), Table 6, Item (iii)) |
|
|
63
70
|
| **17(5)** | Apportionment of credit and blocked input tax credits | Central Goods and Services Tax Act, 2017 (Act No. 12 of 2017) | `2017-07-01` to `OPEN_ENDED` | `ACTIVE` | 3 | 1 | 1 | CGST Act, 2017 (In force) (Section 17(5)(b)(i) & (b)(iii)) |
|
|
64
71
|
| **8** | Tax liability on composite and mixed supplies and classification of bundled goods and services contracts | Central Goods and Services Tax Act, 2017 | `2017-07-01` to `OPEN_ENDED` | `ACTIVE` | 3 | 1 | 1 | N/A |
|
|
@@ -68,6 +75,7 @@
|
|
|
68
75
|
| **RULE-48(4)** | Mandatory electronic invoicing (E-Invoicing), IRN generation, and invoice validity | Central Goods and Services Tax Rules, 2017 | `2020-10-01` to `OPEN_ENDED` | `ACTIVE` | 2 | 1 | 0 | N/A |
|
|
69
76
|
| **51** | Tax deduction at source under Goods and Services Tax | Central Goods and Services Tax Act, 2017 (Act No. 12 of 2017) | `2018-10-01` to `OPEN_ENDED` | `ACTIVE` | 2 | 1 | 0 | N/A |
|
|
70
77
|
| **16(2)** | Eligibility and conditions for taking input tax credit and mandatory 180-day payment rule | Central Goods and Services Tax Act, 2017 (Act No. 12 of 2017) | `2017-07-01` to `OPEN_ENDED` | `ACTIVE` | 4 | 1 | 1 | CGST Act, 2017 (In force) (Section 16(2), (3), (4), (5), (6)) |
|
|
78
|
+
| **RULE-37-37A** | Reversal of input tax credit in case of non-payment of consideration to vendor within 180 days and non-filing by supplier | Central Goods and Services Tax Act, 2017 (Act No. 12 of 2017) | `2017-07-01` to `OPEN_ENDED` | `ACTIVE` | 3 | 1 | 1 | Central Goods and Services Tax Act, 2017 (Section 16(2) second proviso read with Rule 37 and Rule 37A (as amended)) |
|
|
71
79
|
| **9(3)** | Reverse Charge Mechanism (RCM) mandatory tax liability on recipient, self-invoicing, payment voucher issuance, and electronic cash discharge | Central Goods and Services Tax Act, 2017 read with Notification No. 13/2017-Central Tax (Rate) | `2017-07-01` to `OPEN_ENDED` | `ACTIVE` | 3 | 1 | 1 | N/A |
|
|
72
80
|
| **195** | Deduction of tax at source on foreign cross-border payments to non-residents, DTAA treaty benefits, documentation, Form 15CA/15CB, and cloud software exemption | Income-tax Act, 1961 read with Double Taxation Avoidance Agreements (DTAA) under Section 90 | `1962-04-01` to `OPEN_ENDED` | `ACTIVE` | 3 | 2 | 1 | Income-tax Act, 2025 Section 393(2) (Section 393(2) of Income-tax Act, 2025) |
|
|
73
81
|
| **INDAS-21-109-FX** | Foreign Exchange Monetary Asset/Liability Revaluation and Cash Flow Hedge Accounting | Companies (Indian Accounting Standards) Rules, 2015 read with Section 133 of Companies Act, 2013 | `2016-04-01` to `OPEN_ENDED` | `ACTIVE` | 3 | 1 | 1 | Companies Act, 2013 (Indian Accounting Standards) (Ind AS 21 & Ind AS 109) |
|
package/docs/DATA_LICENSING.md
CHANGED
|
@@ -11,7 +11,7 @@ This document clearly distinguishes between:
|
|
|
11
11
|
|
|
12
12
|
## 1. Software Code & Tooling (MIT License)
|
|
13
13
|
|
|
14
|
-
All executable code, client libraries, CLI binaries, test suites, and validation scripts in this repository are licensed under the **[MIT License](
|
|
14
|
+
All executable code, client libraries, CLI binaries, test suites, and validation scripts in this repository are licensed under the **[MIT License](../LICENSE)**:
|
|
15
15
|
|
|
16
16
|
- `src/` (Client runtime, resolver, temporal state evaluator)
|
|
17
17
|
- `bin/` (Command-line interface)
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# MudraForge Statutory Substrate: Breadth & Depth Analysis
|
|
2
2
|
## Public Package Seed vs. Full Sovereign Operating Engine
|
|
3
3
|
|
|
4
|
-
> **Document Version**: `
|
|
5
|
-
> **Package**: `@mudraforge/statutory` (v2.
|
|
4
|
+
> **Document Version**: `2.0.0`
|
|
5
|
+
> **Package**: `@mudraforge/statutory` (v2.10.0)
|
|
6
6
|
> **Enterprise Sovereign Engine**: MudraForge Adesha Sovereign Runtime
|
|
7
7
|
> **Specification**: Google Open Knowledge Format (OKF v0.2)
|
|
8
8
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
This document provides the authoritative architectural matrix comparing the **Breadth** (regulatory domains covered) and **Depth** (granularity, operative provisos, evidence attestation, and mathematical enforcement) between:
|
|
14
14
|
|
|
15
|
-
1. **The Public Package (`@mudraforge/statutory`)**: The lightweight, zero-dependency, offline-capable
|
|
15
|
+
1. **The Public Package (`@mudraforge/statutory`)**: The lightweight, zero-dependency, offline-capable package of 29 verified provisions across 5 foundational domains published for public AI agents and developer workflows.
|
|
16
16
|
2. **The Full Sovereign Engine (Adesha Runtime)**: The private enterprise financial operating substrate governing live Accounts Payable (AP), Treasury, and General Ledger writebacks on the MudraForge Cloudflare Global Anycast Edge.
|
|
17
17
|
|
|
18
18
|
---
|
|
@@ -23,15 +23,15 @@ This matrix delineates what is **natively bundled in the base package** (zero ne
|
|
|
23
23
|
|
|
24
24
|
| # | Regulatory Domain | Base Package (Offline Clone / No Sync) | Edge Synced (`npx ... sync`) | Future Cloud Expansion (Internal Sovereign Engine) | Availability & Status in Package |
|
|
25
25
|
| :-: | :--- | :--- | :--- | :--- | :---: |
|
|
26
|
-
| **1** | **Direct Tax (TDS / TCS)** | Included:
|
|
27
|
-
| **2** | **MSME & Working Capital** | Included: Sections 15 & 16
|
|
28
|
-
| **3** | **Indirect Tax (GST & ITC)** | Included: CGST
|
|
29
|
-
| **4** | **
|
|
30
|
-
| **5** | **Corporate
|
|
31
|
-
| **6** | **
|
|
32
|
-
| **7** | **
|
|
33
|
-
| **8** | **
|
|
34
|
-
| **9** | **Strategic Corporate Tax Planning** |
|
|
26
|
+
| **1** | **Direct Tax (TDS / TCS / Corporate)** | Included: 10 core provisions (194Q, 194J, 194C, 194H, 194I, 194R, 206AB, 206C(1H), 115BAA-115JB, Act 2025 Sec 393) + circulars & Form 26Q/16A/10IC | Real-time CBDT circular updates & threshold changes | Section 197 TRACES certificate quota vault, advance challan netting, automated double-entry JVs | **Bundled in Base**<br>*(Active)* |
|
|
27
|
+
| **2** | **MSME & Working Capital** | Included: 4 provisions (Sections 15 & 16, MSMED-7 criteria, MCA Form MSME-1, Sec 22 Schedule III disclosures) | Live quarterly RBI repo rate tables & MSEFC state facilitation rules | Multi-interval monthly compounding calculator (`calculateMultiIntervalMsmeInterest`), Sec 23 Form 3CD addback | **Bundled in Base**<br>*(Active)* |
|
|
28
|
+
| **3** | **Indirect Tax (GST & ITC)** | Included: 9 provisions (CGST 17(5) blocked credit, 8 composite/mixed, 9(3) RCM, 10 composition, 16(2) 180-day rule, 34 credit/debit notes, 51 TDS, IGST 16 LUT, Rule 48(4) IRN) | Real-time GSTR-2B reconciliation updates & notifications | Real-time Rule 48(4) IRN hash verification, Rule 89(5) Inverted Duty Structure (IDS) refund engine | **Bundled in Base**<br>*(Active)* |
|
|
29
|
+
| **4** | **International Tax & FX** | Included: 4 provisions (Section 195 cross-border TDS, Ind AS 21/109 FX revaluation, IRC 901/904 FTC, Transfer Pricing 92C / Rule 10CA) | Foreign vendor DTAA treaty checklists (TRC, No-PE, electronic Form 10F) | Supreme Court *Engineering Analysis* SaaS royalty defense, Form 15CA/CB automated dual-act router | **Bundled in Base**<br>*(Active)* |
|
|
30
|
+
| **5** | **Corporate M&A & Restructuring** | Included: 2 provisions (Section 50B slump sale net worth computation, Section 79 loss carry-forward & continuity) | Section 281 AO clearance NOC & Section 313 successor liability checklist | Section 50B organic undertaking test, Section 281 AO clearance NOC, Section 313 successor liability, CGST 85 going concern | **Bundled in Base**<br>*(Active)* |
|
|
31
|
+
| **6** | **Corporate Governance (MCA)** | Not bundled in base | Companies Act Section 188 threshold guidance | **Full Companies Act 2013 Suite**: Section 188 (RPT audit committee & voting ban), Section 180 (borrowing limits), Section 185/186 (inter-corporate loans), Section 68 (25% buybacks) | **Planned: MCA Expansion Pack** |
|
|
32
|
+
| **7** | **Capital Markets (SEBI LODR)** | Not bundled in base | Regulation 30 materiality guidelines | **SEBI LODR Suite**: Regulation 30 Materiality Triad calculator (2% turnover / 2% net worth / 50% PAT), 24-hr stock exchange disclosure timer, Regulation 23 listed RPTs | **Planned: SEBI Expansion Pack** |
|
|
33
|
+
| **8** | **Financial Reporting (Advanced Ind AS)**| Core Ind AS 21/109 FX revaluation bundled | Baseline Ind AS 115 & 116 accounting summaries | **Full Indian Accounting Standards Suite**: Ind AS 115 (5-step, variable constraint), Ind AS 116 (ROU/lease liability), Ind AS 103 (PPA/goodwill/NCI), Ind AS 12 (DTA/DTL) | **Planned: Ind AS Expansion Pack** |
|
|
34
|
+
| **9** | **Strategic Corporate Tax Planning** | Section 115BAA & Section 79 bundled | Extended tax planning guidance | **Strategic Tax Playbook**: Section 115BAA vs MAT credit cliff, Section 80JJAA 30% employment deduction, Section 68/115BBE cash credit defense | **Planned: Strategic Tax Pack** |
|
|
35
35
|
| **10**| **Customs & Foreign Trade Policy** | Not bundled in base | Customs valuation basics | **Customs & Trade Suite**: Section 65 MOOWR duty deferral, EPCG, Advance Authorization, Section 74 fraud penalties, IGST Section 13(8)(b) intermediary traps | **Planned: Customs Pack** |
|
|
36
36
|
| **11**| **Finance Operations & SOPs** | Not bundled in base | Standard 3-way match guidelines | **Enterprise Treasury Controls**: P2P 3-way match, O2C, 13-week cash forecasting, penny drop validation, maker-checker segregation of duties | **Planned: Finance Ops Pack** |
|
|
37
37
|
|
|
@@ -55,14 +55,14 @@ Level 5: Deterministic Mathematical Execution (Excess Math, Compound Interest, J
|
|
|
55
55
|
|
|
56
56
|
### Detailed Depth Breakdown by Domain
|
|
57
57
|
|
|
58
|
-
### 1. Direct Tax & Corporate Withholding (TDS / TCS)
|
|
58
|
+
### 1. Direct Tax & Corporate Withholding (TDS / TCS / Corporate Regimes)
|
|
59
59
|
* **Public Starter Seed**:
|
|
60
|
-
- Reaches **Level 3
|
|
61
|
-
- **Provisions**:
|
|
62
|
-
- **Thresholds**: ₹50 Lakh annual purchase limit, ₹10 Crore prior turnover.
|
|
63
|
-
- **Rates**: 0.1%
|
|
64
|
-
- **Circulars**: CBDT Circular 13/2021
|
|
65
|
-
- **Forms**: Form 26Q quarterly TDS return schema, Form 16A certificate schema, Vendor PAN / 206AB declaration template.
|
|
60
|
+
- Reaches **Level 3** (with Level 5 Deterministic Calculators for MAT vs 115BAA and 288B tax rounding).
|
|
61
|
+
- **Provisions**: 10 direct tax sections (194Q, 194J, 194C, 194H, 194I, 194R, 206AB, 206C(1H), 115BAA-115JB, and Income-tax Act, 2025 Section 393).
|
|
62
|
+
- **Thresholds**: ₹50 Lakh annual purchase limit, ₹10 Crore prior turnover, ₹30k/₹1L contractor aggregate, ₹2.4L rent threshold.
|
|
63
|
+
- **Rates**: 0.1% goods TDS, 2% FTS rate, 10% professional rate, 1%/2% contractor rate, 2% commission rate (Finance Act 2024), 22% 115BAA corporate rate, 15% MAT rate, 5% Section 206AA non-PAN cap.
|
|
64
|
+
- **Circulars**: CBDT Circular 13/2021, Circular 23/2017, Circular 03/2020, Circular 29/2019, Finance Act 2024/2025 transition memos.
|
|
65
|
+
- **Forms**: Form 26Q quarterly TDS return schema, Form 16A certificate schema, Form 10IC corporate tax election, Vendor PAN / 206AB declaration template.
|
|
66
66
|
* **Full Enterprise Engine (Adesha Runtime)**:
|
|
67
67
|
- Reaches **Level 5**.
|
|
68
68
|
- **Full Statutory Spectrum**: Table 8 of Income-tax Act, 2025 (Section 392 Rent, 393 Goods, 394 Contractors, 395 Professional/FTS, 397 Non-PAN).
|
|
@@ -72,14 +72,14 @@ Level 5: Deterministic Mathematical Execution (Excess Math, Compound Interest, J
|
|
|
72
72
|
|
|
73
73
|
---
|
|
74
74
|
|
|
75
|
-
### 2. MSME & Working Capital (Delayed Payments
|
|
75
|
+
### 2. MSME & Working Capital (Delayed Payments, Section 43B(h) & Reporting)
|
|
76
76
|
* **Public Starter Seed**:
|
|
77
|
-
- Reaches **Level 3
|
|
78
|
-
- **Provisions**: MSMED Act, 2006 Sections 15 & 16; Income-tax Act Section 43B(h).
|
|
77
|
+
- Reaches **Level 3** (with Level 5 Deterministic Calculator for Section 16 MSME compound penal interest at 3x RBI Bank Rate).
|
|
78
|
+
- **Provisions**: MSMED Act, 2006 Sections 15 & 16; MSMED Section 7 criteria; MCA Form MSME-1; MSMED Section 22 corporate balance sheet disclosures; Income-tax Act Section 43B(h).
|
|
79
79
|
- **Timelines**: Strict 15-day (without contract) or maximum 45-day (with written contract) payment clocks.
|
|
80
|
-
- **Rates**: Mandatory compound penal interest at 3x RBI Bank Rate.
|
|
81
|
-
- **Circulars**: Ministry of MSME OM 1/4(1)/2021-P&G/Policy (
|
|
82
|
-
- **Forms**: UDYAM registration verification schema,
|
|
80
|
+
- **Rates**: Mandatory compound penal interest at 3x RBI Bank Rate notified by Reserve Bank of India.
|
|
81
|
+
- **Circulars**: Ministry of MSME OM 1/4(1)/2021-P&G/Policy (trader exclusion from delayed payment), Notification S.O. 2119(E) (composite investment & turnover criteria).
|
|
82
|
+
- **Forms**: UDYAM registration verification schema, Udyam composite calculation worksheet, MCA Form MSME-1 half-yearly return schema, Schedule III trade payables aging disclosure table.
|
|
83
83
|
* **Full Enterprise Engine (Adesha Runtime)**:
|
|
84
84
|
- Reaches **Level 5**.
|
|
85
85
|
- **Multi-Interval Compound Interest Calculator** (`calculateMultiIntervalMsmeInterest`): Accurately tracks shifting RBI Bank Rates across multi-quarter delinquencies, compounding on monthly rests.
|
|
@@ -88,13 +88,12 @@ Level 5: Deterministic Mathematical Execution (Excess Math, Compound Interest, J
|
|
|
88
88
|
|
|
89
89
|
---
|
|
90
90
|
|
|
91
|
-
### 3. Indirect Tax (GST & Input Tax Credit)
|
|
91
|
+
### 3. Indirect Tax (GST, Invoicing & Input Tax Credit)
|
|
92
92
|
* **Public Starter Seed**:
|
|
93
|
-
- Reaches **Level 3
|
|
94
|
-
- **Provisions**:
|
|
95
|
-
- **
|
|
96
|
-
- **
|
|
97
|
-
- **Forms**: GSTR-2B vs. GSTR-3B Table 4(B) ineligible ITC reporting schema.
|
|
93
|
+
- Reaches **Level 3** (with Level 5 Deterministic Calculator for Place of Supply & Zero-Rated LUT exports).
|
|
94
|
+
- **Provisions**: 9 GST provisions: CGST Section 17(5) blocked credit, Section 8 composite/mixed supplies, Section 9(3) RCM, Section 10 composition, Section 16(2) 180-day payment rule, Section 34 credit/debit notes, Section 51 TDS, IGST Section 16 LUT export, CGST Rule 48(4) mandatory e-invoicing.
|
|
95
|
+
- **Circulars**: CBIC Circular 172/04/2022-GST (employer obligation exception), Notification 13/2017-CT(R) (RCM services), Notification 14/2020-CT (Rule 48(4) IRN threshold).
|
|
96
|
+
- **Forms**: GSTR-2B Table 4(B) ineligible ITC schema, GSTR-3B Table 4 ITC reversal schema, RCM self-invoice voucher, LUT Form GST RFND-11 export declaration.
|
|
98
97
|
* **Full Enterprise Engine (Adesha Runtime)**:
|
|
99
98
|
- Reaches **Level 5**.
|
|
100
99
|
- **Section 16(2) 4-Condition Invariant Gate**: Concurrently verifies tax invoice possession, physical GRN receipt, GSTR-2B reflection, and supplier tax remittance.
|
|
@@ -104,9 +103,11 @@ Level 5: Deterministic Mathematical Execution (Excess Math, Compound Interest, J
|
|
|
104
103
|
|
|
105
104
|
---
|
|
106
105
|
|
|
107
|
-
### 4.
|
|
106
|
+
### 4. International Tax, FX Revaluation & Transfer Pricing
|
|
108
107
|
* **Public Starter Seed**:
|
|
109
|
-
-
|
|
108
|
+
- Reaches **Level 3** (with Level 5 Deterministic Calculators for Transfer Pricing ALP Rule 10CA and Ind AS 21/109 FX revaluation).
|
|
109
|
+
- **Provisions**: Section 195 cross-border payments, Ind AS 21 & 109 foreign exchange revaluation & hedge reserves, Transfer Pricing Section 92C & Rule 10CA range concept, US IRC §§ 901 & 904 Foreign Tax Credit.
|
|
110
|
+
- **Forms**: Form 15CA/15CB checklist, Form 3CEB transfer pricing report schema, Form 67 foreign tax credit statement, Ind AS 109 hedge reserve schedule, IRS Schedule K-3.
|
|
110
111
|
* **Full Enterprise Engine (Adesha Runtime)**:
|
|
111
112
|
- Reaches **Level 5** (Full Corporate Financial Reporting & Ind AS Framework).
|
|
112
113
|
- **Ind AS 115 (Revenue from Contracts with Customers)**:
|
|
@@ -117,6 +118,7 @@ Level 5: Deterministic Mathematical Execution (Excess Math, Compound Interest, J
|
|
|
117
118
|
- **Ind AS 116 (Leases)**:
|
|
118
119
|
- Right-of-Use (ROU) asset and Lease Liability discounting at incremental borrowing rate.
|
|
119
120
|
- Low-value asset ($<\$5,000$) and short-term ($<12\text{ months}$) exemption handling.
|
|
121
|
+
- Lease modification vs. reassessment state transitions.
|
|
120
122
|
- **Ind AS 103 (Business Combinations)**:
|
|
121
123
|
- Acquisition method and Purchase Price Allocation (PPA).
|
|
122
124
|
- Goodwill vs. Capital Reserve computation; Non-Controlling Interest (NCI) fair value measurement.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
> **Document Type**: Architecture & Enterprise Governance Specification
|
|
5
5
|
> **Target Audience**: Chief Financial Officers (CFOs), Heads of Finance, Enterprise Security & Risk Teams
|
|
6
|
-
> **Underlying Substrate**: MudraForge Statutory Knowledge Layer (OKF)
|
|
6
|
+
> **Underlying Substrate**: MudraForge Statutory Knowledge Layer (OKF) — [`@mudraforge/statutory`](../README.md)
|
|
7
7
|
|
|
8
8
|
---
|
|
9
9
|
|
|
@@ -17,25 +17,86 @@ When modern organizations adopt AI agents for finance operations, the primary ri
|
|
|
17
17
|
|
|
18
18
|
MudraForge Adesha was designed to establish an impenetrable **Execution Boundary** between generative AI assistance and real-world money movement.
|
|
19
19
|
|
|
20
|
+
> **The Core Thesis of Autonomous Finance**:
|
|
21
|
+
> *The dangerous moment in finance AI isn't when the model is wrong. It's when its output becomes a payment instruction.*
|
|
22
|
+
>
|
|
23
|
+
> In marketing, an AI hallucination is a typo. In accounts payable, an unhandled bank timeout can trigger a retry that double-pays a vendor.
|
|
24
|
+
>
|
|
25
|
+
> Hardening the financial runtime for **Adesha, MudraForge's organizational AI**, our principle is simple:
|
|
26
|
+
> **Reasoning can be probabilistic, but financial execution needs deterministic boundaries.**
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## 2. The Three-Tier Architecture & Operational Boundaries
|
|
31
|
+
|
|
32
|
+
To ensure complete clarity for developers, auditors, and enterprise clients, MudraForge establishes three distinct architectural tiers with strict operational boundaries:
|
|
33
|
+
|
|
34
|
+
| Tier | Component | Repository & Distribution | Pricing & License | Operational Status |
|
|
35
|
+
| :--- | :--- | :--- | :--- | :--- |
|
|
36
|
+
| **Tier 1** | **Open-Source Statutory Commons** (`@mudraforge/statutory`) | Public GitHub (`mondeep0123/mudraforge-statutory`) & NPM Registry | **100% Free** (MIT License / CC BY 4.0 Data) | **`CURRENT_PRODUCTION`** (Working offline software) |
|
|
37
|
+
| **Tier 2** | **Hosted Statutory API & Edge Sync** | Cloudflare Global Anycast Edge (`api.mudraforge.in`) | Best-Effort Free Beta (Metered Cloud API) | **`CURRENT_BETA`** (Edge endpoints & caching) |
|
|
38
|
+
| **Tier 3** | **Commercial Adesha Runtime** | Enterprise Private VPC / On-Premise Worker Deployment | Commercial Enterprise SaaS | **`PILOT_STAGE_INTERNAL`** / **`SANDBOX_VALIDATED`** |
|
|
39
|
+
|
|
40
|
+
### Precise Status Classifications across Capabilities
|
|
41
|
+
|
|
42
|
+
To ensure epistemic honesty and prevent conflating tested prototypes with general availability:
|
|
43
|
+
|
|
44
|
+
- **`CURRENT_PRODUCTION` (Working, Publicly Inspectable Software)**:
|
|
45
|
+
- Bundled OKF statutory corpus (29 provisions across 5 legal domains).
|
|
46
|
+
- Pure deterministic calculators in `src/calculators.js` (Corporate Tax, LUT Export, TP ALP, Section 79, Ind AS 21/109).
|
|
47
|
+
- Zero-network CLI (`mudraforge-statutory` doctor, crosswalk, diff, verify, browse).
|
|
48
|
+
- Cryptographic SHA-256 Merkle root integrity verifier (`npm run manifest:check`).
|
|
49
|
+
- Native AI Agent Skill (`SKILL.md`) for offline agent runtime inspection.
|
|
50
|
+
|
|
51
|
+
- **`SANDBOX_VALIDATED` (Tested Under Realistic Simulation & Integration Sandboxes)**:
|
|
52
|
+
- Live Zoho Books general ledger balanced double-entry writeback (tested against sandbox and live accounts with readback).
|
|
53
|
+
- RazorpayX corporate banking sandbox payout dispatch (`SETTLEMENT_LIVE_SANDBOX`), HMAC-SHA256 webhook ingestion, and clearinghouse reversal interception.
|
|
54
|
+
- Multi-process lock contention testing verifying single-use lease acquisition across competing OS processes.
|
|
55
|
+
|
|
56
|
+
- **`PILOT_STAGE_INTERNAL` / `PLANNED` (Enterprise Engagements Requiring Partner Onboarding)**:
|
|
57
|
+
- Direct host-to-host bank rail settlement (ICICI / HDFC corporate host-to-host RTGS/NEFT).
|
|
58
|
+
- Multi-region distributed lease coordination across Cloudflare Durable Objects.
|
|
59
|
+
- Hosted Model Context Protocol (MCP) server fleets and live multi-agent tool connectivity (strictly enterprise tier).
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## 3. The Four Pillars of Autonomous Finance Execution
|
|
64
|
+
|
|
65
|
+
1. **Retrieval is Not Verification**: Finding a document or matching keywords is not legal verification. Real accounting requires validating evidence against connected systems of record (including live Zoho Books / SAP ERP readback) and authenticated tenant statutory vaults.
|
|
66
|
+
2. **Safe Tools Do Not Guarantee Safe Workflows**: An AI agent can call individually safe API tools and still coordinate an unauthorized or illegal transaction. Generative models coordinate investigations; deterministic code calculates statutory taxes and enforces ledger invariants (*Rule 11: Agreement with the Engine ≠ Agreement with the Law*).
|
|
67
|
+
3. **Preventing Silent Financial Drift**: Deterministic code computes numbers. RFC 8785 JSON Canonicalization Scheme (JCS) and SHA-256 bind calculation results to a verifiable fingerprint. The hash does not compute—it detects changes between calculation, human authorization, and execution. If the result no longer matches the fingerprint, the workflow halts.
|
|
68
|
+
4. **Testing Payment Boundaries Against Failure**: Single-use CAS leases prevent duplicate payments under concurrent races. Formal TLA+ modeling with the TLC Model Checker explored all 361 reachable states in our configured distributed model with 0 invariant violations and caught 4 injected defects.
|
|
69
|
+
|
|
20
70
|
---
|
|
21
71
|
|
|
22
|
-
##
|
|
72
|
+
## 4. Seven-Stage End-to-End AP Governance Lifecycle
|
|
23
73
|
|
|
24
74
|
Every financial transaction in MudraForge Adesha passes through seven sequential verification gates before any funds can move or any ledger can mutate:
|
|
25
75
|
|
|
26
76
|
```
|
|
27
|
-
1
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
77
|
+
Stage 1: Invoice Ingestion (IRP QR Code / PDF & Vendor Validation)
|
|
78
|
+
↓
|
|
79
|
+
Stage 2: OKF Rule Resolution (Sub-1ms Local Offline Lookup)
|
|
80
|
+
↓
|
|
81
|
+
Stage 3: Deterministic Statutory Computation (Excess Math & GST Unbundling)
|
|
82
|
+
↓
|
|
83
|
+
Stage 4: Cryptographic Payment Authorization Lease (Single-Use Atomic CAS Gate)
|
|
84
|
+
↓
|
|
85
|
+
Stage 5: Human-in-the-Loop Authority Harness (CFO Biometric Passkey / Mobile)
|
|
86
|
+
↓
|
|
87
|
+
Stage 6: Bank Rail Settlement (Host-to-Host Corporate RTGS / Sandbox Rail)
|
|
88
|
+
↓
|
|
89
|
+
Stage 7: General Ledger Balanced Double-Entry Writeback (ERP Equilibrium: ₹0.00 Discrepancy)
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Run this audited 7-stage AP simulation directly in your local terminal:
|
|
93
|
+
```bash
|
|
94
|
+
npm run example:trace
|
|
34
95
|
```
|
|
35
96
|
|
|
36
97
|
---
|
|
37
98
|
|
|
38
|
-
##
|
|
99
|
+
## 5. Cryptographic Single-Use Payment Authorization Leases
|
|
39
100
|
|
|
40
101
|
In Adesha, banking adapters (such as RazorpayX, Mercury, or host-to-host SFTP connections) operate within a **Zero-Trust Execution Boundary**.
|
|
41
102
|
|
|
@@ -64,7 +125,7 @@ A payment lease is cryptographically bound to seven immutable parameters:
|
|
|
64
125
|
|
|
65
126
|
---
|
|
66
127
|
|
|
67
|
-
##
|
|
128
|
+
## 6. Presentation Consistency Lock & Automated Prose Auditor
|
|
68
129
|
|
|
69
130
|
Generative language models regularly drop trailing zeros or swap figures when drafting summaries for human reviewers.
|
|
70
131
|
|
|
@@ -77,22 +138,20 @@ Adesha enforces a **Presentation Consistency Lock**:
|
|
|
77
138
|
|
|
78
139
|
---
|
|
79
140
|
|
|
80
|
-
##
|
|
81
|
-
|
|
82
|
-
### 1. Penny-Drop Verification
|
|
83
|
-
Before any vendor account can be bound to a payment lease, it must complete an automated automated penny-drop verification via NPCI/IMPS with a verified name-match score $\ge 95\%$.
|
|
141
|
+
## 7. OpenSSF Packaging vs. Full Security Assurance
|
|
84
142
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
Banking API credentials (API keys, OAuth client secrets, mTLS certificates) reside inside an isolated secret boundary accessible exclusively through a cryptographic signing module that demands an active, unconsumed `PaymentAuthorizationLease`.
|
|
143
|
+
In accordance with OpenSSF (Open Source Security Foundation) npm best practices:
|
|
144
|
+
- **Packaging Hygiene**: Zero runtime dependencies, offline-first execution, and `.npmrc` with `ignore-scripts=true` neutralize install-time supply chain attacks.
|
|
145
|
+
- **Cryptographic Non-Tampering**: SHA-256 Merkle root manifests certify byte-level distribution fidelity.
|
|
146
|
+
- **Epistemic Honesty**: These packaging strengths do not replace independent legal counsel, statutory audit certification, or runtime multi-region crash testing. Organizations must evaluate autonomous finance systems against end-to-end integration boundaries.
|
|
90
147
|
|
|
91
148
|
---
|
|
92
149
|
|
|
93
|
-
##
|
|
150
|
+
## 8. Commercial Engagement & Enterprise Pilots
|
|
151
|
+
|
|
152
|
+
The full Adesha Autonomous Governance Runtime is delivered as a managed enterprise deployment integrated with your corporate ERP (Zoho Books, SAP S/4HANA, NetSuite) and banking partners.
|
|
94
153
|
|
|
95
|
-
|
|
154
|
+
To evaluate Adesha in read-only shadow mode against historical accounts payable records, review the [Supervised Shadow Pilot Evaluation Guide](./PILOT_EVALUATION_GUIDE.md).
|
|
96
155
|
|
|
97
156
|
For enterprise architecture discussions, pilot deployments, or API keys:
|
|
98
157
|
- **Email**: [hello@mudraforge.in](mailto:hello@mudraforge.in) or [support@mudraforge.in](mailto:support@mudraforge.in)
|
|
@@ -106,7 +106,7 @@ Rather than making unprovable claims of "zero hallucination", the MudraForge pro
|
|
|
106
106
|
|
|
107
107
|
| Artifact | Primary Consumer | Content Mandate | Operational Role |
|
|
108
108
|
|---|---|---|---|
|
|
109
|
-
| [`section.json`](
|
|
109
|
+
| [`section.json`](../okf/direct_tax/tds_goods_194q/section.json) | **Deterministic Engine Runtime** | Typed numbers, effective dates, boolean applicability conditions, and threshold formulas. | Machine execution on CPU. Prevents mathematical drift, rate confusion, and arithmetic errors. |
|
|
110
110
|
| `circulars/*.md` | **LLM Agents & Human Auditors** | Semantic legal context, executive interpretations, judicial precedents, and YAML frontmatter. | Cross-domain reasoning, statutory crosswalks, exception argumentation, and human auditability. |
|
|
111
111
|
| `forms/*` | **Compliance & Reporting Systems** | Machine-evaluable JSON schemas and Markdown return checklists. | Return preparation, ERP writeback payloads, and statutory disclosure schedules. |
|
|
112
112
|
|
|
@@ -141,7 +141,7 @@ In `section.json`, the legal instrument itself must be fully described so that s
|
|
|
141
141
|
```
|
|
142
142
|
|
|
143
143
|
### 4.3 Domain Whitelist Enforcement
|
|
144
|
-
All citation URLs must belong to the regulatory domain whitelist defined in [`scripts/verify_citation_links.js`](
|
|
144
|
+
All citation URLs must belong to the regulatory domain whitelist defined in [`scripts/verify_citation_links.js`](../scripts/verify_citation_links.js). Citations to commercial blogs, paywalled content aggregators, or unvetted third-party websites are prohibited.
|
|
145
145
|
|
|
146
146
|
### 4.4 Protocol Security & TLS Trust
|
|
147
147
|
- **100% HTTPS Enforcement**: Insecure `http://` links are rejected by the linter.
|
|
@@ -213,13 +213,13 @@ npm run manifest:check
|
|
|
213
213
|
Record the resulting root hash in release notes.
|
|
214
214
|
|
|
215
215
|
### Step 8: Client Pinning & Trust Anchor Verification
|
|
216
|
-
1. Add the updated root digest to `PINNED_RELEASE_ROOTS` in [`src/index.js`](
|
|
216
|
+
1. Add the updated root digest to `PINNED_RELEASE_ROOTS` in [`src/index.js`](../src/index.js).
|
|
217
217
|
2. For remote edge synchronization, verify Ed25519 digital signature validation against the MudraForge Root Authority.
|
|
218
218
|
|
|
219
219
|
### Step 9: Dual Regression Testing
|
|
220
220
|
Execute both package unit tests and the core engine verification suite:
|
|
221
221
|
```powershell
|
|
222
|
-
# 1. Package Regression Suite (
|
|
222
|
+
# 1. Package Regression Suite (88 test suites)
|
|
223
223
|
npm run test
|
|
224
224
|
|
|
225
225
|
# 2. Engine Unified Test Runner (68 suites)
|
|
@@ -228,7 +228,7 @@ npm --prefix ../../mudraforge-sarvam test
|
|
|
228
228
|
# 3. Adesha Benchmark Runner (6 scenarios)
|
|
229
229
|
node ../../mudraforge-sarvam/tests/benchmarks/adesha_benchmark_challenge_01_runner.js
|
|
230
230
|
```
|
|
231
|
-
*Pass Criteria*: 100% passing across all
|
|
231
|
+
*Pass Criteria*: 100% passing across all 156 test suites and benchmark scenarios with 0 regressions.
|
|
232
232
|
|
|
233
233
|
### Step 10: SemVer Release & Distribution
|
|
234
234
|
1. Bump package version in `package.json` and synchronize `STATUTORY_CLIENT_VERSION` in `src/index.js`.
|
|
@@ -259,10 +259,10 @@ Claims of test passage and release integrity are substantiated by the following
|
|
|
259
259
|
|
|
260
260
|
| Verification Layer | Active Release Evidence | Location / Verification Command |
|
|
261
261
|
|---|---|---|
|
|
262
|
-
| **Cryptographic Root** | `sha256-
|
|
263
|
-
| **Citation Network Liveness** |
|
|
264
|
-
| **Statutory Schema Conformance** |
|
|
265
|
-
| **Package Regression** |
|
|
262
|
+
| **Cryptographic Root** | `sha256-4bbe36c3db841b833dd2bebbd6c1c5ed735498e7b20d1221c323ceb211529fe0` | `npm run manifest:check` across all 86 files |
|
|
263
|
+
| **Citation Network Liveness** | 76/76 passing citations across 5 regulatory domains (0 failures) | `node scripts/verify_citation_links.js --live` |
|
|
264
|
+
| **Statutory Schema Conformance** | 29/29 sections, 30 circulars, 27 forms passing OKF v0.2 linter | `npm run validate` |
|
|
265
|
+
| **Package Regression** | 88/88 test suites passing with 100% reproducible precision | `npm run test` in `packages/statutory` |
|
|
266
266
|
| **Engine Invariant Regression** | 68/68 test suites passing across governance runtime and TLA+ oracles | `npm test` in `mudraforge-sarvam` |
|
|
267
267
|
| **Adesha Benchmark Challenge 01** | 6/6 scenarios scored (Base 100/100, Variants A-E verified) | `node mudraforge-sarvam/tests/benchmarks/adesha_benchmark_challenge_01_runner.js` |
|
|
268
268
|
| **Live NPM Consumer** | Installed and verified live from registry in clean consumer | `node scratch/fresh_public_npm_consumer/test_live_npm_benchmark.js` |
|
|
@@ -273,14 +273,14 @@ Claims of test passage and release integrity are substantiated by the following
|
|
|
273
273
|
|
|
274
274
|
Before closing any maintenance task or cutting a new release, verify that each item is completed:
|
|
275
275
|
|
|
276
|
-
- [ ] All
|
|
276
|
+
- [ ] All 29 statutory provisions contain complete and valid `section.json` contracts.
|
|
277
277
|
- [ ] Every citation URL uses `https://` and resolves to an approved regulatory domain.
|
|
278
278
|
- [ ] `npm run citations` reports 0 defects and 0 unauthorized domains.
|
|
279
279
|
- [ ] `npm run validate` passes with 0 schema errors.
|
|
280
280
|
- [ ] `npm run conformance` passes 12/12 fixture tests.
|
|
281
|
-
- [ ] `npm run manifest:check` verifies all
|
|
281
|
+
- [ ] `npm run manifest:check` verifies all 86 files against SHA-256 digests.
|
|
282
282
|
- [ ] `PINNED_RELEASE_ROOTS` in `src/index.js` includes the active manifest root hash.
|
|
283
283
|
- [ ] Two-pass precision lookup correctly resolves single-digit sections (`8`, `9(3)`).
|
|
284
|
-
- [ ] All
|
|
284
|
+
- [ ] All 88 package tests and 68 engine regression suites pass with 0 failures.
|
|
285
285
|
- [ ] Stale reference scan returns zero matches for deprecated names or legacy domains.
|
|
286
286
|
- [ ] Version number in `package.json` exactly matches `STATUTORY_CLIENT_VERSION`.
|