@mudraforge/statutory 2.5.0 → 2.6.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 +44 -0
- package/README.md +25 -0
- package/docs/CATALOG.md +487 -48
- package/docs/OKF_MAINTENANCE_SOP.md +286 -0
- package/okf/corporate_ma_restructuring/slump_sale_50b/circulars/cbdt_notification_68_2021_rule_11uae_fmv.md +1 -1
- package/okf/corporate_ma_restructuring/slump_sale_50b/circulars/cbic_notification_12_2017_going_concern_exemption.md +1 -1
- package/okf/corporate_ma_restructuring/slump_sale_50b/section.json +3 -3
- package/okf/direct_tax/special_rates_non_filer_206ab/circulars/cbdt_circular_11_2021_compliance_check.md +20 -0
- package/okf/direct_tax/special_rates_non_filer_206ab/section.json +56 -0
- package/okf/direct_tax/tcs_goods_206c_1h/circulars/finance_act_2025_sunset_memo.md +1 -1
- package/okf/direct_tax/tcs_goods_206c_1h/section.json +2 -2
- package/okf/direct_tax/tds_commission_194h/section.json +1 -1
- package/okf/direct_tax/tds_contractor_194c/circulars/cbdt_circular_23_2017_gst_unbundling.md +1 -1
- package/okf/direct_tax/tds_contractor_194c/section.json +1 -1
- package/okf/direct_tax/tds_goods_194q/circulars/cbdt_circular_13_2021_guidelines.md +1 -1
- package/okf/direct_tax/tds_goods_194q/circulars/cbdt_circular_23_2017_gst_unbundling.md +1 -1
- package/okf/direct_tax/tds_goods_194q/section.json +2 -2
- package/okf/direct_tax/tds_goods_393/section.json +1 -1
- package/okf/direct_tax/tds_perquisites_194r/circulars/cbdt_circular_12_2022_perquisites.md +20 -0
- package/okf/direct_tax/tds_perquisites_194r/section.json +54 -0
- package/okf/direct_tax/tds_rent_194i/circulars/cbdt_circular_23_2017_gst_unbundling.md +1 -1
- package/okf/direct_tax/tds_rent_194i/section.json +1 -1
- package/okf/direct_tax/tds_services_194j/circulars/cbdt_circular_03_2020_fts_rate_cut.md +1 -1
- package/okf/direct_tax/tds_services_194j/section.json +2 -2
- package/okf/indirect_tax_gst/composition_levy_sec10/circulars/cbic_notification_14_2019_composition.md +20 -0
- package/okf/indirect_tax_gst/composition_levy_sec10/section.json +50 -0
- package/okf/indirect_tax_gst/credit_debit_notes_sec34/circulars/cbic_circular_137_2020_credit_notes.md +20 -0
- package/okf/indirect_tax_gst/credit_debit_notes_sec34/section.json +50 -0
- package/okf/indirect_tax_gst/e_invoicing_rule48_4/circulars/cbic_notification_10_2023_einvoicing.md +20 -0
- package/okf/indirect_tax_gst/e_invoicing_rule48_4/section.json +52 -0
- package/okf/indirect_tax_gst/gst_tds_sec51/circulars/cbic_notification_50_2018_gst_tds.md +20 -0
- package/okf/indirect_tax_gst/gst_tds_sec51/section.json +52 -0
- package/okf/international_tax/cross_border_remittance_195/circulars/supreme_court_engineering_analysis_doctrine.md +1 -1
- package/okf/international_tax/cross_border_remittance_195/section.json +1 -1
- package/okf/international_tax/foreign_tax_credit_irc_901_904/section.json +1 -1
- package/okf/manifest.json +48 -24
- package/okf/msme_commercial/delayed_payments_15_16/section.json +1 -1
- package/package.json +2 -1
- package/src/index.js +44 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,50 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
---
|
|
9
9
|
|
|
10
|
+
## [2.6.0] - 2026-10-25
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
- **100% Complete Corporate Finance AP Corpus (24 Provisions across 5 Core Domains)**:
|
|
14
|
+
- `direct_tax`: Added **Section 194R** (10% TDS on business perquisites & benefits > ₹20k, Circulars 12/2022 & 18/2022) and **Section 206AB** (Higher withholding rate on non-filers: higher of 2× statutory rate or 5%).
|
|
15
|
+
- `indirect_tax_gst`: Added **Section 51** (2% GST TDS on government/PSU contracts > ₹2.5L), **Section 34** (Credit and debit notes statutory adjustments & 30th November cutoff), **Section 10** (Composition scheme: restrictions on tax collection and ITC blockage), and **Rule 48(4)** (Mandatory E-Invoicing & B2B QR code mandate for turnover > ₹5 Cr with Rule 48(5) void invoice penalty).
|
|
16
|
+
- Expanded test coverage from 49 to 55 comprehensive regression suites with 100% pass rate.
|
|
17
|
+
- **Cognitive AI Explanation Toggle**:
|
|
18
|
+
- `POST /api/v1/statutory/calculate` now supports an `explain: true` toggle and rich `mode: 'analysis'` senior legal counsel opinion generated via Google Gemini 2.5 Flash / Workers AI Llama 3.3.
|
|
19
|
+
- Sub-10ms fast path preserved for `mode: 'standard'` and `explain: false` for high-throughput automated ERP batch processing.
|
|
20
|
+
- **Section 194J Category Normalization & Fail-Closed Safety**:
|
|
21
|
+
- Flexible case-insensitive synonym mapping (`'professional'`, `'prof'`, `'ca'`, `'legal'`, `'fts'`, `'technical'`, `'director'`).
|
|
22
|
+
- Unknown service categories strictly reject with HTTP 400 `INVALID_SERVICE_CATEGORY` instead of defaulting silently to 2%.
|
|
23
|
+
- **MSME Wholesale & Retail Trader Exclusion (NIC 45, 46, 47)**:
|
|
24
|
+
- Deterministically enforces Ministry of MSME OM dated 02.07.2021, setting delayed payment interest to ₹0 with `EXEMPT_TRADER_EXCLUSION`.
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## [2.5.1] - 2026-10-25
|
|
29
|
+
|
|
30
|
+
### Fixed
|
|
31
|
+
- **Citation Link Integrity & Canonical Landing Pages**: Audited all 70 statutory citation links across the OKF corpus, resolving broken direct PDF paths on `incometaxindia.gov.in` and `msme.gov.in` with canonical regulatory portal landing pages. Replaced decommissioned `main.sci.gov.in` with active `sci.gov.in`.
|
|
32
|
+
- **Government PKI TLS Transport**: Added recognition for Government of India Controller of Certifying Authorities (CCA / NIC CA) leaf certificate verification on `taxinformation.cbic.gov.in`.
|
|
33
|
+
|
|
34
|
+
### Added
|
|
35
|
+
- **Automated Citation Verifier**: Added `scripts/verify_citation_links.js` (`npm run citations`) enforcing regulatory domain whitelisting, 100% HTTPS protocol compliance, and live network reachability probing (`--live`).
|
|
36
|
+
- **OKF Maintenance Standard Operating Procedure**: Documented normative engineering and legal standard in [`docs/OKF_MAINTENANCE_SOP.md`](./docs/OKF_MAINTENANCE_SOP.md) defining the 10-step statutory provision lifecycle, the Dual-Tier URL Standard, Merkle tree cryptographic re-pinning, and anti-drift invariants.
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## [2.5.0] - 2026-10-24
|
|
41
|
+
|
|
42
|
+
### Added
|
|
43
|
+
- **Multi-Domain Corpus Expansion**: Expanded statutory coverage from 8 to 18 provisions across 5 foundational domains:
|
|
44
|
+
- `corporate_ma_restructuring` (Section 50B Slump Sale)
|
|
45
|
+
- `direct_tax` (Sections 194C, 194H, 194I, 194J, 194Q, 206C(1H) sunset, 393 forward law)
|
|
46
|
+
- `indirect_tax_gst` (Sections 8 composite/mixed supplies, 9(3) RCM, 16(2) ITC eligibility, 17(5) blocked ITC)
|
|
47
|
+
- `international_tax` (Section 195 cross-border remittances, IRC §§ 901/904 foreign tax credits)
|
|
48
|
+
- `msme_commercial` (Sections 7, 15, 16, 22 of MSMED Act, 2006, MCA Form MSME-1)
|
|
49
|
+
- **Offline ISO/IEC 7064 Mod-36 Checksum**: Deterministic Indian GSTIN and PAN checksum validator in `verifyGstinChecksum()`.
|
|
50
|
+
- **Two-Pass Precision Resolution**: Enhanced `lookupLocalStatute()` with exact-match priority, resolving single-digit section numbers (e.g., Section 8, Section 9(3)) without sub-string prefix collisions.
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
10
54
|
## [2.4.2] - 2026-10-24
|
|
11
55
|
|
|
12
56
|
### Added
|
package/README.md
CHANGED
|
@@ -11,6 +11,31 @@
|
|
|
11
11
|
|
|
12
12
|
---
|
|
13
13
|
|
|
14
|
+
## 30-Second Quick Start
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
npm install @mudraforge/statutory
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
```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)
|
|
31
|
+
|
|
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
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
14
39
|
### Plain-English Orientation
|
|
15
40
|
|
|
16
41
|
`@mudraforge/statutory` provides an open, machine-readable statutory knowledge layer for Indian and cross-border financial workflows, grounding compliance rules in primary legislation rather than probabilistic LLM guesswork. It serves software developers building financial applications, corporate finance operations teams seeking auditable withholding and delayed-payment rules, and autonomous AI agents requiring deterministic reference boundaries. The statutory commons acts as an open, inspectable reference substrate, while MudraForge's broader Adesha initiative governs downstream transactional execution, human authorization, and enterprise ledger writebacks. Developers can proceed directly to [Installation & Quick Start](#quick-start-free-tier), while finance leaders, controllers, and tax practitioners can inspect the indexed statutes, cumulative thresholds, and executive circulars in [docs/CATALOG.md](./docs/CATALOG.md).
|