Files
bookspec/target/doc/search.index/desc/8ec65d0e5d.js
T
swaitsandClaude Fable 5.1 73dd967b1a
check / check (push) Canceled after 0s
feat(checker): examples() and spec_files() carry the specification's files
A consumer of the checker crate needs no path into this repository.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HS8WZziDnyxunC23MUxrLp
2026-10-29 16:35:29 -06:00

1 line
18 KiB
JavaScript

rd_("CgIts number in <code>docs/spec/rules.md</code>, 1 to 45.AhIts bookspec identifier.BoStable, never reused; the file is named for it.AiIts name in this example.0BdThe example\xe2\x80\x99s id, when it has one.AcThe example\xe2\x80\x99s id.Cg<code>members</code> or <code>retained_earnings</code>.AlA period query\xe2\x80\x99s last day.AfA period\xe2\x80\x99s last day.CfEvery area, in the order the specification lists them.BfThe area\xe2\x80\x99s key in a rule identifier.BjThe status as the specification writes it.BcThe key the example spells it with.BiThe outcome as the words a report prints.EgThe identifier of area <code>area</code>, rule number <code>n</code> (counting from \xe2\x80\xa6CiA refusal of <code>reason</code> under <code>rule</code>.DhThe claims of an engine that claims <code>rules</code>, with no choices.A`An empty engine.EbRun <code>examples</code> against engines made by <code>make</code>, one fresh \xe2\x80\xa6AgWhat differs, in words.hWhy not.ChReceivables and payables: documents, aging, settlements.CiOne of bookspec\xe2\x80\x99s areas: the subject a rule belongs to.gA bill.CjThe engine claims the rule and an example failed, or a \xe2\x80\xa6CeThe engine claims the rule and every example that \xe2\x80\xa6BfA list of rows, each a list of fields.AnOne rule of the specification.AgThe area it belongs to.iIts area.6iIts code.AeThe account\xe2\x80\x99s code.BeThe account a command names, by code.AlThe account a command names.BbIts cost, an exact decimal string.mIts new cost.ChThe day of an entry, a reversal, a close, a bill, an \xe2\x80\xa6C`<code>1099-NEC</code> or <code>1099-MISC</code>.AoReturns the argument unchanged.0000000000000000000000000000000000000000CfA period query\xe2\x80\x99s first day, <code>YYYY-MM-DD</code>.CfA period\xe2\x80\x99s first day (raw, <code>YYYY-MM-DD</code>).2222BaCalls <code>U::from(self)</code>.00000000000000000000000000000000000000000000ChWhich of the event\xe2\x80\x99s kinds it is, or why it is not \xe2\x80\xa6Eg<code>internal</code>, <code>client</code>, <code>on_spec</code> or <code>other</code>.Fn<code>asset</code>, <code>liability</code>, <code>equity</code>, <code>revenue</code> or <code>expense</code>.Cn<code>prepaid_expense</code> or <code>deferred_revenue</code>.Ga<code>bank</code>, <code>business_card</code>, <code>member_card</code>, <code>member_cash_or_check</code> or \xe2\x80\xa6CfSet the books up: the chart, the fixed assets, the \xe2\x80\xa6AdIts name, once each.iIts name.CkThe member\xe2\x80\x99s name; a party\xe2\x80\x99s, with the member role, \xe2\x80\xa622mIts new name.CiThe new name a <code>rename_account</code> command gives.AcThe query\xe2\x80\x99s name.BjThe rule whose symbolic form derived them.BiThe rule whose symbolic form was applied.CmThe rule\xe2\x80\x99s entry in the catalogue, if the specification \xe2\x80\xa6BiThe bookspec rule the refusal belongs to.BbThe rule <code>b</code> (1 to 45).CnThe normative sentence the example demonstrates: what MUST \xe2\x80\xa6Ej<code>purchase</code>, <code>carryover_723</code> or <code>personal_use_conversion</code>.Bj<code>debit</code> or <code>credit</code>.AnApplicability tags, non-empty.B`Fixed assets and capitalization.AdA close of a period.ChThe mechanics of an entry: lines, sides, amounts, dates.ChOne event: an entry, a reversal, a close, a bill, an \xe2\x80\xa6DaThe oracle container (<code>just oracle</code> builds it from \xe2\x80\xa6BdAn entry, by its <code>lines</code>.A`A list of lines.ChThe question an expectation asks: everything but the \xe2\x80\xa6BhThe party roles the specification names.BoThe books an example sets up, before any event.ChThe event after which it is made (1 to the number of \xe2\x80\xa6CiThe books after event N, not after the last (a format \xe2\x80\xa6CkThe books after event N (the runner has already applied \xe2\x80\xa6CnApply one event: an entry, a reversal, a close, a bill, an \xe2\x80\xa6AgAn as-of query\xe2\x80\x99s day.0AoA <code>setup.assets</code> id.00E`The fixed asset a <code>disposal</code>, <code>depreciation_schedule</code>, \xe2\x80\xa6AfThe asset asked about.Bj<code>accrual</code> or <code>cash</code>.ChHow the company got it and the facts its tax figures \xe2\x80\xa6Eh<code>party_totals</code>\xe2\x80\x99 basis: <code>cash</code> or <code>all</code> (B-35 item 4).Bc<code>party_totals</code>\xe2\x80\x99 basis.AdA close of a period.EeThe event whose entry an <code>entry</code> or <code>party_part</code> query asks \xe2\x80\xa6BeThe event whose entry is asked about.DlThe <code>run_depreciation</code> event a <code>run</code> query asks about.BnThe event a <code>run</code> query asks about.ClThe specification\xe2\x80\x99s own files, carried by the crate: a \xe2\x80\xa6AeIts label, once each.C`The card\xe2\x80\x99s or account\xe2\x80\x99s last four, if known.AcAn entry\xe2\x80\x99s lines.jIts lines.0CjAn entry as an earlier version could write it and this \xe2\x80\xa6CaThe party it belongs to, by name (informational).EdParse <code>BS-&lt;area&gt;-&lt;n&gt;</code>, refusing an unknown area, a missing orB`The area <code>key</code> names.BbThe status <code>key</code> names.BbA <code>setup.parties</code> name.0FbThe party a <code>party_part</code>, <code>party_totals</code> or <code>party_tin_last4</code> \xe2\x80\xa6AfThe party asked about.BaA <code>setup.payees</code> name.ClThe payee (a <code>setup.payees</code> name) the entry paid.CfThe payee a <code>vendor_1099</code> query asks about.AfThe payee asked about.CnAnswer one query with the engine\xe2\x80\x99s own figures. A figure \xe2\x80\xa6CnThe question this expectation asks, as the engine receives \xe2\x80\xa6BjThe query\xe2\x80\x99s name (<code>QUERIES</code>).EfRole keys; <code>vendor</code> and <code>customer</code> give the party its record \xe2\x80\xa6BgThe rule identifiers the engine claims.BkThe catalogue: every rule, in B-rule order.Cbbookspec\xe2\x80\x99s rule identifiers and their catalogue.CmEvery rule of the catalogue the runner was given, and its \xe2\x80\xa6BaThe books before the first event.CjTheir share of income, an exact decimal fraction above \xe2\x80\xa6BkThe day it starts, <code>YYYY-MM-DD</code>.Ah<code>YYYY-MM-DD</code>.DbIts normative title, as <code>docs/spec/rules.md</code> states it.BaWhat the example shows, in words.CnThe day the books are asked on: what an omitted date means \xe2\x80\xa6BjThe whole amount, an exact decimal string.CjThe specification derives the example\xe2\x80\x99s figures, and \xe2\x80\xa6CiA human\xe2\x80\x99s or the house\xe2\x80\x99s choice among options the \xe2\x80\xa6ClWhat an engine declares about itself: the rules it takes \xe2\x80\xa6BlAn accounting engine, as bookspec checks it.CiOne expectation: a query, the dates or things it asks \xe2\x80\xa6CiInterchange formats: the journal format gate and the IIF.CiThe ledger: the chart, accounts, the journal, the format.CiPeriods: closes, closed periods, what an omitted date \xe2\x80\xa6CjThe runner\xe2\x80\x99s report: what it found of each rule, and \xe2\x80\xa6FcA bookspec rule identifier: <code>BS-&lt;area&gt;-&lt;n&gt;</code> (e.g. <code>BS-entry-1</code>\xe2\x80\xa6CnThe status of a rule, in bookspec\xe2\x80\x99s vocabulary: what its \xe2\x80\xa6CiWhat a query expects: figures by key (every figure an \xe2\x80\xa6AgHow many results agree.BeIts share as an exact decimal string.DoOne line\xe2\x80\x99s amount, exactly one of <code>amount</code> and <code>lines</code>.0CnHow much to write off, an exact decimal string above zero; \xe2\x80\xa6BoIts amount, an exact decimal string above zero.BoThe amount, an exact decimal string above zero.BnThe identifier as the specification writes it.CcFixed assets registered, with their figures (B-15).DhApply one change that posts no entry (a <code>[[changes]]</code> entry).DgThe option this engine picks for <code>rule</code>, if it declares one.BkThe rules and choices this engine declares.BgTrue when <code>rule</code> is claimed.CiDerive what the specification says about <code>ex</code>.DkThe specification\xe2\x80\x99s own checker (<code>plan/served.md</code> P13 step \xe2\x80\xa6CgThe interface an accounting engine implements to be \xe2\x80\xa6BfThe events, in order, counting from 1.BlWhat is expected of the books, at least one.CeA header groups other accounts and takes no postings.Cj<code>straight_line</code>, the one method the books have.AgIts months, above zero.BhIts parent\xe2\x80\x99s code, declared before it.ChTrue when every claimed rule passed and nothing else \xe2\x80\xa6BoPayees marked for an information return (B-19).Ae<code>YYYY-MM</code>.CaWhat was refused, in the specification\xe2\x80\x99s words.AdThe facts, in words.CnWhy it will not be collected (collection correspondence, a \xe2\x80\xa6AdWhy it is corrected.iA rename.CiThe shape of a bookspec example: the TOML schema, the \xe2\x80\xa6DkWhat its statement rests on; <code>None</code> for a rule allocated but \xe2\x80\xa6EhWhat the expected values rest on: <code>AUTHORITY</code>, <code>CONVENTION</code> or \xe2\x80\xa6Ej<code>active</code>, <code>paused</code>, <code>finished</code> or <code>abandoned</code>.ChThe values the query expects; panics when it gives none.AgWhat the query expects.AdThe vendor\xe2\x80\x99s name.CfWhat the derivation found of one expectation or event.CnOne bookspec example: a setup, its events and changes, and \xe2\x80\xa6BlA table of named values, every one a string.BmGnuCash, as bookspec\xe2\x80\x99s <code>Engine</code>.kAn invoice.BdWhat the runner says about one rule.CiPartners and parties: shares, members\xe2\x80\x99 capital, the \xe2\x80\xa6BfPrepaid expenses and deferred revenue.ClThe queries every engine must answer: the figure queries \xe2\x80\xa6ClAn engine\xe2\x80\x99s refusal: the rule that refuses, and why in \xe2\x80\xa6CgRevenue: when it is recognized and how it is presented.FeA depreciation run of <code>asset</code> for <code>period</code> (<code>YYYY-MM</code>), dated at \xe2\x80\xa6BfThe reference model does not cover it.C`Information returns: 1099s and their thresholds.BeThe account it pays through, by code.AeThe account\xe2\x80\x99s code.CeThe account an <code>add_account</code> command adds.BhThe account an add-account command adds.ClChanges that post no entry, each made after the event it \xe2\x80\xa6CkThe choice rules whose option the engine picks, and the \xe2\x80\xa6CkThe rules this adapter claims: those whose examples ask \xe2\x80\xa6AcThe example\xe2\x80\x99s id.AiWhy it failed, if it did.CgThe figures the query expects; panics on lines or rows.kAn invoice.CiThe event (1-based) whose invoice this writes off: an \xe2\x80\xa6BoA date, <code>YYYY-MM-DD</code> and a real day.CgTrue when the example may tag it with parties and a \xe2\x80\xa6BiThe members of a multi-member LLC (B-13).nWhat is wrong.BaThe company\xe2\x80\x99s directory (B-26).DjThe parties (a <code>setup.parties</code> name) the entry is with, and \xe2\x80\xa6BgIts share as an exact decimal fraction.AjThe project it belongs to.BdThe project the line is tagged with.CdThe project a <code>project</code> query asks about.AhThe project asked about.ChThe engine refuses the event, for this reason in the \xe2\x80\xa6DhA command, or a <code>period</code>, the engine refuses: why, in the \xe2\x80\xa6BcWhat was derived, in the order met.AbIts salvage value.AfIts new salvage value.AkExact citations, non-empty.Ah<code>YYYY-MM-DD</code>.BgA bill from <code>vendor</code> (B-38).CjThe commands an example may try: each on a copy of the \xe2\x80\xa6AeOne line of an entry.BiA reversal of an earlier event\xe2\x80\x99s entry.CkA bad-debt write-off of an earlier invoice (rules.md B-41).DkA command the engine accepts: <code>true</code> (never <code>false</code>).BlThe chart, parents before their subaccounts.Eb<code>&quot;formats&quot;</code>: an interchange format\xe2\x80\x99s example rather than anDiThe category a <code>set_tax_category</code> command sets (absent: it \xe2\x80\xa6BmThe category a set-tax-category command sets.AgISO 4217 currency code.AfThe customer\xe2\x80\x99s name.Gb<code>1099-NEC</code>, <code>1099-MISC</code>, <code>undetermined</code>, or <code>not_reportable</code> (with \xe2\x80\xa6DfEvery example (<code>examples/*.toml</code>) as (file name, text), \xe2\x80\xa6DaThe example ids that demonstrate it, by <code>Example::id</code>.B`Every example, in the order run.CjEvery failure, with its rule\xe2\x80\x99s outcome where it has one.ClTrue when the example gives the event\xe2\x80\x99s day (a command \xe2\x80\xa6AkTrue when it holds nothing.AnA month, <code>YYYY-MM</code>.BdThe new name a rename command gives.AoWhat it sold for, zero allowed.AdThe projects (B-37).CbThe event (1-based) whose entry this one reverses.CkHow a figure is rounded to the currency\xe2\x80\x99s minor unit: \xe2\x80\xa6Da<code>per-close</code>: a members close split on its own, not \xe2\x80\xa6CkThe schedule a <code>schedule_plan</code> query asks about.AiThe schedule asked about.ClCheck the example\xe2\x80\x99s shape: its closed lists, its dates \xe2\x80\xa6CkCheck the setup\xe2\x80\x99s shape: its closed lists, its dates, \xe2\x80\xa6CgA fixed asset registered before the first event (B-15).BbA cited authority states the rule.B`An asset\xe2\x80\x99s basis facts (B-25).DgA close of the period from <code>start</code> through the event\xe2\x80\x99s \xe2\x80\xa6ClThe specification derives different figures, or does not \xe2\x80\xa6AeThe kind of an event.BhOne party in the directory (B-26, B-35).CeA payee marked for an information return from the \xe2\x80\xa6CaA party named on an entry, with its share (B-35).ChReports: the trial balance, the accounting equation, \xe2\x80\xa6Ah<code>YYYY-MM-DD</code>.ChParse an example from its TOML text and check its shape.BmTrue when it is a formats appendix\xe2\x80\x99s query.DfA refusal of <code>reason</code>, under the rule the specification \xe2\x80\xa6CfPrepaid-expense and deferred-revenue schedules (B-16).BhIts TIN facts\xe2\x80\x99 last four (an SSN\xe2\x80\x99s).CnFailures that belong to no rule: an example no rule lists, \xe2\x80\xa6BkA bad-debt write-off of an earlier invoice.CiA change to the books that posts no entry, made right \xe2\x80\xa6CdCommon practice, where no authority states the rule.ClThe derivation of one example: one result per event that \xe2\x80\xa6CmAccounts that hold property and equipment, for an example \xe2\x80\xa6BhOne member of a multi-member LLC (B-13).BcThe engine does not claim the rule.DaRename the account <code>code</code> to <code>name</code> (B-31).C`<code>daily</code> or <code>monthly_even</code>.CeThe day depreciation starts, <code>YYYY-MM-DD</code>.AgIts new in-service day.DkThe payment method (a <code>setup.instruments</code> label) it was paid \xe2\x80\xa6ChTrue when it is a command, tried on a copy of the books.DkTrue when the books take it whole or not at all, so <code>refused</code>\xe2\x80\xa6BmThe profit-and-loss account it recognizes to.DkEvery specification file (<code>spec/*.md</code>) as (file name, text), \xe2\x80\xa6CkThe vault\xe2\x80\x99s copy of the TIN purged, the facts kept (needsAiOne account of the chart.DgA registered asset\xe2\x80\x99s economics corrected for <code>reason</code>: \xe2\x80\xa6BbA fixed asset\xe2\x80\x99s disposal (B-15).BkAn invoice to <code>customer</code> (B-38).CnA project (B-37): its name, and its kind, status and party \xe2\x80\xa6BoWhy a string is not a bookspec rule identifier.BbWhy an example is not well formed.CnThe queries whose figures may be text rather than an exact \xe2\x80\xa6ChThe event whose entry put it on the books (B-15 rule 7).CkThe liabilities, by code, the company owes the party itselfkWhat it is.0CnAn entry\xe2\x80\x99s, a reversal\xe2\x80\x99s, a close\xe2\x80\x99s or a bill\xe2\x80\x99s; a \xe2\x80\xa6CeWhat it is (the event\xe2\x80\x99s description when left out).CgThe ways the company (or a member, for it) pays (B-19).CiTrue when the example must list every value the query \xe2\x80\xa6BfIts useful life in months, above zero.B`Its new useful life, above zero.BoWhy it is not reportable, from the closed list.CoThe rule <code>id</code> names, if the specification states it.CmRun one example against one engine: load the setup, apply \xe2\x80\xa6CkDeclare the option this engine picks for <code>rule</code>.AkA fixed asset\xe2\x80\x99s disposal.BlEvery schedule\xe2\x80\x99s months due through a day.CmA prepaid expense or deferred revenue recognized over its \xe2\x80\xa6CfA write-off of the invoice an earlier event posted \xe2\x80\xa6AaThe cost account.0CmAccounts that hold property and equipment, for an example \xe2\x80\xa6ChTrue when the rule has at least one example to check it.ChTrue when the example describes the event (a command \xe2\x80\xa6BnIts tax category, a key of the catalog (B-32).BmIts W-9 facts\xe2\x80\x99 last four (a 1099 role\xe2\x80\x99s).AhOne example\xe2\x80\x99s outcome.BnThe cash accounts (ASC 230-10-45-10 to 45-15).AhAn asset\xe2\x80\x99s correction.ClThe rules an engine can claim today: those with at least \xe2\x80\xa6BfThe disagreements, each as a sentence.kA disposal.BjA run of every schedule due through a day.BeWhy a party is not reportable (B-19).BaThe formats appendix\xe2\x80\x99s queries.AhA payment method (B-19).BeThe section 704(c) method, if chosen.CfA payee\xe2\x80\x99s 1099 decision from a date on (B-19, D-40).AcA depreciation run.BeThe balance-sheet account it sits in.Dfbookspec\xe2\x80\x99s conformance runner: it drives any <code>Engine</code> \xe2\x80\xa6AfTheir capital account.BaThe depreciation expense account.0C`Every refusal reason the specification names \xe2\x80\xa6CmThe queries whose example lists every value it covers, so \xe2\x80\xa6BaOne line of an invoice or a bill.BlA schedule\xe2\x80\x99s registration (posts nothing).DbEvery schedule\xe2\x80\x99s months due through <code>through</code> (B-16).DfA payee\xe2\x80\x99s 1099 decision from <code>effective</code> on (B-19, D-40).Cfbookspec\xe2\x80\x99s checker: the example schema, the rule \xe2\x80\xa6DhGnuCash as a second bookspec engine (<code>plan/served.md</code> P13 \xe2\x80\xa6ChThe refusal an engine reports for an error it has no \xe2\x80\xa6CiAn exact decimal string: digits, an optional sign and \xe2\x80\xa6BlThe account the proceeds were received into.CgThe rule a refusal belongs to, by its reason in the \xe2\x80\xa6AcA depreciation run.Ac<code>MM-DD</code>.AiThe gain-or-loss account.BbA schedule registered by an event.AgThe financing accounts.AgThe investing accounts.BeThe accumulated depreciation account.0BeA contribution\xe2\x80\x99s fair market value.DhThe tax-category policy: <code>warn</code> (the books\xe2\x80\x99 default) or \xe2\x80\xa6BcTheir distributions account (B-13).CbA contribution\xe2\x80\x99s contributor\xe2\x80\x99s adjusted basis.")