Docs: the Money file format (calternal-money) #634

Closed
kayg wants to merge 0 commits from docs/money-format into dev
Owner

Refs #628.

The guide and spec define Money as a budget kept in ordinary files: format: calternal-money, dated bullet records, native-currency accounts, envelope categories and the YNAB card payment model. ADR 0057 records the file, link, automation, history and whole-record merge decisions. Its status is proposed; acceptance is pending kayg.

The final balance-transfer repair adds a readable move: record for held card payment money. Move the old card's payment reserve to the new card, or release only reserve above current debt to Ready to Assign. The funded INR 1000 purchase → debt transfer → reserve move → payment chain ends at INR 23000 Ready to Assign. Moving more than held is a Problem and reserves cannot go negative. The guide shows the complete chain.

This brings together Codex rounds 1–9, the authoritative follow-up rounds through v7, four independent Opus passes and the last semantics check. The authoritative rounds settle the owner's file/history decisions, transfer shares, currency changes, human edits, import identities, scoped Problems and card funding. The independent passes found and drove the refund, EMI, reserve, Obsidian, sync and guide corrections. The final reserve repair is covered by F2-reserve-move-pay-chain and its release, overdraw, carry, link and reversal checks.

Validation was rerun before preparing this branch:

  • Current parsed-file gate: 613 tests passed, including 177 negative cases; 92/92 rules, 0 uncovered; 36/36 deliberate mutants caught.
  • Guide: 24/24 transaction scenarios and 11/11 YAML examples, with parsed-file save round trips.
  • Review corpus: 30/30 original probes, 52/52 second-pass captured inputs, 77/77 final literal file evaluations and 92/92 prior source fixtures.
  • Fresh inherited recursive rounds 2–9, accumulated historical suites 1–5 and the archived v6 gate all pass. All 24 Opus scripts were rerun against the final model, including last_semantics.py; the repaired transfer and release alternatives both end at INR 23000.
  • 2000 invalid fuzz inputs rejected; 1000 generated valid inputs, 183 round-trip fixtures, 20 record-order permutations and 60 month-file shuffles checked.

The branch contains only the final guide, final spec and proposed ADR. The guide and spec are byte-identical to the validated research sources. Research tooling, logs and evidence remain outside the product repository; results are posted on #628. This documents a finite research contract; product integration and kayg's acceptance remain separate work. Please leave this PR unmerged for kayg's approval.

🤖 Generated with Claude Code

https://claude.ai/code/session_01U5oTUycqAh7DT72mdSUztk

Refs #628. The guide and spec define Money as a budget kept in ordinary files: `format: calternal-money`, dated bullet records, native-currency accounts, envelope categories and the YNAB card payment model. ADR 0057 records the file, link, automation, history and whole-record merge decisions. Its status is proposed; acceptance is pending kayg. The final balance-transfer repair adds a readable `move:` record for held card payment money. Move the old card's payment reserve to the new card, or release only reserve above current debt to Ready to Assign. The funded INR 1000 purchase → debt transfer → reserve move → payment chain ends at INR 23000 Ready to Assign. Moving more than held is a Problem and reserves cannot go negative. The guide shows the complete chain. This brings together Codex rounds 1–9, the authoritative follow-up rounds through v7, four independent Opus passes and the last semantics check. The authoritative rounds settle the owner's file/history decisions, transfer shares, currency changes, human edits, import identities, scoped Problems and card funding. The independent passes found and drove the refund, EMI, reserve, Obsidian, sync and guide corrections. The final reserve repair is covered by `F2-reserve-move-pay-chain` and its release, overdraw, carry, link and reversal checks. Validation was rerun before preparing this branch: - Current parsed-file gate: 613 tests passed, including 177 negative cases; 92/92 rules, 0 uncovered; 36/36 deliberate mutants caught. - Guide: 24/24 transaction scenarios and 11/11 YAML examples, with parsed-file save round trips. - Review corpus: 30/30 original probes, 52/52 second-pass captured inputs, 77/77 final literal file evaluations and 92/92 prior source fixtures. - Fresh inherited recursive rounds 2–9, accumulated historical suites 1–5 and the archived v6 gate all pass. All 24 Opus scripts were rerun against the final model, including `last_semantics.py`; the repaired transfer and release alternatives both end at INR 23000. - 2000 invalid fuzz inputs rejected; 1000 generated valid inputs, 183 round-trip fixtures, 20 record-order permutations and 60 month-file shuffles checked. The branch contains only the final guide, final spec and proposed ADR. The guide and spec are byte-identical to the validated research sources. Research tooling, logs and evidence remain outside the product repository; results are posted on #628. This documents a finite research contract; product integration and kayg's acceptance remain separate work. Please leave this PR unmerged for kayg's approval. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01U5oTUycqAh7DT72mdSUztk
Docs: the Money file format (calternal-money)
Some checks failed
CI / server (pull_request) Successful in 29s
CI / web (pull_request) Failing after 45s
CI / rust (pull_request) Successful in 4m48s
3626f2e55f
Document the file contract, plain-words workflows and proposed Money ADR.
Explain explicit payment reserve moves so moving debt to a new card does
not leave the purchase money locked on the old card.

Issue: #628
Base-SHA: 074af46183
Co-Authored-By: Codex <noreply@openai.com>
Claude-Session: https://claude.ai/code/session_01U5oTUycqAh7DT72mdSUztk
kayg closed this pull request 2026-10-20 20:41:04 +00:00
Some checks failed
CI / server (pull_request) Successful in 29s
CI / web (pull_request) Failing after 45s
CI / rust (pull_request) Successful in 4m48s

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
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!634
No description provided.