Files
Neon-Desk/rust/taxonomy/fiscal/v1/core.income-bridge.json
francy51 a7f7be50b4 Remove legacy TypeScript financial surface mapping, make Rust JSON single source of truth
- Delete standard-template.ts, surface.ts, materialize.ts (dead code)
- Delete financial-taxonomy.test.ts (relied on removed code)
- Add missing income statement surfaces to core.surface.json
- Add cost_of_revenue mapping to core.income-bridge.json
- Refactor standardize.ts to remove template dependency
- Simplify financial-taxonomy.ts to use only DB snapshots
- Add architecture documentation
2026-03-15 14:38:48 -04:00

307 lines
8.6 KiB
JSON

{
"version": "fiscal-v1",
"pack": "core",
"rows": {
"revenue": {
"direct_authoritative_concepts": [
"us-gaap:RevenueFromContractWithCustomerExcludingAssessedTax",
"us-gaap:SalesRevenueNet",
"us-gaap:Revenues",
"us-gaap:Revenue"
],
"direct_source_concepts": [
"RevenueFromContractWithCustomerExcludingAssessedTax",
"SalesRevenueNet",
"Revenues",
"Revenue"
],
"component_surfaces": {
"positive": [],
"negative": []
},
"component_concept_groups": {
"positive": [],
"negative": []
},
"formula": "direct",
"not_meaningful_for_pack": false,
"warning_codes_when_used": []
},
"cost_of_revenue": {
"direct_authoritative_concepts": [
"us-gaap:CostOfRevenue"
],
"direct_source_concepts": [
"CostOfRevenue",
"CostOfGoodsSold",
"CostOfSales",
"CostOfGoodsAndServicesSold",
"CostOfGoodsAndServiceExcludingDepreciationDepletionAndAmortization",
"CostOfProductsSold",
"CostOfServices"
],
"component_surfaces": {
"positive": [],
"negative": []
},
"component_concept_groups": {
"positive": [],
"negative": []
},
"formula": "direct",
"not_meaningful_for_pack": false,
"warning_codes_when_used": []
},
"gross_profit": {
"direct_authoritative_concepts": [
"us-gaap:GrossProfit"
],
"direct_source_concepts": [
"GrossProfit"
],
"component_surfaces": {
"positive": [
"revenue"
],
"negative": [
"cost_of_revenue"
]
},
"component_concept_groups": {
"positive": [],
"negative": []
},
"formula": "subtract",
"not_meaningful_for_pack": false,
"warning_codes_when_used": [
"gross_profit_formula_derived"
]
},
"operating_expenses": {
"direct_authoritative_concepts": [
"us-gaap:OperatingExpenses"
],
"direct_source_concepts": [
"OperatingExpenses"
],
"component_surfaces": {
"positive": [],
"negative": []
},
"component_concept_groups": {
"positive": [
{
"name": "operating_expense_components",
"concepts": [
"us-gaap:SellingGeneralAndAdministrativeExpense",
"us-gaap:ResearchAndDevelopmentExpense",
"us-gaap:MarketingExpense",
"us-gaap:GeneralAndAdministrativeExpense",
"us-gaap:LaborAndRelatedExpense",
"us-gaap:OccupancyNet",
"us-gaap:DataProcessingExpense",
"us-gaap:RestructuringCharges",
"us-gaap:StockBasedCompensation"
]
}
],
"negative": []
},
"formula": "sum",
"not_meaningful_for_pack": false,
"warning_codes_when_used": [
"operating_expenses_formula_derived"
]
},
"selling_general_and_administrative": {
"direct_authoritative_concepts": [
"us-gaap:SellingGeneralAndAdministrativeExpense",
"us-gaap:SellingGeneralAndAdministrativeExpenseExcludingEmployeeStockOptionPlanSpecialDividendCompensation"
],
"direct_source_concepts": [
"SellingGeneralAndAdministrativeExpense",
"SellingGeneralAndAdministrativeExpenseExcludingEmployeeStockOptionPlanSpecialDividendCompensation"
],
"component_surfaces": {
"positive": [],
"negative": []
},
"component_concept_groups": {
"positive": [
{
"name": "sales_and_marketing",
"concepts": [
"us-gaap:SalesAndMarketingExpense",
"us-gaap:SellingAndMarketingExpense",
"us-gaap:MarketingExpense",
"us-gaap:AdvertisingExpense"
]
},
{
"name": "general_and_administrative",
"concepts": [
"us-gaap:GeneralAndAdministrativeExpense"
]
}
],
"negative": []
},
"formula": "sum",
"not_meaningful_for_pack": false,
"warning_codes_when_used": [
"selling_general_and_administrative_formula_derived"
]
},
"research_and_development": {
"direct_authoritative_concepts": [
"us-gaap:ResearchAndDevelopmentExpense"
],
"direct_source_concepts": [
"ResearchAndDevelopmentExpense"
],
"component_surfaces": {
"positive": [],
"negative": []
},
"component_concept_groups": {
"positive": [],
"negative": []
},
"formula": "direct",
"not_meaningful_for_pack": false,
"warning_codes_when_used": []
},
"other_operating_expense": {
"direct_authoritative_concepts": [
"us-gaap:OtherThanInterestExpense",
"us-gaap:OtherOperatingExpenses",
"us-gaap:OtherCostAndExpenseOperating",
"us-gaap:OtherOperatingExpense"
],
"direct_source_concepts": [
"OtherThanInterestExpense",
"OtherOperatingExpenses",
"OtherCostAndExpenseOperating",
"OtherOperatingExpense"
],
"component_surfaces": {
"positive": [
"operating_expenses"
],
"negative": [
"selling_general_and_administrative",
"research_and_development"
]
},
"component_concept_groups": {
"positive": [],
"negative": []
},
"formula": "sum_then_subtract",
"not_meaningful_for_pack": false,
"warning_codes_when_used": [
"other_operating_expense_formula_derived"
]
},
"operating_income": {
"direct_authoritative_concepts": [
"us-gaap:OperatingIncomeLoss",
"us-gaap:IncomeFromOperations",
"us-gaap:OperatingProfit"
],
"direct_source_concepts": [
"OperatingIncomeLoss",
"IncomeFromOperations",
"OperatingProfit"
],
"component_surfaces": {
"positive": [
"gross_profit"
],
"negative": [
"operating_expenses"
]
},
"component_concept_groups": {
"positive": [],
"negative": []
},
"formula": "subtract",
"not_meaningful_for_pack": false,
"warning_codes_when_used": [
"operating_income_formula_derived"
]
},
"income_tax_expense": {
"direct_authoritative_concepts": [
"us-gaap:IncomeTaxExpenseBenefit"
],
"direct_source_concepts": [
"IncomeTaxExpenseBenefit"
],
"component_surfaces": {
"positive": [],
"negative": [
"net_income"
]
},
"component_concept_groups": {
"positive": [
{
"name": "pretax_income",
"concepts": [
"us-gaap:IncomeBeforeTaxExpenseBenefit",
"us-gaap:PretaxIncome",
"us-gaap:IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
"us-gaap:IncomeBeforeEquityMethodInvestmentsIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
"us-gaap:IncomeFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments"
]
}
],
"negative": []
},
"formula": "subtract",
"not_meaningful_for_pack": false,
"warning_codes_when_used": [
"income_tax_expense_formula_derived"
]
},
"net_income": {
"direct_authoritative_concepts": [
"us-gaap:NetIncomeLoss",
"us-gaap:ProfitLoss"
],
"direct_source_concepts": [
"NetIncomeLoss",
"ProfitLoss"
],
"component_surfaces": {
"positive": [],
"negative": [
"income_tax_expense"
]
},
"component_concept_groups": {
"positive": [
{
"name": "pretax_income",
"concepts": [
"us-gaap:IncomeBeforeTaxExpenseBenefit",
"us-gaap:PretaxIncome",
"us-gaap:IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
"us-gaap:IncomeBeforeEquityMethodInvestmentsIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
"us-gaap:IncomeFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments"
]
}
],
"negative": []
},
"formula": "subtract",
"not_meaningful_for_pack": false,
"warning_codes_when_used": [
"net_income_formula_derived"
]
}
}
}