Stage A of a system meant to merge with Galena (PLAN.md §3). Same stack, same layering, same identity/node/authz layer copied byte-identical so the Stage B convergence is a data move rather than a rewrite. What a firm gets: - Matters as leaves of Galena's node tree, each pointing at a Galena project for its case file. - A conflict-of-interest check that BLOCKS matter creation until decided, with Polish name normalisation (diacritics folded, declension stemmed, containment rather than Jaccard so "Kowalski" matches "Kowalski Nowak i Wspólnicy"). - Ethical walls that beat every inherited grant including instance admin, and are administered from the parent container so nobody can lock themselves out. - Correspondence with a legally binding service date that is set once and never inferred; deadlines derived from it keep a pointer back and record their basis in words. Dual control on statutory and court deadlines. - Time in integer minutes, money in integer grosze, rates resolved through matter override -> matter card -> client card -> firm card -> house setting, with the resolution explaining itself. - Billing: disbursements with pass-through VAT, draft -> approve -> issue, credit notes that release the work rather than writing it off, and client money on a ledger a CHECK constraint stops going negative. - Reports: realisation, utilisation against real Polish working days, profitability (honest "incomplete" without a cost rate), lock-up, aged debt. - Court-fee and koszty-zastępstwa calculators whose schedules are auditable data carrying their statute, their version and a "verify this" note. - KRS and Biała lista connectors. The KRS API masks natural persons' names, so officers are reported as redacted and never invented into party records. - An idempotent reminder engine; every reminder is deduplicated by a database constraint, so the scheduler is safe to run at any frequency. 209 tests pass twice in a row against PostgreSQL 16 (127 DB-free, 82 integration), 126 routes, 29 tables, least-privilege grants, licence gate clean. Known caveats, all documented in CLAUDE.md and shown in the UI: - The fee schedules need a lawyer's verification. - The VAT treatment of disbursements needs an accountant's sign-off. - Galena integration is untested against a live Galena. - "Sygna" has had no trademark or domain clearance. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
6 lines
71 B
Plaintext
6 lines
71 B
Plaintext
* text=auto eol=lf
|
|
*.png binary
|
|
*.jpg binary
|
|
*.gif binary
|
|
*.ico binary
|