Coverage for app / services / statements / __init__.py: 100%
1 statements
« prev ^ index » next coverage.py v7.13.5, created at 2026-10-31 11:21 +0000
« prev ^ index » next coverage.py v7.13.5, created at 2026-10-31 11:21 +0000
1"""
2Monthly statements — one workspace's month, as figures (cost-control plan
3A4.1; the monthly organisation statement of ``docs/business/mvp-roadmap.md``).
5A statement says what a workspace spent in a calendar month (UTC) and what
6governed it, in aggregate figures only — never a prompt, an answer or a
7person's name — so it can be handed to finance, or to a design partner as the
8usage evidence behind a pilot's success criteria:
10* **spend**: measured, the high estimate for calls no catalogue could price,
11 the month before; by what it was spent on, agent, model, kind of work and
12 project; by day;
13* **budgets**: each cost cap and the platform allowance, what the month
14 spent against it, and the turns it refused, stopped or let through;
15* **governance**: the rules in force and what they came to;
16* **reviews**, **evaluations** and **decisions**: flags raised and decided,
17 runs completed and regressions caught, governed decisions and the ones a
18 person verified, and the corrections captured as dataset cases.
20An organisation's and a Personal workspace's statement count their projects
21too, as their budgets do; a project's counts itself.
23``build`` computes one (each part a registered section, ``sections.py``),
24``store`` closes a finished month once and keeps it (``spend_statements``,
25the ``spend_statements`` scheduler job), and the current month is computed
26live as a draft. See ``docs/guides/cost-monitoring.md#monthly-statements``.
27"""
29from .build import SCHEMA_VERSION, Month, build, to_csv, to_export_csv # noqa: F401