skills: read-only catalog for introspection bodies
An ordinary skill body may not reach into the agent (`ctx.admin` is the housekeeping-only mutation surface), but a body that reports the agent's own capabilities legitimately needs to see the tree. Add that sanctioned surface: - `SkillCatalog` (skills.py): a read-only view — `categories()` (id -> scope description) and `skills(category)` (leaf names) — over a live provider. - `ActionContext.catalog`: supplied by the scheduler as a locked tree snapshot, passed to every body. - The runner now passes `admin` only to the `housekeeping` category (it was previously handed to every body despite the documented rule); ordinary bodies get `catalog` instead. Consumed by the essentials pack's new `skills.list_categories` / `skills.list_skills` seeds. Docs (CODEGEN.md, AGENTS.md, README.md) updated; tests cover the catalog, the catalog/admin split on the run context, and the new pack seeds.
This commit is contained in:
1 parent
ed894bd329
commit
ec3e6b1b97
8 files changed
+126
-13
No files matched your search
@@ -363,8 +363,10 @@ fine-tuning loop — it is not yet the fine-tune itself.
|
||||
- **Seeds** — shipped real starter skills: `nextcloud.create_event` (the
|
||||
authoritative worked example), `nextcloud.next_event` (the user's Nextcloud
|
||||
calendar, through the bridge), `nextcloud.create_task` (Nextcloud task list),
|
||||
`simplex.next_message` / `simplex.send_message` / `simplex.connect_link`, and
|
||||
`calculator.calculate` (two operands, one SemIf-chosen operator, spoken answer).
|
||||
`simplex.next_message` / `simplex.send_message` / `simplex.connect_link`,
|
||||
`calculator.calculate` (two operands, one SemIf-chosen operator, spoken answer),
|
||||
and `skills.list_categories` / `skills.list_skills` (report the agent's own
|
||||
skill categories, or the skills inside a named category).
|
||||
- **Fatal-on-engine-loss** — the engine is always real; its absence exits the app.
|
||||
- **Stdlib-only core** — SemIf/llama.cpp are lazy imports, so the package stays
|
||||
importable and testable without the heavy engine installed.
|
||||
@@ -494,7 +496,8 @@ It then installs **only what those answers require**. Both ends of the spectrum
|
||||
are reachable by the end of a run:
|
||||
|
||||
- **minimum** — local SemIf 4B + `essentials` (canned replies, time/timers,
|
||||
calculator). No account, no network, no gateway, no heavy downloads.
|
||||
calculator, skill listing). No account, no network, no gateway, no heavy
|
||||
downloads.
|
||||
- **maximum** — every pack, a remote Winnow engine, remote `llm`/`codegen`
|
||||
endpoints, and all gateways.
|
||||
|
||||
@@ -1062,6 +1065,12 @@ authoring a new pack (and a new bridge to back one).
|
||||
cubes, square roots, cube roots, fractions, and percentages, and SemIf picks
|
||||
the operands when the request writes more numbers than the operation needs
|
||||
(pure local compute, no config).
|
||||
- `skills.list_categories` — list the categories of skills the agent has
|
||||
(pure local compute, no config; reads the read-only `ctx.catalog`, not the
|
||||
housekeeping-only `ctx.admin`).
|
||||
- `skills.list_skills` — list the skills inside a category named in the request
|
||||
("list skills in nextcloud"), asking for one when it is missing and reporting
|
||||
an unknown category honestly (pure local compute, no config).
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in new issue
Block a user