Files
semif-agent/config.example.json
T
Denton Social 06ccfb77c6 drop mock_data.json: embed fixtures inline in skill.test.py
The testgen call now replies with plain Python (no JSON envelope), so the
model can no longer confuse the envelope with the artifact. skill.test.py
carries its fixture data inline as Python literals; the folder layout is
now skill.py, skill.test.py, contract.json, config.json. The regen ladder
drops the mock option (3-option: code/contract/test) since a fixture fix
is a test regen.
2026-09-26 00:04:23 -05:00

70 lines
4.6 KiB
JSON

{
"_comment": "Per-machine config. config.json is gitignored; copy this file to config.json and adjust paths. The box (guppy) keeps its own config.json with local paths.",
"tau": 0.6,
"max_reentries": 3,
"queue": {"max_size": 100, "age_rate": 0.01},
"engine": {
"backend": "llamacpp",
"source": "Qwen/Qwen3.5-4B",
"revision": "851bf6e806efd8d0a36b00ddf55e13ccb7b8cd0a",
"gguf": "/home/abby/models/Qwen3.5-4B-Q4_K_M.gguf",
"gguf_url": "https://huggingface.co/bartowski/Qwen_Qwen3.5-4B-GGUF/resolve/main/Qwen_Qwen3.5-4B-Q4_K_M.gguf",
"gguf_sha256": "13c16f426047e2de38cd075bdade4a7bcbc8c774384876f677740cda65f8a983",
"semif_repo": "https://github.com/TheoLeeCJ/SemIf.git",
"semif_ref": "1f2dea3e25379f9dfc98cb83c324f00ab5deda37",
"context_tokens": 4096,
"threads": 8
},
"llm": {"base_url": "http://localhost:11434/v1", "model": "qwen3.5:4b"},
"codegen": {
"_comment": "OpenAI-compatible model that writes runnable skill bodies. Larger/slower than the decision or self-assessment model. The transport always streams so the client-side token budget (output cap / peak total fill) can abort a runaway in real time; stream only toggles console echo of tokens. timeout is total seconds; idle_warn/idle_timeout surface a silent (wedged) stream. The context window is auto-detected via ollama /api/show; context_window is the manual fallback (0 = auto/default 100000). smart_limit/warn_limit and max_fill_ratio/warn_fill_ratio bound total fill; max_output caps streamed output (>=1 absolute tokens, 0<x<1 fraction of window); chars_per_token converts chars to the token estimate. temperature/top_p/presence_penalty/frequency_penalty follow the Qwen3.8 model card's instruct-mode anti-repetition guidance (high presence_penalty, not greedy temperature); generate_skill_body escalates to presence 2.0 / temp 0.5 on retries (max_attempts attempts, fresh short prompt each time). elicitation.enabled asks the product owner refinement questions before the body is written (power users; the REPL only). After the body lands, the data contract (contract.json) is derived in a separate call, then skill.test.py (fixture data embedded inline as Python literals, no external files) in a shared-context call, and the test is auto-run as a subprocess (test_timeout seconds); on failure a 3-option SemIf decision (code/contract/test) regenerates the failing piece, bounded by test_max_attempts. contract_search.enabled auto-populates the skill config.json via SemIf against the global + category config.",
"base_url": "http://localhost:11434/v1",
"model": "qwen38-iq3s",
"timeout": 1200,
"stream": false,
"idle_warn": 60,
"idle_timeout": 180,
"context_window": 0,
"smart_limit": 250000,
"warn_limit": 500000,
"max_fill_ratio": 0.9,
"warn_fill_ratio": 0.7,
"max_output": 0.85,
"chars_per_token": 4.0,
"temperature": 0.7,
"top_p": 0.85,
"presence_penalty": 1.5,
"frequency_penalty": 0.2,
"max_attempts": 3,
"elicitation": {
"_comment": "Ask the product owner requirement-refinement questions before the body is written. Requires an asker (the REPL wires one; the dashboard degrades to skip). Questions refine the product goal and requirements only — never operational data values, never config-vs-input cadence (the config step owns that).",
"enabled": false,
"max_questions": 3
},
"test_timeout": 30,
"test_max_attempts": 3,
"contract_search": {
"_comment": "After the data contract lands, run a SemIf choice per variable to auto-populate the skill config.json from the global config and the category config (data/skills/<category>/config.json). Logged as phase config:search.",
"enabled": true
},
"degeneration": {
"_comment": "SemIf degeneration watchdog: while the body streams, a 2-option SemIf decision (continue/stop) is made every `interval` chars against the last `window` chars of content+reasoning (once `min_chars` have accumulated); P(stop) >= threshold aborts the write with a graceful stub. Recorded trace-only (kind `codegen`), never in the decision log. Disabled when no engine is available.",
"enabled": true,
"threshold": 0.9,
"interval": 8000,
"window": 2000,
"min_chars": 4000
}
},
"skill_bodies": "data/skills",
"skills": {
"email": {"cost_budget": 1.0},
"contacts": "data/contacts.json",
"drafts": "data/drafts",
"packages": "data/packages.json"
},
"log": "data/decisions.jsonl",
"trace": "data/runs.jsonl",
"category_registry": "data/categories.json",
"dashboard": {"port": 8765, "host": "0.0.0.0"}
}