@mudraforge/statutory 2.9.0 → 2.10.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 +20 -0
- package/README.md +105 -124
- package/SKILL.md +7 -2
- package/bin/cli.js +215 -8
- package/docs/ARCHITECTURE.md +8 -8
- package/docs/ARCHITECTURE_DECISIONS.md +4 -3
- package/docs/CATALOG.md +1 -1
- package/docs/CORPUS_QUALITY.md +5 -5
- package/docs/DOMAIN_BREADTH_AND_DEPTH_COMPARISON.md +1 -1
- package/docs/ENTERPRISE_GOVERNANCE.md +81 -22
- package/docs/PILOT_EVALUATION_GUIDE.md +155 -90
- package/docs/PROVENANCE.md +4 -4
- package/docs/VERIFICATION.md +7 -7
- package/okf/manifest.json +1 -1
- package/package.json +18 -1
- package/src/constants.js +10 -0
- package/src/index.js +92 -13
- package/src/outcomes.js +483 -0
- package/types/index.d.ts +55 -0
|
@@ -1,149 +1,214 @@
|
|
|
1
|
-
# MudraForge Adesha —
|
|
2
|
-
##
|
|
1
|
+
# MudraForge Adesha — Supervised Shadow Pilot Evaluation Guide
|
|
2
|
+
## Benchmarking Autonomous Finance AI Against Historical Accounts Payable Records
|
|
3
3
|
|
|
4
|
-
> **Document Type**:
|
|
5
|
-
> **
|
|
4
|
+
> **Document Type**: Enterprise Pilot Specification
|
|
5
|
+
> **System Under Evaluation**: MudraForge Adesha (Autonomous Finance AI)
|
|
6
|
+
> **Open Trust Anchor**: `@mudraforge/statutory` (MIT Zero-Dependency Substrate)
|
|
7
|
+
> **Execution Mode**: Supervised Read-Only Shadow Execution (Archival AP Records)
|
|
6
8
|
> **Target Audience**: Chief Financial Officers (CFOs), Heads of Tax, Accounts Payable Directors, Enterprise Risk Officers
|
|
7
9
|
|
|
8
10
|
---
|
|
9
11
|
|
|
10
|
-
## 1. Context & Purpose
|
|
12
|
+
## 1. Executive Context & Purpose
|
|
11
13
|
|
|
12
|
-
This document
|
|
14
|
+
This document specifies the protocol for conducting a **Supervised Shadow Pilot** of MudraForge Adesha within an enterprise finance department.
|
|
13
15
|
|
|
14
|
-
|
|
16
|
+
In high-consequence corporate finance, autonomous systems must establish empirical accuracy and deterministic reliability before receiving operational authority. Modern accounts payable operations face immense regulatory pressure across direct tax withholding (TDS/TCS), commercial delayed payment laws (MSMED Act, Section 43B(h)), and evolving statutory transitions (the transition from the Income-tax Act, 1961 to the Income-tax Act, 2025). Human AP clerks and rigid rule engines frequently make systematic errors on cumulative thresholds, gross vs. basic tax bases, and legislative sunset dates.
|
|
15
17
|
|
|
16
|
-
|
|
18
|
+
MudraForge Adesha is an autonomous finance AI engineered to govern end-to-end accounts payable workflows. Rather than requesting live operational authority on day one, Adesha is evaluated in a **supervised shadow mode** against historical, customer-approved accounts payable datasets.
|
|
17
19
|
|
|
18
|
-
|
|
20
|
+
In this mode, Adesha reconstructs past vendor invoices, line items, and payment cycles in read-only memory, compares its deterministic legal determinations and simulated double-entry journal postings against the enterprise's historical enterprise resource planning (ERP) ledger entries, and generates an audit-grade reconciliation report highlighting variances, compliance risks, and cash-flow exposures.
|
|
21
|
+
|
|
22
|
+
### The Role of the Open Trust Anchor (`@mudraforge/statutory`)
|
|
23
|
+
A foundational risk in applying AI to enterprise finance is the hazard of ungrounded generative hallucinations. Adesha addresses this through architectural decoupling:
|
|
24
|
+
- **Autonomous Reasoning & Governance (Adesha Proprietary Platform)**: Ingests unstructured invoices, interprets complex scopes of work, arbitrates commercial discrepancies, and formulates payment authorization leases.
|
|
25
|
+
- **Deterministic Statutory Substrate ([`@mudraforge/statutory`](https://www.npmjs.com/package/@mudraforge/statutory))**: An open-source, zero-dependency legal knowledge format (OKF v0.2) and deterministic mathematical engine. All statutory determinations, cumulative thresholds, and tax formulas are calculated deterministically. Enterprise tax counsel and internal audit teams can inspect, verify, and run this substrate locally on-premise without external network communication.
|
|
19
26
|
|
|
20
|
-
|
|
27
|
+
---
|
|
21
28
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
29
|
+
## 2. Core Pilot Objectives
|
|
30
|
+
|
|
31
|
+
The Supervised Shadow Pilot benchmarks Adesha's autonomous decision-making against settled historical records across five primary compliance domains:
|
|
32
|
+
|
|
33
|
+
1. **Withholding Tax (TDS/TCS) Classification & Rate Application**:
|
|
34
|
+
- Proper section categorization: Section 194C (Contractors: 1% individual vs. 2% company), Section 194J (Technical Services 2% vs. Professional 10%), Section 194I (Rent: 2% machinery vs. 10% land/building), and Section 194H (Commission: 2% post-October 2024 vs. 5% prior).
|
|
35
|
+
- Higher rate withholding for non-filers under Section 206AB (pre-1 April 2025) and invalid/inoperative PANs under Section 206AA (20% flat).
|
|
36
|
+
2. **Cumulative Financial-Year Threshold & Excess Math**:
|
|
37
|
+
- Verification of cumulative purchase gates under Section 194Q: ensuring withholding is calculated strictly on the incremental purchase value exceeding ₹50 Lakhs within the financial year, rather than the entire invoice amount.
|
|
38
|
+
- Aggregate contractor thresholds under Section 194C (single invoice > ₹30,000 or aggregate > ₹1,00,000).
|
|
39
|
+
3. **GST Basic Value Unbundling Adherence**:
|
|
40
|
+
- Verifying adherence to CBDT Circular No. 23 of 2017: confirming withholding was applied strictly to the basic taxable value and not computed on gross invoice totals inclusive of separately itemized CGST, SGST, or IGST.
|
|
41
|
+
4. **Legislative Sunsets & Dual-Act Temporal Crystallization**:
|
|
42
|
+
- Confirming that seller TCS under Section 206C(1H) was omitted for transactions on or after 1 April 2025.
|
|
43
|
+
- Governing withholding crystallization by the earlier-event rule (earlier of credit in books or payment disbursement), correctly distinguishing between the Income-tax Act, 1961 and the Income-tax Act, 2025 (effective 1 April 2026).
|
|
44
|
+
5. **MSME Delayed Payment Compliance & Section 43B(h)**:
|
|
45
|
+
- Tracking statutory payment clocks under Sections 15 and 16 of the MSMED Act, 2006 (15 days for unwritten terms, maximum 45 days for written agreements).
|
|
46
|
+
- Flagging compound interest liabilities at three times the RBI repo rate and identifying disallowance risks under Section 43B(h) of the Income-tax Act for amounts unpaid to Micro and Small suppliers at fiscal year-end, while applying the statutory trader exclusion (Office Memorandum 2/1(5)/2021).
|
|
28
47
|
|
|
29
48
|
---
|
|
30
49
|
|
|
31
|
-
## 3.
|
|
50
|
+
## 3. Candidate Ingestion Schema & Phased Staging
|
|
32
51
|
|
|
33
|
-
To minimize operational
|
|
52
|
+
To minimize operational demands on enterprise accounting personnel, the pilot follows a two-stage progressive protocol:
|
|
34
53
|
|
|
35
|
-
|
|
36
|
-
|
|
54
|
+
### Phase 1: Calibration & Field Alignment (30 to 50 Historical Invoices)
|
|
55
|
+
A representative batch of 30 to 50 settled vendor invoices with known tax and payment outcomes is ingested. This phase validates data field mappings, verifies vendor classification schemas, and establishes baseline reconciliation rules with negligible customer effort.
|
|
37
56
|
|
|
38
|
-
|
|
57
|
+
### Phase 2: Comprehensive Historical Shadow Benchmark (200 to 500 Historical Invoices)
|
|
58
|
+
Following Phase 1 calibration, the evaluation expands to a full quarter's transaction volume (200 to 500 invoices). This volume enables robust validation of cumulative vendor spend thresholds (Section 194Q, Section 194C) and multi-month MSME payment clock tracking.
|
|
39
59
|
|
|
40
|
-
|
|
60
|
+
### Data Ingestion Parameters
|
|
61
|
+
The customer provides an archival tabular export (CSV, XLSX, or JSON extract) containing the following fields:
|
|
62
|
+
|
|
63
|
+
| Field Group | Required Parameters | Analytical Purpose in Shadow Pilot |
|
|
41
64
|
| :--- | :--- | :--- |
|
|
42
|
-
| **Transaction Metadata** | Invoice Number, Invoice Date, Booking Date |
|
|
43
|
-
| **Vendor Identity** | Vendor Legal Name, Entity Type (Individual,
|
|
44
|
-
| **Financial Values** | Basic Taxable Amount, CGST, SGST, IGST, Total Invoice
|
|
45
|
-
| **
|
|
46
|
-
| **Settlement
|
|
47
|
-
| **
|
|
65
|
+
| **Transaction Metadata** | Invoice Number, Invoice Date, ERP Booking Date | Establishes temporal validity, accounting credit timestamp, and legislative regime. |
|
|
66
|
+
| **Vendor Identity** | Vendor Legal Name, Entity Type (Individual, LLP, Corporate), Vendor PAN, GSTIN | Determines applicable statutory rate tiers, corporate status, and Section 206AA rate penalties. |
|
|
67
|
+
| **Financial Values** | Basic Taxable Amount, Itemized CGST, SGST, IGST, Total Gross Invoice Value | Assesses adherence to GST unbundling standards vs. gross withholding. |
|
|
68
|
+
| **Historical ERP Classification** | Line-item description, historical TDS section applied, historical TDS amount withheld | Benchmarks human/ERP decisions against Adesha's deterministic statutory engine. |
|
|
69
|
+
| **Settlement Details** | Payment / Bank Clearance Date, Historical Payment Method, Bank UTR (if recorded) | Measures settlement intervals against MSMED Act statutory clocks. |
|
|
70
|
+
| **Vendor Master Attributes** | MSME Registration Category (Micro, Small, Medium, Trader), Udyam Number (if on file) | Drives MSME statutory interest calculations and Section 43B(h) disallowance risk analysis. |
|
|
48
71
|
|
|
49
72
|
---
|
|
50
73
|
|
|
51
|
-
## 4.
|
|
74
|
+
## 4. Adesha Shadow Execution Pipeline
|
|
52
75
|
|
|
53
|
-
The
|
|
76
|
+
The Supervised Shadow Pilot operates entirely offline as a non-intrusive analytical pipeline:
|
|
54
77
|
|
|
55
78
|
```
|
|
56
|
-
[Customer AP Extract]
|
|
57
|
-
|
|
58
|
-
|
|
79
|
+
[Customer Archival AP Extract]
|
|
80
|
+
│
|
|
81
|
+
▼
|
|
82
|
+
┌────────────────────────────────────────┐
|
|
83
|
+
│ Phase 1: Ingestion & Input Validation │
|
|
84
|
+
│ - Field schema verification │
|
|
85
|
+
│ - Tax identifier syntax validation │
|
|
86
|
+
└────────────────────────────────────────┘
|
|
87
|
+
│
|
|
88
|
+
▼
|
|
89
|
+
┌────────────────────────────────────────┐
|
|
90
|
+
│ Phase 2: Semantic Reasoning & Parsing │
|
|
91
|
+
│ - Scope of work analysis │
|
|
92
|
+
│ - Contractual term classification │
|
|
93
|
+
└────────────────────────────────────────┘
|
|
94
|
+
│
|
|
95
|
+
▼
|
|
96
|
+
┌────────────────────────────────────────┐
|
|
97
|
+
│ Phase 3: Deterministic Grounding │
|
|
98
|
+
│ (@mudraforge/statutory) │
|
|
99
|
+
│ - Cumulative FY threshold evaluation │
|
|
100
|
+
│ - Statutory withholding rate derivation│
|
|
101
|
+
│ - MSMED 15/45-day clock calculation │
|
|
102
|
+
└────────────────────────────────────────┘
|
|
103
|
+
│
|
|
104
|
+
▼
|
|
105
|
+
┌────────────────────────────────────────┐
|
|
106
|
+
│ Phase 4: Simulated AP Orchestration │
|
|
107
|
+
│ - Single-use payment lease derivation │
|
|
108
|
+
│ - Double-entry ERP journal simulation │
|
|
109
|
+
└────────────────────────────────────────┘
|
|
110
|
+
│
|
|
111
|
+
▼
|
|
112
|
+
┌────────────────────────────────────────┐
|
|
113
|
+
│ Phase 5: Reconciliation & Variance │
|
|
114
|
+
│ - Delta analysis vs. historical ERP │
|
|
115
|
+
│ - Fail-closed ambiguity isolation │
|
|
116
|
+
└────────────────────────────────────────┘
|
|
117
|
+
│
|
|
118
|
+
▼
|
|
119
|
+
[Advisory Discrepancy & Verification Report]
|
|
59
120
|
```
|
|
60
121
|
|
|
61
|
-
### The
|
|
62
|
-
In
|
|
122
|
+
### The Fail-Closed Ambiguity Standard
|
|
123
|
+
In corporate finance, certain transactions contain contractual ambiguities that cannot be resolved solely from ledger metadata (for example, composite contracts spanning both equipment hardware supply and specialized engineering services).
|
|
63
124
|
|
|
64
|
-
- **
|
|
65
|
-
- **Flagged Review Categories**: When
|
|
125
|
+
- **Strict Fail-Closed Policy**: Adesha does not generate arbitrary tax assumptions or probabilistic guesses on ambiguous transactions.
|
|
126
|
+
- **Flagged Review Categories**: When archival data lacks necessary granularity (such as missing scope-of-work documentation or unbundled tax breakdowns), Adesha categorizes the item as `REQUIRES_HUMAN_REVIEW` accompanied by an explicit legal justification detailing the evidentiary prerequisite.
|
|
66
127
|
|
|
67
128
|
---
|
|
68
129
|
|
|
69
|
-
## 5. Pilot Deliverables
|
|
130
|
+
## 5. Pilot Deliverables & Tri-Part Variance Classification
|
|
131
|
+
|
|
132
|
+
At the conclusion of the evaluation, the enterprise finance leadership receives a comprehensive **Advisory Accounts Payable Discrepancy & Verification Report** comprising:
|
|
70
133
|
|
|
71
|
-
|
|
134
|
+
### 1. Executive Summary
|
|
135
|
+
- Total transaction count evaluated vs. records with complete statutory determinability.
|
|
136
|
+
- Aggregate count and value of historical transactions matching statutory baseline.
|
|
137
|
+
- Aggregate count and value of identified statutory variances and compliance risks.
|
|
72
138
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
- Aggregate count of matched historical treatments.
|
|
76
|
-
- Aggregate count of flagged statutory variances.
|
|
77
|
-
2. **Detailed Discrepancy Register (Tri-Part Classification)**:
|
|
78
|
-
Findings are strictly classified into three distinct categories to avoid premature legal assumptions:
|
|
79
|
-
- **Category A — Confirmed Calculation Differences**: Mathematical or rounding discrepancies on settled statutory rates, unbundled GST arithmetic, or clearly crossed financial thresholds.
|
|
80
|
-
- **Category B — Potential Statutory Discrepancies**: Inconsistent rates or threshold treatments where all input facts (PAN, entity type, invoice date) appear complete on the face of the record.
|
|
81
|
-
- **Category C — Items Requiring External Documentation Verification**: Apparent rate differences that may be legally justified by unrecorded external documents (e.g. an Assessing Officer certificate for lower deduction under Section 197, a Section 194C(6) goods transporter ownership declaration, or an MSME trader NIC classification exclusion). The report flags these as *verification checkpoints* rather than claiming a tax error.
|
|
82
|
-
3. **Statutory Audit Trail**:
|
|
83
|
-
- For every flagged variance: the exact governing statute, applicable section code, official Gazette citation, and relevant CBDT/CBIC executive circular.
|
|
84
|
-
4. **Unresolved Assumptions Log**:
|
|
85
|
-
- Comprehensive inventory of records requiring internal company tax counsel determination.
|
|
139
|
+
### 2. Tri-Part Variance Classification Register
|
|
140
|
+
To provide actionable clarity without premature legal assumptions, all identified variances are categorized into three distinct classes:
|
|
86
141
|
|
|
87
|
-
|
|
142
|
+
- **Category A — Confirmed Calculation & Threshold Variances**:
|
|
143
|
+
Direct mathematical, rounding, or threshold calculation errors on settled law. Examples include withholding tax deducted on gross invoice totals instead of net basic amounts, or Section 194Q applied to the full invoice rather than the excess over ₹50 Lakhs.
|
|
144
|
+
- **Category B — Statutory Rate & Classification Discrepancies**:
|
|
145
|
+
Inconsistent statutory classifications where all transaction attributes (PAN, entity type, invoice date) are complete on the face of the record. Examples include applying Section 194C (2%) to professional services governed by Section 194J (10%), or applying Section 206C(1H) post-sunset.
|
|
146
|
+
- **Category C — Documentation Verification Checkpoints**:
|
|
147
|
+
Instances where historical treatment differed from statutory defaults but may be legally substantiated by external documents not present in the tabular ledger. Examples include lower-withholding certificates issued under Section 197, goods transporter declarations under Section 194C(6), or MSME trader NIC classification exclusions. These items are presented as *verification checkpoints* for internal tax counsel rather than asserting non-compliance.
|
|
88
148
|
|
|
89
|
-
###
|
|
149
|
+
### 3. Statutory Audit Trail
|
|
150
|
+
Every identified variance includes direct, canonical citations to the governing statute, section number, official Gazette notification, and relevant CBDT/CBIC executive circular.
|
|
90
151
|
|
|
91
|
-
|
|
152
|
+
### 4. Shadow Double-Entry Journal Reconciliation
|
|
153
|
+
For every invoice, Adesha generates a simulated double-entry journal voucher (Debit Expense, Debit Input Tax, Credit Vendor Payable, Credit TDS Payable). This simulated voucher is compared against the historical ERP general ledger journal to highlight booking discrepancies.
|
|
154
|
+
|
|
155
|
+
### Analytical Scope & Boundary Commitments
|
|
156
|
+
|
|
157
|
+
| What the Supervised Shadow Pilot Demonstrates | What It Cannot Establish by Itself |
|
|
92
158
|
| :--- | :--- |
|
|
93
|
-
|
|
|
94
|
-
|
|
|
95
|
-
|
|
|
96
|
-
| Repeat runs on
|
|
159
|
+
| Adesha accurately parses and interprets historical AP extracts. | Instantaneous ingestion of proprietary ERP schemas without initial field mapping. |
|
|
160
|
+
| Mathematical and statutory determinations strictly agree with independent tax ground truth. | Legal infallibility across non-standard or unresolved statutory litigation edge cases. |
|
|
161
|
+
| Complete audit traceability from every recommendation to primary gazette citations. | Guaranteed immediate financial recovery or cash tax refunds. |
|
|
162
|
+
| Repeat deterministic runs on identical archival inputs produce mathematically identical results. | Production-grade real-time banking security or live ERP multi-region high availability. |
|
|
97
163
|
|
|
98
164
|
---
|
|
99
165
|
|
|
100
|
-
## 6. Security, Confidentiality & Data
|
|
166
|
+
## 6. Security, Confidentiality & Data Protection
|
|
101
167
|
|
|
102
|
-
|
|
168
|
+
Corporate accounts payable records contain commercially sensitive supplier pricing, bank account details, and corporate tax identifiers. The Supervised Shadow Pilot adheres to strict security protocols:
|
|
103
169
|
|
|
104
|
-
|
|
170
|
+
### Baseline Execution Boundaries
|
|
171
|
+
- **On-Premise / Private Cloud Execution**: The pilot engine and open `@mudraforge/statutory` substrate can run entirely within the enterprise's private network or local workstation environment with zero external data egress.
|
|
172
|
+
- **Strictly Read-Only Ingestion**: Adesha accesses only the historical extract provided by the customer. It possesses zero programmatic access to active ERP systems, production databases, or banking networks.
|
|
105
173
|
|
|
106
|
-
###
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
Prior to transferring any sample data or initiating evaluation scripts, the parties will establish:
|
|
112
|
-
1. **Bilateral Non-Disclosure Agreement (NDA)**: Governing proprietary financial and supplier pricing data.
|
|
113
|
-
2. **Customer-Side Field Masking / Anonymization**: The customer may optionally hash or mask sensitive fields (such as bank account numbers or internal vendor IDs) prior to transmission.
|
|
114
|
-
3. **Data Retention & Disposal Schedule**: Agreement on secure disposal of evaluation extracts within a defined period (e.g., 30 days post-report delivery).
|
|
115
|
-
4. **Environment Specification**: Mutual agreement on whether processing occurs on customer-controlled workstations or a private cloud environment.
|
|
174
|
+
### Information Governance Protocols
|
|
175
|
+
Prior to ingesting customer records, standard enterprise safeguards are established:
|
|
176
|
+
1. **Bilateral Non-Disclosure Agreement (NDA)**: Protecting all vendor commercial terms, volume discounts, and operational financial metrics.
|
|
177
|
+
2. **Customer-Side Pseudonymization**: The enterprise may hash or redact sensitive identifiers (such as bank account numbers or internal vendor keys) prior to transmission.
|
|
178
|
+
3. **Data Disposal Mandate**: Certified cryptographic deletion of all evaluation datasets upon delivery and acceptance of the final audit report.
|
|
116
179
|
|
|
117
180
|
---
|
|
118
181
|
|
|
119
|
-
## 7. Strict Operational
|
|
182
|
+
## 7. Strict Operational Safeguards
|
|
120
183
|
|
|
121
|
-
To
|
|
184
|
+
To maintain clear enterprise governance, the pilot operates under absolute operational restrictions:
|
|
122
185
|
|
|
123
|
-
- **
|
|
124
|
-
- **
|
|
125
|
-
- **
|
|
126
|
-
- **
|
|
186
|
+
- **Zero Live Ledger Mutations**: Adesha will not write back journals, alter vendor balances, or modify general ledger accounts in SAP, Zoho Books, NetSuite, Oracle, or Tally.
|
|
187
|
+
- **Zero Banking Rail Access**: Adesha does not connect to corporate banking APIs, initiate wire transfers, or hold authority to disburse funds.
|
|
188
|
+
- **Zero Regulatory Submissions**: Adesha will not generate or transmit Form 26Q quarterly returns or TDS challans to government portals.
|
|
189
|
+
- **Technical Advisory Designation**: All deliverables constitute technical compliance analysis and do not replace formal legal or statutory audit opinions from certified enterprise tax counsel.
|
|
127
190
|
|
|
128
191
|
---
|
|
129
192
|
|
|
130
|
-
## 8.
|
|
193
|
+
## 8. Quantitative Evaluation & Acceptance Benchmarks
|
|
131
194
|
|
|
132
|
-
|
|
195
|
+
The success of the Supervised Shadow Pilot is measured against objective, pre-agreed quantitative benchmarks:
|
|
133
196
|
|
|
134
|
-
|
|
|
197
|
+
| Evaluation Benchmark | Objective Definition | Success Threshold |
|
|
135
198
|
| :--- | :--- | :--- |
|
|
136
|
-
| **Input Completeness** |
|
|
137
|
-
| **Calculation Accuracy** | Agreement
|
|
138
|
-
| **Ambiguity
|
|
139
|
-
| **
|
|
140
|
-
| **
|
|
199
|
+
| **Input Completeness** | Proportion of archival records with sufficient parameters to evaluate statutory applicability | $\ge 90\%$ of provided dataset |
|
|
200
|
+
| **Calculation Accuracy** | Agreement with settled statutory ground truth on unambiguous records | $100\%$ precision on verified provisions |
|
|
201
|
+
| **Ambiguity Isolation** | Strict fail-closed categorization of records lacking necessary documentation | $100\%$ isolation of uncertain records |
|
|
202
|
+
| **Citation Traceability** | Traceability of every flagged variance to deep primary government endpoints | $100\%$ verified canonical citations |
|
|
203
|
+
| **Deterministic Reproducibility** | Mathematical identity across repeat runs on the same input dataset | Zero variance across repeated runs |
|
|
141
204
|
|
|
142
205
|
---
|
|
143
206
|
|
|
144
|
-
## 9. Initiating a Pilot
|
|
207
|
+
## 9. Initiating a Supervised Shadow Pilot
|
|
208
|
+
|
|
209
|
+
To schedule an architecture review, receive sample ingestion schemas, or coordinate a Supervised Shadow Pilot for your finance organization:
|
|
145
210
|
|
|
146
|
-
|
|
147
|
-
- **Email**: [hello@mudraforge.in](mailto:hello@mudraforge.in) or [support@mudraforge.in](mailto:support@mudraforge.in)
|
|
211
|
+
- **Enterprise Inquiries**: [hello@mudraforge.in](mailto:hello@mudraforge.in) or [support@mudraforge.in](mailto:support@mudraforge.in)
|
|
148
212
|
- **Direct Founder Contact**: Mondeep Engti at [mondeepe@gmail.com](mailto:mondeepe@gmail.com)
|
|
149
|
-
- **
|
|
213
|
+
- **Technical Architecture Documentation**: [https://mudraforge.in/docs](https://mudraforge.in/docs)
|
|
214
|
+
- **Open Trust Anchor Repository**: [https://github.com/mondeep0123/mudraforge-statutory](https://github.com/mondeep0123/mudraforge-statutory)
|
package/docs/PROVENANCE.md
CHANGED
|
@@ -8,17 +8,17 @@ This document records the cryptographic provenance, normative specifications, an
|
|
|
8
8
|
|
|
9
9
|
| Item | Value |
|
|
10
10
|
|---|---|
|
|
11
|
-
| **Package Release** | **`v2.
|
|
11
|
+
| **Package Release** | **`v2.9.0`** (Production Release) |
|
|
12
12
|
| **Knowledge Specification** | **Google Open Knowledge Format (OKF v0.2) + MudraForge Statutory Schema Extension** |
|
|
13
13
|
| **Regulatory Snapshot** | **CBDT / CBIC / MCA / MSME Baseline: October 2026** |
|
|
14
|
-
| **Corpus Quality Card** | 100% Citation Resolution (
|
|
14
|
+
| **Corpus Quality Card** | 100% Primary Citation Resolution (76/76 URLs verified; 108 citations across 29 provisions) in [`docs/CORPUS_QUALITY.md`](./CORPUS_QUALITY.md) |
|
|
15
15
|
| **Architecture Decision Records** | 6 Normative ADRs documented in [`docs/ARCHITECTURE_DECISIONS.md`](./ARCHITECTURE_DECISIONS.md) |
|
|
16
16
|
| **Vendor Conformance Suite** | 12/12 Passing Fixture Tests in [`conformance/`](../conformance/) |
|
|
17
17
|
| **End-to-End Execution Trace** | Audited 7-stage AP lifecycle in [`examples/`](../examples/) (`npm run example:trace`) |
|
|
18
18
|
| **Enterprise Assurance Preview** | Formal TLA+ & mutation defenses in [`docs/ADESHA_ASSURANCE_OVERVIEW.md`](./ADESHA_ASSURANCE_OVERVIEW.md) |
|
|
19
|
-
| **Integrity Root** | SHA-256 root manifest in [`okf/manifest.json`](../okf/manifest.json) (
|
|
19
|
+
| **Integrity Root** | SHA-256 root manifest in [`okf/manifest.json`](../okf/manifest.json) (`sha256-4bbe36c3db841b833dd2bebbd6c1c5ed735498e7b20d1221c323ceb211529fe0` across 86 files) |
|
|
20
20
|
| **Temporal Framework** | Dual-Act Bridge: *Income-tax Act, 1961* & *Income-tax Act, 2025* |
|
|
21
|
-
| **Verification Gate** | 100% Pass across cumulative thresholds, legislative sunsets, and excess math |
|
|
21
|
+
| **Verification Gate** | 100% Pass across all 80 test suites (cumulative thresholds, legislative sunsets, and excess math) |
|
|
22
22
|
|
|
23
23
|
---
|
|
24
24
|
|
package/docs/VERIFICATION.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# @mudraforge/statutory: Verification & Conformance Report
|
|
2
2
|
|
|
3
|
-
> **Audited Package**: `@mudraforge/statutory` v2.
|
|
3
|
+
> **Audited Package**: `@mudraforge/statutory` v2.9.0 (Public Open Knowledge Commons)
|
|
4
4
|
> **Target Runtime**: Node.js v20+, Bun, Deno, Cloudflare Workers
|
|
5
|
-
> **Public Test Status**:
|
|
6
|
-
> **Cryptographic Scope**: SHA-256 Merkle root digest over
|
|
5
|
+
> **Public Test Status**: 80 Multi-Domain Regression & Verification Suites Passing (100% Reproducible)
|
|
6
|
+
> **Cryptographic Scope**: SHA-256 Merkle root digest over 86 bundled knowledge files (0 mismatches)
|
|
7
7
|
|
|
8
8
|
---
|
|
9
9
|
|
|
@@ -90,17 +90,17 @@ The conformance runner (`conformance/test_conformance.js`) tests parser behavior
|
|
|
90
90
|
|
|
91
91
|
## 6. Reproducible Release Tarball Verification
|
|
92
92
|
|
|
93
|
-
Every published release tarball can be independently verified against Git tag `v2.
|
|
93
|
+
Every published release tarball can be independently verified against Git tag `v2.9.0`:
|
|
94
94
|
|
|
95
95
|
```bash
|
|
96
96
|
# 1. Pack the distribution tarball
|
|
97
97
|
npm pack
|
|
98
98
|
|
|
99
99
|
# 2. Compute the SHA-256 checksum of the tarball (PowerShell)
|
|
100
|
-
Get-FileHash mudraforge-statutory-2.
|
|
100
|
+
Get-FileHash mudraforge-statutory-2.9.0.tgz -Algorithm SHA256
|
|
101
101
|
|
|
102
102
|
# Or in Linux / macOS:
|
|
103
|
-
# sha256sum mudraforge-statutory-2.
|
|
103
|
+
# sha256sum mudraforge-statutory-2.9.0.tgz
|
|
104
104
|
```
|
|
105
105
|
|
|
106
|
-
The resulting package contains exactly
|
|
106
|
+
The resulting package contains exactly 124 audited files (zero extraneous build artifacts, zero internal development scripts).
|
package/okf/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mudraforge/statutory",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.10.0",
|
|
4
4
|
"description": "Open Knowledge Format (OKF) client & AI Agent Skill for Indian and cross-border statutory tax provisions. Zero dependencies.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -11,6 +11,16 @@
|
|
|
11
11
|
"import": "./src/index.js",
|
|
12
12
|
"default": "./src/index.js"
|
|
13
13
|
},
|
|
14
|
+
"./outcomes": {
|
|
15
|
+
"types": "./types/index.d.ts",
|
|
16
|
+
"import": "./src/outcomes.js",
|
|
17
|
+
"default": "./src/outcomes.js"
|
|
18
|
+
},
|
|
19
|
+
"./constants": {
|
|
20
|
+
"types": "./types/index.d.ts",
|
|
21
|
+
"import": "./src/constants.js",
|
|
22
|
+
"default": "./src/constants.js"
|
|
23
|
+
},
|
|
14
24
|
"./calculators": {
|
|
15
25
|
"types": "./types/index.d.ts",
|
|
16
26
|
"import": "./src/calculators.js",
|
|
@@ -22,6 +32,12 @@
|
|
|
22
32
|
"*": {
|
|
23
33
|
"calculators": [
|
|
24
34
|
"./types/index.d.ts"
|
|
35
|
+
],
|
|
36
|
+
"outcomes": [
|
|
37
|
+
"./types/index.d.ts"
|
|
38
|
+
],
|
|
39
|
+
"constants": [
|
|
40
|
+
"./types/index.d.ts"
|
|
25
41
|
]
|
|
26
42
|
}
|
|
27
43
|
},
|
|
@@ -30,6 +46,7 @@
|
|
|
30
46
|
},
|
|
31
47
|
"sideEffects": false,
|
|
32
48
|
"bin": {
|
|
49
|
+
"statutory": "bin/cli.js",
|
|
33
50
|
"mudraforge-statutory": "bin/cli.js"
|
|
34
51
|
},
|
|
35
52
|
"files": [
|
package/src/constants.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Canonical Single-Source-of-Truth Constants for @mudraforge/statutory.
|
|
3
|
+
* Pure ESM module with zero Node.js/browser-specific dependencies.
|
|
4
|
+
* Safe to import across Node.js, Cloudflare Workers, browsers, and Edge runtimes.
|
|
5
|
+
*
|
|
6
|
+
* @license MIT
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
export const STATUTORY_CLIENT_VERSION = '2.10.0';
|
|
10
|
+
export const DEFAULT_BASE_URL = 'https://api.mudraforge.in';
|