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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_version": "1.0.0",
|
| 3 |
+
"release_version": "v6.1.0-prod",
|
| 4 |
+
"spec_id": "MF-SPEC-S1-V6.1.0",
|
| 5 |
+
"canonical_status": "LOCKED_CANONICAL",
|
| 6 |
+
"updated_at": "2026-11-19T22:55:00+05:30",
|
| 7 |
+
"naming_convention": "stage<STAGE_ID>_<SCOPE>_<CORE_METHOD>_<VERSION>.pt",
|
| 8 |
+
"invariants": {
|
| 9 |
+
"zero_regex": true,
|
| 10 |
+
"zero_hardcoded_doc_ids": true,
|
| 11 |
+
"is_authorized_to_disburse": false,
|
| 12 |
+
"post_ewc_m1_flush_enforced": true
|
| 13 |
+
},
|
| 14 |
+
"stages": {
|
| 15 |
+
"stage0": {
|
| 16 |
+
"name": "Foundational Representation",
|
| 17 |
+
"status": "CANONICAL",
|
| 18 |
+
"scope": "Pretrained legal syntax & discourse topology",
|
| 19 |
+
"method": "Salient MLM (16k steps) + Subword 8192 Hashing + Char-CNN + 28D Discourse Geometry",
|
| 20 |
+
"checkpoint": "stage0_backbone_mlm_salient_16k.pt",
|
| 21 |
+
"legacy_alias": "backbone_mlm_salient_16k.pt",
|
| 22 |
+
"sha256": "3BBC9BAB9A5B6297A2CDC1012488CB2D00690216A535E0B4DC300DE9B2A74002",
|
| 23 |
+
"size_bytes": 18111030,
|
| 24 |
+
"source_modules": [
|
| 25 |
+
"src/lexical_encoder.py",
|
| 26 |
+
"src/core_features.py",
|
| 27 |
+
"src/train_backbone_mlm.py"
|
| 28 |
+
]
|
| 29 |
+
},
|
| 30 |
+
"stage1": {
|
| 31 |
+
"name": "Atomic Non-Operand Parser & Dual-Memory Continual Learner",
|
| 32 |
+
"status": "CANONICAL",
|
| 33 |
+
"version": "v6.1.0-prod",
|
| 34 |
+
"scope": "Strictly Non-Operands (9 classes: MONEY, RATE, DATE, DURATION, COUNT, ACTOR_SCOPE, DEFINED_TERM, OP, XREF; 37 BILOU tags; 0 operands)",
|
| 35 |
+
"method": "4-Level Factorized Hierarchical Decision Tree (3-Token Receptive Window Gate + Superfamily + Definition-Gated Leaves + Decoupled BILOU Tensor) + Dual-Memory Continual Learning (M1 Cosine Episodic Memory tau>=0.94 + M2 Diagonal Fisher EWC)",
|
| 36 |
+
"checkpoint": "stage1_non_operands_tree_cl_v6_full.pt",
|
| 37 |
+
"legacy_alias": "stage1_non_operands_tree_full.pt",
|
| 38 |
+
"sha256": "AF36A998085D00BB08E86C431F58FC728E16771E4CD5167344D84ADEEA8AE3A0",
|
| 39 |
+
"size_bytes": 19375698,
|
| 40 |
+
"fold_checkpoints": [
|
| 41 |
+
"stage1_non_operands_tree_fold1.pt",
|
| 42 |
+
"stage1_non_operands_tree_fold2.pt",
|
| 43 |
+
"stage1_non_operands_tree_fold3.pt",
|
| 44 |
+
"stage1_non_operands_tree_fold4.pt",
|
| 45 |
+
"stage1_non_operands_tree_fold5.pt"
|
| 46 |
+
],
|
| 47 |
+
"metrics": {
|
| 48 |
+
"blind_5fold_oof_exact_f1": 91.97,
|
| 49 |
+
"blind_5fold_oof_precision": 90.48,
|
| 50 |
+
"blind_5fold_oof_recall": 93.52,
|
| 51 |
+
"full_corpus_exact_f1": 99.17,
|
| 52 |
+
"full_corpus_relaxed_f1": 99.36,
|
| 53 |
+
"full_corpus_precision": 99.26,
|
| 54 |
+
"full_corpus_recall": 99.08,
|
| 55 |
+
"sara_ood_spans_extracted": 951,
|
| 56 |
+
"cl_m1_latency_ms": 28.2,
|
| 57 |
+
"cl_ewc_latency_sec": 22.9,
|
| 58 |
+
"cl_ewc_anchor_regression_pct": 0.0
|
| 59 |
+
},
|
| 60 |
+
"source_modules": [
|
| 61 |
+
"src/stage1_tree_taxonomy.py",
|
| 62 |
+
"src/stage1_hierarchical_model.py",
|
| 63 |
+
"src/train_stage1_hierarchical.py",
|
| 64 |
+
"src/continual_memory.py",
|
| 65 |
+
"src/consolidate_ewc.py",
|
| 66 |
+
"src/continual_parser.py",
|
| 67 |
+
"src/canonical_registry.py"
|
| 68 |
+
],
|
| 69 |
+
"deprecated_legacy": [
|
| 70 |
+
"stage1_atoms_fold1..5.pt",
|
| 71 |
+
"stage1_moe_fold1.pt",
|
| 72 |
+
"stage1_moe_pack123_v2_fold1..5.pt",
|
| 73 |
+
"src/train_stage1_atoms.py",
|
| 74 |
+
"src/infer_statute.py (MudraForgeStatuteParser class only; tokenizer remains canonical)"
|
| 75 |
+
]
|
| 76 |
+
},
|
| 77 |
+
"stage1_5": {
|
| 78 |
+
"name": "Catala Operand Specialist & Dual-Memory Continual Learner",
|
| 79 |
+
"status": "CANONICAL",
|
| 80 |
+
"version": "v2.1-s1cond-slotmask",
|
| 81 |
+
"scope": "Strictly Algebraic Variables & Operands across 4 Root Branches (NUMERIC_METRIC, CATEGORY_FILTER, DOC_POINTER, COMPLIANCE_ATTESTATION; 17 BILOU tags) + REJECT_SPAN",
|
| 82 |
+
"method": "Cross-Stage Stage 1 10-Ch Semantic Conditioning (2-Layer Transformer) + 4-Branch Factorized BILOU Tree + Stage 1 Mutual-Exclusion Fence + StatutorySpanPooler & HierarchicalTreeRouter (Conformal Entropy Gate T=1.35, threshold=0.50) + Dual-Memory Continual Learning (M1.5 Cosine Memory tau>=0.94 + M2 Diagonal Fisher EWC)",
|
| 83 |
+
"checkpoint": "stage1_5_operands_catala_tree_v2_full.pt",
|
| 84 |
+
"legacy_alias": "stage1_5_operands_catala_tree_v1.pt",
|
| 85 |
+
"sha256": "7A7804B3B22B5023460ED2C9A797A845F0BF39C42D26270A7A20E52B561EE49D",
|
| 86 |
+
"size_bytes": 25991590,
|
| 87 |
+
"metrics": {
|
| 88 |
+
"blind_fold1_untyped_f1_iou50": 85.41,
|
| 89 |
+
"blind_fold1_numeric_metric_f1": 88.2,
|
| 90 |
+
"blind_fold1_compliance_attestation_f1": 76.2,
|
| 91 |
+
"blind_fold1_router_branch_acc": 94.8,
|
| 92 |
+
"blind_fold1_catala_leaf_exact": 97.3,
|
| 93 |
+
"full_corpus_exact_f1": 98.52,
|
| 94 |
+
"full_corpus_precision": 97.49,
|
| 95 |
+
"full_corpus_recall": 99.57,
|
| 96 |
+
"full_corpus_catala_leaf_exact": 97.6,
|
| 97 |
+
"sara_ood_operands_extracted": 137,
|
| 98 |
+
"sara_ood_conformal_custom_fallbacks": 124
|
| 99 |
+
},
|
| 100 |
+
"source_modules": [
|
| 101 |
+
"src/stage1_5_operand_tree_model.py",
|
| 102 |
+
"src/train_stage1_5_operands.py",
|
| 103 |
+
"src/span_pooler.py",
|
| 104 |
+
"src/hierarchical_tree_router.py",
|
| 105 |
+
"src/catala_tree_router.py",
|
| 106 |
+
"src/continual_memory.py",
|
| 107 |
+
"src/consolidate_ewc.py",
|
| 108 |
+
"src/continual_parser.py"
|
| 109 |
+
]
|
| 110 |
+
},
|
| 111 |
+
"stage2": {
|
| 112 |
+
"name": "Clause Scope Specialist",
|
| 113 |
+
"status": "CANONICAL",
|
| 114 |
+
"version": "v3.0.0-41bridge-prod",
|
| 115 |
+
"scope": "4 Gold Clause Scopes (COND, EXCEPTION, RULE_EFFECT, INLINE_DEF; 17 BILOU tags)",
|
| 116 |
+
"ingress_contract": "41-Tag Ingress Projection = 37 Stage 1 Non-Operand Tags + 4 Stage 1.5 BILOU Operand Channels via MudraForgeCanonicalPipeline",
|
| 117 |
+
"method": "Geometric Clause Span Specialist (Stage2ScopeSpecialistV3, 32D Span Geometry + Invariant Masking + 41-Tag Bridge)",
|
| 118 |
+
"checkpoint": "stage2_clauses_v2_full.pt",
|
| 119 |
+
"legacy_alias": "stage2_clauses_v2_fold1.pt",
|
| 120 |
+
"sha256": "D141346C2EA3732386A3B54AFE1F39F5583BB392C01CEA9EBEAB74A9ABA300AA",
|
| 121 |
+
"size_bytes": 18926667,
|
| 122 |
+
"metrics": {
|
| 123 |
+
"full_corpus_iou50_f1": 97.05,
|
| 124 |
+
"full_corpus_exact_f1": 87.73,
|
| 125 |
+
"full_corpus_precision": 95.0,
|
| 126 |
+
"full_corpus_recall": 99.2,
|
| 127 |
+
"peak_cuda_vram_mb": 270.4
|
| 128 |
+
},
|
| 129 |
+
"source_modules": [
|
| 130 |
+
"src/train_stage2_clauses.py"
|
| 131 |
+
]
|
| 132 |
+
},
|
| 133 |
+
"stage2b": {
|
| 134 |
+
"name": "Boundary & Overlap Refiner",
|
| 135 |
+
"status": "CANONICAL",
|
| 136 |
+
"version": "v2.0.0-snap-prod",
|
| 137 |
+
"scope": "Micro boundary precision, clause overlap resolution, edge ambiguity snapping",
|
| 138 |
+
"method": "Clause Boundary Pointer Network (BiGRU Window Pointer Softmax over [s-6..s+6] and [e-6..e+6] + identity prior)",
|
| 139 |
+
"checkpoint": "stage2_refiner_noppo_v2_full.pt",
|
| 140 |
+
"legacy_alias": "stage2_refiner_noppo_v2_fold1.pt",
|
| 141 |
+
"sha256": "EC7D0731103010530E1426B326D4B739A9E241000A4C2C029ED3E903BD835D1D",
|
| 142 |
+
"size_bytes": 1887746,
|
| 143 |
+
"metrics": {
|
| 144 |
+
"base_exact_f1": 87.73,
|
| 145 |
+
"refined_exact_f1": 94.93,
|
| 146 |
+
"exact_f1_gain": 7.2,
|
| 147 |
+
"overlap_f1": 97.05,
|
| 148 |
+
"zero_recall_loss": true
|
| 149 |
+
},
|
| 150 |
+
"source_modules": [
|
| 151 |
+
"src/train_stage2_refiner.py",
|
| 152 |
+
"src/train_stage2_ppo.py"
|
| 153 |
+
]
|
| 154 |
+
},
|
| 155 |
+
"stage3": {
|
| 156 |
+
"name": "Symbolic AST & Catala Compiler",
|
| 157 |
+
"status": "DETERMINISTIC_SYMBOLIC",
|
| 158 |
+
"scope": "Executable Catala code & JSON-LD AST generation",
|
| 159 |
+
"method": "Deterministic AST Decompiler + Statutory Disbursal Invariant (isAuthorizedToDisburse: false)",
|
| 160 |
+
"checkpoint": null,
|
| 161 |
+
"source_modules": [
|
| 162 |
+
"src/decompile_to_catala.py"
|
| 163 |
+
]
|
| 164 |
+
}
|
| 165 |
+
}
|
| 166 |
+
}
|