feat(serve): a ticker loads the published holon before EDGAR - #57
Merged
Conversation
The RoboSystems public data CDN writes every processed SEC filing as a
holon beside the document as filed, under {year}/{cik}/{accession}/,
with a per-filer catalog under companies/. A ticker or cik:accession now
looks there first: the newest filing of the form, when it has a holon,
loads from it — under a second for the model, the document beside it for
the text tools, a large text block's fragment fetched on load — and a
filing that predates the artifacts falls back to EDGAR and Arelle, a
minute cold and ten seconds warm. The newest filing decides; an older
one that happens to be published is never substituted.
XBRLKIT_ARTIFACTS_URL points elsewhere or, empty, turns the lookup off;
XBRLKIT_FETCH_TEXT=false leaves fragments as URLs.
Three things the holon carries better, ahead of the corpus reprocess
that rewrites every published one:
- Calculations 1.1. The 2023 summation-item arcrole is the calculation
linkbase as much as the 2003 one; read as definition arcs it left a
filer that adopted it with no calculation network and no footing.
- xbrldt:targetRole rides on the association, so a hypercube declared
across roles can be rebuilt with every axis and member.
- The property-graph projection writes an element's type from item_type
when there is no QName for it, so a type's namespace survives a second
projection.
Claude-Session: https://claude.ai/code/session_019GMCxs82XWZHN8wZBC25RJ
The ClawDog round trip (#55, released as 0.14.0) and the published-first loader both touched _load_json: main adds the clawdog kind to the served set, this branch inlines text-block fragments on load. Both kept. Claude-Session: https://claude.ai/code/session_01GD7d1Rjg5PPV8swJUDFdyr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Published first. The RoboSystems public data CDN writes every processed SEC filing as a holon beside the document as filed, under
{year}/{cik}/{accession}/, with a per-filer catalog undercompanies/{ticker}.json.load_filingwith a ticker orcik:accessionnow looks there before EDGAR:XBRLKIT_ARTIFACTS_URLpoints elsewhere or, empty, turns the lookup off;XBRLKIT_FETCH_TEXT=falseleaves fragments as URLs. Live: Intuit's FY2026 10-K (filed 2026-09-09) loads in 3.9 s with its document and all 90 text blocks inlined; NVIDIA's, filed before the artifacts, reports no holon and takes the EDGAR path.Three fixes to what the holon carries, ahead of the corpus reprocess that rewrites every published one:
summation-itemarcrole is the calculation linkbase as much as the 2003 one. Read as definition arcs, it left a filer that adopted it (Intuit, for one) with no calculation network and no footing anywhere. The parse, the property-graph projection and the holon reader all take both.xbrldt:targetRolerides on the association, written and read back, so a hypercube declared across roles can be rebuilt with every axis and member.item_typewhen there is no QName for it, so a type's namespace survives a second projection (salvaged from feat(deserialize): read the property graph back into the model #56).Tests
tests/test_published.pystands a local server in for the CDN and a sentinel in for EDGAR: the catalog path, the manifest path, the document, fragment inlining and its off switch, a missing fragment, the newest-filing rule, and every fallback. Round-trip and projection tests extended for the three holon fixes.🤖 Generated with Claude Code
https://claude.ai/code/session_019GMCxs82XWZHN8wZBC25RJ