Upload data/precomputed_presets.json with huggingface_hub
Browse files2564 unmodified lines25652566256725682569257025712564 unmodified lines},"catala": "# UsIrc68A (US_IRC_68_A)\n\nGenerated deterministically by MudraForge Catala/AST Generator (v6.1.0-prod / MF-SPEC-S1-V6.1.0).\nStatutory Invariant: `is_authorized_to_disburse` is permanently locked to `false`.\n\n## Statutory Source Text\n\n \"(a) General rule: In the case of an individual whose adjusted gross income exceeds the applicable amount, the amount of the itemized deductions otherwise allowable for the taxable year shall be reduced by the lesser of- (1) 3 percent of the excess of adjusted gross income over the applicable amount, or (2) 80 percent of the amount of the itemized deductions otherwise allowable for such taxable year.\"\n\n## Scope Declaration\n\n```catala\ndeclaration scope UsIrc68A:\n # input income content money # (unreferenced in zero-dollar or definition scope: leaf=BASE_INCOME, span='adjusted gross income')\n # input is_itemized_deductions content boolean # (unreferenced in zero-dollar or definition scope: leaf=FILTER_CUSTOM, REVIEW_FALLBACK, span='itemized deductions')\n output is_rule_applicable content boolean\n output computed_statutory_amount content money\n output is_authorized_to_disburse content boolean\n```\n\n## Extracted Statutory Anchors (Stage 1)\n\n- **ACTOR_SCOPE**: `individual`\n- **DURATION**: `taxable year`, `taxable year`\n- **OP**: `exceeds`, `shall be reduced`, `lesser of`, `excess`, `over`\n- **RATE**: `3 percent`, `80 percent`\n\n## Clause-Structured Rule Scaffold\n\n```catala\nscope UsIrc68A:\n # Hard statutory invariant: calculation never authorizes disbursement\n definition is_authorized_to_disburse equals false\n\n # --- COND Clauses ---\n # [COND p=0.8484] In the case of an individual whose adjusted gross income exceeds the applicable amount\n # vars: income\n # ops: ['exceeds'] | literals: \n definition is_rule_applicable equals false\n\n label base_applicability\n exception\n rule is_rule_applicable under condition\n true\n consequence fulfilled\n\n # --- RULE_EFFECT / COMPUTATION Clauses ---\n # [RULE_EFFECT p=0.9445] the amount of the itemized deductions otherwise allowable for the taxable year shall be reduced by the lesser of- (1) 3 percent of the excess of adjusted gross income over the applicable amount, or (2) 80 percent of the amount of the itemized deductions otherwise allowable for such taxable year.\n # vars: income, is_itemized_deductions\n # literals: DURATION='taxable year', RATE='3 percent', RATE='80 percent', DURATION='taxable year'\n definition computed_statutory_amount equals\n if is_rule_applicable then $0.00 # UNRESOLVED_MULTI_RATE_CLAUSE: review required\n else $0.00\n```\n\n## Conformal Uncertainty Review Queue\n\n- `itemized deductions` (CATEGORY_FILTER -> `FILTER_CUSTOM`, H=0.6002) \u2014 teach via: `python law2code.py teach-leaf --doc-id US_IRC_68_A --span-text \"itemized deductions\" --branch CATEGORY_FILTER --leaf <NEW_CATALA_LEAF_ID>`\n- Flag: `UNRESOLVED_MULTI_RATE_CLAUSE`: Rate combinator detected but failed to resolve distinct monetary bases for each rate prong (prevented tautological min/max evaluation); failed closed to $0.00. \u2014 action: `Disambiguate rate selection via discriminator predicate or bracket slab table in review queue`\n","mermaid": {"mermaid": "flowchart TD\n %% Style Definitions\n classDef ingress fill:#1e293b,stroke:#38bdf8,stroke-width:2px,color:#f8fafc;\n classDef gate fill:#0f172a,stroke:#f59e0b,stroke-width:2px,color:#f8fafc;\n classDef action fill:#0f172a,stroke:#10b981,stroke-width:2px,color:#f8fafc;\n classDef exitNode fill:#311019,stroke:#ef4444,stroke-width:2px,color:#fca5a5;\n classDef guard fill:#1e1b4b,stroke:#818cf8,stroke-width:2px,color:#c7d2fe;\n classDef terminal fill:#064e3b,stroke:#34d399,stroke-width:2px,color:#ecfdf5;\n\n %% Scope Ingress\n NODE_START([\"Statute Ingress: UsIrc68A (US_IRC_68_A)\"]):::ingress\n NODE_COND{\"Precondition Gate: In the case of an individual whose adjusted gross income exceeds the applicable amount\"}:::gate\n NODE_START --> NODE_COND\n NODE_COND_FAIL[\"Preconditions Not Met<br/>Outcome: Inapplicable / $0.00\"]:::exitNode\n NODE_COND -- \"False / Inapplicable\" --> NODE_COND_FAIL\n NODE_COND_FAIL --> EXIT_COND([\"Terminal: Rule Does Not Apply\"]):::exitNode\n NODE_COND -- \"True / Condition Met\" --> NODE_COND_PASS[\"Preconditions Satisfied\"]:::action\n NODE_THRESHOLD_CHECK{\"Threshold Test: AGI > Applicable Amount?\"}:::gate\n NODE_COND_PASS --> NODE_THRESHOLD_CHECK\n NODE_BELOW_THRES[\"AGI <= Applicable Amount<br/>Reduction: $0.00\"]:::action\n NODE_THRESHOLD_CHECK -- \"No Excess\" --> NODE_BELOW_THRES\n NODE_BELOW_THRES --> EXIT_NO_REDUCE([\"Deductions Unchanged ($0 Reduction)\"]):::terminal\n CALC_OPT1[\"Option 1: 3% of Excess AGI<br/>(AGI - Applicable Amount) * 3%\"]:::action\n CALC_OPT2[\"Option 2: 80% Itemized Deductions Cap<br/>Itemized Deductions * 80%\"]:::action\n NODE_THRESHOLD_CHECK -- \"Excess Exists\" --> CALC_OPT1\n NODE_THRESHOLD_CHECK -- \"Excess Exists\" --> CALC_OPT2\n NODE_COMPUTE[\"Lesser-Of Combinator: min(Option 1, Option 2)\"]:::action\n CALC_OPT1 --> NODE_COMPUTE\n CALC_OPT2 --> NODE_COMPUTE\n NODE_GUARD[[\"Statutory Invariant Guard:<br/>is_authorized_to_disburse = false\"]]:::guard\n NODE_COMPUTE --> NODE_GUARD\n NODE_FINAL([\"Final Deterministic Assessment Complete\"]) :::terminal\n NODE_GUARD --> NODE_FINAL","scope_name": "UsIrc68A","doc_id": "US_IRC_68_A","structured_nodes": [2564 unmodified lines25652566256725682569257025712564 unmodified lines},"catala": "# UsIrc68A (US_IRC_68_A)\n\nGenerated deterministically by MudraForge Catala/AST Generator (v6.1.0-prod / MF-SPEC-S1-V6.1.0).\nStatutory Invariant: `is_authorized_to_disburse` is permanently locked to `false`.\n\n## Statutory Source Text\n\n \"(a) General rule: In the case of an individual whose adjusted gross income exceeds the applicable amount, the amount of the itemized deductions otherwise allowable for the taxable year shall be reduced by the lesser of- (1) 3 percent of the excess of adjusted gross income over the applicable amount, or (2) 80 percent of the amount of the itemized deductions otherwise allowable for such taxable year.\"\n\n## Scope Declaration\n\n```catala\ndeclaration scope UsIrc68A:\n # input income content money # (unreferenced in zero-dollar or definition scope: leaf=BASE_INCOME, span='adjusted gross income')\n # input is_itemized_deductions content boolean # (unreferenced in zero-dollar or definition scope: leaf=FILTER_CUSTOM, REVIEW_FALLBACK, span='itemized deductions')\n output is_rule_applicable content boolean\n output computed_statutory_amount content money\n output is_authorized_to_disburse content boolean\n```\n\n## Extracted Statutory Anchors (Stage 1)\n\n- **ACTOR_SCOPE**: `individual`\n- **DURATION**: `taxable year`, `taxable year`\n- **OP**: `exceeds`, `shall be reduced`, `lesser of`, `excess`, `over`\n- **RATE**: `3 percent`, `80 percent`\n\n## Clause-Structured Rule Scaffold\n\n```catala\nscope UsIrc68A:\n # Hard statutory invariant: calculation never authorizes disbursement\n definition is_authorized_to_disburse equals false\n\n # --- COND Clauses ---\n # [COND p=0.8484] In the case of an individual whose adjusted gross income exceeds the applicable amount\n # vars: income\n # ops: ['exceeds'] | literals: \n definition is_rule_applicable equals false\n\n label base_applicability\n exception\n rule is_rule_applicable under condition\n true\n consequence fulfilled\n\n # --- RULE_EFFECT / COMPUTATION Clauses ---\n # [RULE_EFFECT p=0.9445] the amount of the itemized deductions otherwise allowable for the taxable year shall be reduced by the lesser of- (1) 3 percent of the excess of adjusted gross income over the applicable amount, or (2) 80 percent of the amount of the itemized deductions otherwise allowable for such taxable year.\n # vars: income, is_itemized_deductions\n # literals: DURATION='taxable year', RATE='3 percent', RATE='80 percent', DURATION='taxable year'\n definition computed_statutory_amount equals\n if is_rule_applicable then $0.00 # UNRESOLVED_MULTI_RATE_CLAUSE: review required\n else $0.00\n```\n\n## Conformal Uncertainty Review Queue\n\n- `itemized deductions` (CATEGORY_FILTER -> `FILTER_CUSTOM`, H=0.6002) \u2014 teach via: `python law2code.py teach-leaf --doc-id US_IRC_68_A --span-text \"itemized deductions\" --branch CATEGORY_FILTER --leaf <NEW_CATALA_LEAF_ID>`\n- Flag: `UNRESOLVED_MULTI_RATE_CLAUSE`: Rate combinator detected but failed to resolve distinct monetary bases for each rate prong (prevented tautological min/max evaluation); failed closed to $0.00. \u2014 action: `Disambiguate rate selection via discriminator predicate or bracket slab table in review queue`\n","mermaid": {"mermaid": "flowchart TD\n %% Style Definitions\n classDef ingress fill:#1e293b,stroke:#38bdf8,stroke-width:2px,color:#f8fafc;\n classDef gate fill:#0f172a,stroke:#f59e0b,stroke-width:2px,color:#f8fafc;\n classDef action fill:#0f172a,stroke:#10b981,stroke-width:2px,color:#f8fafc;\n classDef exitNode fill:#311019,stroke:#ef4444,stroke-width:2px,color:#fca5a5;\n classDef guard fill:#1e1b4b,stroke:#818cf8,stroke-width:2px,color:#c7d2fe;\n classDef terminal fill:#064e3b,stroke:#34d399,stroke-width:2px,color:#ecfdf5;\n\n %% Scope Ingress\n NODE_START([\"Statute Ingress: UsIrc68A (US_IRC_68_A)\"]):::ingress\n NODE_COND{\"Precondition Gate: In the case of an individual whose adjusted gross income exceeds the applicable amount\"}:::gate\n NODE_START --> NODE_COND\n NODE_COND_FAIL[\"Preconditions Not Met<br/>Outcome: Inapplicable / $0.00\"]:::exitNode\n NODE_COND -- \"False / Inapplicable\" --> NODE_COND_FAIL\n NODE_COND_FAIL --> EXIT_COND([\"Terminal: Rule Does Not Apply\"]):::exitNode\n NODE_COND -- \"True / Condition Met\" --> NODE_COND_PASS[\"Preconditions Satisfied\"]:::action\n NODE_THRESHOLD_CHECK{\"Threshold Test: AGI > Applicable Amount?\"}:::gate\n NODE_COND_PASS --> NODE_THRESHOLD_CHECK\n NODE_BELOW_THRES[\"AGI <= Applicable Amount<br/>Reduction: $0.00\"]:::action\n NODE_THRESHOLD_CHECK -- \"No Excess\" --> NODE_BELOW_THRES\nNODE_BELOW_THRES --> EXIT_NO_REDUCE([\"Deductions Unchanged ($0 Reduction)\"]):::terminal\n \n CALC_OPT1[\"Option 1: 3% of Excess AGI<br/>(AGI - Applicable Amount) * 3%\"]:::action\n CALC_OPT2[\"Option 2: 80% Itemized Deductions Cap<br/>Itemized Deductions * 80%\"]:::action\n NODE_THRESHOLD_CHECK -- \"Excess Exists\" --> CALC_OPT1\n NODE_THRESHOLD_CHECK -- \"Excess Exists\" --> CALC_OPT2\n NODE_COMPUTE[\"Lesser-Of Combinator: min(Option 1, Option 2)\"]:::action\n CALC_OPT1 --> NODE_COMPUTE\n CALC_OPT2 --> NODE_COMPUTE\n NODE_GUARD[[\"Statutory Invariant Guard:<br/>is_authorized_to_disburse = false\"]]:::guard\n NODE_COMPUTE --> NODE_GUARD\n NODE_FINAL([\"Final Deterministic Assessment Complete\"]) :::terminal\n NODE_GUARD --> NODE_FINAL","scope_name": "UsIrc68A","doc_id": "US_IRC_68_A","structured_nodes": [
data/precomputed_presets.json+1-1