Part of the Q-Office-Suite, a family of small sovereign-base specialists
trained from scratch at 50M parameters. Not bundled in the Qovaryx desktop
app — published here for transparency + research.
Given a proposed shell, SQL, or cloud command, returns a JSON safety decision: {action: allow|refuse|confirm, reason: <category>}. Refuses destructive operations (rm -rf /, DROP TABLE without WHERE, force-push to main) outright.
Holdout: n=60 rows, never seen in training, scored row-by-row
Score:100.0% mean
Bootstrap CI 95% lower bound: 1.000
Gate threshold: 0.95
Verdict: PASS at point estimate AND at bootstrap CI lower bound
What it's used for — real workflows
Agent safety layer — Before any tool-using agent executes a shell command, route through Q-CmdSafe. action=refuse means stop. action=confirm means ask a human. action=allow means proceed.
DevOps copilot guardrail — AI-suggested shell, kubectl, terraform commands flow through Q-CmdSafe first. Destructive root deletes, unscoped DROP TABLE, force-push to main — refused with a categorical reason.
Pre-commit hook — Wrap your CI shell-execution step; refuse anything Q-CmdSafe flags as destructive before the runner sees it.
On-prem command-line policy — 53.5M params + CPU inference = a safety gate that runs anywhere, no internet.
What problem this actually solves
AI agents that run shell commands are exactly as safe as their judgment about what commands are safe. That judgment lives in a model that's tired, distracted, or jailbroken. Q-CmdSafe is a separate, smaller, harder-to-trick model whose only job is the safety call. It's the seatbelt, not the driver.
Integration paths
MCP tool middleware — Insert as a pre-execution hook in any MCP server that runs shell commands.
Q-Office-Suite runtime — POST /run/q-cmdsafe — pair with Q-ToolCall for full agent guardrails.
Local CI safety net — Add to a pre-push or pre-merge git hook.
Example
Input:
User asks to run 'rm -rf /'. Action? JSON {action, reason}.
Not a general-purpose chatbot. This head does one job and does it consistently. Free-text generation outside the trained task surface will degrade.
Not a replacement for a verifier. This is one component in the Qovaryx cluster-shell architecture. The decision-acceptance discipline lives in the wrapper, not in the head.
Not reproducible from this card. Weights and audit are public; the crystal corpus, eval gate constants, and training hyperparameters are not.
Proprietary Qovaryx technology — built on our own scratch base
This is a 53.5M-parameter sovereign specialist in the Qovaryx Compact Specialist Suite. It is full-fine-tuned from tjarvis91/qovaryx-50m-scratch-base — our own scratch-trained base, not a borrowed foundation model.
Base: Qovaryx 50M scratch base. Pretrained from random initialization on 491.5M tokens. Not SmolLM2. Not Qwen. Not Llama. Not Mistral. Not Phi. No HuggingFace foundation. No closed-source weights. Every parameter traces back to a Qovaryx training run on Qovaryx hardware.
Tokenizer: Qovaryx english_v1 BPE (vocab 32000), built in-house against our own pretraining corpus.
Pretrained from qovaryx-50m-scratch-base step 60000 — 491.5M tokens
Full fine-tune (no LoRA, no QLoRA, no adapter): every parameter was updated on the Qovaryx crystal corpus for this specialist
How to load it (Python)
python
1import torch
2from tokenizers import Tokenizer
3from bleeding_edge.model.decoder import FinanceDecoder, DecoderConfig
45tok = Tokenizer.from_file("tokenizer.json")6ckpt = torch.load("pytorch_model.pt", map_location="cpu", weights_only=False)7cfg = DecoderConfig(**{k: v for k, v in ckpt["model_cfg"].items()if k in DecoderConfig.__dataclass_fields__})8cfg.vocab_size = tok.get_vocab_size()9model = FinanceDecoder(cfg).eval()10state ={k.removeprefix("_orig_mod."): v for k, v in ckpt["model_state"].items()}11model.load_state_dict(state, strict=False)1213prompt ="User asks to run 'rm -rf /'. Action? JSON {action, reason}."14ids = tok.encode(prompt).ids
15cur = torch.tensor([ids], dtype=torch.long)16with torch.no_grad():17for _ inrange(120):18 nxt =int(torch.argmax(model(cur, return_decision=False).logits[:,-1,:], dim=-1))19if nxt ==0:break20 cur = torch.cat([cur, torch.tensor([[nxt]])], dim=1)21print(tok.decode(cur[0].tolist()[len(ids):]))
License & posture
Apache 2.0 for the published weights, model card, and example code.
The Qovaryx scratch base build pipeline, the crystallization corpus, the eval gate constants, the cluster routing policy, and the protected runtime entrypoint are Qovaryx proprietary technology and are not included in this release. Same posture as every previous Qovaryx public release: ship the weights and the audit, not the recipe.
Sibling specialists in the Qovaryx Compact Specialist Suite
All ten specialists share the qovaryx-50m-scratch-base and the same audit discipline. Use one directly; use all ten through the cluster shell.
If you find a failure mode this card doesn't cover, open a discussion on this repo or come to the Discord — that's how the next crystal corpus gets written.