Skip to content

Contributing

Living documents

File Purpose Update when
ARCHITECTURE.md Decision records Before a non-trivial design choice
FEATURES.md Authoritative list of features A user-visible feature is added, changed or removed, in the same commit
docs/ This site Behavior described here changes

An ADR contains status, decision, why and consequences. ADRs are never deleted: superseded ones are marked "Superseded by ADR-NNN". Reference the ADR in the commit message:

feat: add X (ADR-058)

Adding an endpoint

flowchart LR
    A["Controller<br/>in api/v4"] --> B["Service with<br/>permission check"]
    B --> C["EndpointCatalog"]
    C --> D["Tests"]
    D --> E["FEATURES.md,<br/>docs, SDKs"]
  1. Add the controller method in api/v4, with no business logic.
  2. Implement the behavior in a service and check permissions there through PermissionService.
  3. Classify the endpoint in EndpointCatalog, stating what it's supposed to require.
  4. Add tests, using an integration test if SQL is involved.
  5. Update FEATURES.md, this documentation and, if the contract changes, the SDKs in sdks/python and sdks/java.

Changing older API versions

/v3 is frozen at its contract. When /v4 diverges, the /v3 delegator becomes a compatibility shim: adapt parameters and responses there, and don't duplicate logic.

Package rules

  • Controllers contain no business logic.
  • Authorization happens in services.
  • internal packages are private to their module.
  • Only services/queries and services/graph use GraphDB; everything else reads PostgreSQL.

Changing the database

Add a Flyway migration and don't edit existing ones.

Unclear design?

If the reasoning behind a feature or design isn't clear, check the decision records and ask before changing it.