Money: authoritative on-disk format (calternal-money) — break exhaustively, then document #628
Closed
opened 2026-10-19 15:20:24 +00:00 by kayg
·
39 comments
No Branch/Tag specified
main
port/tasks-float-2
fix/train-1116-2
fix/train-1116-3
fix/train-1116-1
fix/flake-1134
fix/server-1182
dev
port/notes-float-3c
docs/auto-update-ig
feat/dav-transport
port/tasks-float-1
wip/mail1011-sv-order-1116
fix/flake-1179
fix/flake-1178
fix/guards-1153-fsio-split
fix/guards-1153-notes-split-we
fix/guards-1153-notes-lib
fix/guards-1153-notes-home
fix/guards-1153-ui-primitives
fix/guards-1153-primitives-e2e
fix/guards-1153-visibility-doc
feat/paper-grey-1116
fix/flake-1165
fix/flake-1119
docs/imap-766-plan-v2
fix/e2e-unique-ports
t3/paged-search-reconcile-final
wip/mail1011-final-1115
docs/tasks-float-port
perf/editor-first-paint-1c
feat/imap-notes-fetch
feat/imap-notes-projection
feat/imap-notes-readonly
feat/imap-notes-auth
feat/imap-notes-server-foundation
wip/mail1011-txn-ownvocab-1115
wip/mail1011-txn-novocab-1115
perf/p1117-final-harness
perf/single-shot-repeats
port/tasks-matrix
wip/mail1011-txn-1115
fix/static-gates-1155
feat/files-s1-identity-r7
fix/files-r7-idle-loop
fix/daily-train-1152
port/notes-float
fix/editor-tables-test-types
port/notes-float-listscript
feat/tasks-actions
port/notes-float-phone-preload
perf/sound-comparator
port/notes-float-listscroll
port/notes-float-budgets
port/notes-float-suite-fix-b
port/notes-float-sidebar-fix
port/notes-float-trim
port/notes-float-3-lists
fix/attachments-meta-capability
docs/carddav-writes-v2-plan
feat/contacts-companion-pure
issue/carddav-read-perf-fix-r2
issue/carddav-read-r2
port/notes-float-devsync2
review/calendar-2
review/switcher-a-pills
port/notes-float-switcher-a
port/port-tables-2
review/switcher-ends
wip/whiteboard-s1-1114
port/port-tables
wip/mail1011-perfneutral
review/photo-tint
port/notes-float-shell
wip/local/collections-db
wip/local/mail-p1
wip/local/cold-growth-on-tiering
wip/local/tiering-v3-s1
wip/local/wal1051-cap
wip/local/tiering-v3-s1-resume
wip/local/index-position-startup-scan
port/notes-float-flat
port/notes-float-promote
wip/handover/mail1011-candidate
wip/handover/files-s1-candidate
port/notes-float-shell-only
port/notes-float-perf
feat/whiteboard-s1
feat/tiering-v5
fix/app-switch-hitch
wip/local/files-s1-dev-v4-final
feat/files-s1-dev-v4
fix/c2-glass-shared
feat/flat-lists
wip/handover/whiteboard-s1-resume
wip/att-lazy-861
feat/switcher-browse
wip/att-lazy-860
feat/tasks-float
recovered/flat-backup-candidate
perf/stalls-1054-kc
land/ai-toolbar
feat/collections-db
feat/collections-db-fixes
codex/mail-1011-redesign-20261111
fix/ai-toolbar
backup/macos-vm/st3-head
perf/trim-candidate-phonestack
feat/switcher-three
fix/1051-index-idle-checkpoint
perf/stalls-1054-kb
perf/stalls-1054-k
perf/stalls-1054-r3
fix/c2-contrast-tail
perf/stalls-1054-r3-preview
feat/collections-before
feat/tiering-v4
fix/timelog-caret
wip/local/tasks-actions
docs/tasks-writes-v2-plan
st3-r3
feat/pass8
review/calendar-2-before-1111
wip/tiering-v3-cold4
perf/stalls-1054-r2
fix/suite-A4
fix/suite-A5-probe
fix/suite-A6
fix/suite-A3
fix/suite-A2
fix/suite-A5
fix/suite-A1
wip/local/attachments-861-fix
feat/contrast
wip/local/ports-861
storage/wal-checkpoint-off-save-1051
wip/local/mail-1011-reconcile-20261110
feat/style-sheet-fixes
feat/money-round
perf/stalls-1054
wip/tiering-v3-cold5
t3/mail-1011-liveness
feat/iphone-fixes
feat/notes-approve
wip/local/shrow-work
feat/files-s1-identity
feat/quickfix
wip/tiering-v3-cold
wip/local/shared-row-swipes
backup/macos-vm/pfx-B
backup/macos-vm/pfx-C
backup/macos-vm/pfx-D
feat/contrast-r1
feat/tiering-v3-s2-tags
feat/folder-drop
t3/photos-s1
feat/tiering-v3-s1-namespace
wip/local/photos-s1
t3/photos-plan-slice-one
recovered/backup/p1b-61505
t3/paged-search-reconcile
t3/smooth-pane-transitions
t3/index-position-startup-scan
fix/private-staging-759b-r2
backup/macos-vm/hk/hk1009/pr877
backup/macos-vm/hk/hk1009/pr878
docs/undo-block-ids-plan
fix/undo-768
backup/macos-vm/hk/hk1009/pr875
backup/macos-vm/hk/hk1009/pr904
proto/block-identity-v7d
backup/macos-vm/hk/hk1009/pr846
backup/macos-vm/hk/hk1009/pr860
backup/macos-vm/hk/hk1009/pr861
backup/macos-vm/hk/hk1009/pr849
backup/macos-vm/hk/hk1009/pr848
backup/macos-vm/hk/hk1009/pr853
backup/macos-vm/hk/hk1009/pr957
backup/macos-vm/hk/hk1009/pr893
backup/macos-vm/hk/hk1009/pr889
backup/macos-vm/hk/hk1009/pr902
docs/imap-notes-plan
docs/quota-plan-2
fix/parallel-test-flakes
docs/calendar-backend-v2-plan
feat/calendar-ical-converter
backup/macos-vm/hk/hk1009/pr808
docs/contacts-import-v2-plan
issue/610-pm-midnight
feat/calendar-v2-s1-containment
backup/macos-vm/hk/hk1009/pr854
backup/macos-vm/hk/hk1009/pr845
backup/macos-vm/hk/hk1009/pr917
docs/dav-recorder-v2-plan
plan/previews-865
plan/save-log-durable-entry
backup/macos-vm/hk/hk1009/pr934
fix/e2e-data-on-ram
backup/macos-vm/hk/hk1009/pr888
feat/appwindow3
feat/appwindow2
feat/appwindow
feat/money-p1
feat/keys-sheet
review/calendar-2-themes
feat/smooth-cursor
fix/float-style
review/calendar-2-float
release/2026-11-06-hotfix
archive/port/rows-drop-code
archive/port/rows-actions
archive/port/rows
scratch/tasks-894-ui-gates
review/calendar-2-night-wip
recovered/flaky/toast-reduced
release/2026-11-05
archive/flaky/rows-drop-fixed
archive/flaky/rows-actions
archive/flaky/rows
sim/bm15-final
sim/bm15-bis-932
sim/bm15-bis-909
sim/bm15
sim/bm15-bis-887
perf/tiering-option-b
fix/sw-lazy-precache
archive/plan/save-log-durable-entry
mock/money-fix2
archive/fix/e2e-data-on-ram
mock/appearance-all
mock/pill-press
mock/pill-press-mac
backup/macos-vm/appearance-after
mock/auto-swipes
mock/mail-actions
backup/macos-vm/mock/mail-actions
mock/money-static
archive/review/standards-917
perf/tiering-761-fix
mock/type-audit
mock/third-pane
feat/contacts-import-v2-s1
perf/executor-hot-path
archive/port/hidden-blocks
archive/port/devices
scratch/executor-on-894
scratch/executor-spans2
scratch/executor-spans
archive/port/rows-drop
feat/tiering-761-d-scale
feat/tiering-761-c-index
feat/tiering-761-b-reader
archive/review/sharing-pr3-review-9fec3d1f
perf/ports-lazy-budgets
feat/tiering-761-a-migration
archive/review/sharing-pr3-review
archive/review/sharing-pr3-review-code
archive/plan/previews-865
archive/port/port-attachments-3
archive/port/contacts-merge
fix/motion-audit-859
fix/motion-audit-859-mac
archive/port/port-pickers
archive/port/port-tables-2
archive/port/port-tables
recovered/local/sharing-s1-pr2-room-snapshot-candidate
archive/fix/parallel-test-flakes-code-minipc01
docs/imap-766-readonly-slice
feat/dav-recorder-v3
research/788-diagnosis
archive/fix/parallel-test-flakes
archive/perf/pr792-cold-index-edit
docs/sharing-slice-1
recovered/feat/dav-recorder-v2
recovered/feat/dav-recorder-v2-edd7bbb
spike/imap-766-s0-cases
archive/fix/undo-768
recovered/feat/dav-recorder
recovered/feat/dav-recorder-901acd4
feat/contacts-import
perf/cold-growth-on-764
perf/cold-growth-on-tiering
recovered/feat/tasks-set-status
feat/tasks-move-reorder
feat/tasks-delete-promote-duplicate
feat/carddav-writes
perf/quota-on-tiering
perf/quota-simple
perf/cold-growth-on-quota-stack
recovered/perf/cold-growth-on-tiering
feat/calendar-identity
feat/calendar-event-parser
feat/calendar-props-maps
port/glass-when-ring
recovered/feat/tiering-761-s1-wip-8132a84
recovered/feat/tiering-761-s1-wip-9da4094
recovered/feat/tiering-761-s1-wip-724512c
recovered/feat/tiering-761-s1-wip-66e667e
recovered/feat/tiering-761-s1
wip/6by32-01-tier-761-s1-pause-20261030
spike/imap-766-s0
wip/6by32-02-calternal-pause-20261030
wip/8by64-01-review-688-pause-20261030
wip/6by32-01-verify-744-pause-20261030
wip/6by32-01-verify-742-pause-20261030
fix/private-staging-759b
wip/6by32-01-review-748-pause-20261030
wip/6by32-01-review-733c-pause-20261030
wip/6by32-01-review-733b-pause-20261030
review/calendar-month
wip/local/bm15-trash
plan/759b-staging
review/767b-tests
review/preview-2026-10-29
docs/tiering-731-plan
wip/c6b02-review-733d
wip/c6b02-bm1-full-a
docs/deploy-plan
fix/storage-owner-liveness-642
fix/storage-fix-7
feat/tiering-731
wip/tiering-731-first-attempt
perf/idle-honest-2
fix/storage-private-tmp-642-dev
fix/storage-exact-file-quarantine-642
perf/one-flush-save
review/calendar-static
review/indexing-ring
review/when-field-2
proto/block-identity-2-review
proto/block-identity-review
review/when-field
issue/tasks-create-ids
issue/tasks-create
review/combined
review/task-polish
review/top-buttons
review/q1-q5
archive/integ325-293
archive/integ325-ci
issue/calendar-adr
archive/old/train/2026-10-23bk2
archive/old/train/2026-10-23bk
issue/469-mockup-9a
issue/smart-tasks-mockup
issue/469-menus
issue/652-signout-flake
issue/652-history-fix7
issue/652-history-fix6
archive/old/issue/spring-check-perf
issue/spring-check-perf
issue/659-rename-fast
archive/old/train/2026-10-21ar
issue/search-hardening-3
issue/652-history-fix5
issue/660-port-sheets-glass
issue/652-history-fix4
issue/652-history-fix3
issue/652-history-fix2
issue/652-history-flake
train/2026-10-21an
issue/settings-admin-port
issue/search-port
train/2026-10-20am
issue/storage-split-fix2
issue/storage-split
archive/old/issue/folder-ids-fix
train/2026-10-20al
archive/old/issue/folder-ids
train/2026-10-20ak
issue/tables-mockup
train/2026-10-19aj
train/2026-10-19ai
issue/469-merge-fixes
issue/sidebar-band
archive/old/issue/608-settings-spec
train/2026-10-19ah
issue/swipe-offscreen
train/2026-10-19ag
archive/old/issue/590-nlp-adr
archive/old/issue/587-event-after-write-2
train/2026-10-19af
archive/old/issue/587-event-after-write
issue/469-pill-room-c
issue/469-pill-room
train/2026-10-19ae
issue/469-narrow-handle
issue/397-ios-swipe-2
issue/469-desk-fixes
archive/old/issue/auto-update-adr
issue/469-filter-gap
issue/469-port-1b
issue/442-opacity-flake
issue/327-web-fast-3
archive/old/issue/469-port-1
issue/469-port-1
issue/327-web-fast-2
archive/old/issue/327-web-fast
archive/old/issue/425-stt-bench-vq1
archive/old/issue/445-no-bleed
archive/old/issue/400-swipe-mockup-2
issue/426-client-review
issue/426-client-2
issue/426-client
archive/old/issue/476-safe-area-lab
archive/old/issue/445-top-light
issue/471-blocks-mockup
archive/old/issue/448-links-app-2
archive/old/issue/448-links-app
archive/old/issue/398-cold-links
issue/434-442-small-2
issue/434-442-small
archive/old/issue/398-unload
archive/old/issue/445-bottom-band
issue/445-bottom-band
issue/351-rem-3
issue/351-rem-2
issue/351-rem
archive/old/issue/327-first-note
issue/395-width-phone
archive/old/issue/327-typing
issue/396-ios-edges
issue/397-ios-swipe
archive/old/issue/327-notes-index
issue/345-347-contrast-empty-2
archive/old/issue/44-arenas
issue/44-arenas
archive/integ325
archive/old/issue/327-perf-harness
archive/old/issue/44-thp
issue/44-thp
archive/old/issue/285-sticky-pills
archive/old/issue/44-trim-3
issue/44-trim-3
archive/old/issue/165-cards
archive/old/issue/165-picker-2
archive/old/issue/212-multi-select
No results found.
Labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set
Reference
kayg/calternal#628
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
kayg (2026-10-19 ~20:55 IST): this is the AUTHORITATIVE on-disk format for Money (
format: calternal-money). A fast Codex agent owns this issue and breaks it exhaustively, drawing on real YNAB / Actual Budget edge cases from forums worldwide, until it is foolproof. Once final, the spec goes into our documentation (docs/). History of the design and rounds 1–9: #620; decisions: kayg's grill answers summarised below.Layout
Money only reads files with frontmatter
format: calternal-money. Groups exist while a category names them. Card payment categories are implied by card accounts.Records (month files)
Top bullet = ISO 8601 timestamp with seconds and offset +
^id, nothing else. Fields = sub-bullets, lowercasekey: value, single colon, only the ones that apply. Amounts plain and exact with a currency code (-2291.40 INR); the screen formats. Links[name](<path>); readers also accept the bracket-less CommonMark form; writers always emit angle brackets. The record's local date decides its month file.Fields: payee, memo, note, amount (required), from/in (exactly one), for (category or
Ready to Assign; severalforwith amounts = split), to (transfer target, on the record or under afor), owed by (under afor), settles, original (foreign amount on a home-currency card), estimate (dated, while the charged amount is unknown), home (exact home-currency amount charged; bank figure wins), rate (84.00 INR per USD at <timestamp>), status (pending|void; posted default), conversion of / fee / fee gst / interest / interest gst (card EMI, incl. no-cost EMI), assign, assert (reconciliation), home currency + rate (moving countries; dated), at, see, receipt, via (automation provenance; removed on hand edit; automations never change a record withoutvia).Decided rules
Starting #628. Design/spec and throwaway tooling only under /home/kayg/Developer/calternal-research/money-auth/. Branch: not applicable; this research directory is outside Git and no product changes or commits are planned. Product reference base SHA:
a0785f1067. Research head SHA: not applicable.I am reading rounds 1–9 and the latest owner decisions, then adapting the contract and every inherited gate to individual account/category notes and Months/. I will mine real worldwide cases, save at least 60 concrete input/expected pairs, and repeat independent attack rounds until two consecutive rounds have no new P1/P2. Tax and investment-lot reporting from r9 are outside the owner's budgeting scope. No product build, push, merge, deployment or issue closure.
#628 round 1: 5 P1, 4 P2, 0 P3; clean streak 0.
M166 P1 — File links can silently retarget after path reuse
Minimal input: Accounts/Checking.md id checking; rename to Accounts/Bank.md; create Accounts/Checking.md id intruder; old from link still names Checking.md.
Consequence: Postings can attach to intruder despite unchanged label.
Fix: Persist typed target-ID bindings in portable revision history; refuse path reuse mismatch.
Evidence: layout_suite path reuse, /home/kayg/Developer/calternal-research/money-auth/. These are design/research-model findings, not product defects.
M167 P2 — Folder-only discovery loses moved registered entity notes
Minimal input: Move Accounts/Checking.md to Archive/Checking.md without editing transaction links.
Consequence: Reader scanning only Accounts silently drops the entity and may omit history.
Fix: Track full registered source set; discover marked notes vault-wide; quarantine wrong-location notes, never forget them.
Evidence: layout_suite move/delete/format-removal, /home/kayg/Developer/calternal-research/money-auth/. These are design/research-model findings, not product defects.
M168 P2 — Individual note paths collide on portable filesystems
Minimal input: Accounts/Cash.md and Accounts/cash.md; Categories/Café.md and Categories/Café.md.
Consequence: Sync to macOS/Windows can overwrite a distinct note.
Fix: Detect NFC+casefold path collisions and portable-name/length limits; preserve and quarantine bytes.
Evidence: layout_suite casefold/NFC-NFD/device/long-path, /home/kayg/Developer/calternal-research/money-auth/. These are design/research-model findings, not product defects.
M169 P2 — New entity properties have no safe missing-group or wrong-role default
Minimal input: Categories/Groceries.md has kind category and no group; Accounts/Checking.md has kind category.
Consequence: Implicit grouping or role inference corrupts note identity/organization.
Fix: Require group and exact kind/path agreement, immutable frontmatter ID/type/currency.
Evidence: layout_suite wrong folder/group/kind, /home/kayg/Developer/calternal-research/money-auth/. These are design/research-model findings, not product defects.
M170 P1 — R9 foreign merchant amount conflicts with owner native bank amount
Minimal input: INR Card: amount -24.50 EUR, home -2291.40 INR. Owner now requires amount -2291.40 INR, original -24.50 EUR.
Consequence: An unchanged r9 reader may mispost the new original or reject the authoritative shape.
Fix: Amount always account-native, original nonposting, home exact home book value; explicit pending estimate.
Evidence: semantics owner-native positive and negative probes, /home/kayg/Developer/calternal-research/money-auth/. These are design/research-model findings, not product defects.
M171 P1 — Dated home-unit change cannot reuse immutable r9 home sums
Minimal input: Budget starts INR; dated home currency EUR; old home 100 INR plus new home 1 EUR.
Consequence: Adding numeric home values across epochs silently produces 101.
Fix: Keep epochs; complete reviewed conversion snapshot and rates; no mixed-unit sum or migration without adopted snapshot.
Evidence: spec unit-epoch contract; finite test rejects absent snapshot, /home/kayg/Developer/calternal-research/money-auth/. These are design/research-model findings, not product defects.
M172 P1 — An external hand edit can leave stale automation ownership
Minimal input: Record amount -100 INR and via rule-a; Obsidian changes amount to -200 INR leaving via unchanged.
Consequence: Automation trusts via string and overwrites human intent.
Fix: Compare latest revision and ownership history; hand edits revoke via authority even when external source retains it.
Evidence: publication stale-base/via controls, /home/kayg/Developer/calternal-research/money-auth/. These are design/research-model findings, not product defects.
M173 P1 — EMI component fields can post fees twice
Minimal input: amount -352.82 INR plus fee 299 INR and fee gst 53.82 INR.
Consequence: A reader adds components again, doubling statement cost.
Fix: Component fields are evidenced labels over explicit expense shares, never additional postings; require exact bridge.
Evidence: semantics exact EMI fee/GST bridge; specification review, /home/kayg/Developer/calternal-research/money-auth/. These are design/research-model findings, not product defects.
M174 P2 — Stored payment-category notes conflict with derived owner model
Minimal input: A physical Categories/Card payment.md purports to be the derived card reserve.
Consequence: Two independently editable representations can diverge.
Fix: Virtual payment tuple disjoint from physical categories; assign payment via card link.
Evidence: layout_suite virtual disjoint regression in round 2, /home/kayg/Developer/calternal-research/money-auth/. These are design/research-model findings, not product defects.
Gate output verbatim:
The full inherited heavy gate is waiting behind the shared build train through the required build-slot wrapper; this round does not claim that run has finished. Source research: 123 leads collected, 61 full pages read; Reddit direct reads are rejected by Firecrawl and are marked search-excerpt-only. Actual issue bodies and public YNAB/Actual guides provide verified-page cases.
#628 round 2: 2 P1, 0 P2, 0 P3; clean streak 0.
M175 P1 — Pending claim can leak into outstanding before status filter
Minimal input: Pending -3000 INR split with owed by Mira 1500 INR.
Observed consequence: Finite oracle created claim before excluding pending posting.
Fix: Validate structure but stage claim effects; commit only posted effects.
Evidence: attack-round2.json reproduces this against the frozen model-v1.py; model-v2.py and pending_policy reject it.
M176 P1 — Several settlement allocations can reuse the same receipt capacity
Minimal input: Receipt +500 INR, two settles of 500 INR each against distinct claims.
Observed consequence: Individual caps pass but total claims reduced 1000 on cash 500.
Fix: Sum receipt allocations in native/home units and globally bound reductions before applying any.
Evidence: attack-round2.json reproduces this against the frozen model-v1.py; model-v2.py and pending_policy reject it.
All prior findings remain closed in the design. The two new findings are actual finite-oracle counterexamples, not shipped product defects.
Gate output verbatim:
The inherited gate has now freshly passed through rounds 2–9 including the heavy loops. A second fresh run through the reversible note-file link bridge is queued through the required shared slot. Full note metadata and latest-owner semantics are checked by the new gates separately.
Decisions pending kayg
These are proposed wire details needed to implement already approved behavior. The research continues using the recommendations. Silence is not approval; affected unsupported operations remain safely withheld.
Operations.mdhistory note, with complete source-set hashes, typed target-ID bindings, tombstones and immutable definitions, and require it in continuation backups? Recommendation: yes. File-only links cannot independently distinguish a renamed note from another note reusing its old path. A fresh history-free import explicitly adopts current resolved identities and cannot claim faithful continuation.for: transfer -500 INR ^share-idwith an ownedto, and virtual card assignment useassign: payment [Card](<../Accounts/Card.md>) 1000 INR? Recommendation: yes. These typed tokens avoid fake category notes while leaving ordinary expense records unchanged. Until accepted, retain unsupported source transactions in review rather than invent a category.#628 round 3: 1 P1, 0 P2, 0 P3; clean streak 0.
M177 P1 — Positive transfer magnitude conflicts with negative source home leg
Minimal input:
Observed: An exact valid USD to INR transfer is rejected as home dimension/sign, while a generic same-sign interpretation can reverse the book leg.
Fix: Ordinary signed amount/home directions agree. Direct transfer amount is magnitude and explicit home describes the negative source leg; EMI conversion explicitly describes positive card principal.
Evidence: attack-round3.json reproduces model-v2 rejection; transfer_home regression against model-v3 validates exact native legs and rejects wrong sign.
The 90 source-derived pairs now include independent full-page Actual issue, Money Manager, Toshl, Goodbudget, Beancount and hledger probes, plus labelled Reddit leads. All 41 standard specimens have separate path-only and owner-shape readability tables: owner shape 10266 characters / 282 lines versus r9 10153 / 284. Shared note/history costs are separate.
Gate output verbatim:
#628 round 4: 0 P1, 0 P2, 0 P3; clean streak 1.
No new format findings. Attacks checked non-Latin/percent-escaped names, Windows device names, account-type typos, category path reuse, and all prior regressions. The finite oracle was tightened to reject duplicate ordinary rates and unsupported tracking-value parsing rather than pretend to implement the existing endpoint rule; those are existing format requirements, not new format findings.
Gate output verbatim:
Public Buckets guidance and Obsidian angle-link rename discussion were recovered in the final research pass. The former motivates incomplete/unreadable backup checks; the latter is historical editor evidence, not a current runtime claim. Reddit and Discord coverage limits remain explicit in sources.md and research-status.md.
#628 round 5: 0 P1, 0 P2, 0 P3; clean streak 2.
Stop condition met by consecutive clean rounds 4 and 5 in finite design probes. Round 5 attacks continuation restores missing bindings, tombstones, head, member files or exact bytes; all 123 incomplete/changed cases are withheld. An unsupported home migration also remains withheld. No new P1/P2.
Gate output verbatim:
The full inherited run through the new link bridge also completed freshly through the required shared build slot. Its old r9 tax/lot findings are outside this owner’s budgeting scope, not fresh #628 findings. Exact adapter scope is stated in its output. Complete new note definitions and lexical structure are separately exercised for all 41 standard specimens.
Inherited port output verbatim:
Complete-note fixture output verbatim:
#628 documentation handover finished.
Final spec: /home/kayg/Developer/calternal-research/money-auth/FINAL.md
Spec SHA-256: 418a6cf421051e67db5945b4c4bd68cd24ba856fa12f4dd2f3885a55bc27c7cc
Branch/head SHA: not applicable; the research directory is outside Git and no product commit was made. Product reference base SHA:
a0785f1067.Five rounds. New findings P1/P2/P3: round 1 = 5/4/0; round 2 = 2/0/0; round 3 = 1/0/0; round 4 = 0/0/0; round 5 = 0/0/0. Stop evidence: rounds 4 and 5 are consecutively clean, with all new findings M166–M177 closed in the stated design/model scope. This is finite research evidence, not a proof of arbitrary product or editor behavior.
The handover contains full grammar/layout/rules, every field example, worked scenario classes, what the app derives, and a 23-class edge-case index. There are 92 concrete source-linked input/expected pairs, 132 source leads with access dates, 68 full-page results, and complete individual-note layouts for 41 standard specimens. Owner-shape readability: 10266 characters / 282 lines versus r9 10153 / 284, excluding shared definitions/history. sources.md distinguishes full pages from Reddit excerpts; private Discord and the old YNAB community forum were not accessed. Indian bank mappings remain synthetic examples, not certified bank profiles.
The inherited suites were run freshly twice, once unchanged in an isolated copy and once through an exact reversible note-link bridge. The bridge checks new destinations and retains inherited semantic oracles; the new gates separately check new metadata and latest owner rules. Full native parser/card/envelope/editor conformance remains implementation work. Tax and security-lot reporting are outside the owner's budgeting scope.
Three decisions remain pending kayg. The recommendations were used conservatively in this research; silence is not approval, and unsupported operations withhold affected totals:
for: transfer AMOUNT ^shareplus ownedtofor transfer-only split shares, andassign: payment [Card](<path>) AMOUNTfor the derived card payment category? Recommendation: yes.No product code changed, no evidence was committed, no push/merge/deployment/VM operation was performed, and this issue stays open. The next owner can move the clean spec into docs after resolving the pending wire details; research evidence stays here and in these comments.
Final gate output verbatim:
Handover audit output verbatim:
Decided (kayg, 2026-10-19): H1 — no History/ folder; Money's version history is derived by comparing stored file versions record by record, shown per transaction (with Undo), per category and as a budget-wide Changes view. F2 — split transfer share
for: transfer -10000+ nestedto:. F3 — past transactions/accounts never change currency; only unspent budget money converts once at the user's own transfer rate or the day's reference rate (editable); rounding remainder to Ready to Assign. Open for the UI grill later: history entries must read more human-friendly than terse one-liners. Final independent break by an Opus reviewer running before the spec is finalised.Starting the Opus repair pass for #628. Work is spec/tooling only in /home/kayg/Developer/calternal-research/money-auth/, outside Git. Branch and head SHA: not applicable; no product commit or push is planned. Product reference base SHA:
a0785f1067.I reproduced the structural gaps by reading the report and probes: the old parser never verifies transfer-share destinations, share refund targets or person links; card reserve tests run outside the parser. FINAL.md still requires Operations.md and a History/ snapshot, contrary to F1/F3. I am replacing these with one parsed-file replay, porting every probe, checking rule coverage, and measuring the same 41 specimens plus the imported purchase. O-14 and O-20 will remain explicit owner questions, with options and recommendations; this unattended job will not treat silence as approval.
Opus repair findings for #628. The old gate accepted eight silent-money cases; all original file probes now run through model-v6.py. The exact original financial fields are in opus-probes-v6.json (only redundant frontmatter was migrated). The F3 arithmetic-only probe has a parsed-file equivalent. These fixes follow F1/F2/F3.
Cashback arithmetic differs from the review recommendation: 24000 cash, 12000 reserve and 12100 RTA would overallocate by 100. V6 releases the 100 reserve into RTA, yielding reserve 11900 + RTA 12100 = cash 24000. The parsed cashback-positive test asserts this. O-14 and O-20 remain explicit owner questions; this pass does not override S2/S13 silently.
Historical validation is currently blocked on the required shared build-slot scheduler. Both fresh historical commands are queued inside build-slot.sh; their output files are still empty. The live test-train priority marker points to a process that had been running for 45 minutes when checked. I have not bypassed the marker or signalled any process.
The current v6 gate itself is light and runs successfully: 323 parsed-file tests, all 30 Opus probes, all 92 earlier source fixtures under the documented migration, all 41 readability specimens plus the imported purchase, and 10 deliberately reintroduced money-rule mutants caught by the file tests. Spec coverage is 68/68 rules, zero uncovered. Historical reruns are still pending and are not being reported as passed from old evidence.
Further parsed-file checks during the repair found and fixed integration errors that the previous card toy could not exercise:
card-negativeandcashback-negativekeep RTA/reserve at zero when there is no cash.positive-credit-funding-positive).reversal-after-home-positive).historical-refund-after-merge-positive,new-refund-after-merge-positive).converter-positive,converter-negative).automation-default-negative,automation-proposed-positive,automation-restored-negative,automation-timestamp-negative).Current light gate: 338 tests passed; 89 negative cases; 68/68 rule groups covered, zero uncovered. Fresh historical suites are still waiting for the local test-train scheduler or the perf VM's required lock. Neither old PASS files nor a duplicate model are being used to claim those reruns have completed.
Owner questions after the v6 repair
“Yes” accepts the recommendation. The unattended job records these questions and continues; silence is not approval. F1, F2 and F3 are already decided and are not questions again.
[[wikilinks]]and shortest-path Markdown links when unique within the field's expected role folder? Alternatives: keep relative Markdown paths only; or accept those additional read forms and always write canonical relative angle links. Recommend yes to the second option. Existing Markdown-only behavior stays the default until answered. Both paths are tested.Historical harness findings, with evidence and chosen repair:
The failing local historical wrapper ended; the earlier queued inherited wrapper reached its own timeout without a build slot. No test-train or other job process was signalled. Fresh remote suites are running with bounded commands; the perf VM run holds its required lock and staging remains below 60% disk.
#628 v6 repair handover finished.
Spec: /home/kayg/Developer/calternal-research/money-auth/calternal-money-v6.md. FINAL.md is byte-identical. Current entry: python3 money-auth/gate.py. The retired toy/card gate is isolated in gate-legacy.py and is not loaded by the current gate.
Branch and head SHA: not applicable. This research directory is outside Git; no product commit or push was made. Product reference base SHA:
a0785f1067. Final spec SHA-256: a65aa58b79ae34503d2a9bcd1c3f8b205ee2ae8b4284862263bdca63bc9af2c5.F1/F2/F3/H1 contradictions are removed. Review simplifications 1–12 are adopted, with no History folder, Operations journal, hash snapshot, reconciliation member lists, redundant EMI components or invented approval questions about already decided behavior. O-14 and O-20 are the only owner questions; current S13/S2 defaults remain until answered. Silence is not approval.
All 52 C/F2/O findings have a fix or explicit owner-question disposition and executed test IDs below. The 13 P1 classes, including the eight previously accepted silent-money cases, now run through the same parsed-file interpreter. Current-month refunds/conversions reflow funding; a cash refund of a card purchase leaves its debt/reserve intact; parent-derived share identity prevents reserve changes on file reorder; server-version checks cover category and nested-destination path reuse. Additional regressions cover those integration cases. Real reserve releases become category money; cancelling an unfunded conversion only clears its budget shortfall, without inventing cash.
The historical reruns completed freshly on both staging and the perf VM. The perf run held /root/perf-vm.lock throughout. Output hashes match across both hosts. The missing fixture bundle and retired-model/corpus mismatch from the first attempts are documented in the earlier comment; no expected financial balances were weakened. Historical sets 1–5 use their final v5 reference because the retired models predate later corpus corrections. The exact historical function and model bytes were verified. The old r9 tax/lot proposals and its printed historical 3-P2 ledger are not current v6 policy or new open Opus findings.
Both isolated remote scratch directories have been removed. Staging is at 21.19% disk use. The queued local wrappers ended by their own timeout/test exit; no process belonging to another job was signalled. No production VM, product source, commit, push, merge, deployment, package installation or issue closure. Evidence stays here and in the research directory.
Finite research evidence does not certify product storage, real bank mappings, editor behavior or Rust/WASM conformance. A fresh independent model review is still appropriate before product adoption.
Finding → fix → executed test ID:
Opus repair findings for #628. The old gate accepted eight silent-money cases; all original file probes now run through model-v6.py. The exact original financial fields are in opus-probes-v6.json (only redundant frontmatter was migrated). The F3 arithmetic-only probe has a parsed-file equivalent. These fixes follow F1/F2/F3.
Cashback arithmetic differs from the review recommendation: 24000 cash, 12000 reserve and 12100 RTA would overallocate by 100. V6 releases the 100 reserve into RTA, yielding reserve 11900 + RTA 12100 = cash 24000. The parsed cashback-positive test asserts this. O-14 and O-20 remain explicit owner questions; this pass does not override S2/S13 silently.
Final gate and handover output verbatim (includes spec coverage):
Fresh recursive inherited gate output verbatim (historical policy only):
Accumulated historical test sets output verbatim:
Readability against the previous FINAL
Counts are Unicode characters including LF and physical lines inside the exact source blocks. Baseline: previous FINAL's companion examples-owner.md, not r9. Handwritten v6 may omit IDs; the separate app-save columns include every assigned record/split-share/claim ID and canonical write spelling. Both exclude shared definitions and supplied context. Specimen 17 was empty and remains zero. Native-card errors in 27/28 and the tracking valuation in 37 are corrected and included.
The 41 handwritten specimens shrink by 1391 characters (13.5%) and 29 lines (10.3%). Actual app saves shrink by 187 characters (1.8%) and 29 lines (10.3%), including assigned IDs. The import goes from 463 chars / 13 lines to 332 / 9 handwritten, or 356 / 9 app-written. The review called the baseline 12 lines, but its exact code has 13.
Run make-readability-v6.py, measure-saved-v6.py and combine-readability-v6.py to regenerate. No reading-speed claim is made.
Owner questions after the v6 repair
“Yes” accepts the recommendation. The unattended job records these questions and continues; silence is not approval. F1, F2 and F3 are already decided and are not questions again.
[[wikilinks]]and shortest-path Markdown links when unique within the field's expected role folder? Alternatives: keep relative Markdown paths only; or accept those additional read forms and always write canonical relative angle links. Recommend yes to the second option. Existing Markdown-only behavior stays the default until answered. Both paths are tested.Owner answers (kayg, 2026-10-19 night): Q1 YES — read Obsidian wikilinks and unambiguous shortest-path links as well as markdown links; write ONLY standard markdown links
[t](<path>). Q2 YES — the user's edits always supersede automations; an automation may still update the bank fields it owns when a pending charge settles. Opus second pass running before finalisation.Starting the second-pass repair for #628. Spec/tooling only in /home/kayg/Developer/calternal-research/money-auth/, which is outside Git. Branch and head SHA: not applicable; no commit or push is planned, consistent with the previous research pass. Product reference base SHA:
a0785f1067. I will preserve v6, build one v7 parsed-file engine, execute new cases for every second-pass finding, and post the finding-to-fix-to-test table, exact gate output and readability counts. Latest owner decisions are authoritative: read wikilinks and unambiguous short paths, write standard Markdown angle links; human edits supersede automation, with retained ownership only for unchanged bank fields.Second-pass findings and fixes are now represented in the v7 spec and one parsed-file engine. Reproduction before repair: the two-card payment reversal returned reserves card=0/card2=400000 minor units instead of 100000/200000; a two-share refund reversal restored 400000 instead of 300000; account/Budget body records were accepted without posting; an add-first move published a duplicate. The new targeted cases now restore the correct reserves, flag misplaced data and hold partial moves without changing IDs.
The first expanded staging run passed 436 tests, 76/76 rules with zero uncovered, and 18/18 source mutants killed. The final pass adds explicit moved history and more byte/decision-scope cases. Staging root and tmp disk checks remain under 60%. Local full-gate/perf lock queues have not been bypassed; no other job was signalled.
N4-multicard-payment-reversal,N4-multishare-refund-reversal,N4-payment-refund-needs-reversalN6-account-body,N6-budget-body,N6-category-bodyN1-add-first,N1-delete-first-sync-gap,N1-true-duplicate,N1-explicit-delete,N1-move-retains-links,N1-history-reports-moveN2-bank-epochs,N2-wrong-bank-epochN3-not-match,N3-not-match-scope,N3-decision-is-pair-specificN5-note-frontmatter,N5-multiline-note-metadata,N5-unknown-money-keyN10-yaml-labels-fixed-point,N10-selected-yaml-and-reference-labels,N10-saved-yaml-scalar-types,N10-untouched-bytes,N10-single-record-preserves-all-other-files,N10-all-valid-fixtures-fixed-point,N10-generated-roundtrip-fuzzN7-unsigned-sharesN8-plus-fromN9-content-identityN12-rta-withdrawal-warningN15-entity-copy-problemN16-spaced-import-idN13-unfunded-refund-explanationshort-ids-collision-checked,short-ids-collision-negative,N10-yaml-labels-fixed-pointowner-links-default,owner-shortest-folder-paths,obsidian-negativeowner-bank-fields-default,ownership-negative,automation-restored-negativemetamorphic-across-month-files,metamorphicopus2-rerun-v6-F2-3,opus2-probes2-N4b,opus2-probes3-F2x-6Readability so far, using the identical 41 companion specimens: v6 handwritten 8875 chars / 253 lines, v7 handwritten 8875 / 253; v6 app-saved 10079 / 253, v7 app-saved 9371 / 253. The app-saved imported row goes from 356 / 9 to 342 / 9. All new generated record/share IDs are eight base32 characters, collision-checked across the budget; labels are preserved. Final exact output will follow.
Safe choices made without waiting for input: duplicate account/category note IDs are explicitly unsupported and flagged; a true record duplicate is a Problem, never automatically copied; a deletion-only sync gap keeps the last accepted base and requires arrival of the moved ID or explicit deletion. Bank reissue needs saved epoch history or a trusted previous generation; the app writer retains that history before validation, leaving historical import lines untouched.
Finished the second-pass repair for #628. FINAL.md is byte-identical to calternal-money-v7.md. The current entry point is gate.py -> gate-v7.py -> model-v7.py; every money assertion uses that one parsed-file engine.
Branch/head SHA: not applicable. This requested research directory is outside Git; no commit or push was made. Product reference base SHA remains
a0785f1067. Final source fingerprint (SHA-256): fed38aa49610d193a4e06d4ce9965ac2c87cadc6456b1b9e14c9bd6a4b2d5061. FINAL/spec SHA-256: b0b73d41ad7bf46b1b5c369d1bc0b4fc66644e576bf7bc1e0241a933bbb9bdec. The 16 active source/dependency files used remotely match the local bytes.N4-multicard-payment-reversal,N4-multishare-refund-reversal,N4-payment-refund-needs-reversalN6-account-body,N6-budget-body,N6-category-body,N6-orphan-assign-body,N6-orphan-transaction-bodyN1-add-first,N1-delete-first-sync-gap,N1-true-duplicate,N1-explicit-delete,N1-move-retains-links,N1-history-reports-moveN2-bank-epochs,N2-wrong-bank-epochN3-not-match,N3-not-match-scope,N3-decision-is-pair-specificN5-note-frontmatter,N5-multiline-note-metadata,N5-unknown-money-keyN10-yaml-labels-fixed-point,N10-selected-yaml-and-reference-labels,N10-saved-yaml-scalar-types,N10-untouched-bytes,N10-single-record-preserves-all-other-files,N10-all-valid-fixtures-fixed-point,N10-generated-roundtrip-fuzzN7-unsigned-sharesN8-plus-fromN9-content-identity,N9-selective-save-keeps-identical-neighbour-identityN12-rta-withdrawal-warningN15-entity-copy-problemN16-spaced-import-idN13-unfunded-refund-explanationshort-ids-collision-checked,short-ids-collision-negative,N10-yaml-labels-fixed-pointowner-links-default,owner-shortest-folder-paths,obsidian-negativeowner-bank-fields-default,ownership-negative,automation-restored-negativemetamorphic-across-month-files,metamorphicopus2-rerun-v6-F2-3,opus2-probes2-N4b,opus2-probes3-F2x-6Evidence: N4 now restores reserves to card 100000 / card2 200000 minor units and RTA 9700000 after a bounced split payment, matching the baseline. Reversal of a two-share refund restores 300000 rather than v6’s 400000. N6 covers timestamped records and orphan financial bullets in canonical note bodies; the final two orphan cases were reproduced as accepted before the check was extended. N1 tests both save orders, repeated partial arrivals across a sync gap, true duplicates, retained refund/share references and moved history. No moved record is re-identified.
Read/write/read is checked for financial equality and repeated-write textual fixed points on all 183 valid fixture contexts and 1000 generated cases. Every such case also performs a real selective record save and compares all bytes outside that span and all other files. Invalid fixtures remain Problems. The 2000 malformed-input fuzz cases are still rejected. The 60 cross-month shuffles actually redistribute subsequent funded cash/card/income records among three month files; 20 original within-month permutations remain. All 76 normative rows have executed tests with the right polarity; none is uncovered.
The 52 literal second-pass inputs comprise all file inputs captured from rerun_v6.py, probes2.py and probes3.py. Their original bytes remain in fixtures. V7 expectations explicitly change duplicate copies to holds, require epoch history for history-free reissues, and spell an opposite-sign share with an explicit plus. N9/N10 operations outside the scripts’ run wrappers have named direct tests.
Readability, exact same specimens (Unicode chars including LF / physical lines):
App-saved specimens use 708 fewer chars than v6 (7.0%) and 895 fewer than the original (8.7%), with 29 fewer lines than the original. The saved import uses 14 fewer chars than v6 and 121 fewer than the original. New record/share and ID-less entity IDs are eight collision-checked base32 characters. Existing IDs and all user labels remain.
measure-v7.pyreproduces the numbers; tables and logs stay outside source.Final gate command:
cd /tmp/money-v7-628 && timeout 180 python3 -I gate.pyon staging root@10.69.69.192. Staging root disk was 23%, tmp 2%. The local full-gate slot waiter was stopped only after recording and verifying its own PID/output; no other job was signalled. No perf measurement or product build is claimed.Gate output, verbatim:
No product code change, evidence commit, push, merge, deployment or issue closure. The latest owner link and bank-field ownership answers are defaults in both spec and engine. The research gate remains finite spec/tooling validation, with storage/editor/importer/UI integration left to product work.
Cleanup complete: removed only this job’s /tmp/money-v7-628 scratch copies on staging and the perf VM. Local source and evidence remain in their designated research and /tmp directories. Staging remains below 60% disk. No other process or production VM was touched. Final gate and finding table are in comment 59653.
Starting the third-pass availability fixes and documentation guide. Work stays in /home/kayg/Developer/calternal-research/money-auth, an existing research workspace outside Git. Branch: not applicable. Research base SHA: not applicable. No product code, commit, push, merge or deployment. I will record the nearby product checkout SHA only as context. I am reading the 71 probes, adding permanent gate cases for T1/T2/T3/T5/T7c/T8/T9a/T9b, and writing DOCS-calternal-money.md. Ambiguity choice: use a durable observation step with compare-and-swap for generated IDs and bank history; ordinary unlinked deletions apply immediately, while ambiguous deletions withhold dependent totals only.
Third-pass findings confirmed in the research interpreter. Product checkout context SHA is
a0785f1067; research branch/base/head are not applicable because this workspace is outside Git.The local gate is waiting for a shared build slot. I am also preparing a run on the perf VM under /root/perf-vm.lock. No product integration or durable filesystem adapter is claimed by these research helpers.
Finished the third-pass spec/tooling fixes and the documentation guide. No product code changed. No commit, push, merge, deploy or issue close.
Branch, research base SHA and head SHA: not applicable. /home/kayg/Developer/calternal-research/money-auth is an existing workspace outside Git. Nearby product checkout context SHA:
a0785f1067. Final research source fingerprint (SHA-256 over the named file hashes): 2750b7fb1403636c76aa4340bdfc7aeba4da4af3ed904ba8b56d65274b3b5bb1.T1-external-plain-delete,T1-dependent-delete-scoped,T1-sync-gap-chain,T1-confirm-ambiguous-delete,T1-whole-month-removal-scopedT2-durable-epoch-chain,T2-empty-selection-persists-epoch,T2-history-removal-imports-only,T2-stale-observation-rejectedT3-nonmoney-false-positive-scan,T3-money-misplaced-note-only,T3-money-note-prose-is-not-recordT5-observed-identity-chain,T5-unobserved-history-no-unsafe-undoT7c-vault-absolute-links,T7c-cross-budget-rejectedT8-archived-separate-from-hidden,T8-invalid-archiveT9a-plugin-properties-opaque,T9a-unknown-money-propertyT9b-empty-optional-values,T9b-empty-required-value,T9b-blank-duplicates-still-invalidThe guide is /home/kayg/Developer/calternal-research/money-auth/DOCS-calternal-money.md. It has the requested layout, line-by-line explanation, all Money fields, full examples for all requested scenarios, Problems, Obsidian editing and limits. The gate reads 18 transaction scenarios and ten full file headers from the guide itself and checks them with the same money interpreter.
Evidence: the final gate ran on staging, with disk at 23%, using timeout 300 python3 -I -B /tmp/money-628-third-final/gate.py. All 485 tests passed, including 137 negative cases. All eight new source mutations and the previous 18 were caught. FINAL.md and calternal-money-v7.md are byte-identical. All supported Money field names appear in the guide.
The five supplied probe scripts were also rerun against the final interpreter in an isolated staging scratch directory. All five exited zero with zero CRASH lines. t2check.py reports previous-bank-ids persisted: True for both selected and bulk saves; T2-empty-selection-persists-epoch checks the missing third path. The probe scripts print diagnostics rather than assertions; the permanent tests above check the expected results.
The old O-7 probe's unmarked month now stays outside Money as requested. Its marked INR 1 payment counts; the unmarked INR 5 does not. Both original and captured second-pass expectations explicitly reflect that policy change. Ordinary prose bullets also remain harmless inside marked account notes when they do not describe money or links.
Observation returns the files that the app must durably replace before showing the next accepted version. It models compare-and-swap, missing-ID persistence and epoch persistence. Actual file storage and crash safety still need product tests; this task changed only the spec, research tools, tests and lasting guide. Ambiguous moves retain their accepted base across sync gaps. Ordinary unlinked deletions need no app confirmation and are visible in history. Unknown dependent totals are unavailable, never zero.
The local build-slot waiter and the two queued perf-lock waiters I started were stopped after staging provided the gate. No other job was stopped. There are no remaining blockers or owner questions.
Gate output, verbatim:
Starting the approved final-check repair for #628. Work is limited to spec, Python research tooling, permanent gate cases and the guide under /home/kayg/Developer/calternal-research/money-auth. This directory is outside Git, as the existing README documents; branch: none, base repository reference: dev at
a0785f1067. No product branch, push, merge or deployment is needed. I will reproduce F1–F7, verify YNAB cash advance and balance transfer rules against its support pages, make every final probe and guide example a permanent assertion, and post the findings table and full gate output here. Evidence stays outside the repository.Final-check findings verified from the Opus outputs and new permanent assertions:
Source verification found a material correction to the request: YNAB itself DOES raise Ready to Assign for cash advances and leaves payment Available unchanged. Its current support page says so explicitly: https://support.ynab.com/en_us/credit-card-cash-advances-an-overview-Hy6PmlOC9 . The approved Calternal rule is therefore a deliberate safer difference, not a claim of identical YNAB behavior. I will implement the approved invariant and state the difference in the guide and spec. For balance transfers I chose YNAB's documented keep-reserve behavior: https://support.ynab.com/en_us/how-to-make-a-credit-card-balance-transfer-ry5ETLWJo . No clarification is needed for this unattended job.
Current parsed-file gate passes 599 tests, 91/91 rules with zero uncovered, 77/77 final-review input fixtures, 23/23 guide scenarios and 33/33 mutants. Historical sets 1–5 also pass. The inherited recursive historical run is temporarily blocked by a missing read-only fixture in the isolated remote copy: money-fixtures/actual-repo/nynab/ynab5-demo-budget.json (FileNotFoundError). I am copying the required fixture tree into that scratch directory and rerunning; no product source is involved. One additional regression found and fixed: a cashback clearing advance debt must release its borrowed-cash exclusion, and reversal must restore it. F1-advance-cashback-reversal now passes after failing with (100000, 0) for the stale exclusion.
Two final edge checks are now permanent. F6-later-totals-wait verifies that an unmarked October file cannot leave November categories or final account totals looking complete: September snapshots remain numeric, while October onward and final aggregates wait. Merely marking RTA unavailable would still leave a silent partial balance. F1-advance-cashback-reversal first failed with a stale 100000-minor-unit borrowed-cash exclusion after the card debt reached zero; it now clears the exclusion and restores it on reversal. Historical sets 1–5 pass. The missing inherited-suite fixture tree has been copied into isolated staging scratch (disk remains 23%); the full inherited rerun is in progress. The final current gate and character-count refresh are running against the completed source snapshot.
Finished the approved spec/tooling/guide fixes for #628. Work remains under /home/kayg/Developer/calternal-research/money-auth, outside Git. Branch and head SHA: not applicable; no commit was created. The product repository stays at
a0785f1067with no tracked changes. No push, merge, deployment or issue closure.FINAL.md and calternal-money-v7.md are identical. The guide includes the opening balances, balance transfer, corrected advance, ordinary bank import names such as checking-card-1, consistent renamed Food links, and scoped Problems. Every guide transaction has literal expected account/category/reserve/RTA totals and a parsed-file save round trip. All 11 YAML blocks are exercised. The 77 literal file evaluations from the final review are permanent fixtures, alongside the direct N9/N10/T5 history and T2 save-mode checks. Finding maps cover all seven final findings plus the earlier maps. Seven new source mutants reintroduce the seven failures and are caught.
Source verification corrects an assumption in the task: YNAB cash advances explicitly describes an increase in Ready to Assign and unchanged payment Available until assignment. Calternal deliberately follows the approved rule that borrowed cash cannot raise RTA. Both spec and guide say this is a difference from YNAB. YNAB transfer transactions describes the transfer legs. YNAB balance transfers says payment money does not move automatically, so Calternal keeps the old reserve and shows new unfunded debt. The web pages were read in full through Firecrawl.
Final current gate on isolated staging scratch, exit 0. Output verbatim:
Readability refresh: the same 41 specimens measure [8875, 253] handwritten and [9371, 253] after app save (characters, lines); the imported specimen measures [332, 9] handwritten and [342, 9] saved. These are text counts, not reading-speed claims.
The final tested remote source matches the local source for all 14 changed/current source files. FINAL.md SHA-256: dd0ac8d9217af13602232e76c724b5a241654d622f9fa8d4fa5c8e68e4ae9ebe; guide SHA-256: 0d30245d24cac6659b54d407be3b09ff67b91f5178cdbebf1fe47ad108c60281. Evidence, measurement output and source hashes stay in scratch and this issue, outside the product repository. This is a finite research gate; product storage, importer, native/WASM and UI integration remain product acceptance work.
Historical sets 1–5 output verbatim:
The missing fixture setup issue was resolved and the inherited suite reran fully, exit 0, with no reuse flags. Its output verbatim follows. Its NOT CLEAN line describes the frozen round-9 design ledger (three historical P2 entries), not a failure of the current 601-test Money gate. No old tax/investment fixtures are adopted as current Money product policy.
This job's perf and staging scratch directories were removed after collecting evidence. Staging disk after cleanup:
Starting the last #628 reserve repair in research tooling and the two Money documents. Planned docs branch: docs/money-format, based on origin/dev at
074af46183. No product changes until the complete gate passes. I will add a readable explicit reserve move, rerun all suites and Opus probes, then open a documentation-only PR to dev. No merge or deployment.Last-check F2 is reproduced in last-semantics-output.txt: B2 has cash 23000 INR, zero debt on both cards, Card reserve 1000 INR, and RTA 22000 INR. The repair adds a separate dated move: payment CARD AMOUNT to payment OTHER-CARD record; to Ready to Assign releases only reserve above current debt. Bank transfers still retain the old reserve. The guide now says to move the held money to the new card, with a complete purchase → debt transfer → reserve move → payment example. Permanent regression F2-reserve-move-pay-chain asserts RTA 23000 INR, zero debt and zero reserves; overdraw is a Problem. Full validation is running before any product worktree is created.
The last-check F2 repair passes the current parsed-file gate. Test F2-reserve-move-pay-chain ends at RTA 23000 INR after purchase, debt transfer, explicit reserve move and payment; both card balances and reserves are zero. F2-reserve-release-rta checks the excess-release alternative; F2-reserve-move-too-much rejects 1001 INR against 1000 INR held. The move leaves bank balances unchanged, reduces the source funding pools and creates destination payment coverage. All 92 rules have positive and negative coverage. Full current gate output follows verbatim; historical and raw Opus reruns are still running.
All 24 Opus scripts have now been rerun against a fresh copy of the repaired model, including last_semantics.py and the guide-derived definitions in last_docs_examples.py. Original probes are preserved; their temporary copies only point at the current model, add Card2 to the new guide scenario, and append the repaired B7/B8 checks. The existing captured-input gate checks the expected old/new format decisions separately. The old B2 chain still demonstrates the need for an explicit move; it is deliberately not an automatic side effect of the bank transfer. The repaired chain and release alternative both pass:
All 24 guide scenarios and 11 YAML blocks evaluate. The inherited recursive historical suites are still running; no product documentation worktree has been created yet.
All validation is complete: the current v7 gate, accumulated historical suites 1–5, fresh inherited recursive rounds 2–9, archived v6 gate and all 24 Opus scripts pass. Step 3 has now started. Created docs/money-format in /home/kayg/Developer/calternal-wt-moneydocs from origin/dev at
074af46183. Fetched origin and checked ADR numbers across all branches: 0056 is the largest, so 0057 is free. The worktree contains only docs/money/format.md, docs/money/spec.md and docs/adr/0057-money-files.md. The guide and spec are byte-identical to the validated final sources. ADR status is proposed, with acceptance pending kayg.Finished #628 last-check F2 and prepared the documentation PR.
PR: #634
Branch: docs/money-format → dev
Base SHA:
074af46183Head SHA:
3626f2e55fThe PR is open and unmerged for kayg. ADR 0057 is proposed pending kayg. The commit contains exactly docs/money/format.md, docs/money/spec.md and docs/adr/0057-money-files.md. Both Money documents are byte-identical to the validated final sources. No research tooling or evidence was committed. The committed diff check and worktree are clean.
Fix: a dated move: payment CARD AMOUNT to payment OTHER-CARD moves held payment reserve. A move to Ready to Assign releases only reserve above current debt. F2-reserve-move-pay-chain checks the funded 1000 INR purchase, debt transfer to Card2, reserve move and Checking payment: RTA ends at 23000 INR with both card balances and reserves zero. F2-reserve-release-rta checks the release alternative; F2-reserve-move-too-much rejects an overdraw. Partial moves, carry, nonnegative reserves, link writing and payment reversal are checked.
Fresh accumulated historical suites 1–5, inherited recursive rounds 2–9 and the archived v6 gate pass. The inherited bridge used no reuse flags and made 3482612 parser calls. All 24 Opus scripts were rerun against the final model, including last_semantics.py with the repaired B7/B8 chains asserted at RTA 23000 INR. Temporary copies preserve the original probes and point at the final model. The oldest guide harness also needed current account definitions: Card2 was missing and its bank import names predated the guide. Both guide runners now report all examples valid, without Problems. The guide-derived runner and permanent guide gate were already passing.
Final current gate output, verbatim:
Final source/tooling SHA256 values, outside the product repo:
No merge, deployment or issue closure was performed.
kayg (2026-10-21): accepted ADR 0057 — "if it has been break tested enough to cover edge cases and is stable to build architecture and ui on then yes". Evidence: 613 tests, 92/92 rules covered, 36/36 mutants killed, 24 guide scenarios, 11 YAML examples, 24 scripted Opus checks, four independent Opus passes and Codex rounds 1–9 plus v7. Merged as #634 into dev.
kayg (2026-10-21) accepted ADR 0057: "if it has been break tested enough to cover edge cases and is stable to build architecture and ui on then yes". Evidence: 613 tests, 92/92 rules covered, 36/36 mutants killed, 24 guide scenarios, 11 YAML examples, 24 scripted Opus checks, four independent Opus passes, Codex rounds 1-9 plus v7. Docs PR #634.
Closing during the 26 Oct handover cleanup: ADR 0057 was accepted by kayg (21 Oct) and landed (PRs #634, #648).
ADR 0003 evidence migration:
docs/money/spec.mdSource commit: 3626f2e55f7818045db0623a6d96a5793fd3f586; snapshot from dev
55f35fcd. Full original source preserved below before repository removal/stripping. Design, code and test inputs are retained where applicable.Original file (51,626 bytes): spec.md