Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 1.75 KB

AGENTS.md

File metadata and controls

32 lines (20 loc) · 1.75 KB

Back-end application framework for Lean

Purpose of this application is to provide Application Framework for building backend database heavy applications in Lean.

This is not in production. Backwards-incompatible change should not try preserve old behavior, and it should not reference outdated features in the docs.

  • InvoicingService is an example service that should be removable without breaking core functionality or tests.

  • UserService is supposed to be more reusable, but it too is not used by other applications at the moment.

Code style guidelines

This project uses Lean modules with explicit visibility markers (public / private) on declarations. Never use public section.

Use public import for re-exports and types referenced in public signatures, and meta / meta import for compile-time metaprogramming (deriving handlers, attributes, macros).

Prefer pipeline syntax over explicit function application: x |> f for functions, x |>.method for generalized dot notation (including names such as get! or set!), and x |>.1 / x |>.2 for projections.

Documentation guidelines

Write docs in an explanatory style rather than as dry specifications:

  • Lead with the why and the mental model: explain what problem a feature solves, how the pieces fit together, and why boundaries (like decoupled modules or compile-time checks) are shaped that way.
  • Use short, concrete code or payload examples to illustrate usage instead of exhaustive API/field tables.
  • Call out practical caveats, edge cases, and current limitations plainly, and link to runnable examples when available.
  • Link new docs from docs/README.md and keep existing docs free of removed or outdated features.

Reference example: docs/transactional-batching.md.