Skip to content

feat(tavi): name the entity from its label when no registrant fact exists - #51

Merged
jfrench9 merged 1 commit into
mainfrom
feature/tavi-entity-label
Sep 6, 2026
Merged

jfrench9 merged 1 commit into
mainfrom
feature/tavi-entity-label

Conversation

@jfrench9

@jfrench9 jfrench9 commented Sep 6, 2026

Copy link
Copy Markdown
Member

Summary

The Tavi adapter names the entity from an xbrl:label on the entity object when the model carries no dei:EntityRegistrantName fact. A filing always has that fact; a RoboLedger report projected through xbrlkit (robosystems#1361, xbrlkit#25) has no dei facts and carries the name as the label instead, which xbrlkit now writes for every model. Without this the app would title a ledger report's page Ent 01k….

Changes

  • src/adapters/tavi.ts — entity name is registrantName ?? labelOf(entityName) ?? humanize(entityName); legalName falls back to the label the same way. Nothing else changes: the registrant fact still wins when present.
  • test/tavi.test.ts — a model with an entity label and no registrant fact names the entity from the label; the SEC-shaped document still names it from the fact.

Consumer Impact

Additive. SEC-shaped documents render identically (the dei fact takes precedence). A document with an entity label and no dei facts — the RoboLedger Tavi — now gets its entity name instead of a humanized identifier. Ships as 0.5.1; roboledger-app picks it up with the client minor.

Testing

just test-all green locally: format, lint, typecheck, 130 tests across 15 files.

🤖 Generated with Claude Code

https://claude.ai/code/session_01TBKj1VsfBpKsFY7PPcrCFu

…ists

A filing names its registrant in a dei fact; a model with no dei facts —
a RoboLedger report projected through xbrlkit — carries the name as an
`xbrl:label` on the entity object. The adapter now reads that label
before falling back to humanizing the SQName, and uses it for
`legalName` too. A filing's registrant-name fact still wins.

Claude-Session: https://claude.ai/code/session_01TBKj1VsfBpKsFY7PPcrCFu
@jfrench9
jfrench9 merged commit f983b1a into main Sep 6, 2026
5 checks passed
@jfrench9
jfrench9 deleted the feature/tavi-entity-label branch September 6, 2026 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant