seeds: add calculator.calculate (SemIf-chosen operator, spoken answer)

A local-arithmetic seed bounded to two operands and one operator. The
operator is a SemIf choice over addition, subtraction, multiplication,
division, exponents, squares, cubes, square roots, cube roots, fractions,
and percentages; SemIf also picks the operands when the request writes
more numbers than the operation consumes, and the body asks for missing
numbers and resumes. Results are spelled out in words for the ear, with
inexact results announced as "approximately ...".

Pure local compute (`compute` transport, empty contract). Adds the
`calculator` category description for navigation, the seed's hermetic
test, a tune_navigation example, and README/AGENTS docs.
This commit is contained in:
gabby committed 2026-10-09 21:45:58 +00:00
1 parent fc0beb5798
commit e2cbf74797
9 files changed
+606 -3

No files matched your search

+9 -2
View File
@@ -345,8 +345,9 @@ fine-tuning loop — it is not yet the fine-tune itself.
of third-party systems, so generated bodies never speak native protocols.
- **Seeds** — shipped real starter skills: `nextcloud.create_event` (the
authoritative worked example), `nextcloud.next_event` (Nextcloud CalDAV),
`nextcloud.create_task` (Nextcloud task list), and
`simplex.next_message` / `simplex.send_message` / `simplex.connect_link`.
`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).
- **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.
@@ -890,6 +891,12 @@ committed seed never holds secrets.
`simplex_default_contact`, plus the LLM bridge (`llm_bridge_url`,
`llm_bridge_token`) to write the text when the request states none.
- `simplex.connect_link` — show/create the forwarding bot's contact link.
- `calculator.calculate` — evaluate a bounded arithmetic request (two operands,
one operator) and speak the answer in words; the operator is a SemIf choice
over addition, subtraction, multiplication, division, exponents, squares,
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).
---