Abstract status of standard concepts is guessed from case-sensitive name patterns, so Rollforward headings and domain members read as non-abstract
Issue Type
- [ ] Data Quality Issue (incorrect financial values, missing data)
- [x] XBRL Parsing Issue (statement rendering, concept mapping)
- [ ] Filing Access Issue (download failures, attachment problems)
- [ ] Performance Issue (slow operations, memory problems)
- [ ] Compatibility Issue (platform/dependency conflicts)
- [ ] Documentation Issue (unclear instructions, missing examples)
Environment
EdgarTools Version: 5.62.0 (main at commit 2323d732 reports 5.62.0; the v5.62.0 tag at commit 5068cc54 gives the same output) Python Version: 3.14.4 Operating System: Windows 11
Bug Description
What you expected to happen:
A concept's abstract status is the abstract attribute of its schema declaration (XBRL 2.1 section 5.1.1), read as an xs:boolean, so true, false, 1 and 0 are all accepted.
What actually happened: For concepts from imported taxonomies (us-gaap, dei, srt), the status is guessed from the concept name:
- Elements a filing's own schema does not declare are added to the element catalog without an abstract value (
edgar/xbrl/parsers/labels.py, line 152), soElementCatalog.abstractkeeps its defaultFalse(edgar/xbrl/models.py, line 151). - The only call to
is_abstract_concept(edgar/xbrl/parsers/presentation.py, lines 226-231) passeshas_children=Falseandhas_values=Falseevery time ("Will be updated after children are processed"), and nothing assignsnode.is_abstractafterwards. The structural check (edgar/xbrl/abstract_detection.py, line 131) therefore never fires, and the answer comes from the name patterns at lines 67-74. - The patterns are case-sensitive (
.*RollForward$), so us-gaap headings spelled...Rollforwardare not matched, and domain members (...Member) have no pattern at all. XBRL.calculation_linkbase()reads the raw catalog flag (edgar/xbrl/xbrl.py, line 708), which isFalsefor every imported concept.- Separately, the schema parser compares the lower-cased attribute with
'true'only (edgar/xbrl/parsers/schema.py, line 87), so thexs:booleanformabstract="1"reads asFalse(read from the source).
Error message (if any):
N/A: no error is raised. Abstract concepts are reported as abstract = False.
Reproduction
Company/Ticker: N/A: the reproduction calls the detector directly and needs no filing. Time Period: N/A Relevant Forms: N/A: no filing form required.
Minimal code to reproduce:
from edgar import set_identity
from edgar.xbrl.abstract_detection import is_abstract_concept
set_identity("Your Name [email protected]")
for c in ['us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward',
'us-gaap_AllowanceForDoubtfulAccountsReceivableRollforward',
'us-gaap_CommonClassAMember',
'us-gaap_IncreaseDecreaseInStockholdersEquityRollForward']:
print(c, is_abstract_concept(c))
Additional Context
Output observed on main at commit 2323d732 (identical on v5.62.0 at commit 5068cc54):
us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward False
us-gaap_AllowanceForDoubtfulAccountsReceivableRollforward False
us-gaap_CommonClassAMember False
us-gaap_IncreaseDecreaseInStockholdersEquityRollForward True
The first three concepts are declared abstract="true" in us-gaap-2025.xsd; only the fourth matches a name pattern.
Impact: headings and domain members reach statement data and DataFrames as non-abstract line items with no values, so filtering on abstract == False to keep reportable lines keeps them. Headings still render as headings, and the 1 form of the attribute is not seen in SEC filings, so the harm is limited to metadata and filters.
This issue will be handled using EdgarTools' systematic issue resolution workflow. A reproduction test will be created to verify the fix.
@dgunning, here is our current thinking on the root cause, proposed behavior, and coordination with other issues.
Root Cause:
Schema parsing treats abstract="1" as false, while name heuristics can override a declaration's explicit false. Imported placeholders also conflate an unread declaration with known non-abstract status.
Proposed Behavior:
Parse schema booleans true/1/false/0 and let sourced false override name heuristics. Separate nullable declared status from rendering hints and preserve unknown status when imported declarations are unloaded, leaving the original coverage problem unresolved. Under calculation_linkbase(include_abstract=False), exclude only sourced true declarations, retaining arcs with a caller-only abstract=True hint as declaration-unknown. Document that compatibility change and preserve relationship weights and source facts.
Coordination:
Agree the provenance contract with #1426 and #1728, then keep separate PRs within #1730's post-6.0 scheduling. Keep #1234's observed/declaration distinction consistent; MetaLinks has no abstract field, and closed #1680 added no schema traversal.
Below, please find the full design document. Please let me know your thoughts.
Brian
Attachment: design-public.md, Proposal: distinguish declared abstract status from presentation hints — #1730.
AI assistance: Codex; GPT-6.1 Sol (High) performed current-main scouting, retained-fixture checks and final writing; GPT-6 Astra (Max) developed the architecture; a separate GPT-6 Astra (Max) reviewed financial source fidelity and the design, including the caller-hint filtering correction.