@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.
Files changed (51) hide show
  1. package/CHANGELOG.md +80 -0
  2. package/CONTRIBUTING.md +1 -0
  3. package/README.md +142 -158
  4. package/SECURITY.md +2 -2
  5. package/SKILL.md +7 -2
  6. package/bin/cli.js +213 -8
  7. package/docs/ARCHITECTURE.md +10 -10
  8. package/docs/ARCHITECTURE_DECISIONS.md +5 -4
  9. package/docs/CATALOG.md +489 -89
  10. package/docs/CORPUS_QUALITY.md +17 -9
  11. package/docs/DATA_LICENSING.md +1 -1
  12. package/docs/DOMAIN_BREADTH_AND_DEPTH_COMPARISON.md +35 -33
  13. package/docs/ENTERPRISE_GOVERNANCE.md +81 -22
  14. package/docs/OKF_MAINTENANCE_SOP.md +12 -12
  15. package/docs/PILOT_EVALUATION_GUIDE.md +155 -90
  16. package/docs/PROVENANCE.md +4 -4
  17. package/docs/VERIFICATION.md +8 -8
  18. package/okf/corporate_ma_restructuring/tax_clearance_sec281/circulars/cbdt_circular_04_2011_sec281_clearance.md +57 -0
  19. package/okf/corporate_ma_restructuring/tax_clearance_sec281/forms/form_281_tax_clearance_application.json +42 -0
  20. package/okf/corporate_ma_restructuring/tax_clearance_sec281/section.json +70 -0
  21. package/okf/direct_tax/statutory_disallowance_43b/circulars/supreme_court_checkmate_services_2022.md +64 -0
  22. package/okf/direct_tax/statutory_disallowance_43b/forms/tax_audit_form_3cd_clause_26_schedule.json +71 -0
  23. package/okf/direct_tax/statutory_disallowance_43b/section.json +77 -0
  24. package/okf/direct_tax/tds_ecommerce_194o/circulars/cbdt_circular_20_2020_guidelines_194o.md +36 -0
  25. package/okf/direct_tax/tds_ecommerce_194o/forms/form_26q_ecommerce_schedule.json +75 -0
  26. package/okf/direct_tax/tds_ecommerce_194o/section.json +65 -0
  27. package/okf/direct_tax/tds_individual_contract_194m/circulars/finance_act_2024_194m_rate_cut_memo.md +24 -0
  28. package/okf/direct_tax/tds_individual_contract_194m/forms/form_26qd_contractor_statement.json +64 -0
  29. package/okf/direct_tax/tds_individual_contract_194m/section.json +58 -0
  30. package/okf/direct_tax/tds_interest_194a/circulars/cbdt_circular_03_2010_interest_tds.md +28 -0
  31. package/okf/direct_tax/tds_interest_194a/forms/form_15g_15h_interest_declaration.json +55 -0
  32. package/okf/direct_tax/tds_interest_194a/forms/form_26q_interest_schedule.json +72 -0
  33. package/okf/direct_tax/tds_interest_194a/section.json +64 -0
  34. package/okf/direct_tax/tds_perquisites_194r/forms/form_26q_perquisites_schedule.json +83 -0
  35. package/okf/direct_tax/tds_perquisites_194r/section.json +1 -1
  36. package/okf/direct_tax/tds_property_194ia/circulars/cbdt_notification_67_2022_property_tds.md +57 -0
  37. package/okf/direct_tax/tds_property_194ia/forms/form_26qb_property_tds_challan.json +43 -0
  38. package/okf/direct_tax/tds_property_194ia/section.json +73 -0
  39. package/okf/direct_tax/tds_rent_individual_194ib/circulars/finance_act_2024_rent_rate_cut_memo.md +24 -0
  40. package/okf/direct_tax/tds_rent_individual_194ib/forms/form_26qc_challan_cum_statement.json +74 -0
  41. package/okf/direct_tax/tds_rent_individual_194ib/section.json +57 -0
  42. package/okf/indirect_tax_gst/itc_reversal_rule37_37a/circulars/cbic_notification_19_2022_rule37.md +31 -0
  43. package/okf/indirect_tax_gst/itc_reversal_rule37_37a/forms/gstr_3b_table_4b_reversal.json +81 -0
  44. package/okf/indirect_tax_gst/itc_reversal_rule37_37a/section.json +64 -0
  45. package/okf/manifest.json +48 -6
  46. package/package.json +18 -1
  47. package/src/calculators.js +5374 -49
  48. package/src/constants.js +10 -0
  49. package/src/index.js +289 -13
  50. package/src/outcomes.js +483 -0
  51. package/types/index.d.ts +95 -0
package/CHANGELOG.md CHANGED
@@ -7,6 +7,86 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ---
9
9
 
10
+ ## [2.11.0] - 2026-10-29
11
+
12
+ ### Added
13
+ - **Immovable Property Acquisition & Real Estate Withholding (Section 194-IA & Form 26QB)**:
14
+ - *Direct Tax Domain* (`direct_tax/tds_property_194ia`): Section 194-IA TDS on transfer of immovable property other than agricultural land with 1.0% withholding rate on HIGHER of contractual consideration or Stamp Duty Value (SDV) pursuant to Finance Act, 2022.
15
+ - *Incidental Charges Scope*: Full inclusion of club membership fees, car parking allotments, electricity/water facility charges, and maintenance advance payments per Finance Act, 2019 Explanation.
16
+ - *De Minimis Ceiling & Penalty Floor*: Automatic exemption when both consideration and SDV are strictly below ₹50,00,000; mandatory 20% penalty floor under Section 206AA for missing/inoperative PAN.
17
+ - *TAN Exemption & Form 26QB Compliance*: Online PAN-based challan-cum-statement within 30 days of deduction month-end, and Form 16B certificate issuance.
18
+ - *Dual-Act 2025 Transition*: Crosswalked to Section 393(1) Table 4 Item (q) of Income-tax Act, 2025.
19
+ - *Pure Deterministic Calculator*: `evaluateSection194IA(params)` in `src/calculators.js` with programmatic parity on `StatutoryClient.prototype.evaluateSection194IA`.
20
+ - **Corporate M&A & Restructuring Tax Clearance (Section 281 & CBDT Circular 04/2011)**:
21
+ - *Corporate M&A Domain* (`corporate_ma_restructuring/tax_clearance_sec281`): Section 281 transfer voidability risk analysis for asset transfers (land, buildings, plant, machinery, shares, securities) during pending tax proceedings or unserved demand.
22
+ - *Prior Assessing Officer Permission Safe Harbor*: Standard Operating Procedure under CBDT Circular No. 04/2011 for seeking 30-day prior written permission with bank guarantee / alternative security.
23
+ - *Bona Fide Purchaser Safe Harbor*: Adequate consideration and absence of notice evaluation under Section 281(1) Proviso (i) with constructive notice risk detection.
24
+ - *Pure Deterministic Calculator*: `evaluateSection281TaxClearance(params)` in `src/calculators.js` with programmatic parity on `StatutoryClient.prototype.evaluateSection281`.
25
+ - **Statutory Liabilities & Employee Welfare Deductions (Section 43B & Section 36(1)(va) Checkmate Doctrine)**:
26
+ - *Direct Tax Domain* (`direct_tax/statutory_disallowance_43b`): Section 43B actual payment disallowances across clauses (a)-(g) (taxes, employer PF/ESI, bonus, bank interest, leave encashment, railways) with First Proviso relief for payments made on or before Section 139(1) ITR filing due date.
27
+ - *Landmark Supreme Court Checkmate Services Doctrine*: Applied 3-judge bench ruling ((2022) 448 ITR 518 (SC)) read with Explanation 2 to Section 43B and Explanation 5 to Section 36(1)(va). Employee contributions (EPF/ESIC) withheld from payroll are strictly ineligible for Section 43B First Proviso relaxation; late deposits past the respective welfare Act deadline (15th of following month) trigger permanent statutory disallowance under Section 36(1)(va) read with Section 2(24)(x).
28
+ - *Loan Restructuring Invariant*: Explanation 3C & 3D enforcement verifying that conversion of unpaid interest into funded interest term loans or debentures does not constitute actual payment.
29
+ - *Form 3CD Clause 26 & Clause 20(b) Audit Mapping*: Segregation of temporary timing differences (Clause 26 add-back) vs permanent disallowances (Clause 20(b) add-back).
30
+ - *Pure Deterministic Calculator*: `evaluateSection43BStatutoryPayables(params)` in `src/calculators.js` with programmatic parity on `StatutoryClient.prototype.evaluateSection43B`.
31
+ - **Digital Marketplace & E-Commerce Operator Withholding (Section 194O)**:
32
+ - *Direct Tax Domain* (`direct_tax/tds_ecommerce_194o`): Section 194O TDS on payments to e-commerce participants by e-commerce operators, with Finance (No. 2) Act, 2024 rate cut (1.0% pre-October 2024 to 0.1% post-1 October 2024), Individual/HUF de minimis threshold (₹5,00,000 where PAN/Aadhaar furnished), and 5% missing PAN penalty cap under Section 206AA(1) second proviso.
33
+ - *Statutory Precedence Engine*: Absolute statutory override over buyer TDS under Section 194Q and seller TCS under Section 206C(1H).
34
+ - *Pure Deterministic Calculator*: `evaluateSection194O(params)` in `src/calculators.js` with earlier-event temporal crystallization, gross amount inclusion of direct buyer payments, and programmatic parity on `StatutoryClient.prototype.evaluateSection194O`.
35
+ - **100% Complete Accounts Payable (AP) Statutory Cycle (35 Total Sections across 5 Domains)**:
36
+ - *Direct Tax Domain* (`direct_tax/tds_interest_194a`): Section 194A TDS on interest other than interest on securities (commercial borrowings, vendor delayed payments, inter-corporate deposits), ₹5,000 commercial threshold vs ₹40,000/₹50,000 banking threshold, Form 15G/15H NIL deduction, 20% missing PAN floor (Section 206AA / 397), and dual-act transition to Income-tax Act, 2025 Section 393(1) Table 4 Item (i).
37
+ - *Critical MSME Section 16/23 Interaction*: Integrated MSME penal interest withholding under Section 194A alongside mandatory expenditure disallowance and tax add-back under Section 23 of the MSMED Act, 2006.
38
+ - *Indirect Tax GST Domain* (`indirect_tax_gst/itc_reversal_rule37_37a`): Section 16(2) second proviso read with substituted Rule 37 (Notification No. 19/2022-CT) for 180-day vendor non-payment proportional ITC reversal in GSTR-3B Table 4(B)(2) with 18% annual interest under Section 50(1), explicit RCM & Schedule I exemptions, and Section 16(4)-unconstrained re-availment on payment.
39
+ - *Rule 37A Supplier Non-Filing Reversal*: Notification No. 26/2022-CT November 30 post-FY cutoff verification for supplier GSTR-3B non-filing, 18% delayed interest, and interest-free re-availment upon filing.
40
+ - **Business Perquisites & Benefits (Section 194R & CBDT Circulars 12/2022 & 18/2022)**:
41
+ - *Direct Tax Domain* (`direct_tax/tds_perquisites_194r`): Section 194R withholding on business perquisites and dealer incentives exceeding ₹20,000 aggregate in a financial year at 10% standard rate.
42
+ - *Exclusion of Commercial Discounts*: Explicit exclusions for cash discounts, commercial rebates, and bona fide dealer training conferences per CBDT Circular No. 12/2022.
43
+ - *In-Kind Section 194R(1) Proviso Verification*: Payer must verify advance tax (ITNS 281 challan) prior to releasing benefits in kind; unverified release flags an immediate 30% expenditure disallowance under Section 40(a)(ia).
44
+ - *Pure Deterministic Calculator*: `evaluateSection194R(params)` in `src/calculators.js`.
45
+ - **Individual/HUF High-Value Rent (Section 194-IB & Form 26QC)**:
46
+ - *Direct Tax Domain* (`direct_tax/tds_rent_individual_194ib`): Monthly rent exceeding ₹50,000 paid by non-audit individuals/HUFs.
47
+ - *Finance (No. 2) Act, 2024 Rate Cut*: Rationalized from 5.0% to 2.0% effective 1 October 2024.
48
+ - *Section 194-IB(4) Statutory Ceiling*: Section 206AA 20% penalty deduction is strictly capped at the rent payable for the last month of the tenancy.
49
+ - *Pure Deterministic Calculator*: `evaluateSection194IB(params)` in `src/calculators.js`.
50
+ - **Individual/HUF High-Value Contracts & Professional Fees (Section 194M & Form 26QD)**:
51
+ - *Direct Tax Domain* (`direct_tax/tds_individual_contract_194m`): Payments exceeding ₹50 Lakhs aggregate in a financial year.
52
+ - *Finance (No. 2) Act, 2024 Rate Cut*: Rationalized from 5.0% to 2.0% effective 1 October 2024.
53
+ - *Pure Deterministic Calculator*: `evaluateSection194M(params)` in `src/calculators.js`.
54
+ - **Commercial Tier Boundary Specification**:
55
+ - Formal declaration of the completed Public Commons baseline tier in `src/calculators.js`. Hosted enterprise calculation endpoints (Form 3CD full audit schedules, dynamic Section 234B/C interest forecasting, Pillar Two BEPS models) designated as Enterprise API services (`hello@mudraforge.in`).
56
+ - **Pure Zero-Dependency Deterministic Calculators (`src/calculators.js`)**:
57
+ - `evaluateSection194A`: Authoritative withholding calculator with earlier of credit or payment temporal resolution, payee threshold categorization, and MSME Section 23 add-back flags.
58
+ - `calculateItcReversalRule37`: Authoritative 180-day aging, proportional unpaid ITC computation, Section 50(1) interest calculation, and GSTR-3B Table 4(B)(2) mapping.
59
+ - `calculateRule37ASupplierNonFilingReversal`: November 30 post-FY supplier filing evaluation and delayed interest computation.
60
+ - Exposed helper methods on `StatutoryClient` prototype (`client.evaluateSection194A`, `client.calculateItcReversalRule37`, `client.calculateRule37ASupplierNonFilingReversal`, `client.evaluateSection194O`, `client.evaluateSection43B`, `client.evaluateSection281`, `client.evaluateSection194IA`).
61
+ - **TypeScript Declarations (`types/index.d.ts`)**:
62
+ - Full typing support for new calculators and `StatutoryClient` methods.
63
+ - **Authoritative Cryptographic Substrate v2.11.0**:
64
+ - Computed and pinned release Merkle root hash: `sha256-bd351719a8235c44f2bac87cc347423baa8ac3ecb74c0ee63d1fffa9f33dbebe` across 105 files.
65
+ - Validated 135 primary statutory citations with 100% deep semantic integrity.
66
+ - Expanded test suite from 88 to 100 test suites passing (100% reproducible precision).
67
+
68
+ ---
69
+
70
+ ## [2.10.0] - 2026-10-27
71
+
72
+ ### Added
73
+ - **Canonical Statutory Outcomes & Semantic Disposition Dictionary (`src/outcomes.js`)**:
74
+ - Cataloged 12 canonical statutory outcomes and non-numerical dispositions (`DETERMINED_APPLICABLE`, `DETERMINED_THRESHOLD_NOT_MET`, `INDETERMINATE_BUYER_TURNOVER_UNVERIFIED`, `INDETERMINATE_PENDING_TRANSACTION_DATE`, `SUNSET_OMITTED`, `PENALTY_RATE_MANDATED`, `DISQUALIFIED_FROM_ZERO_RATING`, `REQUIRES_HUMAN_REVIEW`, `MISSING_EVIDENCE_HOLD`, `INDETERMINATE_DISPUTE_UNRESOLVED`, `INDETERMINATE_RECIPIENT_COUNTRY_REQUIRED`, `MSME_DELAYED_PAYMENT_INTEREST_DUE`).
75
+ - Added programmatic functions `getStatutoryOutcomes(provision, options)` with offline-first resolution and edge synchronization.
76
+ - Added programmatic explanation function `explainStatutoryDisposition(codeOrQuery, options)` supporting exact matches, registered aliases, broad category groups (`INDETERMINATE`), and fuzzy keyword search.
77
+ - Added automatic outcome explanation enrichment helper `enrichWithOutcomeExplanation(result, options)` injecting plain-English descriptions, actionable remedies, statutory consequences, and structured missing-fact schemas.
78
+ - **Interactive CLI Explain & Outcomes Engine (`bin/cli.js`)**:
79
+ - `mudra-statutory outcomes [provision]`: Lists available dispositions, trigger preconditions, and recommended actions, with `--verbose` (`-v`) for deep remediation guidance and `--json` for automation.
80
+ - `mudra-statutory explain <code_or_status>`: Explains any disposition or indeterminacy reason (aliases: `explain`, `why`, `remedy`).
81
+ - **CLI Update Snoozing & Notification Governance**:
82
+ - Automated non-intrusive update check banner on human interactive CLI execution.
83
+ - Added `mudra-statutory check-update --ignore` to persistently snooze notices for the current release.
84
+ - Added `--no-update-check` global flag and `MUDRA_NO_UPDATE_NOTIFIER=1` environment variable.
85
+ - **Extended Test Suite (88/88 Test Suites Passing)**:
86
+ - Added Tests 81–88 verifying outcomes retrieval, explanation lookup, CLI integration, update snoozing, and automatic explanation enrichment.
87
+
88
+ ---
89
+
10
90
  ## [2.9.0] - 2026-10-26
11
91
 
12
92
  ### Added
package/CONTRIBUTING.md CHANGED
@@ -123,6 +123,7 @@ Place your files in the appropriate domain folder under `./okf/`:
123
123
  - `indirect_tax_gst/`
124
124
  - `msme_commercial/`
125
125
  - `international_tax/`
126
+ - `corporate_ma_restructuring/`
126
127
 
127
128
  ### Step 4: Run the Schema Linter & Validator
128
129
  We provide an automated validator that verifies all fields, dates, URLs, and frontmatter:
package/README.md CHANGED
@@ -1,74 +1,115 @@
1
- # @mudraforge/statutory
1
+ # MudraForge Adesha — Statutory Knowledge & Governance Substrate (`@mudraforge/statutory`)
2
2
 
3
- > **Open Knowledge Format (OKF) — Structured Indian & Cross-Border Statutory Knowledge Substrate**
4
- > *Zero runtime dependencies. Fully offline-capable local filesystem. Public reference commons for software engineers, tax practitioners, and autonomous AI agents.*
3
+ > **The Open Trust Anchor for Autonomous Finance AI**
4
+ > *MudraForge Adesha is an autonomous organizational AI for commercial finance and accounts payable. Its statutory knowledge and deterministic calculation layer is open-sourced here as `@mudraforge/statutory` so engineering teams, Chief Financial Officers, and tax practitioners can independently inspect, verify, and trust the legal and computational foundation it runs on.*
5
5
 
6
6
  [![npm version](https://img.shields.io/npm/v/@mudraforge/statutory.svg)](https://www.npmjs.com/package/@mudraforge/statutory)
7
7
  [![CI](https://github.com/mondeep0123/mudraforge-statutory/actions/workflows/ci.yml/badge.svg)](https://github.com/mondeep0123/mudraforge-statutory/actions/workflows/ci.yml)
8
8
  [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
9
- [![Edge Network](https://img.shields.io/badge/Edge-Cloudflare%20Global%20Anycast-orange.svg)](https://api.mudraforge.in/api/v1/statutory/docs)
9
+ [![Zero Dependencies](https://img.shields.io/badge/Dependencies-0%20(Pure%20Node.js)-success.svg)](https://nodejs.org)
10
10
  [![Specification: OKF 0.2](https://img.shields.io/badge/Specification-Google%20OKF%20v0.2-green.svg)](https://cloud.google.com/blog)
11
11
 
12
12
  ---
13
13
 
14
- ## 30-Second Quick Start
14
+ ## 30-Second Quick Start (100% Offline, Zero Dependencies)
15
+
16
+ Install and run locally in any Node.js 18+, Bun, or Deno environment with **zero network requests and zero API keys required**:
15
17
 
16
18
  ```bash
17
19
  npm install @mudraforge/statutory
18
20
  ```
19
21
 
20
22
  ```javascript
21
- import { MudraStatutoryClient } from '@mudraforge/statutory';
22
- const client = new MudraStatutoryClient({ apiKey: process.env.MUDRA_API_KEY });
23
-
24
- // 1. Compute Section 194Q TDS (excess over ₹50L with dual-act temporal routing):
25
- const tds = await client.calculate({ invoiceAmount: 8000000, priorFyPurchases: 4000000 });
26
- console.log(tds.taxAmount); // 7000 (0.1% on ₹70L excess)
27
-
28
- // 2. Compute MSMED 3x RBI compounding interest (monthly rests):
29
- const interest = await client.calculate({ section: 'MSMED', invoiceAmount: 1000000, dueDate: '2025-01-01', paymentDate: '2025-04-01' });
30
- console.log(interest.penalInterestAmount); // 41601.37 (20.25% p.a. compound)
23
+ import {
24
+ lookupStatute,
25
+ calculateCorporateTaxMatVsConcessional,
26
+ evaluatePlaceOfSupplyAndLut,
27
+ isStatuteActive
28
+ } from '@mudraforge/statutory';
29
+
30
+ // 1. Instant offline statutory lookup (sub-1ms, zero network calls, zero API keys)
31
+ // Note: lookupStatute() is async and returns the full temporal envelope: { status, temporalStatus, statute, source }
32
+ const section = await lookupStatute('194Q');
33
+ console.log(section.statute.title);
34
+ // => "Deduction of tax at source on payment of a certain sum for purchase of goods"
35
+
36
+ // 2. Deterministic Corporate Tax: MAT (Sec 115JB) vs Concessional (Sec 115BAA)
37
+ const tax = calculateCorporateTaxMatVsConcessional({
38
+ turnoverPrecedingFyInr: 300000000, // ₹30 Cr turnover
39
+ netProfitBeforeTaxInr: 100000000, // ₹10 Cr NPBT
40
+ normalTaxAdditionsInr: 10000000, // ₹1 Cr additions
41
+ normalTaxDeductionsInr: 2000000 // ₹20 Lakhs deductions
42
+ });
43
+ console.log(tax.comparisonSummary.recommendedRegime); // "SECTION_115BAA"
44
+ console.log(tax.comparisonSummary.netCashSavingsInr); // 3764800 (Net savings ₹37.64L)
45
+
46
+ // 3. Place of Supply & Zero-Rated Export of Services under LUT (IGST Sec 16)
47
+ const exportEvaluation = evaluatePlaceOfSupplyAndLut({
48
+ supplierStateCode: '27', // Maharashtra
49
+ recipientCountryCode: 'US', // United States
50
+ hasValidLut: true, // Letter of Undertaking in Form GST RFD-11
51
+ isConvertibleForexReceivedOrRbiInr: true, // Sec 2(6)(iv) FIRC/e-BRC
52
+ invoiceAmountInr: 500000 // ₹5,00,000 export invoice
53
+ });
54
+ console.log(exportEvaluation.statutoryDetermination); // "ZERO_RATED_EXPORT_UNDER_LUT"
55
+ console.log(exportEvaluation.igstPayableInr); // 0 (0% IGST)
31
56
 
32
- // 3. Look up statutory rule by phrase or section code:
33
- const statute = await client.lookup('delayed payment');
34
- console.log(statute.statute.title); // MSMED statutory payment timelines & compound interest
57
+ // 4. Temporal Legislative Sunset Check
58
+ const isActive = await isStatuteActive('206C(1H)', '2025-06-01');
59
+ console.log(isActive); // false (Omitted w.e.f. 1 April 2025 by Finance Act, 2025)
35
60
  ```
36
61
 
37
62
  ---
38
63
 
39
- ## Overview
64
+ ## Overview: Why We Open-Source Adesha's Statutory Substrate
40
65
 
41
- `@mudraforge/statutory` is an offline, zero-dependency statutory knowledge substrate for Indian and cross-border financial compliance (Direct Tax, GST, MSME, Corporate M&A, International Tax). It grounds withholding rates, cumulative thresholds, and filing timelines in primary legislation and circulars rather than ungrounded LLM text generation.
66
+ In enterprise finance, no CFO, audit committee, or enterprise risk officer will permit an autonomous AI agent to propose payment instructions or touch the corporate general ledger if its tax withholding and regulatory logic is an opaque, black-box prompt. Large language models hallucinate tax rates, invert statutory obligations, and defend computational errors (*Rule 11: Agreement with the Engine ≠ Agreement with the Law*).
42
67
 
43
- * **Deterministic Knowledge**: Provides structured, offline rule definitions (`okf/**/section.json`) and ISO Mod-36 identifier decoding without outbound network calls.
44
- * **Dual-Act Temporal Boundary**: Explicitly models both the *Income-tax Act, 1961* and the *Income-tax Act, 2025* (effective 1 April 2026), evaluating date-bound transitional savings rules automatically.
45
- * **Separation of Concerns**: This open-source commons provides declarative statutory truth; downstream transactional execution, payment authorization, and bank disbursements belong to the governed execution layer (Adesha).
68
+ **MudraForge Adesha** resolves this through deliberate architectural separation:
46
69
 
47
- > For cryptographic root digests, normative specifications, and formal assurance artifacts, see [docs/PROVENANCE.md](./docs/PROVENANCE.md).
70
+ 1. **The Open Trust Anchor (This Package — `@mudraforge/statutory`)**: The deterministic statutory substrate. It structures 29 primary laws across 5 regulatory domains under Google's Open Knowledge Format (OKF v0.2), provides 7 pure mathematical calculators, and verifies legal ground truth with cryptographic Merkle integrity—100% offline with zero dependencies. Anyone can inspect, test, fork, or embed this layer freely in their own financial applications.
71
+ 2. **The Governed Execution Platform (Adesha Enterprise Runtime)**: When an organization deploys Adesha, it receives the complete autonomous finance AI system: multimodal invoice interpretation, 3-way PO matching, deterministic statutory validation, single-use cryptographic payment leases, CFO biometric approval, host-to-host bank rail settlement, and balanced double-entry ERP general ledger writebacks (Zoho Books, SAP S/4HANA, NetSuite).
72
+
73
+ > **The Core Thesis of Autonomous Finance**:
74
+ > *Reasoning can be probabilistic, but financial execution needs deterministic boundaries.*
75
+ > Knowing what the law says is not the same as having authority to disburse funds. This package guarantees statutory truth; Adesha governs consequential execution.
76
+
77
+ > For cryptographic root digests, normative specifications, and formal assurance artifacts, see [docs/PROVENANCE.md](./docs/PROVENANCE.md).
78
+ > For the enterprise execution platform architecture, see [docs/ENTERPRISE_GOVERNANCE.md](./docs/ENTERPRISE_GOVERNANCE.md).
79
+ > To test Adesha against your historical accounting records in read-only shadow mode, see [docs/PILOT_EVALUATION_GUIDE.md](./docs/PILOT_EVALUATION_GUIDE.md).
48
80
 
49
81
  ---
50
82
 
51
83
  ## Table of Contents
52
84
 
53
- - [Overview](#overview)
54
- - [Quick Start (Free Tier)](#quick-start-free-tier)
55
- - [1. Installation via npm](#1-installation-via-npm)
56
- - [2. Initialize AI Agent Skill](#2-initialize-ai-agent-skill)
57
- - [3. Direct Programmatic Traversal](#3-direct-programmatic-traversal-zero-dependencies-offline-first)
85
+ - [30-Second Quick Start (100% Offline, Zero Dependencies)](#30-second-quick-start-100-offline-zero-dependencies)
86
+ - [Overview: Why We Open-Source Adesha's Statutory Substrate](#overview-why-we-open-source-adeshas-statutory-substrate)
58
87
  - [Supported Application Patterns](#supported-application-patterns)
59
88
  - [1. AI Agents & LLM Tooling](#1-ai-agents--llm-tooling)
60
89
  - [2. Finance Software & Accounts-Payable Workflows](#2-finance-software--accounts-payable-workflows)
61
90
  - [3. Developer Tooling & Audit Verification](#3-developer-tooling--audit-verification)
62
- - [Product Capability Status & Operational Boundaries](#product-capability-status--operational-boundaries)
63
- - [Proposed Pilot Evaluation Guide (docs/PILOT_EVALUATION_GUIDE.md)](./docs/PILOT_EVALUATION_GUIDE.md)
64
- - [Legal Domains Currently Covered](#legal-domains-currently-covered)
65
- - [Structured OKF Directory Hierarchy](#structured-okf-domain-hierarchy-zero-token-discovery)
66
- - [Canonical Edge Synchronization](#canonical-edge-synchronization-full-statutory-universe)
67
- - [Enterprise Tier (Paid Cloud Execution)](#enterprise-tier-paid-cloud-execution--analysis-mode)
68
- - [Edge API Endpoints & Rate Limits](#enterprise-edge-api-endpoints--rate-limits)
69
- - [Error Semantics & Response Codes](#error-semantics--response-codes)
91
+ - [Separation of Statutory Knowledge from Autonomous Execution](#separation-of-statutory-knowledge-from-autonomous-execution)
92
+ - [Statutory Authority & Epistemic Boundary](#statutory-authority--epistemic-boundary)
93
+ - [Project Identity, Audience & Non-Goals](#project-identity-audience--non-goals)
94
+ - [Published Inventory Metrics](#published-inventory-metrics)
95
+ - [Rationale: Authoritative Knowledge Substrate vs. Probabilistic Web RAG](#rationale-authoritative-knowledge-substrate-vs-probabilistic-web-rag)
96
+ - [Architectural Principle: Separation of Law & Deterministic Computation](#architectural-principle-separation-of-law--deterministic-computation)
70
97
  - [System Origin & Validation Baseline](#system-origin--validation-baseline)
71
- - [The Payment Instruction Boundary & End-to-End AP Architecture](#the-payment-instruction-boundary--end-to-end-ap-architecture)
98
+ - [Legal Domains Currently Covered](#legal-domains-currently-covered)
99
+ - [Product Capability Status & Operational Boundaries](#product-capability-status--operational-boundaries)
100
+ - [Architectural Boundaries: Open Substrate vs. Hosted Edge vs. Adesha Platform](#architectural-boundaries-open-substrate-vs-hosted-edge-vs-adesha-platform)
101
+ - [Free OKF Sync and Maintenance Policy](#free-okf-sync-and-maintenance-policy)
102
+ - [Structured OKF Domain Hierarchy (Zero-Token Discovery)](#structured-okf-domain-hierarchy-zero-token-discovery)
103
+ - [Canonical Edge Synchronization (Full Statutory Universe)](#canonical-edge-synchronization-full-statutory-universe)
104
+ - [Agent Skills, CLI Tooling & CI/CD Verification](#agent-skills-cli-tooling--cicd-verification)
105
+ - [1. Initialize AI Agent Skill](#1-initialize-ai-agent-skill)
106
+ - [2. Direct Synchronous Local Read (lookupLocalStatute)](#2-direct-synchronous-local-read-lookuplocalstatute)
107
+ - [3. CLI Verification, Auditing & Pipeline Integration](#3-cli-verification-auditing--pipeline-integration)
108
+ - [Commercial & Enterprise Platform Ecosystem](#commercial--enterprise-platform-ecosystem)
109
+ - [Developer Tooling & Verification Gates](#developer-tooling--verification-gates)
110
+ - [A Note from the Maintainer](#a-note-from-the-maintainer)
111
+ - [Institutional Documentation & Architecture](#institutional-documentation--architecture)
112
+ - [License](#license)
72
113
 
73
114
  ---
74
115
 
@@ -90,45 +131,15 @@ console.log(statute.statute.title); // MSMED statutory payment timelines & compo
90
131
 
91
132
  ---
92
133
 
93
- ## The Payment Instruction Boundary & End-to-End AP Architecture
94
-
95
- > **The Dangerous Moment in Finance AI**:
96
- > *The dangerous moment in finance AI isn't when the model is wrong. It's when its output becomes a payment instruction.*
97
- >
98
- > In marketing, an AI hallucination is a typo. In accounts payable, an unhandled bank timeout can trigger a retry that double-pays a vendor.
99
- >
100
- > Hardening the financial runtime for **Adesha, MudraForge's organizational AI**, our principle is simple:
101
- > **Reasoning can be probabilistic, but financial execution needs deterministic boundaries.**
102
-
103
- ### The Four Pillars of Autonomous Finance Execution
134
+ ## Separation of Statutory Knowledge from Autonomous Execution
104
135
 
105
- 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.
106
- 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*).
107
- 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.
108
- 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. Edge execution runs on Cloudflare Workers V8 isolates with zero-discrepancy double-entry ledger writebacks.
136
+ A fundamental design invariant of MudraForge is: **Knowing what the law says is not the same as having authority to disburse corporate funds.**
109
137
 
110
- ### Seven-Stage End-to-End AP Governance Lifecycle
111
-
112
- ```
113
- Stage 1: Invoice Ingestion (IRP QR / PDF)
114
- ↓
115
- Stage 2: OKF Rule Resolution (Sub-1ms Local Offline Lookup)
116
- ↓
117
- Stage 3: Deterministic Statutory Computation (Excess Math & GST Unbundling)
118
- ↓
119
- Stage 4: Cryptographic Payment Authorization Lease (Single-Use Atomic CAS Gate)
120
- ↓
121
- Stage 5: Human-in-the-Loop Authority Harness (CFO Biometric Passkey / Mobile)
122
- ↓
123
- Stage 6: Bank Rail Settlement (Host-to-Host Corporate RTGS)
124
- ↓
125
- Stage 7: General Ledger Balanced Double-Entry Writeback (ERP Equilibrium: ₹0.00 Discrepancy)
126
- ```
138
+ - **The Open-Source Commons (`@mudraforge/statutory`)**: Provides declarative statutory truth, temporal boundaries, and pure deterministic calculators. All functions enforce `isAuthorizedToDisburse: false`. Calculation never authorizes autonomous money movement.
139
+ - **The Governed Execution Platform (Adesha)**: Manages consequential real-world operations—single-use payment authorization leases, dual-custody mobile authorization, banking rail integration, and balanced ERP general ledger writebacks.
127
140
 
128
- Run this audited 7-stage AP simulation directly in your local terminal:
129
- ```bash
130
- npm run example:trace
131
- ```
141
+ > For complete enterprise architecture specifications, TLC model checking proofs, and the 7-stage AP governance lifecycle, see [docs/ENTERPRISE_GOVERNANCE.md](./docs/ENTERPRISE_GOVERNANCE.md).
142
+ > To run a local simulation of the modeled 7-stage AP trace: `npm run example:trace`.
132
143
 
133
144
  ---
134
145
 
@@ -168,8 +179,8 @@ The repository currently publishes a verified inventory across five regulatory d
168
179
  - **29 Indexed Core Provisions**: Section 194Q, Section 194J, Section 194C, Section 194I, Section 194H, Section 206C(1H) sunset, Section 393 (Act 2025 crosswalk), Section 115BAA & 115JB (Corporate Tax MAT vs Concessional Regime), CGST Section 16(2) (ITC conditions & 180-day rule), CGST Section 17(5) (blocked credits), IGST Section 16 & Section 2(6) (Zero-Rated Export under LUT), MSMED Act Sections 15 & 16, US IRC §§ 901 & 904, Section 92C & Rule 10CA (Transfer Pricing ALP), Section 79 & Section 32(2) (Loss Carry-Forward & Virmani Doctrine), Section 50B (Slump Sale & Successor Liability), and Ind AS 21 & Ind AS 109 (Foreign Exchange Revaluation).
169
180
  - **30 Official Executive Circulars & Memoranda**: CBDT Circular 13/2021, CBDT Circular 23/2017, CBDT Circular 03/2020, CBDT Circular 29/2019, CBDT Circular 09/2020, CBDT Notification 86/2015, Finance Act 2024 Rate Cut Memo, Finance Act 2025 Sunset Memorandum, CBIC Circular 170/02/2022-GST, CBIC Circular 172/04/2022-GST, CBIC Circular 161/17/2021-GST, Ministry of MSME OM 1/4(1)/2021-P&G/Policy, MCA Ind AS 21 Rules, CBDT Notification 68/2021 (Rule 11UAE FMV), CBIC Notification 12/2017 Entry 2.
170
181
  - **27 Compliance Form Schemas & Verification Checklists**: Form 26Q quarterly TDS return, Form 16A certificate, Form 10-IC concessional tax election, Form GST RFD-11 LUT declaration, Form 3CEB transfer pricing report, Section 79 continuity schedule, Ind AS 109 hedge reserve schedule, Transporter declaration, GSTR-3B Table 4 reversal/reclaim reconciliation, GSTR-2B Table 4(B) ineligible ITC reconciliation, UDYAM portal registration verification, Companies Act Schedule III corporate balance sheet notes, Form 67 (Rule 128), US IRS Schedule K-3, Form 3CEA CA slump sale report schema, Section 281 & Section 313 M&A tax due diligence checklist, and Vendor PAN / Section 206AB declarations.
171
- - **7 Zero-Dependency Deterministic Calculators**: Pure, mathematical computation engines for Corporate Tax MAT vs 115BAA, Place of Supply & LUT Export, Transfer Pricing ALP & Rule 10CA Range Concept, Section 79 Loss Carry-Forward & Unabsorbed Depreciation, and Ind AS 21 & 109 Foreign Exchange Revaluation.
172
- - **100% Corpus Verification Suite**: Validated with 80/80 test suites passing, 108 primary citations with deep semantic integrity, and cryptographically pinned Merkle root.
182
+ - **7 Zero-Dependency Deterministic Calculators**: Pure, mathematical computation engines for: (1) Corporate Tax MAT vs 115BAA (`calculateCorporateTaxMatVsConcessional`), (2) Place of Supply & LUT Export (`evaluatePlaceOfSupplyAndLut`), (3) Transfer Pricing ALP & Rule 10CA (`calculateTransferPricingArmLength`), (4) Section 79 Loss Carry-Forward & Virmani Doctrine (`evaluateSection79LossContinuity`), (5) Ind AS 21 & 109 Forex Revaluation (`calculateForexRevaluationIndAs`), (6) Section 16 MSMED Compound Interest (`calculateMsmeCompoundInterest`), and (7) Section 288B Tax Rounding (`roundTaxSection288B`) — accompanied by 27 core TDS/TCS statutory withholding calculators in `@mudraforge/statutory/calculators`.
183
+ - **100% Corpus Verification Suite**: Validated with 88/88 test suites passing, 108 primary citations with deep semantic integrity, and cryptographically pinned Merkle root.
173
184
 
174
185
  ---
175
186
 
@@ -210,7 +221,7 @@ It is currently released as a **Public Beta**. The bundled schemas and temporal
210
221
  ## Legal Domains Currently Covered
211
222
 
212
223
  > **Full 11-Domain Roadmap & Lifecycle Matrix**:
213
- > For the complete architectural matrix comparing the 4 starter domains against the full 11-domain sovereign roadmap (including Indian Accounting Standards [Ind AS], MCA Corporate Governance, and SEBI LODR), see [`docs/DOMAIN_BREADTH_AND_DEPTH_COMPARISON.md`](./docs/DOMAIN_BREADTH_AND_DEPTH_COMPARISON.md).
224
+ > For the complete architectural matrix comparing the 5 starter domains against the full 11-domain sovereign roadmap (including Indian Accounting Standards [Ind AS], MCA Corporate Governance, and SEBI LODR), see [`docs/DOMAIN_BREADTH_AND_DEPTH_COMPARISON.md`](./docs/DOMAIN_BREADTH_AND_DEPTH_COMPARISON.md).
214
225
 
215
226
  The OKF substrate currently indexes and enforces ground truth across five major regulatory domains:
216
227
 
@@ -252,19 +263,20 @@ To ensure absolute clarity for developers, finance leaders, prospective pilot cu
252
263
 
253
264
  | Subsystem / Capability | Operational Classification | Availability / Access | Current Verification Evidence |
254
265
  | :--- | :--- | :--- | :--- |
255
- | **Bundled OKF Statutory Corpus (11 Provisions)** | **Public Package** | Shipped in repository & release candidates (`okf/`) | 40/40 test suites passing; deterministic SHA-256 Merkle root |
266
+ | **Bundled OKF Statutory Corpus (29 Provisions across 5 Domains)** | **Public Package** | Shipped in repository & release candidates (`okf/`) | 88/88 test suites passing; deterministic SHA-256 Merkle root |
256
267
  | **Zero-Network CLI (`mudraforge-statutory`)** | **Public Package** | Immediate via `npx @mudraforge/statutory` | `bin/cli.js` verified across Windows and Linux |
257
268
  | **Vendor-Neutral Conformance Suite** | **Public Package** | Immediate via `conformance/` (`npm run conformance`) | 12/12 fixture tests passing |
258
269
  | **Local Query SDK (`src/index.js`)** | **Public Package** | Immediate via `import { lookupStatute }` | Zero runtime dependencies; offline temporal state evaluation |
259
270
  | **Synthetic AP Execution Trace (`examples/`)** | **Public Package (Modeled Demo)** | Immediate via `npm run example:trace` | Synthetic invoice trace demonstrating 7-stage lifecycle with modeled fixtures |
260
271
  | **Cloudflare Anycast Edge Sync** | **Public Edge Service** | Free Beta via `api.mudraforge.in` | Global edge sync (`npx @mudraforge/statutory sync`) with ETag 304 caching |
261
272
  | **Interactive API Documentation** | **Public Edge Service** | Free Beta via `/api/v1/statutory/docs` | OpenAPI 3.1 schema and interactive documentation rendered on Anycast edge |
262
- | **Deterministic Tax Calculators** | **Enterprise Internal** | Metered Enterprise API (Selective) | Deterministic arithmetic engine verified under private test harness |
273
+ | **Deterministic Calculators (7 Pure Functions)** | **Public Package** | Immediate via `@mudraforge/statutory/calculators` | Corporate tax MAT vs 115BAA, GST POS/LUT, TP ALP, Section 79, Ind AS 109, Section 16 MSMED, Section 288B (plus 27 TDS/TCS calculators) |
274
+ | **Hosted AP Engine & Cumulative Spend Tracking** | **Enterprise Edge / Internal** | Metered Enterprise API (Selective) | Hosted Section 194Q cumulative spend & Section 16 MSMED interest engine |
263
275
  | **Dual-Custody Mobile Approval Harness** | **Enterprise Internal / Pilot** | Enterprise Pilot Proposal | Mobile passkey approval prototype & TLA+ state machine (`specs/`) |
264
276
  | **ERP Two-Way Connectors (SAP/Tally/Zoho)** | **Enterprise Internal / Pilot** | Custom Enterprise Pilot Integration | Shadow-mode test connectors; no turnkey plug-ins shipped |
265
277
  | **Bank Rail API Adapters (ICICI/HDFC/RazorpayX)** | **Enterprise Internal / Pilot** | Custom Enterprise Pilot Integration | Modeled sandbox adapters requiring corporate bank partner onboarding |
266
278
 
267
- > **Operational Distinction**: Items classified as **Public Package** and **Public Edge Service** represent working, independently inspectable software. Items classified as **Enterprise Internal / Pilot** represent developing or internal capabilities of the commercial Adesha runtime. Execution traces in `examples/` use synthetic test data; they do not represent active commercial bank or live customer ERP deployments. Organizations interested in testing MudraForge against real accounting data should review the [Proposed Pilot Evaluation Guide](./docs/PILOT_EVALUATION_GUIDE.md).
279
+ > **Operational Distinction**: Items classified as **Public Package** and **Public Edge Service** represent working, independently inspectable software. Items classified as **Enterprise Internal / Pilot** represent developing or internal capabilities of the commercial Adesha runtime. Execution traces in `examples/` use synthetic test data; they do not represent active commercial bank or live customer ERP deployments. Organizations interested in testing MudraForge against real accounting data should review the [Supervised Shadow Pilot Evaluation Guide](./docs/PILOT_EVALUATION_GUIDE.md).
268
280
 
269
281
  ---
270
282
 
@@ -276,14 +288,14 @@ To ensure clarity for developers, CAs, and prospective enterprise clients, the o
276
288
  | :--- | :--- | :--- | :--- |
277
289
  | **Pricing & License** | **100% Free** (MIT Code / CC BY 4.0 Data) | **Best-Effort Free Beta** (Transitions to Metered) | **Commercial Enterprise SaaS** |
278
290
  | **Execution Location** | 100% Local Filesystem (0 Network Calls) | Cloudflare Edge (Global 300+ PoPs, typical 20–80ms Anycast latency) | Private Enterprise VPC / On-Premise Worker |
279
- | **Statutory Knowledge** | Bundled Starter Seed (11 Verified Sections) | 11 Active Provisions (Roadmap Catalog in expansion) | Full Sovereign Catalog + Custom Private Enterprise Contracts |
291
+ | **Statutory Knowledge** | Bundled Starter Seed (29 Verified Sections across 5 Domains) | 29 Active Provisions (Roadmap Catalog in expansion) | Full Sovereign Catalog + Custom Private Enterprise Contracts |
280
292
  | **Lookup Engine** | Exact code, alias & folder path resolution | System-1 Semantic Intent & Rule Discovery | Multi-tenant RAG & Context Assembler |
281
293
  | **Temporal Status** | Offline deterministic evaluation (`computeTemporalStatus`) | Live temporal state machine resolution | In-flight temporal locks across transaction lifecycle |
282
- | **Deterministic Calculators**| *Not included* (declarative schemas only) | Hosted calculation endpoint (`POST /calculate`) | Full arithmetic engine with ₹50L excess & 3x RBI interest |
294
+ | **Deterministic Calculators**| **Included** (7 Zero-dependency pure mathematical calculators exported in `src/calculators.js` via `@mudraforge/statutory/calculators`) | Hosted calculation endpoint (`POST /calculate`) | Full arithmetic engine with ₹50L excess & 3x RBI interest |
283
295
  | **Payment Authorization** | *Not included* | *Not included* | **Single-Use Cryptographic Payment Leases (TLA+ verified)** |
284
296
  | **Banking Execution** | *Not included* | *Not included* | **Host-to-Host Bank Rails (RazorpayX / ICICI / HDFC)** |
285
297
  | **ERP Writebacks** | *Not included* | *Not included* | **Balanced double-entry journal writebacks (SAP / Zoho)** |
286
- | **How to Access** | `npm install @mudraforge/statutory` | `npx @mudraforge/statutory sync` | Review [Pilot Guide](./docs/PILOT_EVALUATION_GUIDE.md) / Contact `hello@mudraforge.in` |
298
+ | **How to Access** | `npm install @mudraforge/statutory` | `npx @mudraforge/statutory sync` | Review [Supervised Shadow Pilot Guide](./docs/PILOT_EVALUATION_GUIDE.md) / Contact `hello@mudraforge.in` |
287
299
 
288
300
  > **Operational Distinction**: This open-source repository provides the **declarative knowledge foundation**. It does not perform live banking transfers, hold funds, or mutate corporate ERP databases. Those consequential actions are strictly isolated within the **MudraForge Adesha Enterprise Governance Engine** (see [`docs/ENTERPRISE_GOVERNANCE.md`](./docs/ENTERPRISE_GOVERNANCE.md)).
289
301
 
@@ -302,7 +314,7 @@ The MudraForge Statutory project publishes an open, locally usable statutory kno
302
314
 
303
315
  ## Structured OKF Domain Hierarchy (Zero-Token Discovery)
304
316
 
305
- Rules are organized into **four foundational regulatory domains**, complete with official circulars, statutory notifications, and compliance form schemas:
317
+ Rules are organized into **five foundational regulatory domains**, complete with official circulars, statutory notifications, and compliance form schemas:
306
318
 
307
319
  ```
308
320
  okf/
@@ -369,7 +381,7 @@ Because the folder hierarchy separates legal domains and provisions cleanly, an
369
381
 
370
382
  ## Canonical Edge Synchronization (Full Statutory Universe)
371
383
 
372
- The package bundles an initial curated baseline snapshot across all four domains. **To pull the complete, continually expanding statutory catalog from the Cloudflare Anycast edge API into your local workspace:**
384
+ The package bundles an initial curated baseline snapshot across all five domains. **To pull the complete, continually expanding statutory catalog from the Cloudflare Anycast edge API into your local workspace:**
373
385
 
374
386
  ```bash
375
387
  # Step 1: Check if newer statutes, circulars, or gazette amendments exist on the edge
@@ -384,35 +396,28 @@ npx @mudraforge/statutory browse
384
396
 
385
397
  ---
386
398
 
387
- ## Quick Start (Free Tier)
388
-
389
- ### 1. Installation via npm
390
- ```bash
391
- npm install @mudraforge/statutory
392
- ```
399
+ ## Agent Skills, CLI Tooling & CI/CD Verification
393
400
 
394
- ### 2. Initialize AI Agent Skill
395
- Installs `SKILL.md` into your workspace's `.agents/skills/` directory:
401
+ ### 1. Initialize AI Agent Skill
402
+ Installs `SKILL.md` into your workspace's `.agents/skills/` directory for Claude Code, Cursor, Antigravity, or Copilot:
396
403
  ```bash
397
404
  npx @mudraforge/statutory init-skill
398
405
  ```
399
406
 
400
- ### 3. Direct Programmatic Traversal (Zero Dependencies, Offline-First)
407
+ ### 2. Direct Synchronous Local Read (lookupLocalStatute)
401
408
  ```javascript
402
- import { lookupLocalStatute, isStatuteActive } from '@mudraforge/statutory';
409
+ import { lookupLocalStatute } from '@mudraforge/statutory';
403
410
 
404
- // 1. Look up Section 194Q from local disk (0 network calls, direct filesystem read)
411
+ // Direct synchronous read from local disk (zero network calls, zero async overhead)
412
+ // Note: lookupLocalStatute() returns the unwrapped statute object directly.
413
+ // (Use async lookupStatute() when you need the complete temporal envelope: { status, temporalStatus, statute, source })
405
414
  const statute = lookupLocalStatute('194Q');
406
415
  console.log(statute.title);
407
416
  console.log(statute.keyStatutoryThresholds.taxableBaseScope);
408
417
  // => "Tax is deductible strictly on the excess over ₹50 Lakhs, NOT on the aggregate gross turnover."
409
-
410
- // 2. Check temporal status (detecting legislative sunsets)
411
- const isActive2024 = await isStatuteActive('206C(1H)', '2024-05-01'); // true
412
- const isActive2025 = await isStatuteActive('206C(1H)', '2025-06-01'); // false (omitted by Finance Act, 2025)
413
418
  ```
414
419
 
415
- ### 4. CLI Verification, Auditing & Pipeline Integration
420
+ ### 3. CLI Verification, Auditing & Pipeline Integration
416
421
 
417
422
  The CLI provides cryptographic provenance checking, offline integrity verification, and machine-readable JSON output for CI/CD audit pipelines:
418
423
 
@@ -437,9 +442,26 @@ npx @mudraforge/statutory diff --section 194H
437
442
  npx @mudraforge/statutory diff --since 2025-01-01
438
443
  npx @mudraforge/statutory diff --domain indirect_tax_gst
439
444
 
445
+ # Inspect statutory outcomes, semantic disposition codes, and missing facts
446
+ npx @mudraforge/statutory outcomes
447
+ npx @mudraforge/statutory outcomes 194Q
448
+ npx @mudraforge/statutory outcomes 194Q --verbose
449
+ npx @mudraforge/statutory outcomes MSMED-15-16
450
+
451
+ # In-depth explanation of indeterminate states, missing facts & remediation steps
452
+ npx @mudraforge/statutory explain INDETERMINATE
453
+ npx @mudraforge/statutory explain BUYER_TURNOVER_UNVERIFIED
454
+ npx @mudraforge/statutory explain MISSING_EVIDENCE_HOLD
455
+
456
+ # Check package updates or snooze notifications for current version
457
+ npx @mudraforge/statutory check-update
458
+ npx @mudraforge/statutory check-update --ignore
459
+
440
460
  # Output machine-parseable JSON for CI/CD or jq integration
441
461
  npx @mudraforge/statutory crosswalk 194Q --credit 2026-03-25 --payment 2026-04-10 --json
442
462
  npx @mudraforge/statutory diff --section 194H --json
463
+ npx @mudraforge/statutory outcomes 194Q --json
464
+ npx @mudraforge/statutory explain BUYER_TURNOVER_UNVERIFIED --json
443
465
  npx @mudraforge/statutory verify --json
444
466
  npx @mudraforge/statutory doctor --json --offline
445
467
 
@@ -463,65 +485,27 @@ Calling pipelines and CI/CD audit steps can inspect `$?` directly:
463
485
 
464
486
  ---
465
487
 
466
- ## Enterprise Tier (Paid Cloud Execution & Analysis Mode)
467
-
468
- To access the **System-1 semantic discovery search**, **Analysis Mode output**, and **Deterministic Calculation Engines**, initialize `StatutoryClient` with an Enterprise API key:
469
-
470
- ```javascript
471
- import { StatutoryClient } from '@mudraforge/statutory';
472
-
473
- const client = new StatutoryClient({
474
- tier: 'ENTERPRISE_PAID',
475
- apiKey: process.env.MUDRA_STATUTORY_API_KEY // Available via hello@mudraforge.in
476
- });
477
-
478
- // Execute calculation via Cloudflare Edge Engine (not stored in local package)
479
- const result = await client.calculate({
480
- section: '194Q',
481
- invoiceAmount: 8000000, // ₹80 Lakhs
482
- priorFyPurchases: 4000000, // ₹40 Lakhs already purchased this FY
483
- hasPan: true
484
- });
485
-
486
- console.log(result.taxableBase); // ₹70,00,000 (Calculates strictly on excess over ₹50L)
487
- console.log(result.taxAmount); // ₹7,000 (0.1% TDS on taxable base)
488
- ```
489
-
490
- ### Enterprise Edge API Endpoints & Rate Limits
488
+ ## Commercial & Enterprise Platform Ecosystem
491
489
 
492
- | Endpoint | Method | Auth Required | Rate Limit (Per Client / IP) | Response |
493
- |---|---|---|---|---|
494
- | `/api/v1/statutory/sections` | `GET` | No | 180 req/min | JSON array of indexed OKF sections |
495
- | `/api/v1/statutory/lookup` | `GET` | No | 180 req/min | Parametric section details & temporal validity |
496
- | `/api/v1/statutory/laws/:code` | `GET` | No | 180 req/min | Direct path statutory section lookup |
497
- | `/api/v1/statutory/manifest.json` | `GET` | No | 180 req/min | Latest OKF release manifest & rootHash |
498
- | `/api/v1/statutory/bundle.json` | `GET` | No | 180 req/min | Full versioned statutory bundle (ETag 304 supported) |
499
- | `/api/v1/statutory/calculate` | `POST` | **Yes** (Bearer) | 45 req/min | Deterministic statutory deduction result |
490
+ `@mudraforge/statutory` is the open-source, zero-dependency statutory ground-truth substrate of the MudraForge ecosystem. For organizations requiring consequential financial execution, hosted agent tools, or managed infrastructure:
500
491
 
501
- ### Error Semantics & Response Codes
492
+ ### 1. Governed Execution Platform (MudraForge Adesha)
493
+ While `@mudraforge/statutory` calculates what the law requires, **Adesha** governs real-world financial execution:
494
+ - **Single-Use Payment Authorization Leases**: Atomic Compare-and-Swap (CAS) leases cryptographically bound to invoice hash, vendor legal entity, and authorized net wire amount.
495
+ - **Human-in-the-Loop Authority Harness**: Maker-checker workflows requiring CFO biometric passkey approval.
496
+ - **Host-to-Host Banking Rail Integration**: Dispatches payouts via corporate banking gateways with signed webhook verification and clearinghouse reversal interception.
497
+ - **ERP General Ledger Writebacks**: Automatically posts balanced double-entry vouchers to Zoho Books, SAP S/4HANA, or NetSuite upon settlement confirmation.
498
+ - *Detailed Architecture*: See [docs/ENTERPRISE_GOVERNANCE.md](./docs/ENTERPRISE_GOVERNANCE.md).
502
499
 
503
- All error responses from `@mudraforge/statutory` and the hosted edge API return structured JSON:
500
+ ### 2. Hosted Model Context Protocol (MCP) Infrastructure
501
+ In accordance with our commercial boundary protocol:
502
+ - **Enterprise-Tier Tooling**: Hosted Model Context Protocol (MCP) server endpoints and live multi-agent tool connectivity are strictly commercial/enterprise features.
503
+ - **Enterprise Setup**: Connecting MCP clients (Claude Desktop, Cursor, Windsurf, or Antigravity) connects to enterprise-licensed infrastructure and requires an Enterprise API Key.
504
+ - Contact: `hello@mudraforge.in` / `support@mudraforge.in`.
504
505
 
505
- ```json
506
- {
507
- "status": "ERROR",
508
- "error": "API_KEY_REQUIRED",
509
- "message": "Deterministic calculation engines require an Enterprise API key.",
510
- "contact": "hello@mudraforge.in"
511
- }
512
- ```
513
-
514
- | HTTP Status | Error Code | Description / Remedy |
515
- |---|---|---|
516
- | `400 Bad Request` | `INVALID_AMOUNT` | Numerical value is negative, NaN, or exceeds `Number.MAX_SAFE_INTEGER`. |
517
- | `400 Bad Request` | `INVALID_DATE_FORMAT` | Date string does not match ISO 8601 `YYYY-MM-DD` format. |
518
- | `400 Bad Request` | `QUERY_TOO_LONG` | Section search query exceeds 64-character security ceiling. |
519
- | `401 / 403 Forbidden` | `API_KEY_REQUIRED` / `INVALID_API_KEY` | Missing or invalid Enterprise API key. Contact `hello@mudraforge.in`. |
520
- | `404 Not Found` | `SECTION_NOT_FOUND` | Queried section does not exist in the indexed statutory corpus. |
521
- | `405 Method Not Allowed` | `METHOD_NOT_ALLOWED` | Non-GET request sent to read-only commons endpoints. |
522
- | `413 Payload Too Large` | `PAYLOAD_TOO_LARGE` | JSON request body on `/calculate` exceeds 64KB security threshold. |
523
- | `415 Unsupported Media` | `UNSUPPORTED_MEDIA_TYPE` | Non-JSON payload sent to calculation engine. Set `Content-Type: application/json`. |
524
- | `429 Too Many Requests` | `RATE_LIMIT_EXCEEDED` | Rate limit threshold breached. Check `Retry-After` header before retrying. |
506
+ ### 3. Hosted Edge API & Continuous Synchronization
507
+ - **Hosted Edge Calculation (`/api/v1/statutory/calculate`)**: Optional cloud-hosted calculation service on Cloudflare Anycast edge for organizations integrating via REST rather than the Node.js package.
508
+ - **Continuous Regulatory Sync**: SLA-backed automated updates tracking Gazette of India notifications, CBDT circulars, and Finance Act amendments.
525
509
 
526
510
  ---
527
511
 
@@ -530,7 +514,7 @@ All error responses from `@mudraforge/statutory` and the hosted edge API return
530
514
  The repository enforces fail-closed automated verification for schemas, temporal rules, and cryptographic digests:
531
515
 
532
516
  ```bash
533
- # 1. Run full 36-suite multi-domain regression test
517
+ # 1. Run full 88-suite multi-domain regression test
534
518
  npm test
535
519
 
536
520
  # 2. Validate all OKF schemas, circular YAML frontmatter, and return forms
@@ -570,7 +554,7 @@ If you are working on autonomous financial systems or want to discuss the roadma
570
554
  All deep-dive architectural specifications, governance boundaries, quality reports, and catalogs are organized in the [`docs/`](./docs/) directory:
571
555
 
572
556
  - **[Statutory Knowledge Catalog](./docs/CATALOG.md)**: Full table of all indexed provisions, key thresholds, and return schemas.
573
- - **[Domain Breadth & Depth Comparison](./docs/DOMAIN_BREADTH_AND_DEPTH_COMPARISON.md)**: 4-domain starter commons vs. 11-domain edge roadmap.
557
+ - **[Domain Breadth & Depth Comparison](./docs/DOMAIN_BREADTH_AND_DEPTH_COMPARISON.md)**: 5-domain starter commons vs. 11-domain edge roadmap.
574
558
  - **[Architecture Decisions (ADRs)](./docs/ARCHITECTURE_DECISIONS.md)**: Formal architecture decision records (ADR-0001 through ADR-0006).
575
559
  - **[Architecture Specification](./docs/ARCHITECTURE.md)**: Master specification of the Adesha Sovereign Runtime & Statutory Engine.
576
560
  - **[Corpus Quality Card](./docs/CORPUS_QUALITY.md)**: Machine-verified citation health, temporal bounds, and dual-act coverage.
package/SECURITY.md CHANGED
@@ -12,8 +12,8 @@ Only the current major release series receives active updates and statutory amen
12
12
 
13
13
  | Version | Supported | Statutory Epistemic Baseline |
14
14
  |---|---|---|
15
- | `2.9.x` | Yes | Finance Act, 2025 & CBDT/CBIC Circulars up to October 2026 |
16
- | `< 2.9.0` | No | Legacy unversioned flat schemas |
15
+ | `2.10.x` | Yes | Finance Act, 2025 & CBDT/CBIC Circulars up to October 2026 |
16
+ | `< 2.10.0` | No | Prior releases (upgrade via `npm install @mudraforge/statutory@latest`) |
17
17
 
18
18
  ---
19
19