This commit is contained in:
+26
-4
@@ -75,20 +75,37 @@
|
||||
"fallback_binary": "llama-server",
|
||||
"api": "OpenAI-compatible /v1/chat/completions",
|
||||
"response_contract": {
|
||||
"format": "compact JSON",
|
||||
"format": "verbose JSON or compact codebook JSON",
|
||||
"example": {
|
||||
"action_id": "logger",
|
||||
"payload": {
|
||||
"message": "hello"
|
||||
}
|
||||
},
|
||||
"compact_example": {
|
||||
"v": "1.0.0",
|
||||
"c": "<codebook_checksum>",
|
||||
"a": "A001",
|
||||
"p": {
|
||||
"F001": "hello"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"dictionary": {
|
||||
"source_of_truth": "src/registry.rs",
|
||||
"static_base": "dictionary/static-base.json",
|
||||
"generated_jsonl": "dictionary/actions.jsonl",
|
||||
"generated_index": "dictionary/actions.index.json",
|
||||
"runtime_policy": "Only exact action_id matches from the generated index are executable."
|
||||
"generated_codebook": "dictionary/model.codebook.json",
|
||||
"generated_examples": "dictionary/model.examples.jsonl",
|
||||
"dictionary_version": "1.0.0",
|
||||
"metadata": [
|
||||
"registry_checksum",
|
||||
"static_base_checksum",
|
||||
"codebook_checksum"
|
||||
],
|
||||
"runtime_policy": "Verbose outputs require exact action_id matches; compact outputs require matching version/checksum and exact codebook expansion before dispatch."
|
||||
},
|
||||
"actions": [
|
||||
{
|
||||
@@ -106,7 +123,9 @@
|
||||
"logs/",
|
||||
"runtime/",
|
||||
"dictionary/actions.jsonl",
|
||||
"dictionary/actions.index.json"
|
||||
"dictionary/actions.index.json",
|
||||
"dictionary/model.codebook.json",
|
||||
"dictionary/model.examples.jsonl"
|
||||
],
|
||||
"ci": {
|
||||
"codex_environment": ".codex/environments/environment.toml",
|
||||
@@ -119,7 +138,10 @@
|
||||
"cargo test",
|
||||
"cargo run -- dictionary generate",
|
||||
"test -s dictionary/actions.jsonl",
|
||||
"test -s dictionary/actions.index.json"
|
||||
"test -s dictionary/actions.index.json",
|
||||
"test -s dictionary/model.codebook.json",
|
||||
"test -s dictionary/model.examples.jsonl",
|
||||
"test -s dictionary/static-base.json"
|
||||
]
|
||||
},
|
||||
"agent_guidance": "See AGENTS.md. Keep src/registry.rs as the source of truth, regenerate dictionary files after action changes, and reject non-exact LLM action outputs."
|
||||
|
||||
Reference in New Issue
Block a user