docs: B-32 names D-67 and its tests; the tax worksheet notes the rounding is decided
check / check (push) Canceled after 0s
portable-macos / portable (macos-latest) (push) Canceled after 0s
portable-windows / portable (windows-latest) (push) Canceled after 0s
two-user / two-user (push) Canceled after 0s

Review notes on the round-once change: B-32's Status line now lists the
owner's 2026-11-07 CHOICE and its Checked line the two tests that pin
it; the Form 1065 worksheet's two remarks that no rule stated the
rounding now say D-67 settled it (the golden, one account per
category, is unchanged).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
swaitsandClaude Opus 5.5 committed 2026-11-07 12:10:52 -07:00
1 parent 107571fd5e
commit 30bbf9a1ba
2 files changed
+9 -4

No files matched your search

+4 -2
View File
@@ -2219,7 +2219,8 @@ taxpayer's machine-sensible records by account and the taxpayer's
return"); CHOICE for warn versus refuse (Pub. 583: "the law does not return"); CHOICE for warn versus refuse (Pub. 583: "the law does not
require any specific kind of records"; the owner, 2026-10-20: warn by require any specific kind of records"; the owner, 2026-10-20: warn by
default, header accounts exempt, the first company set to refuse at the default, header accounts exempt, the first company set to refuse at the
P3 cutover). P3 cutover; and, the owner, 2026-11-07, D-67: a category's deductible amount
rounds once, on the category total).
A tax category is the account's link to the return (`ledger_core::tax`, A tax category is the account's link to the return (`ledger_core::tax`,
`sources/irs-tax-lines.md`). An account needs one when it is a revenue or `sources/irs-tax-lines.md`). An account needs one when it is a revenue or
@@ -2266,7 +2267,8 @@ replay calls); `settings::TaxCategoryPolicy`, `Settings::require_tax_category`;
their first `settings.set` naming the key, B-27); `ledger-mcp` `books.add_account`, their first `settings.set` naming the key, B-27); `ledger-mcp` `books.add_account`,
`books.import_chart_csv`, `books.digest`; `ledger-gui` Needs attention `books.import_chart_csv`, `books.digest`; `ledger-gui` Needs attention
(Info under warn, Todo under refuse). **Checked:** `ledger-core` (Info under warn, Todo under refuse). **Checked:** `ledger-core`
`tests/tax.rs`; `ledger-store` `tests/store.rs` `tests/tax.rs` (the rounding: `a_category_rounds_its_deductible_amount_once_not_per_account`,
`a_category_rounds_once_across_different_percents`); `ledger-store` `tests/store.rs`
(`prop_tax_policy_refuses_exactly`, `a_journaled_clear_replays_under_refuse`); (`prop_tax_policy_refuses_exactly`, `a_journaled_clear_replays_under_refuse`);
`ledger-cli` `tests/spec_tax_policy.rs`; `ledger-gui` `tests/view_model.rs` `ledger-cli` `tests/spec_tax_policy.rs`; `ledger-gui` `tests/view_model.rs`
(`needs_attention_flags_every_uncategorized_pl_account_defect_8`); (`needs_attention_flags_every_uncategorized_pl_account_defect_8`);
@@ -29,8 +29,8 @@ was written or the report was printed.
cases, the percentage is 50%." AUTHORITY for 50%. cases, the percentage is 50%." AUTHORITY for 50%.
- `nondeductible`: Schedule C Part V: "you can't deduct fines or penalties - `nondeductible`: Schedule C Part V: "you can't deduct fines or penalties
paid to a government for violating any law." AUTHORITY for 0% (no line). paid to a government for violating any law." AUTHORITY for 0% (no line).
- **Cent rounding of a deductible amount** is NOT stated by any authority in - **Cent rounding of a deductible amount** was NOT stated by any authority in
rules.md (see "Observations" below). Applied here: the cent, half away from rules.md when this was written (since 2026-11-07, D-67's CHOICE in B-32: once per category) (see "Observations" below). Applied here: the cent, half away from
zero (the engine's documented rule, `tax_summary` doc; B-3's half-away- zero (the engine's documented rule, `tax_summary` doc; B-3's half-away-
from-zero for currency). Only the meals line needs it. from-zero for currency). Only the meals line needs it.
- Display order of categories is the catalog order in `tax::CATEGORIES` - Display order of categories is the catalog order in `tax::CATEGORIES`
@@ -120,3 +120,6 @@ existing `snapshot` golden writes them).
(166.665 → 166.67 either way); with several accounts in one category the (166.665 → 166.67 either way); with several accounts in one category the
engine rounds each account and sums, which can differ from rounding the engine rounds each account and sums, which can differ from rounding the
category's sum by a cent per account. Worth a CONVENTION entry in rules.md. category's sum by a cent per account. Worth a CONVENTION entry in rules.md.
- Resolved 2026-11-07: the owner chose rounding once per category (D-67,
a CHOICE line in rules.md B-32); the engine now does so. With one account
per category this golden is unchanged.