Coverage for app / services / system_resources / __init__.py: 100%
10 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"""
2Built-in resources — what every user has from their first minute, before
3they have built anything of their own.
5- **CHAINR Bot**, the built-in agent, and the CHAIN-R user guide it answers
6 from (a repository holding one knowledge base).
7- **Built-in skillsets** and their skills, which users grant to their own
8 agents or run on their own.
9- **Gold datasets** and their cases — standard benchmarks (hallucination,
10 tool use, political neutrality …) users run experiments on and copy.
11- **Built-in knowledge** — repositories every user can grant to their own
12 agents: News (openly licensed feeds, crawled hourly while one does), and
13 the knowledge CHAIN-R writes itself. One registry, :mod:`.knowledge`.
14- **Built-in rules** — common governance controls (personal-data redaction,
15 credential and prompt-injection blocking, a spend cap, the evaluation
16 gate) users create rules of their own from. A built-in rule governs
17 nobody itself.
18- **Built-in dashboards** — a daily briefing, the agent fleet, governance,
19 knowledge, and usage and spend. One board for everybody, whose platform
20 tiles draw each viewer's own data.
22Every one is a *system* row: platform-managed, owned by nobody, readable by
23every user and editable by none (``SystemMixin``, ``verify_resource_read``).
24A release is the only way one changes, and each change lands in its history.
26- :mod:`.definition` — the bot and its guide, and the spec types (data only)
27- :mod:`.skillsets` — the built-in skillsets and their skill graphs (data only)
28- :mod:`.datasets` — the gold datasets and their cases (data only)
29- :mod:`.knowledge` — every built-in repository and its sources (data only)
30- :mod:`.news` — the News repository's sources (data only)
31- :mod:`.licences` — the licences publishers' material is used under
32- :mod:`.rules` — the built-in governance rules (data only)
33- :mod:`.dashboards` — the built-in dashboards and their tiles (data only)
34- :mod:`.provision` — writes those rows, idempotently, with history
35- :mod:`.written` — indexes the written sources' markdown (the guide's too)
37Provisioning runs at startup; the ``chainr_bot_sync`` scheduled job re-runs
38it and keeps the written sources indexed.
39"""
41from .dashboards import SYSTEM_DASHBOARDS
42from .datasets import SYSTEM_DATASETS
43from .definition import CHAINR_BOT, GUIDE_KNOWLEDGE, GUIDE_REPOSITORY
44from .knowledge import BUILT_IN_REPOSITORIES, BuiltInRepository
45from .news import NEWS_REPOSITORY, NEWS_SOURCES
46from .provision import ProvisionResult, ensure_system_resources
47from .rules import SYSTEM_RULES
48from .skillsets import SYSTEM_SKILLSETS
49from .written import WrittenSyncReport, sync_written
51__all__ = [
52 "BUILT_IN_REPOSITORIES",
53 "BuiltInRepository",
54 "CHAINR_BOT",
55 "GUIDE_KNOWLEDGE",
56 "GUIDE_REPOSITORY",
57 "NEWS_REPOSITORY",
58 "NEWS_SOURCES",
59 "ProvisionResult",
60 "SYSTEM_DASHBOARDS",
61 "SYSTEM_DATASETS",
62 "SYSTEM_RULES",
63 "SYSTEM_SKILLSETS",
64 "WrittenSyncReport",
65 "ensure_system_resources",
66 "sync_written",
67]