Commit Graph
187 Commits
Author SHA1 Message Date
swaitsandClaude Opus 5.5 959464ec53 docs(plan): product rules are WB-<area>-<n>; each content unit reduces its own claims file
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
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 11:35:26 -07:00
swaitsandClaude Opus 5.5 66d9b7ac54 docs(plan): P13 step 6 names bookspec's pin after the history rewrite
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
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 10:11:47 -07:00
swaitsandClaude Opus 5.5 c99a24893c docs(plan): P14, bookspec the definitive spec, the kernel sweep, D-68 to D-72
The owner's decisions of 2026-11-08 and the plan built from the two
audits: bookspec becomes the specification (one structured record per
rule with a plain-English description, the laws proved once in its
Lean, wanderbooks keeping claims and WB-n product rules), every money
computation moves into the proved kernel, the Lean model is run against
the code, and hledger joins GnuCash as an oracle.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 10:03:07 -07:00
swaitsandClaude Opus 5.5 c433bc5062 merge: the kernel sweep and hledger audit (commit 9369c1f4; plan input)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 10:02:11 -07:00
swaitsandClaude Sonnet 5.5 671d2fd6cc docs(plan): bookspec audit
Read-only audit of what it takes to make bookspec the definitive
accounting specification: the 45 rules classed (accounting law,
convention/choice, format, product) with bookspec's completeness for
each, the 27 vendored sources and their licences, the Lean drift and a
verified lake require, the golden files as candidate examples, the
executable reference model (decidability, soundness, TOML in Lean), and
a unit breakdown with dependencies and file ownership.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 09:58:18 -07:00
swaitsandDeepSeek V4.1 Flash 9369c1f45a docs(plan): kernel sweep and hledger audit
Read-only audit of money arithmetic outside kernel.rs: 211 sites
(169 must move, 35 display-only, 7 not money), 76 raw/panic-capable
operators, grouped into nine sweep units with kernel signatures, Kani
harnesses, bridge properties, Lean laws, and a module layout that keeps
parallel units from conflicting. Also assesses hledger as a second
semantic oracle: what it can compare, how to map the journal, the
display-precision trap, a pinned static 1.52.4 image, and an hledger
engine adapter for bookspec.

Co-Authored-By: DeepSeek V4.1 Flash <noreply@opencode.ai>
2026-11-08 09:56:28 -07:00
swaitsandClaude Sonnet 5.5 aa1331c8bd docs: law 39 names its Lean theorems
Law 39 said no Lean theorem was needed because the Books model has no
tax categories. That reasoning was wrong: the law is pure kernel
arithmetic, like Prorate's roundUnit laws, and needs no Books model.
verify/lean/Wanderbooks/Deductible.lean now proves it at any size.

verification.md law 39 lists the Lean theorems in the usual format and
states the split plainly: Lean proves the law on integers over a common
denominator (one rounding, Prorate.roundUnit on the magnitude, signed
after); Kani proves the code on i64; the bridge and exact-reference
properties carry it to Decimal; overflow stays outside the model.
rules.md B-32's Checked line and plan/STATUS.md name the Lean file.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 08:14:49 -07:00
swaitsandClaude Opus 5.5 5353b5ae58 docs(status): the deductible share is kernel arithmetic, proved (2026-11-08)
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
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 07:01:23 -07:00
swaitsandClaude Opus 5.5 7aa1297840 docs(status): 2026-11-07, eleven golden files, the floor to 36, D-67
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
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 12:11:45 -07:00
swaitsandClaude Opus 5.5 30bbf9a1ba 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>
2026-11-07 12:10:52 -07:00
swaitsandClaude Opus 5.5 107571fd5e merge: the tax summary rounds a category's deductible amount once (D-67; branch t3/tax-summary-round-once, 5b1f9d02; reviewed)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 12:10:39 -07:00
swaitsandMuse Wonder 1.0 5b1f9d0232 docs: D-67, the tax summary rounds once per category
Record the owner's 2026-11-07 decision in rules.md B-32 and as D-67 in plan/served.md 10.1: a category's deductible amount is the exact sum of its accounts' shares, rounded once to the cent, following B-21's 'round off only the total'.

Co-Authored-By: Muse Wonder 1.0
2026-11-07 12:03:43 -07:00
swaitsandClaude Opus 5.5 341ef2eb6e merge: golden file for the audit workpaper (branch t3/audit-workpaper-golden, 5e526d1c; reviewed and recomputed independently, review fixes applied)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 11:59:42 -07:00
swaitsandClaude Sonnet 5.5 5e526d1cd9 test(core): the audit golden derives its 1099 finding from a posted payment
The audit golden used to hand the vendor and amount to the audit; the
ledger held no payment to that vendor. Now the fixture adds the vendor
(Ledger::add_vendor, which makes its party) and posts entry 5, 900.00 of
supplies paid from the bank on 2026-03-10 with a receipt, 1099 decision
left undecided. The audit's 1099 input is built as ledger-mcp's
audit_findings builds it: ledger_package::vendor_1099_report(year 2026,
as of 2026-03-31), keeping the vendors with decision_needed. Because the
books name the bank as their cash account, the cash-flow footing is tried
the same way instead of handed in as None.

Recomputed by hand (worksheet): opening raised to 3,000.00 so the bank
stays positive (860.00 = 3,000 - 40 - 1,200 - 900); trial balance 3,000.00
= 3,000.00; assets 2,060.00 = equity 3,000 - 940; net income -940.00 =
current earnings; cash flow operating -2,140.00 + financing 3,000.00 =
+860.00 = change in cash. The vendor's 900.00 is under the 2026 threshold
of 2,000.00 (B-19, status under_threshold), yet decision_needed is
has_undecided && hi(U) > 0, so the code flags it; the worksheet records
that this is the code's rule, which B-19 does not state separately. The
payment debits Supplies (already categorized) and is entry 5 so the draft
stays entry 4: no other finding changes, and the golden JSON is unchanged.

The worksheet no longer says B-45 gives the severities or the checks'
list: B-45 asks for a deterministic, fixed-order list; the severities are
the CODES table's, the code's own CONVENTION, which this golden pins. It
also lists which checks the golden leaves silent and that tests/audit.rs
seeds each one.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 11:59:13 -07:00
swaitsandClaude Opus 5.5 0162ee436e docs(parity): draft states and discard, and the one evidence gate, are done, floor 35
Both rows waited on a hand-verified golden covering a discard. One store
fixture now pins every draft's state, each entry's evidence requirement
(a reversal exempt by origin above the threshold, D-47), the gate's two
refusals, a discard that moves no balance and spends no id, and a close
refused while a draft holds the period and accepted after its discard.
A second model (Muse) recomputed every value independently from B-43
and D-47 and showed a wrong balance, a flipped exemption and a bypassed
gate each fail the test. Worksheet: the closing entry is pinned under
close_after_discard, not posted_entries (review note).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 11:57:14 -07:00
swaitsandClaude Sonnet 5.5 2593931c47 test(store): golden file for draft states, discard and the evidence gate
One fixture serves both parity rows (draft states and discard; the one
evidence gate). A Store fixture, because the gate's receipt-on-file half
lives in the store. New fixture, built like books_for_drafts and extended.

Hand-computed in plan/golden-worksheets/draft-states-and-evidence-gate.md,
before serializing anything:
- Requirement (B-43 inv. 2, threshold strictly > 25.00): drafts of 40.00,
  60.00 and 100.00 are Required; 12.50 is Exempt (policy); the reversal
  (debits 100.00) is Exempt by origin (D-47, D-12); the closing entry
  (52.50) is Exempt by origin. Receipt counts are pinned beside them: the
  gate refuses the 40.00 and 60.00 drafts (no receipt) with the journal
  head unchanged, then lets the rest post; the reversal has no receipt.
- Trial balance 2026-01-31 before and after the discard of the 60.00
  draft: Cash 447.50 Dr, Equity 500.00 Cr, Software 52.50 Dr, totals
  500.00; identical after the discard, next entry id 7 both times.
- The close is refused while the draft is open (B-12), accepted after the
  discard: Dr Retained Earnings 52.50 / Cr Software 52.50 (a loss), id 7;
  trial balance then 447.50 Dr, 500.00 Cr, 52.50 Dr.
Code and hand values agreed on the first run. Strength: four scratch edits
of the golden (a balance, a decision, a discard reason, the next id) each
fail the test.

Adds serde::Serialize to evidence::Requirement (tagged, snake_case) so the
gate's result can be pinned.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 10:39:36 -07:00
swaitsandDeepSeek V4.1 Flash 3fa0bddfda test(core): golden file for the audit workpaper
The audit's statements programme (rules.md B-45) now has a golden for one
small book, hand-worked from B-45 in plan/golden-worksheets/audit-workpaper.md:
2,000.00 of capital, a 40.00 purchase with no receipt, a year of prepaid
insurance never posted, a 5.00 draft, and one Revenue account with no tax
category. Through 2026-03-31 that gives one failure (evidence_missing,
entry 2, debits 40.00 over the 25.00 threshold) and four warnings: draft 4
on 2026-02-10, schedule 1 with 3 months / 300.00 due from 2026-01-31,
account 4100, and vendor Tobin Harlow Supply at 900.00. Trial balance,
equation, P&L articulation, control accounts, closes, assets, settings and
the receipted entries are all silent.

The golden holds the workpaper's statements data (scope, through, summary,
findings). Hashes, the figure head and the programme version are not
hand-verifiable, and the static check catalogue is not a finding, so they
stay out; the worksheet says so. The first draft mis-marked evidence_missing
a warning: the table and CODES say failure, the prose was wrong, and both
the worksheet and the golden were corrected to the books.

Co-Authored-By: DeepSeek V4.1 Flash <noreply@opencode.ai>
2026-11-07 10:38:59 -07:00
swaitsandClaude Opus 5.5 de584309fc merge: golden files for the 1099 worksheet (with a recorded business card's exclusion) and prepaid and deferred amortization (branch t3/golden-1099-prepaid-amortization, 06b571c1; reviewed and recomputed independently)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 10:30:49 -07:00
swaitsandClaude Sonnet 5.5 06b571c109 test(core): the 1099 golden covers a recorded business card's exclusion
The golden's fixture charged Sam's 5,000 to 2100 Credit Card with no
business-card payment method recorded, so by B-19 ("anything else" row)
the charge landed in no bucket and the golden pinned no excluded_card
figure at all, though the parity row claims card exclusion.

The golden test now records 2100 as a business-card method (books() is
untouched; other tests rely on its unrecorded card). Worked by hand from
B-19's table before running: #8's Cr 2100 is a company card's account, so
the line is card (excluded) 5,000; Dr 6000 is an expense, no payment
line; the entry nets to card 5,000 alone. So in 2026 Sam gets
excluded_card 5,000, paid 0, undetermined 0, still under_threshold
(F = U = 0; a card is never the vendor's reason), and
excluded_card_payments lists entry 8, 2026-04-01, vendor 3, 5,000,
instrument null (untagged). Every bank payment, the untagged note and all
of 2025 are unchanged. The code agreed with every hand figure; the golden
differs from its predecessor in exactly those two fields.

cash_paid_per_vendor_and_who_is_reportable now also asserts that on the
unrecorded books() Sam's card charge is in no exclusion bucket and the
card list is empty, keeping the unrecorded case covered.

Vendor1099Report, Vendor1099Line and Payment1099 drop the unused
Deserialize derive (Serialize stays for the golden).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 10:30:31 -07:00
swaitsandDeepSeek V4.1 Flash 72f7bcece9 test(core): golden file for prepaid and deferred amortization
The two hand-verified amortization fixtures in schedules.rs now have one
golden covering both plans, their rounding, their remaining balance and
the statements they move. Recomputing them by hand from rules.md B-16
(monthly_even: each period total/months to the cent, the last period
taking the remainder) before serializing:

- Prepaid: 1,200.00 of insurance from 2026-03-01 over 12 months is
  100.00 a month exactly. March-May are posted, so 300.00 is expensed and
  900.00 remains; the balance sheet carries 900.00 of prepaid.
- Deferred: 1,000.00 from 2026-01-01 over 3 months is 333.33, 333.33 and
  333.34 (the last period absorbs the 0.01 remainder), summing to
  1,000.00 exactly. All three are posted, so 1,000.00 is revenue and
  nothing remains a liability.

Every period, cumulative and remaining figure agrees with the hand
worksheet in plan/golden-worksheets/amortization-plans.md. No existing
golden or assertion changes.

Co-Authored-By: DeepSeek V4.1 Flash <noreply@opencode.ai>
2026-11-07 10:24:53 -07:00
swaitsandDeepSeek V4.1 Flash 025c0942ee test(core): golden file for the 1099 vendor worksheet
The `books()` fixture's worksheet is now a golden: 2025 and 2026, so the
year boundary and both thresholds (600 and 2,000) are pinned. Recomputing
it by hand from rules.md B-19 before serializing the report:

- Dana: 1,500 bill payment + 700 direct = 2,200 in 2026 (reportable at
  2,000); the 300 dated 2025-12-30 counts only in 2025 (under 600).
- Ace Rentals: 1,200 in January; the February 1,200 and its reversal net
  to zero, so 1,200, under 2,000.
- Sam: 5,000 charged to 2100, which no cash, financing or business-card
  method names, so no payment line: paid 0, under. The card exclusion is
  the fixture's documented "nothing counts" case.
- Bigco: 9,000 from the bank while never decided: undetermined, a decision
  needed, never reportable until one is made.
- The untagged 50.00 contract-labor payment is the quieter note.

Every field agrees with the hand worksheet in
plan/golden-worksheets/1099-worksheet.md. `Vendor1099Report`,
`Vendor1099Line` and `Payment1099` gain serde derives so the report can be
serialized; no existing golden or assertion changes.

Co-Authored-By: DeepSeek V4.1 Flash <noreply@opencode.ai>
2026-11-07 10:24:15 -07:00
swaitsandClaude Opus 5.5 805633ef7b merge: golden files for the date-range P&L, the balance sheet and trial balance as of a date, and the general ledger (branch t3/golden-pl-balance-trial-gl, c5824c4f; reviewed and recomputed independently)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 10:05:13 -07:00
swaitsandDeepSeek V4.1 Flash c5824c4fa2 test(core): golden file for the general ledger by account
Add a golden for general_ledger over [2026-01-01, 2026-01-31] on the
shared extended January fixture, with running balances, each posting's
split, per-account totals, and entry ids. The close is a posting like any
other here; the Feb 5 entry is after the period end and is out.

Hand recomputation (plan/golden-worksheets/general-ledger.md): cash has
five postings (begin 0, debits 11,500, credits 4,300, ending 7,200);
receivables 4,000 - 1,500 = 2,500; equipment 2,500 + 1,500 = 4,000;
payable 500; owner's equity 10,000; retained earnings 3,200; service
revenue 4,000 credit then the close's 4,000 debit, ending 0; rent 800
debit then the close's 800 credit, ending 0. Entry 6's equipment debit
has two accounts on the credit side (cash and payable), so its split is
"-Split-"; the same for entry 7's revenue debit (rent and retained
earnings) and for the close's two other lines the split is the single
account 4000 Service Revenue. Every ending balance ties to the as-of
trial balance.

Co-Authored-By: DeepSeek V4.1 Flash <noreply@opencode.ai>
2026-11-07 10:00:51 -07:00
swaitsandDeepSeek V4.1 Flash 73e1210248 test(core): golden file for the trial balance as of a date
Add a golden for trial_balance_as_of on 2026-01-31 over the shared
extended January fixture. The as-of applies before the close is read, so
this is the post-closing trial balance: revenue and rent net to zero and
the close's 3,200 sits in retained earnings; the Feb 5 entry is after the
as-of date and is out.

Hand recomputation (plan/golden-worksheets/trial-balance-as-of.md):
cash net debit 10,000 + 1,500 - 2,500 - 800 - 1,000 = 7,200;
receivables 4,000 - 1,500 = 2,500; equipment 2,500 + 1,500 = 4,000;
payable credit 500; owner's equity credit 10,000; retained earnings
credit 3,200. Service revenue and rent expense each have equal debits and
credits after the close, so neither is listed. Totals: debits 13,700,
credits 500 + 10,000 + 3,200 = 13,700. The Feb 5 entry would have added
600 to each column; the golden pins the January figures.

Co-Authored-By: DeepSeek V4.1 Flash <noreply@opencode.ai>
2026-11-07 10:00:05 -07:00
swaitsandDeepSeek V4.1 Flash be9bb02e1b test(core): golden file for the balance sheet as of a date
Add a golden for balance_sheet_as_of on 2026-01-31 over the shared
extended January fixture. Closing entries count on a balance sheet, so
the January close's 3,200 to retained earnings is in; the Feb 5 entry is
after the as-of date and is out.

Hand recomputation (plan/golden-worksheets/balance-sheet-as-of.md):
asset balances are debits minus credits -- cash 10,000 + 1,500 - 2,500 -
800 - 1,000 = 7,200, receivables 4,000 - 1,500 = 2,500, equipment 2,500 +
1,500 = 4,000, total assets 13,700. Liabilities: payable 500. Equity:
owner's equity 10,000 plus retained earnings 3,200. Current earnings is
zero because the close zeroed revenue (4,000 credit and 4,000 debit) and
rent (800 debit and 800 credit). Total equity 13,200, and 13,700 = 500 +
13,200. The Feb 5 entry would have shown AR 3,100 and current earnings
600; the golden pins the January figures instead.

Co-Authored-By: DeepSeek V4.1 Flash <noreply@opencode.ai>
2026-11-07 09:59:36 -07:00
swaitsandDeepSeek V4.1 Flash 05c4b16385 test(core): golden file for date-range profit and loss
Add a golden for the P&L over [2026-01-01, 2026-01-31] on an extended copy
of the hand-verified January fixture: the original five entries, plus a
multi-leg equipment purchase, a January close, and a February entry. (The
original fixture has no closing entry and no entry after an as-of date, so
a copy was extended; the first five entries are unchanged.)

Hand recomputation (plan/golden-worksheets/profit-and-loss-period.md):
revenue account 4000 is credited 4,000 by the Jan 10 invoice; expense
account 6000 is debited 800 by the Jan 15 rent. The Jan 31 closing entry
(Dr revenue 4,000, Cr rent 800, Cr retained earnings 3,200) lies inside
the range but is excluded because a close moves earnings rather than
earning or spending, and the Feb 5 entry after the range is excluded too.
So revenue 4,000.00, expenses 800.00, net income 3,200.00 -- exactly the
3,200 the close moved. The golden pins those numbers.

Co-Authored-By: DeepSeek V4.1 Flash <noreply@opencode.ai>
2026-11-07 09:59:01 -07:00
swaitsandClaude Sonnet 5.5 545a502d3d test(core): golden file for the tax summary
Golden for the Form 1065 first-quarter fixture (tax.rs books()), Jan 1 to
Mar 31. Every number was recomputed by hand from the entries
(plan/golden-worksheets/tax_summary_form_1065.md) before the engine's output
was compared:

Income: sales 10,000.00; refunds 250.00 are an expense-type account in an
income category, so a contra: -250.00 (Form 1065 line 1b). Income 9,750.00.
Deductions, book / deductible: fees 1,500 / 1,500; guaranteed payments
2,000 / 2,000; meals 333.33 at 50% = 166.665 = 166.67 (cent, half away from
zero; Schedule C line 24b: "in most cases, the percentage is 50%"); software
600 / 600; penalties 40 at 0% = 0 (Schedule C Part V: no deduction for
fines). Totals 4,473.33 book, 4,266.67 deductible. Misc 75.00 has no
category and is listed apart, in no total (B-32).
Book net 9,750.00 - 4,473.33 = 5,276.67; tax net 9,750.00 - 4,266.67 =
5,483.33; the 206.66 difference is the disallowed meals half (166.66) plus
penalties (40.00).

Decimals compare by value (normalized), as the existing snapshot golden
writes them; no existing golden or assertion changed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 09:54:39 -07:00
swaitsandClaude Sonnet 5.5 5c7055123d test(core): golden file for the statement of changes in members' equity
Golden for the two-member 50/50 fixture (statements.rs partnership()),
January and February, with and without January's close. Every number was
recomputed by hand from the entries (plan/golden-worksheets/
members_equity_two_member.md) before the engine's output was compared:

January: NI 1000.00 - 333.33 = 666.67 = 66667 cents; half is 33333.5, so
largest remainder with the tie to Alice (listed first, B-13 CHOICE) gives
Alice 333.34, Bob 333.33. Alice 0 + 600 + 333.34 = 933.34; Bob 0 + 400 +
333.33 = 733.33; Total 1666.67 = balance-sheet equity.
February: undistributed earnings to date 666.67 + 100.01 = 766.68 split
cumulatively is 383.34 each, so Alice earns 383.34 - 333.34 = 50.00 and Bob
383.34 - 333.33 = 50.01 (sum 100.01). Alice 933.34 + 50.00 = 983.34; Bob
733.33 + 50.01 - 100.00 = 683.34; Total 1666.68 = equity (1000 + 766.68 -
100). Ending of January = beginning of February (B-13 3a). "Other" is 0 in
both. Same numbers whether or not January is closed (B-13 3c).

Decimals compare by value (normalized), as the existing snapshot golden
writes them; no existing golden or assertion changed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 09:53:59 -07:00
swaitsandClaude Opus 5.5 6d5bab5cbf docs(plan): D-66, P12 step 2 as one resumable nightly command, fuzzing 1 hour a target
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 16:26:05 -07:00
swaitsandClaude Opus 5.5 320bf4d690 docs(plan): P11a's last steps and P12 step 1 landed; the Windows gate fix; what is left
The 2026-11-05 resume: the two checkpoints merged (758c175f, 3aa1206a),
the Windows server-only build fixed (a92eda21), all four gates green.
8.0.1 and P12's status line record it; STATUS gains the resume entry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 16:21:54 -07:00
swaits 7b1774512b docs: record the in-app accept, the update notice and translocation (P11a)
portable-windows / portable (windows-latest) (push) Canceled after 0s
two-user / two-user (push) Canceled after 0s
check / check (push) Canceled after 0s
portable-macos / portable (macos-latest) (push) Canceled after 0s
The interface spec gains `books.start`'s allocated `update_waiting` field
and says only the owner can accept it. The packaging and architecture
notes now describe the lease intent, the viewer's notice and "Check for
updates", and the translocated-app refusal instead of listing them as not
built. The testing record names each new test and the mutation targets it
gives P12. The plan's P11a status and As-built block record what landed
and what still waits: the Mac trial, the Windows installer (P11c's) and
signing (D-64).
2026-11-05 08:29:20 -07:00
swaitsandClaude Fable 5.1 812d6f203e docs(plan): paused 2026-10-31; the two checkpointed worktrees and how to resume
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
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HS8WZziDnyxunC23MUxrLp
2026-10-30 20:10:33 -06:00
swaitsandClaude Fable 5.1 c7cadef239 docs(plan): 8.0.3 allocates the update intent and the viewer's update names (P11a)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HS8WZziDnyxunC23MUxrLp
2026-10-30 19:54:25 -06:00
swaitsandClaude Fable 5.1 a413e394c1 docs(plan): P11c landed; the portable Windows job gates
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
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HS8WZziDnyxunC23MUxrLp
2026-10-30 19:52:18 -06:00
swaits be0132b667 Merge branch 'main' into P11c 2026-10-30 05:56:24 -06:00
swaitsandClaude Fable 5.1 111b0a0bc4 docs(status): main green on Linux and macOS at ad2ac824
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HS8WZziDnyxunC23MUxrLp
2026-10-30 04:45:56 -06:00
swaits fa7c2805a6 Merge branch 'main' into P11c 2026-10-30 03:10:24 -06:00
swaitsandClaude Fable 5.1 170af163bc docs(status): the CI day, 2026-10-30 early
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HS8WZziDnyxunC23MUxrLp
2026-10-30 01:24:16 -06:00
swaitsandClaude Fable 5.1 84cbe0359c merge: main into P11c (P11b's dock and books homes, the macOS harness root fix)
One conflict, ledger-host commands.rs: main moved the agent-program lookup
into find_agent_in; kept that and carried the Windows parts into it
(.exe/.cmd/.bat, npm's global folder). The harness already used
default_root, so main's fix and ours agree.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HS8WZziDnyxunC23MUxrLp
2026-10-29 17:26:43 -06:00
swaitsandClaude Fable 5.1 2774680d65 docs(plan): P11b and P13 step 6 landed; D-65 amended (Gitea only); the night's status
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HS8WZziDnyxunC23MUxrLp
2026-10-29 17:11:37 -06:00
swaitsandClaude Fable 5.1 abcb2d6b27 docs(plan): P11b as built (P11b)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HS8WZziDnyxunC23MUxrLp
2026-10-29 17:06:14 -06:00
swaitsandClaude Fable 5.1 8f2e3378e8 feat(viewer): the agent dock and the first-run page (P11b)
D-27: a terminal panel along the bottom of the viewer (alacritty_terminal over
a PTY) runs Claude Code (default) or Codex in the book's books home, resizable,
collapsible, the choice remembered. The agent is an ordinary child process the
owner describes (agent_start); the viewer stays read-only: the agent writes
through the server like any other. A missing agent is offered through its
vendor's installer (a command to copy), never bundled; no folder is marked
trusted (Q-7, recommended answer: let Codex ask). Windows is not offered until
its ConPTY checks are recorded.

P11a found that onboarding with no terminal was false: the viewer opened only an
existing book. With no books and an owner, wanderbooks gui now shows a first-run
page: the private folder, the owner passphrase (typed in the viewer, optional),
the first books, an agent, then the books open. connect and New books... make
the books home. Tests: dock.rs, welcome.rs, books_home.rs (host and cli).
Docs: testing.md record and For P12, architecture, parity, gui.md, README.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HS8WZziDnyxunC23MUxrLp
2026-10-29 17:06:14 -06:00
swaitsandClaude Fable 5.1 7749afc557 fix: Windows reads of lock files, update paths cfg(unix), merge main again (P11c)
check / check (push) Canceled after 0s
check / portable (macos-latest) (push) Canceled after 0s
check / portable (windows-latest) (push) Canceled after 0s
two-user / two-user (push) Canceled after 0s
spec_vault swept every file under a book, lock files included; on Windows
a held LockFileEx lock is mandatory and the read failed. The locks are
already dedicated files (never data), so the test skips *.lock. Merged
main (P13 step 6, the macOS server.log assert, P11a's AppImage identity):
host.rs keeps main's five-field identity on Unix and size/last-write on
Windows; the update poll and set_program_version are Unix-only.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HS8WZziDnyxunC23MUxrLp
2026-10-29 17:03:30 -06:00
swaitsandClaude Fable 5.1 b77a25fd7b refactor(bookspec): the specification lives in its own repository (P13 step 6)
bookspec/ (spec, examples, checker, runner, Lean, GnuCash adapter) moves to
https://git.swaits.com/swaits/bookspec, history kept by git subtree split
(public home; CC BY 4.0 for spec/ and examples/, MIT OR Apache-2.0 for the
code). ledger-core and ledger-package depend on bookspec-checker and
bookspec-runner as git dev-dependencies pinned to
74f2853d5f0db0066147c17fed8033cfe3d83a24, and read the examples through
bookspec_checker::examples(). just check still runs every example via
cargo test --workspace. The pin check against docs/spec/sources and the
rules.md id check move into tests/bookspec.rs (they need this repository's
files). The accounting is unchanged: no example or rule moved.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HS8WZziDnyxunC23MUxrLp
2026-10-29 16:51:18 -06:00
swaitsandClaude Fable 5.1 794807ab90 docs(plan): P10 landed, P11a through step 4 and the macOS job; D-64 (signing deferred), D-65 (bookspec public repository)
check / check (push) Canceled after 0s
check / portable (macos-latest) (push) Canceled after 0s
check / portable (windows-latest) (push) Canceled after 0s
two-user / two-user (push) Canceled after 0s
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HS8WZziDnyxunC23MUxrLp
2026-10-29 16:29:21 -06:00
swaitsandClaude Fable 5.1 6f948592f6 merge: P11a, the AppImage restart, the daily staged update, the unsigned macOS bundle in CI (branch P11a, 310fa105)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HS8WZziDnyxunC23MUxrLp
2026-10-29 16:29:21 -06:00
swaitsandClaude Fable 5.1 310fa105a6 docs(plan): P11a step 4, the AppImage restart and the macOS bundle as built
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HS8WZziDnyxunC23MUxrLp
2026-10-29 16:25:35 -06:00
swaitsandClaude Fable 5.1 7fe8570acd docs(plan): P10 as built
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HS8WZziDnyxunC23MUxrLp
2026-10-29 16:16:28 -06:00
swaitsandClaude Fable 5.1 5ecc01b682 docs(plan): P5 and P8 landed; P11a through step 3
check / check (push) Canceled after 0s
check / portable (macos-latest) (push) Canceled after 0s
check / portable (windows-latest) (push) Canceled after 0s
two-user / two-user (push) Canceled after 0s
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HS8WZziDnyxunC23MUxrLp
2026-10-29 16:05:30 -06:00
swaitsandClaude Fable 5.1 4774bd9abd feat(audit): fit the audit tools into the agent surface (P8)
After P5 merged first: a close leads to the audit and the period's
attestation, an audit run to its workpaper and the claims behind it, the
attest tools to the attestations and the CPA package; a refusal for want of
a standing audit is the guard audit_required with books.audit as its
remedy; the audit prompt runs the audit tools. policy.cpa_package_requires_audit,
unset, refuses once the books hold an audit run and warns before, so a
book that has not begun the programme is not stopped from its first handoff
by a rule it has not met; set to refuse, it holds from the start.
bookspec states B-45 (convention) in its checker.

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