coding-guardrails 0.22.0__tar.gz → 0.23.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/CLAUDE.md +24 -1
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/PKG-INFO +1 -1
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/docs/models.md +56 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/pyproject.toml +1 -1
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/models/profiles.py +35 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/server/sources.py +5 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/server/version.py +6 -5
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/.github/workflows/ci.yaml +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/.gitignore +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/Dockerfile +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/Dockerfile.reusable +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/HISTORY.md +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/LICENSE +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/README.md +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/configs/aider.yaml +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/configs/claude-code.yaml +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/configs/guardrail-config.yaml +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/configs/opencode.json +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/configs/pi.yaml +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/docker-compose.yaml +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/docs/agents.md +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/docs/architecture.md +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/docs/rules.md +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/docs/server.md +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/patches/pi-subagents/01-lenient-acceptance-parser.patch +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/patches/pi-subagents/02-stronger-acceptance-prompt.patch +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/patches/pi-subagents/03-stronger-finalization-prompt.patch +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/patches/pi-subagents/04-prefer-acceptance-message.patch +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/patches/pi-subagents/05-acceptance-schema-tolerance.patch +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/patches/pi-subagents/README.md +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/patches/pi-subagents/apply-patches.sh +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/patches/pi-subagents/test-acceptance-parser.mjs +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/patches/pi-subagents/test-get-final-output.mjs +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/patches/pi-subagents/test-real-world.mjs +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/reports/2026-06-08_qwen-vs-gemma-ab.md +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/reports/2026-06-08_qwen-vs-gemma-revalidation.md +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/reports/2026-06-27_ornith-assessment.md +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/scripts/smoke_proxy.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/__init__.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/__main__.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/cli.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/config.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/eval.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/middleware.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/models/__init__.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/models/registry.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/proxy/__init__.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/proxy/acceptance.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/proxy/client.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/proxy/handler.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/proxy/layer1.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/proxy/server.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/rules/__init__.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/rules/base.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/rules/canary.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/rules/commands.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/rules/dup_write.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/rules/injection.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/rules/lint.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/rules/loop_detection.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/rules/network.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/rules/path_safety.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/rules/prerequisites.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/rules/secrets.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/rules/sensitive_files.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/rules/sequencing.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/rules/session_budget.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/rules/thoroughness.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/rules/tool_resolution.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/server/__init__.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/server/build.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/server/cli.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/server/download.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/server/launcher.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/server/manager.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/server/manager_vram.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/server/paths.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/server/proxy_process.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/tests/__init__.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/tests/integration/__init__.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/tests/integration/test_proxy.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/tests/integration/test_proxy_pipeline.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/tests/integration-subagent-smoke.sh +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/tests/test_backend_manager.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/tests/unit/__init__.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/tests/unit/conftest.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/tests/unit/test_acceptance_prefill.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/tests/unit/test_acceptance_wrap.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/tests/unit/test_canary.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/tests/unit/test_client_wrappers.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/tests/unit/test_commands.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/tests/unit/test_config.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/tests/unit/test_convergence_nudge.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/tests/unit/test_dup_write.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/tests/unit/test_fuzz.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/tests/unit/test_handler_respond.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/tests/unit/test_handler_security_wiring.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/tests/unit/test_injection.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/tests/unit/test_layer1_tool_arg_validation.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/tests/unit/test_lint.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/tests/unit/test_loop_detection.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/tests/unit/test_loop_session_reset.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/tests/unit/test_manager.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/tests/unit/test_middleware.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/tests/unit/test_network.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/tests/unit/test_path_safety.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/tests/unit/test_paths.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/tests/unit/test_plain_thinking.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/tests/unit/test_prerequisites.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/tests/unit/test_profiles_budget.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/tests/unit/test_proxy_process.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/tests/unit/test_reasoning_replay.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/tests/unit/test_role_normalization.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/tests/unit/test_secrets.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/tests/unit/test_sensitive_files.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/tests/unit/test_sequencing.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/tests/unit/test_server.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/tests/unit/test_session_budget.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/tests/unit/test_sources.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/tests/unit/test_text_passthrough.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/tests/unit/test_thoroughness.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/tests/unit/test_tool_resolution.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/tests/unit/test_vision_captioning.py +0 -0
- {coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/uv.lock +0 -0
|
@@ -160,6 +160,25 @@ $LLAMA \
|
|
|
160
160
|
--jinja --flash-attn auto -ctk q4_0 -ctv q4_0 \
|
|
161
161
|
--spec-type draft-mtp -np 1 -v
|
|
162
162
|
|
|
163
|
+
# Flint UD-Q3_K_XL (fast MoE tier — 39.8B total / 2.5B active, 128K ctx)
|
|
164
|
+
# Recursive Flint, released 2026-10-21, Apache-2.0. 49 layers (2 dense + 47 MoE,
|
|
165
|
+
# 256 routed experts, 6/token + shared expert); 35 sliding-window (513) + 14
|
|
166
|
+
# full-attn layers → cheap KV at long ctx. NO MTP tensors (do not pass
|
|
167
|
+
# --spec-type draft-mtp). Needs llama.cpp ≥ d77256999 (LLM_ARCH_FLINT, #30928)
|
|
168
|
+
# — cg's pin was bumped to it on 2026-11-01.
|
|
169
|
+
# MEASURED 2026-11-01 Forge eval (proxy mode, 150 runs): 145/150 completion
|
|
170
|
+
# (96.7%), 135/150 accuracy (90%), 24 min wall (fastest 40B-class run). All
|
|
171
|
+
# compaction_chain + data_gap_* 100%. Weak: tool_selection 40% (answers in
|
|
172
|
+
# prose instead of calling respond() → Forge retry exhaustion),
|
|
173
|
+
# argument_transformation / inconsistent_api_recovery ~60%.
|
|
174
|
+
# VRAM: ~20.0 GB incremental @128K q8_0 KV (22.3 GB used with 2.5 GB desktop
|
|
175
|
+
# baseline); gate 19.9. ~107 tok/s decode.
|
|
176
|
+
# Manager: cg server start -m flint-UD-Q3_K_XL
|
|
177
|
+
$LLAMA \
|
|
178
|
+
-m ~/.local/share/coding-guardrails/models/flint-GGUF/flint-UD-Q3_K_XL.gguf \
|
|
179
|
+
-c 131072 -ngl 99 --host 0.0.0.0 --port 8080 \
|
|
180
|
+
--jinja --flash-attn auto -ctk q8_0 -ctv q8_0 -np 1 -v
|
|
181
|
+
|
|
163
182
|
# Qwen3.5-9B-MTP (previous default — best tool-calling reliability at 9B)
|
|
164
183
|
# Hybrid SSM/Transformer arch (qwen35), 33 layers. MTP = Multi-Token Prediction:
|
|
165
184
|
# `--spec-type draft-mtp` uses the model's built-in MTP head as a draft model for
|
|
@@ -251,7 +270,7 @@ coding-guardrails serve \
|
|
|
251
270
|
|
|
252
271
|
### Notes
|
|
253
272
|
|
|
254
|
-
- **llama-server**: use the local `~/llama.cpp/llama-server` (a symlink to `build/bin/llama-server`).
|
|
273
|
+
- **llama-server**: use the local `~/llama.cpp/llama-server` (a symlink to `build/bin/llama-server`). cg's managed binary lives at `~/.local/share/coding-guardrails/llama.cpp` and is built from the pin in `server/version.py` — **bumped 2026-11-01 to `d77256999`** (was `5a6a0dd7e`, 2026-06-26) for the Flint MoE arch (`LLM_ARCH_FLINT`, upstream #30928), which also carries the Gemma 4 tool-call fix, Qwen3.5/3.6/3.8, Ornith, LFM2.5 and MiniCPM5 support. Rebuild: `coding-guardrails server build` (CUDA auto-detected; the CLI's shallow `git fetch <sha>` can fail with `early EOF` — retry, and clear any stale `.git/shallow.lock` left by a killed run). The rebuild was smoke-tested against the Qwen3.8-27B default (MTP + mmproj) on 2026-11-01.
|
|
255
274
|
- **PORTS**: llama-server backend = `:8080`, guardrails proxy = `:8081`. Never run llama-server on `:8081` (collides with the proxy).
|
|
256
275
|
- **Qwen3.5-MTP `missing tensor 'blk.32.ssm_conv1d.weight'` error** = an OLD llama.cpp build (build 8276-era). The GGUF is correct (33 layers; blk.32 is an attention layer, not SSM). Build ≥ `5a6a0dd` reads the real layout and loads fine. If this recurs, the culprit is a stale binary on PATH / a vendored checkout, not the file.
|
|
257
276
|
- Qwen3.6-27B: max reliable ctx on the 24 GB card is **48K with q8_0 KV** (UD-Q4_K_XL). 56K+ needs a
|
|
@@ -314,6 +333,10 @@ that zeroed tool_selection for every model). Qwen3.6-27B: 149/150 (99.3%); LFM2.
|
|
|
314
333
|
**MiniCPM5-2B (added v0.20.0 as the tiny tier): 150/150 (100%) completion, 128/150 (85%) accuracy**
|
|
315
334
|
— tool_selection 5/5 (+stateful) and data_gap_recovery_extended 100% fix LFM2.5's genuine gaps;
|
|
316
335
|
only argument_transformation (0-20%) and inconsistent_api_recovery (40%) stay weak.
|
|
336
|
+
**Flint (added v0.23.0 as the fast MoE tier): 145/150 (96.7%) completion, 135/150 (90%)
|
|
337
|
+
accuracy, 24 min wall** — the fastest 40B-class run; all compaction_chain + data_gap_*
|
|
338
|
+
100%, but tool_selection 40% (prose instead of respond()) and argument_transformation
|
|
339
|
+
~40-60%.
|
|
317
340
|
|
|
318
341
|
**Eval-harness sync (2026-09-08, v0.20.1):** the vendored `tests/eval` harness was 49 commits
|
|
319
342
|
stale (v0.7.0-era); its `CountingClientWrapper` lacked the `passthrough`/`inbound_anthropic_body`/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: coding-guardrails
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.23.0
|
|
4
4
|
Summary: A safety + reliability proxy for coding agents on local LLMs. Forge rescue/retry/validation + 13 composable guardrail rules. Measured on the Forge 30-scenario eval: 100% completion, up to 95% accuracy.
|
|
5
5
|
Project-URL: Homepage, https://github.com/stawils/coding-guardrails
|
|
6
6
|
Project-URL: Repository, https://github.com/stawils/coding-guardrails
|
|
@@ -12,6 +12,7 @@ optimized for local inference with llama-server on consumer GPUs.
|
|
|
12
12
|
| **Qwen3.5-9B** | UD-Q4_K_XL (MTP) | 5.7 GB | 18.1 GB | **200K** | 9B | Dense | ~53 tok/s |
|
|
13
13
|
| **Gemma 4 26B A4B QAT** | UD-Q4_K_XL (QAT) | 14.25 GB | 19.8 GB | **200K** | 3.8B | MoE | ~40+ tok/s |
|
|
14
14
|
| **Ornith-1.0-9B** | Q8_0 | 9.5 GB | 18.0 GB | **200K** | 9B | Dense | ~50 tok/s |
|
|
15
|
+
| **Flint** | UD-Q3_K_XL | 18.49 GB | 19.9 GB | **128K** (q8_0 KV) | 2.5B | MoE (39.8B total) | ~107 tok/s |
|
|
15
16
|
| **LFM2.5-2.6B** | **BF16** | 5.4 GB | 9.0 GB | **128K** | 2.6B | Dense (hybrid) | ~fast (tiny) |
|
|
16
17
|
| **MiniCPM5-2B** | Q4_K_M | 1.56 GB | ~3.0 GB | **131K** | 2.52B | Dense | ~182 tok/s |
|
|
17
18
|
|
|
@@ -29,6 +30,7 @@ LFM2.5's tool_selection 0/10 is **genuine** (never calls respond()).
|
|
|
29
30
|
| **Qwen3.5-9B** | **150/150 (100%)** | 138/150 (92%) | 2026-08-08_142633Z |
|
|
30
31
|
| **Ornith-1.0-9B** | **150/150 (100%)** | **143/150 (95%)** | 2026-08-08_144837Z |
|
|
31
32
|
| **Qwen3.6-27B** | **149/150 (99.3%)** | 141/150 (94%) | 2026-08-07_151927Z |
|
|
33
|
+
| **Flint** | 145/150 (96.7%) | 135/150 (90%) — fastest 40B-class run (24 min); tool_selection 40% (prose instead of respond()) | 2026-10-22_144116Z |
|
|
32
34
|
| **LFM2.5-2.6B** | 139/150 (92.7%) | 100/140 (71%) — card caveat confirmed | 2026-08-08_153811Z |
|
|
33
35
|
| **MiniCPM5-2B** | **150/150 (100%)** | **128/150 (85%)** — tool_selection 5/5 (fixes LFM2.5 0/5); data_gap_recovery_extended 100% | 2026-09-08_111510Z |
|
|
34
36
|
|
|
@@ -158,6 +160,47 @@ $LLAMA \
|
|
|
158
160
|
73.0 (vs 63.4), DeepSWE 1.1 42.2 (vs 13.3), QwenSWEBench 79.0 (vs 49.3),
|
|
159
161
|
LiveCodeBench v6 90.3, GPQA Diamond 89.2.
|
|
160
162
|
|
|
163
|
+
## Flint (MoE 39.8B-A2.5B — fast agentic-coding tier, 128K context, Apache-2.0)
|
|
164
|
+
|
|
165
|
+
- Recursive Flint, released 2026-10-21, **Apache-2.0**. **39.8B total / ~2.5B active**
|
|
166
|
+
MoE: 49 layers (2 dense + 47 MoE, 256 routed experts, 6/token + shared expert).
|
|
167
|
+
35 sliding-window layers (window 513) + 14 full-attention layers — only the 14
|
|
168
|
+
full layers grow KV, so long context is cheap. Per-head QK RMSNorm + attention
|
|
169
|
+
sinks; no positional encoding on the full-attention layers.
|
|
170
|
+
- **Needs llama.cpp ≥ `d77256999`** (`LLM_ARCH_FLINT`, upstream #30928). cg's pin
|
|
171
|
+
was bumped from `5a6a0dd7e` (2026-06-26) to `d77256999` (2026-10-22) for this;
|
|
172
|
+
the rebuild was smoke-tested against the Qwen3.8-27B default (MTP + mmproj OK).
|
|
173
|
+
- **Measured 2026-11-01 (Forge eval, proxy mode, 150 runs): 145/150 completion
|
|
174
|
+
(96.7%), 135/150 accuracy (90%), 24 min wall** — the fastest 40B-class run on
|
|
175
|
+
this harness (Qwen3.8-27B: 38 min). 100% on every `compaction_chain_*` and
|
|
176
|
+
`data_gap_*` scenario, and on most `*_stateful` families.
|
|
177
|
+
- **Weak spots (documented, not proxy bugs):** `tool_selection` 40% — Flint often
|
|
178
|
+
answers in prose instead of calling the declared `respond()` tool, so Forge's
|
|
179
|
+
validator retries to exhaustion (same failure class as LFM2.5's tool_selection,
|
|
180
|
+
but partial). `argument_transformation` (aggregation arithmetic) and
|
|
181
|
+
`inconsistent_api_recovery` ~60%. One `error_recovery` run entered a repetition
|
|
182
|
+
loop and came back as a backend 500.
|
|
183
|
+
- **VRAM:** 18.49 GB UD-Q3_K_XL + ~1.5 GB q8_0 KV/compute @128K ≈ **20.0 GB
|
|
184
|
+
incremental** (22.3 GB used with a 2.5 GB desktop baseline, ~0.7 GB free).
|
|
185
|
+
Profile gate = 19.9 GB. Default ctx 131072 of the native 262144.
|
|
186
|
+
- Sampling (Recursive): temp 1.0, top_p 0.95, top_k 20. No MTP tensors — do NOT
|
|
187
|
+
pass `--spec-type draft-mtp`. Emits `reasoning_content` (captured by the proxy).
|
|
188
|
+
- Vendor benchmarks: Terminal-Bench 2.1 54.9, SWE-bench Pro v2 89.7,
|
|
189
|
+
SWE-bench Verified 74.2, LiveCodeBench v6 80.3, IFBench 89.2, IFEval 95.1.
|
|
190
|
+
|
|
191
|
+
### Flint boot command
|
|
192
|
+
|
|
193
|
+
```bash
|
|
194
|
+
# Manager (preferred): cg server start -m flint-UD-Q3_K_XL
|
|
195
|
+
# Raw equivalent:
|
|
196
|
+
$LLAMA \
|
|
197
|
+
-m ~/.local/share/coding-guardrails/models/flint-GGUF/flint-UD-Q3_K_XL.gguf \
|
|
198
|
+
-c 131072 -ngl 99 --host 0.0.0.0 --port 8080 \
|
|
199
|
+
--jinja --flash-attn auto -ctk q8_0 -ctv q8_0 -np 1
|
|
200
|
+
# ~107 tok/s decode, ~20 GB VRAM. Reasoning model — keep max_tokens generous
|
|
201
|
+
# (hard problems: >= 32K output budget per the model card).
|
|
202
|
+
```
|
|
203
|
+
|
|
161
204
|
## Qwen3.5-9B (Default) ⭐
|
|
162
205
|
|
|
163
206
|
- **Default model.** Reliable tool-use, no degenerate loops, consistent clean completion.
|
|
@@ -288,6 +331,19 @@ llama-server \
|
|
|
288
331
|
|
|
289
332
|
> **Notes:** q4_0 KV is required for 128K + MTP on 24 GB (q8_0 KV + MTP OOMs).
|
|
290
333
|
|
|
334
|
+
### Flint (128K context, q8_0 KV — fast MoE tier)
|
|
335
|
+
|
|
336
|
+
```bash
|
|
337
|
+
llama-server \
|
|
338
|
+
-m flint-UD-Q3_K_XL.gguf \
|
|
339
|
+
--jinja --flash-attn auto \
|
|
340
|
+
--port 8080 -c 131072 \
|
|
341
|
+
-ctk q8_0 -ctv q8_0 -np 1
|
|
342
|
+
```
|
|
343
|
+
|
|
344
|
+
> **Notes:** No `--spec-type draft-mtp` — the Flint GGUF has no MTP tensors.
|
|
345
|
+
> Requires llama.cpp ≥ `d77256999`; ~20 GB VRAM at 128K.
|
|
346
|
+
|
|
291
347
|
> **Notes:** No `--spec-type draft-mtp` — the official Ornith GGUF has no MTP tensors.
|
|
292
348
|
> Reasoning model: enable a reasoning parser if driving llama-server directly; the
|
|
293
349
|
> cg proxy captures `reasoning_content` automatically via `SafeLlamafileClient`.
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "coding-guardrails"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "0.23.0"
|
|
8
8
|
description = "A safety + reliability proxy for coding agents on local LLMs. Forge rescue/retry/validation + 13 composable guardrail rules. Measured on the Forge 30-scenario eval: 100% completion, up to 95% accuracy."
|
|
9
9
|
requires-python = ">=3.12"
|
|
10
10
|
license = "MIT"
|
{coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/models/profiles.py
RENAMED
|
@@ -102,6 +102,41 @@ PROFILES: dict[str, ModelProfile] = {
|
|
|
102
102
|
"-ctk", "q4_0", "-ctv", "q4_0",
|
|
103
103
|
"--spec-type", "draft-mtp", "-np", "1"],
|
|
104
104
|
),
|
|
105
|
+
# ── Flint (MoE, 39.8B total / 2.5B active, 256K ctx, Apache-2.0) ──
|
|
106
|
+
# Recursive's agentic-coding MoE (released 2026-10-21), trained from
|
|
107
|
+
# scratch with their "Eureka Machine" automated-research loop. 49 layers:
|
|
108
|
+
# 2 dense + 47 MoE (256 routed experts, 6/token + shared expert). 35
|
|
109
|
+
# sliding-window layers (window 513) + 14 full-attention layers — KV only
|
|
110
|
+
# grows on the 14 full layers, so long ctx is cheap. Per-head QK RMSNorm +
|
|
111
|
+
# attention sinks; no positional encoding on full-attention layers.
|
|
112
|
+
# Only 2.5B active params/token → fast decode. Vendor: Terminal-Bench 2.1
|
|
113
|
+
# 54.9, SWE-bench Pro v2 89.7, SWE-bench Verified 74.2, LiveCodeBench v6
|
|
114
|
+
# 80.3, IFBench 89.2, IFEval 95.1. Requires llama.cpp >= d77256999
|
|
115
|
+
# (LLM_ARCH_FLINT, #30928) — pin bumped 2026-11-01.
|
|
116
|
+
# MEASURED 2026-11-01 (RTX 3090 Ti 24 GB shared desktop, UD-Q3_K_XL):
|
|
117
|
+
# 128K ctx q8_0 KV boots clean; incremental VRAM ~20.0 GB (2.5 GB desktop
|
|
118
|
+
# baseline → 22.3 GB used, ~0.7 GB free); ~107 tok/s decode (2.5B active).
|
|
119
|
+
# Full 150-run proxy eval: 145/150 completion (96.7%), 135/150 accuracy
|
|
120
|
+
# (90%), 24 min wall (fastest 40B-class run; Qwen3.8-27B took 38 min).
|
|
121
|
+
# All compaction_chain + data_gap_* 100%. Weak: tool_selection 40%
|
|
122
|
+
# (answers in prose instead of calling respond() → Forge retry exhaustion),
|
|
123
|
+
# argument_transformation (number aggregation), one repetition loop →
|
|
124
|
+
# backend 500 on a malformed 16K-token summarize call.
|
|
125
|
+
# Card sampling: temp 1.0, top_p 0.95, top_k 20. No MTP tensors.
|
|
126
|
+
"flint-UD-Q3_K_XL": ModelProfile(
|
|
127
|
+
name="flint-UD-Q3_K_XL",
|
|
128
|
+
family="Flint",
|
|
129
|
+
quant="UD-Q3_K_XL",
|
|
130
|
+
file_size_gb=18.49,
|
|
131
|
+
vram_required_gb=19.9, # measured incremental ~20.0 GB @128K q8_0 KV (2.5B active, 14 KV-holding layers); gate just below the measured floor so a ~2.5 GB desktop baseline still loads
|
|
132
|
+
context_tokens=131072,
|
|
133
|
+
architecture="moe",
|
|
134
|
+
active_params_b=2.5,
|
|
135
|
+
swe_bench_verified=74.2,
|
|
136
|
+
sampling={"temperature": 1.0, "top_p": 0.95, "top_k": 20},
|
|
137
|
+
boot_flags=["--jinja", "--flash-attn", "auto",
|
|
138
|
+
"-ctk", "q8_0", "-ctv", "q8_0", "-np", "1"],
|
|
139
|
+
),
|
|
105
140
|
# ── LFM2.5-2.6B (Dense hybrid, 2.6B params, 128K ctx, BF16) ──
|
|
106
141
|
# Liquid AI LFM2.5 — agentic post-trained (RL inside agentic harnesses).
|
|
107
142
|
# Hybrid arch: 22 double-gated short-conv blocks + 8 GQA attention layers.
|
{coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/server/sources.py
RENAMED
|
@@ -63,6 +63,11 @@ SOURCES: dict[str, ModelSource] = {
|
|
|
63
63
|
filename="Qwen3.8-27B-UD-Q3_K_XL.gguf",
|
|
64
64
|
license="Apache-2.0",
|
|
65
65
|
),
|
|
66
|
+
"flint-UD-Q3_K_XL": ModelSource(
|
|
67
|
+
repo_id="unsloth/flint-GGUF",
|
|
68
|
+
filename="flint-UD-Q3_K_XL.gguf",
|
|
69
|
+
license="Apache-2.0",
|
|
70
|
+
),
|
|
66
71
|
"Qwen3.6-27B-UD-Q4_K_XL": ModelSource(
|
|
67
72
|
repo_id="unsloth/Qwen3.6-27B-MTP-GGUF",
|
|
68
73
|
filename="Qwen3.6-27B-UD-Q4_K_XL.gguf",
|
{coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/server/version.py
RENAMED
|
@@ -17,11 +17,12 @@ from coding_guardrails.server.paths import binary_path, source_dir
|
|
|
17
17
|
|
|
18
18
|
logger = logging.getLogger("coding_guardrails.server.version")
|
|
19
19
|
|
|
20
|
-
#: Exact commit cg builds against. Latest master (2026-
|
|
21
|
-
#: gemma-4 tool-call fix
|
|
22
|
-
#:
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
#: Exact commit cg builds against. Latest master (2026-10-21+): keeps the
|
|
21
|
+
#: gemma-4 tool-call fix, the dense qwen35 arch (Ornith-1.0-9B), and adds the
|
|
22
|
+
#: Flint MoE arch (`LLM_ARCH_FLINT`, #30928) plus the muse-glimmer/laguna
|
|
23
|
+
#: archs. Build 2026-11-01.
|
|
24
|
+
PINNED_COMMIT = "d77256999f211f8c0a5b12d13564f48d685b59e7"
|
|
25
|
+
PINNED_SHORT = "d77256999"
|
|
25
26
|
|
|
26
27
|
|
|
27
28
|
def installed_commit() -> str | None:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/patches/pi-subagents/test-get-final-output.mjs
RENAMED
|
File without changes
|
{coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/patches/pi-subagents/test-real-world.mjs
RENAMED
|
File without changes
|
{coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/reports/2026-06-08_qwen-vs-gemma-ab.md
RENAMED
|
File without changes
|
|
File without changes
|
{coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/reports/2026-06-27_ornith-assessment.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/models/__init__.py
RENAMED
|
File without changes
|
{coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/models/registry.py
RENAMED
|
File without changes
|
{coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/proxy/__init__.py
RENAMED
|
File without changes
|
{coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/proxy/acceptance.py
RENAMED
|
File without changes
|
|
File without changes
|
{coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/proxy/handler.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/rules/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/rules/commands.py
RENAMED
|
File without changes
|
{coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/rules/dup_write.py
RENAMED
|
File without changes
|
{coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/rules/injection.py
RENAMED
|
File without changes
|
|
File without changes
|
{coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/rules/loop_detection.py
RENAMED
|
File without changes
|
{coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/rules/network.py
RENAMED
|
File without changes
|
{coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/rules/path_safety.py
RENAMED
|
File without changes
|
{coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/rules/prerequisites.py
RENAMED
|
File without changes
|
{coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/rules/secrets.py
RENAMED
|
File without changes
|
{coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/rules/sensitive_files.py
RENAMED
|
File without changes
|
{coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/rules/sequencing.py
RENAMED
|
File without changes
|
{coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/rules/session_budget.py
RENAMED
|
File without changes
|
{coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/rules/thoroughness.py
RENAMED
|
File without changes
|
{coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/rules/tool_resolution.py
RENAMED
|
File without changes
|
{coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/server/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/server/download.py
RENAMED
|
File without changes
|
{coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/server/launcher.py
RENAMED
|
File without changes
|
{coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/server/manager.py
RENAMED
|
File without changes
|
{coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/server/manager_vram.py
RENAMED
|
File without changes
|
|
File without changes
|
{coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/src/coding_guardrails/server/proxy_process.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/tests/integration/test_proxy_pipeline.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/tests/unit/test_handler_security_wiring.py
RENAMED
|
File without changes
|
|
File without changes
|
{coding_guardrails-0.22.0 → coding_guardrails-0.23.0}/tests/unit/test_layer1_tool_arg_validation.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|