- Native Nextcloud app targeting
nextcloud/serverofficialmaster(current 36.0.0 dev), not any stable 34 release. PHP services and OCP contracts, Vue 3 frontend; no Blade, Laravel or proprietary financial-software dependencies. - Original finance domain design and observable public-feature requirements only. Do not copy proprietary tables, UI, algorithms or code from financial vendors. Audit third-party notices and do not use BSL-licensed application source as a template.
- Every read/write must check membership and role server-side before selection; never rely on `spaceId` from the client as authorization.
- Every financial posting must remain balanced, exact, immutable after posting and auditable. Never delete posted transactions to correct amounts.
- Use `OCP\DB\QueryBuilder` for DB changes. Test SQLite, MariaDB and PostgreSQL; maintain immutable migrations.
- No secrets in source, logs, screenshots, issues or PR descriptions. Remote banking, NFS-e, AI, payments and signatures are optional modules with explicit authorization.
- Build and validate PHP and Vue separately. Never commit generated
js/orcss/; build assets for development, browser CI and the App Store archive. Keep OpenAPI versioned. A route or a green CI that skipped tests is not proof of financial correctness. - Use LibreCode's shared release-tool and managed App Store publisher; keep app-specific packaging in the Makefile, without custom packaging, signing or publication scripts.
- Localization follows the Nextcloud Transifex workflow: commit runtime catalogs under
l10n/and.tx/config, never the intermediatetranslationfiles/directory or translationtool.phar. Use the official extractor in disposable directories. - Preserve SPDX headers in source files and use the centralized
REUSE.tomlfor files that cannot contain SPDX headers. Do not add per-file.licensesidecars, including during asset generation; retain third-party notices and license texts in release packages. - PHP unit tests use PHPUnit and mirror existing production classes:
lib/Domain/Currency/ExactConversion.phpmaps totests/php/Unit/Domain/Currency/ExactConversionTest.phpand the matching namespace. Keep one test class per existing source class, do not invent generic or unmatched unit test classes, and place tests requiring an installed Nextcloud or database in the integration suite. Runcomposer test:unit(or filter by class/method during development). - Prefer verified Nextcloud-native APIs and existing LibreSign patterns over custom replacements. When the correct architecture needs paths or capabilities outside an assigned scope, report the blocker and replan; never invent a workaround to obtain a passing check.
- OpenAPI: use the official locked
nextcloud/openapi-extractor, typed controller attributes/PHPDoc andResponseDefinitions.php. Until #188 completes native cutover, maintain only minimal existing legacy route-contract data; do not add generator modes, parsers, helper functions, machine-specific paths or parallel generators. Strict native extraction and installed HTTP verification are separate required evidence. - PRs: incremental signed commits with DCO, no automatic squash; follow LibreCode repository governance.
- Issue and epic creation requires exact human approval after drafting and review. Do not publish private commercial context.