kernel.rs is now kernel/: mod.rs keeps the laws and re-exports entries (the old file, unchanged) plus one file per kernel-sweep unit (U1 fx, U2 round, U3 allocate, U4 total, U5 schedule, U6 ratio, U7 payroll, U8 control). proofs.rs is proofs/: mod.rs holds the original 63 harnesses and each unit gets a file of its own. tests/kernel_bridge.rs is now tests/kernel_bridge/main.rs plus one file per unit; Cargo still builds the single test target named kernel_bridge. `_kani` now scans proofs/mod.rs and proofs/*.rs and passes the fully qualified name each file gives its harness (Kani's --exact matches only a fully qualified name), so a harness resolves wherever it lives. It fails when kani_slow names no harness, or when two harnesses share a name and would make the slow list ambiguous; `just prove-list` prints every harness with its module path and set, showing the slow list resolved without running it. Nothing moves in the books: the same 53 fast Kani harnesses and 118 Lean theorems verify, and the same 1096 tests pass (27 in the bridge). Docs: verification.md gains the kernel-sweep policy (each unit writes docs/proofs/<unit>.md; the integrator folds the notes into verification.md and Audit.lean in one edit per batch), and the file references in AGENTS.md, testing.md, architecture.md, oracle.md and spec/rules.md follow the new paths. Co-Authored-By: DeepSeek V4.1 Flash <noreply@opencode.ai>
7.3 KiB
Rule catalog
Every rule the engine enforces, the authority for it, and what checks it.
Status is AUTHORITY (a source states the rule), CONVENTION (common
practice no authority states; the best reference is given), or
CHOICE (a human chose, and when; bookspec's CHOICE: the specification
names the options, an engine declares its pick). Vendored sources are in
sources/; FASB and OpenStax are quoted briefly under their copyright and
license (see README.md). Quotes from FASB's Codification were read in
Deloitte's DART roadmaps, which reproduce it ("FASB Accounting Standards
Codification: Copyright © 2005 - 2026 by Financial Accounting
Foundation").
Spec blocks in the code cite these as SOURCE: rules.md B-n. Every rule
also has a bookspec identifier, **bookspec:** BS-<area>-<n>: the table
from B-1 to B-45 is spec/rules-index.md in the bookspec repository, https://git.swaits.com/swaits/bookspec (P13, D-34).
Index
Every rule's claims live in claims/, one file per bookspec area (P14 unit S-D0). This file is the index until unit S-E rewrites the rules.md B-n references to bookspec ids; the rule text itself is in the claims files.
| B | bookspec id | area | file |
|---|---|---|---|
| B-1 | BS-entry-1 |
entry | claims/entry.md |
| B-2 | BS-entry-2 |
entry | claims/entry.md |
| B-3 | BS-ledger-1 |
ledger | claims/ledger.md |
| B-4 | BS-ledger-2 |
ledger | claims/ledger.md |
| B-5 | BS-ledger-3 |
ledger | claims/ledger.md |
| B-6 | BS-statement-1 |
statement | claims/statement.md |
| B-7 | BS-statement-2 |
statement | claims/statement.md |
| B-8 | BS-ledger-4 |
ledger | claims/ledger.md |
| B-9 | BS-ledger-5 |
ledger | claims/ledger.md |
| B-10 | BS-ledger-6 |
ledger | claims/ledger.md |
| B-11 | BS-period-1 |
period | claims/period.md |
| B-12 | BS-period-2 |
period | claims/period.md |
| B-13 | BS-partner-1 |
partner | claims/partner.md |
| B-14 | BS-statement-3 |
statement | claims/statement.md |
| B-15 | BS-asset-1 |
asset | claims/asset.md |
| B-16 | BS-prepaid-1 |
prepaid | claims/prepaid.md |
| B-17 | BS-revenue-1 |
revenue | claims/revenue.md |
| B-18 | BS-arap-1 |
arap | claims/arap.md |
| B-19 | BS-1099-1 |
1099 | claims/1099.md |
| B-20 | BS-ledger-7 |
ledger | claims/ledger.md |
| B-21 | BS-entry-3 |
entry | claims/entry.md |
| B-22 | BS-asset-2 |
asset | claims/asset.md |
| B-23 | BS-ledger-8 |
ledger | claims/ledger.md |
| B-24 | BS-asset-3 |
asset | claims/asset.md |
| B-25 | BS-asset-4 |
asset | claims/asset.md |
| B-26 | BS-partner-2 |
partner | claims/partner.md |
| B-27 | BS-format-1 |
format | claims/format.md |
| B-28 | BS-entry-4 |
entry | claims/entry.md |
| B-29 | BS-ledger-9 |
ledger | claims/ledger.md |
| B-30 | BS-period-3 |
period | claims/period.md |
| B-31 | BS-ledger-10 |
ledger | claims/ledger.md |
| B-32 | BS-ledger-11 |
ledger | claims/ledger.md |
| B-33 | BS-statement-4 |
statement | claims/statement.md |
| B-34 | BS-format-2 |
format | claims/format.md |
| B-35 | BS-partner-3 |
partner | claims/partner.md |
| B-36 | BS-partner-4 |
partner | claims/partner.md |
| B-37 | BS-statement-5 |
statement | claims/statement.md |
| B-38 | BS-arap-2 |
arap | claims/arap.md |
| B-39 | BS-arap-3 |
arap | claims/arap.md |
| B-40 | BS-arap-4 |
arap | claims/arap.md |
| B-41 | BS-arap-5 |
arap | claims/arap.md |
| B-42 | BS-arap-6 |
arap | claims/arap.md |
| B-43 | BS-entry-5 |
entry | claims/entry.md |
| B-44 | BS-ledger-12 |
ledger | claims/ledger.md |
| B-45 | BS-ledger-13 |
ledger | claims/ledger.md |