A number in a data table is easier to compare after its meaning has been preserved. Unit, period and source identity can change what an apparently similar value represents. This independent data-quality sample makes those metadata checks visible before a reviewer compares two invented records. It is not a financial conclusion or a description of FinancialFilings’ internal schema.
The fixture uses a fictional metric, a text amount, a unit, a start date, an end date and a source reference. The comparison rule is deliberately strict: the metric, unit and dates must match, and both amounts must be finite decimals. Nothing converts currencies or determines filing compliance.
Preserve context with the value
The SEC’s public EDGAR API documentation describes XBRL facts grouped by units of measure. It also distinguishes annual, quarterly and instantaneous frame requests, and cautions readers about differing reporting dates within frames. That is a concrete reason not to treat a retrieved number as a context-free observation.
Our invented records are simpler than XBRL. They do not implement a taxonomy, consolidation context, reporting dimensions or an amendment policy. The sample borrows the practical question—what accompanies this value—without presenting its small checklist as a complete financial-data model.
Establish a narrow comparison contract
The first case contains two fictional records for the same metric, unit and quarter. Their numeric strings are eligible for comparison under this contract. A second case changes the unit. A third changes the period. A fourth leaves the source reference blank.
The desk names each mismatch instead of showing a single failed badge. A unit mismatch asks for the right measure or an expressly approved conversion method. A period mismatch asks which interval the question concerns. A missing source asks for evidence. Those are different data tasks and should remain visible.
Validate amounts without inventing missing data

A blank amount is not a recorded zero. Replacing one with the other erases information a reviewer may need. The fixture therefore holds empty or non-finite amount strings and preserves their original text.
Python’s Decimal type supports exact decimal input and special values such as NaN and infinity. Construction alone does not establish that a value is suitable for a comparison. The local check explicitly tests finiteness. This is a data representation decision, not a rule about how a company should report its results.
Keep dates explicit
A label such as Q1 is not enough for this example’s strict comparison. The record needs its actual start and end date. A quarter label can hide differences in fiscal calendars or in the period covered by a value.
The sample checks only exact matching dates and a correctly ordered interval. It does not infer a missing date, choose a comparable fiscal period or annualize an amount. A real system would need an agreed domain contract for those decisions, plus source verification and appropriate specialist review.
Record eligibility without overstating it

A passing case produces a local metadata-review receipt after manual confirmation. It means the two synthetic records meet the declared checks. It does not mean the figures are correct, economically comparable in every dimension or suitable for an investment decision.
A technical handoff should preserve the accepted scope alongside its exceptions. Field constraints can make a contract explicit; Frictionless Data’s table-schema specification illustrates that distinction between a field’s representation and its constraints. Additional meaning remains the responsibility of the application and its reviewers.
BrandItAI’s new AI-assisted concept demonstrates a bounded data-quality explanation and inspectable review outcomes. A real contribution would begin with approved source material, the actual data contract and clear acceptance checks. No live filing access, financial advice or production implementation is represented.
