feat: add utility action suites
CI / validate (push) Successful in 36s

This commit is contained in:
2026-07-21 11:38:11 -05:00
parent 52c56f7fed
commit f1a8bb0f35
15 changed files with 1117 additions and 42 deletions
+6
View File
@@ -12,6 +12,9 @@
- Start llama.cpp: `cargo run -- serve`
- Query local model: `cargo run -- query "log hello from codex"`
- Direct proof-of-concept dispatch: `cargo run -- run logger --payload '{"message":"hello from codex"}'`
- Direct math dispatch: `cargo run -- run calculate --payload '{"expression":"2 + 2 * 3"}'`
- Direct text dispatch: `cargo run -- run to_slug --payload '{"text":"Hello, World!"}'`
- Direct file dispatch: `cargo run -- run write_note --payload '{"filename":"hello.txt","content":"hello"}'`
- Codex setup: `scripts/codex-setup.sh`
- Codex logger smoke test: `scripts/codex-run-logger.sh`
- Precommit/CI check: `scripts/precommit-check.sh`
@@ -38,6 +41,7 @@ Use `.env` for local values and keep it out of git. Update `.env.example`, `READ
- `dictionary/actions.index.json` is the generated verbose runtime lookup file.
- `dictionary/model.codebook.json` is the generated model-facing compact codebook.
- `dictionary/model.examples.jsonl` is generated template/example data for future synthetic-data tooling.
- Registered action suites are Math & Conversion, Text Utilities, File Operations, and Logger.
- Regenerate dictionary files with `cargo run -- dictionary generate` after changing registered actions.
- Do not manually edit generated dictionary files.
- Generated metadata includes `dictionary_version`, `registry_checksum`, `static_base_checksum`, and `codebook_checksum`.
@@ -50,12 +54,14 @@ Use `.env` for local values and keep it out of git. Update `.env.example`, `READ
- Unknown, malformed, ambiguous, missing, or empty action ids must be rejected without running scripts.
- Script processes are detached. The controller spawns them and does not monitor completion.
- Keep script payload validation strict and local to the script module.
- File operation scripts must remain confined to project-local `notes/` paths and reject absolute paths or path traversal.
## Generated Paths
- `target/`
- `logs/`
- `runtime/`
- `notes/`
- `dictionary/actions.jsonl`
- `dictionary/actions.index.json`
- `dictionary/model.codebook.json`