BDC: `NonAccrualInvestment.company_name` is the whole position label on Hercules' filings (parsed without member candidates)
Issue Type
- [x] Data Quality Issue (incorrect financial values, missing data)
- [ ] 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 (the same call is on main at 8cd5799f)
Python Version: 3.12.13
Operating System: Windows 11
Bug Description
What you expected to happen:
The non-accrual roster names the borrower the same way PortfolioInvestments.from_xbrl does for the same identifier: "Annex Cloud".
What actually happened:
All 4 of 4 non-accrual rows on Hercules' Q2 2026 10-Q carry the whole label, for example Debt Investments, Application Software, Annex Cloud, Senior Secured, December 2025, PIK Interest 3-month SOFR + 9.99%, Floor rate 10.99%. edgar/bdc/nonaccrual.py calls _parse_investment_identifier(inv_identifier) with no member candidates, while from_xbrl passes the filing's own (_get_investment_member_candidates). With them, the same identifier gives "Annex Cloud".
Error message (if any):
None.
Reproduction
Company/Ticker: HTGC (Hercules Capital, CIK 1280784) Time Period: quarter ended 2026-06-30 Relevant Forms: 10-Q, accession 0001280784-26-000042
Minimal code to reproduce:
from edgar import set_identity, find
from edgar.bdc.nonaccrual import extract_nonaccrual
from edgar.bdc.investments import parse_investment_identifier, _get_investment_member_candidates
set_identity("Your Name [email protected]")
filing = find("0001280784-26-000042")
xbrl = filing.xbrl()
result = extract_nonaccrual(filing)
candidates = _get_investment_member_candidates(xbrl)
for inv in result.investments:
print(inv.company_name, "|", parse_investment_identifier(inv.identifier, member_candidates=candidates).company_name)
# Debt Investments, Application Software, Annex Cloud, Senior Secured, ... | Annex Cloud
# (4 of 4 differ: Annex Cloud x3, Simon Data, Inc.)
Additional Context
Suggested fix: compute the member candidates once in the non-accrual extractor and pass them to _parse_investment_identifier, as from_xbrl does. Happy to send a PR with an HTGC regression test.
Generated by Claude Code