openvibers/openvibe.finance AGENTS.md

AGENTS.md

main 1.3 KB · 19 lines · markdown

1# AGENTS.md — OpenVibe.Finance
2
3A person's own money data (plan §L.2): accounts, transactions, CSV imports and the month. Node/Express, server-rendered
4in the network's shell (openvibe-shared), PostgreSQL through `openvibe-sdk/db` (PGlite in tests).
5
6## Rules (the most sensitive data on the network)
7- **Every query names the owner** (`store.js`); a page or route never reads a row by id alone.
8- **Payees and memos are sealed** with the person's key (`server/crypto.js`); never log them, never return them to
9 anyone but their owner. Amounts, dates and categories stay plain for the person's own sums.
10- **Nothing leaves:** no search index, no analytics events with content, no training data, no third-party script.
11- **No money moves.** Paying, transferring or cancelling is a separate, later decision with its own review.
12- **Writes are same-origin** (a page form) or a Bearer call; answers are `private, no-store` and `noindex`.
13- **Export and deletion stay complete:** a new table gets its rows in `exportAll` and `removeAll` in the same change.
14- **Migrations:** `migrations/NNNN_name.sql` with `-- phase:`; never edit one that has run.
15
16## Commands
17`npm test` (all, PGlite) · `node test/<name>.test.js` · `node test/harness/serve-sample.js 18471` (a local look).
18Style: 4 spaces, single quotes, semicolons, CommonJS.
19