edgartools icon indicating copy to clipboard operation
edgartools copied to clipboard

Key industry handling on FASB's statement formats (REIT, bank, insurer, broker-dealer, investment company) and map their core elements

Open synfonia-llc opened this issue 1 month ago • 1 comments

Feature Category

  • [x] New API functionality
  • [ ] Performance improvement
  • [ ] Developer experience improvement
  • [ ] Documentation enhancement
  • [ ] Tool/utility addition

Problem Statement

Is your feature request related to a problem? Please describe.

  • REITs get the wrong industry. SIC 6798 is classed Fin with broker-dealers, holding offices and blank checks (sic_industry.py:197), matching Fama-French 48, so the RlEst overrides never reach a REIT. FASB gives REITs their own statements (roles 145000, 170000).
  • Core industry elements are unmapped. Broker-dealers: 13 (RevenuesNetOfInterestExpense, the top line of FASB role 140400; InvestmentBankingRevenue; TradingGainsLosses; SecuritiesBorrowed; financial instruments owned and sold short; federal funds purchased …). Insurers: 11 (LiabilityForFuturePolicyBenefits, PolicyholderFunds, separate accounts, the LDTI remeasurement …). Utilities: the three revenue components of RegulatedAndUnregulatedOperatingRevenue and four plant elements. Resale agreements: FinancialAssetPurchasedUnderAgreementToResell and two long-standing resale elements, with no "resell" concept (ASC 860-30-45-2A). Investment companies: 83 of the 87 Topic 946 elements added 2023-2026 that appear on 2026 H1 face statements (InterestIncomeOperatingPaidInKind, 348 lines).

Who would benefit from this feature?

  • [ ] Beginner Python users working with SEC filings
  • [x] Financial analysts and researchers
  • [x] Advanced developers building financial applications
  • [x] Data scientists working with financial datasets

Proposed Solution

Describe the solution you'd like Key industry handling on the FASB statement format (deposit-based, insurance-based, securities-based, REIT, investment company) rather than Fama-French 48, and map the elements of FASB's broker-dealer (140400, 112000), insurance, utility and Topic 946 networks, adding resale and repurchase-agreement concepts with is_total: false.

Describe alternatives you've considered Patching the SIC table for REITs only, which leaves the missing elements.

Use Case Example

How would you use this feature?

from edgar.xbrl.standardization.reverse_index import get_reverse_index
get_reverse_index().lookup("us-gaap:RevenuesNetOfInterestExpense")  # today None

Implementation Considerations

Complexity Level:

  • [ ] Simple (minor API addition)
  • [x] Moderate (new functionality with existing patterns)
  • [ ] Complex (significant architectural changes)

Backwards Compatibility:

  • [x] This feature maintains backwards compatibility
  • [ ] This feature might break existing code (please explain below)
  • [ ] Unsure about compatibility impact

Additional Context

Related Issues/Features: #1419 (industry hook and overrides); the industry line-items data issue (#1441).

synfonia-llc avatar Oct 06 '26 10:10 synfonia-llc

@dgunning, here is our current thinking on the root cause, proposed behavior, and coordination with other issues.

Root Cause:

Representative industry measures lack precise standard mappings, and Fama-French industry does not describe a particular filing’s statement format. The REIT SIC correction already landed in PR #1537.

Proposed Behavior:

Start with ten precise monetary identities that preserve total/component, trading, netting, reinsurance and cash/noncash distinctions without changing source amounts. Add contextual statement-format assessment later, retaining Fama-French industry and explicit unknown or conflicting evidence for each reporting entity and statement. The ten-entry increment leaves the combined regulated/unregulated total mislabeled “Electric Utility Revenue” as a tracked follow-up, so it does not complete the utility-vocabulary repair. The design offers including a precise combined-total identity instead, for your decision.

Coordination:

Keep this separate from #1447 and #1448, coordinating #1452’s contextual API and ordering shared mapping edits. Data additions can precede that API; format assessment follows it, and the #1665 getter repair that landed in PR #1795 remains a control.

Below, please find the full design document. Please let me know your thoughts.

Brian

Attachment: design-public.md, Proposal for #1450: preserve industry measures and add statement-format context.

AI assistance: Codex; GPT-6.1-sol (High) performed current-main scouting and final public writing; GPT-6-astra (Max) prepared the architecture and source/standards analysis; a separate GPT-6-astra (Max) completed independent financial review of all ten definitions and the phased format design after corrections. Claude Opus 5.5 (High) performed adversarial review and independent resolver review; GPT-6.1 Sol (High) revised the proposal against those findings. A separate GPT-6.1 Sol (High) reviewed the revised financial/source meaning and public readiness.

synfonia-llc avatar Oct 27 '26 11:10 synfonia-llc