From b655c2bde00dfccf493865484b5eec05237bcc78 Mon Sep 17 00:00:00 2001 From: mnovak Date: Tue, 3 Nov 2026 18:40:05 +0100 Subject: [PATCH] [repo] Rules: CLAUDE.md with the shared Fiscus rules --- CLAUDE.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 CLAUDE.md diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..215853e --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,22 @@ +# FiscusPublic + +The public, pure core of Fiscus Domi, the household money app (MPL-2.0). The private app +(`https://gitea.marek-novak.cz/mnovak/Fiscus.git`) depends on it **by git tag**, never by path. + +## Pure +No I/O, no network, no clock, no randomness from the OS. Time and seeds are parameters. Anything that +reads a file, a socket or the time belongs in the app, not here. + +## Rules +- Money is integer haléře end to end (`Haler`, an `i64`). A float anywhere near an amount is a bug; a test + scans the sources for `f32`/`f64`. +- Statements, notifications, Shortcut posts and share-link requests are **hostile input**: strict parsing, + typed errors, never a partial payment. +- **Never invent a bank format.** Parsers are built only from real samples Mark puts in `fixtures/` + (redacted). A bank without samples is unsupported, and the app says so. +- Secrets (device tokens, Fundamentum keys) live in Custos; nothing here stores one. +- Interface strings are plain English; Latin only for the name. +- Commits: `[] : `. No AI attribution in commits or PRs, ever. +- No binaries and no real statements in git; fixtures are redacted samples. +- Branch → Gitea PR via the API (`$GITEA_TOKEN`, never echoed or written anywhere) → self-review in the PR + body → merge `--no-ff` → push → verify `git rev-parse HEAD origin/main` → tag.