[repo] Rules: CLAUDE.md with the shared Fiscus rules
This commit is contained in:
@@ -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: `[<crate>] <Feature>: <description>`. 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.
|
||||
Reference in New Issue
Block a user