Run read-only: file edits, state mutations, commits prohibited. Mutating steps dropped; prohibitions kept.
Adopted check = coverage state + mechanism; else audit scanner; else unknown. Gates = (generated verification gate + praetor lefthook.yml); edits not reflected.
| Invariant | Rule | Adopted check | On fail |
|---|---|---|---|
| HISS-01 control flow | recursion prohibited; call graph = DAG; Go, C/C++: zero goto |
praetorctl audit HISS scan in verify-all + lefthook pre-commit/pre-push: Go goto, recursion + plain-function call cycles; Rust, Python direct recursion; C goto |
new finding fails verify-all, blocks commit, blocks push |
| HISS-02 loops, I/O | scalar upper bound on every loop; explicit deadline on every I/O call; Go: I/O takes context.Context deadline |
praetorctl audit HISS scan in verify-all + lefthook pre-commit/pre-push: unbounded loop shapes in Go, C, Rust, Python; I/O deadlines unchecked |
new finding fails verify-all, blocks commit, blocks push |
| HISS-03 memory | Go, Rust, C/C++: zero heap allocation in hot simulation/tick loops | unknown | advisory |
| HISS-04 complexity | McCabe cyclomatic <= 15, cognitive <= 20, statements <= 75; func LOC <= 60 (audit ceiling) | praetorctl audit HISS scan in verify-all + lefthook pre-commit/pre-push: function length only; other caps need repository linter |
new finding fails verify-all, blocks commit, blocks push |
| HISS-05 scoping | declare every identifier in smallest lexical scope serving it | unknown | advisory |
| HISS-06 concurrency | explicit scalar upper bound on every worker pool + concurrent fan-out | unknown | advisory |
| HISS-07 errors | every error handled or wrapped with context; Go: zero unchecked error return; Rust: zero .unwrap() / .expect() outside tests |
praetorctl audit HISS scan in verify-all + lefthook pre-commit/pre-push: partial in Go, Rust, Python |
new finding fails verify-all, blocks commit, blocks push |
| HISS-08 determinism | zero dynamic code execution (eval / exec); C/C++: zero banned libc (gets / strcpy / sprintf); a process signal's target is bounded above 1 (killpg, kill(-pid), Go syscall.Kill) |
praetorctl audit HISS scan in verify-all + lefthook pre-commit/pre-push: C banned calls, Python eval / exec, Go syscall.Kill / unix.Kill |
new finding fails verify-all, blocks commit, blocks push |
| HISS-09 reference safety | Go, Rust: // SAFETY: proof before every unsafe block |
praetorctl audit HISS scan in verify-all + lefthook pre-commit/pre-push: Go, Rust unsafe without proof; C, Python unchecked |
new finding fails verify-all, blocks commit, blocks push |
| HISS-10 warnings | zero warnings: compiler, linter, format sweeps | go vet + gofmt in lefthook pre-commit: Go only |
vet finding blocks commit |
| HISS-11 supply chain | pinned lockfiles; zero floating tags; signed provenance | unknown | advisory |
| HISS-12 secrets | zero credentials in Git history | unknown | advisory |
| HISS-13 debt ratchet | recorded infractions never grow vs committed baseline | praetorctl audit ratchet vs .standards-baseline.json in verify-all + lefthook pre-commit/pre-push |
growth fails verify-all, blocks commit, blocks push |
| HISS-14 append-only ABI | public API append-only; breaking change = ! subject + Migration: footer |
unknown | advisory |
| HISS-15 3D testing | positive + negative + boundary tests, every public interface | unknown | advisory |
| HISS-16 context integrity | single canonical AGENTS.md; vendor files compiled via praetorctl compile-context |
praetorctl compile-context --verify in verify-all + lefthook pre-commit |
drift fails verify-all, blocks commit |
| HISS-17 state ledger | turn start praetorctl state status |
read-only run: step dropped | none; records only |
| HISS-18 CI efficiency | diff-aware gating via praetorctl ci filter |
unknown | advisory |
| HISS-19 reuse before writing | one behavior = one implementation; extend or call existing code | unknown | advisory |
| HISS-20 replayable evidence | every enforcement claim backed by fixtures replayed both directions | unknown | advisory |
| HISS-21 platform neutrality | gates, hooks, emitted templates run on Linux, macOS, Windows, or skip with stated reason | unknown | advisory |
-
Act on verified state. Read source files, run real commands before hypothesis or edit. Never guess flag names, library signatures, repo configuration from memory.
-
Lead with output. Direct answers, diffs, commands. No filler preamble, no "Based on", no restatement, no chatter.
-
Context transpiler first. Never edit
CLAUDE.md,.cursor/rules/hiss-invariants.mdc,.github/copilot-instructions.md,.windsurfrules,.gemini/GEMINI.md,.codex/rules.mdmanually. All agent instruction updates ->AGENTS.md, then:praetorctl compile-context
-
AGENTS.md= agent-only text -> caveman (internal register).praetorctl compile-context --verify+praetorctl auditrun caveman lint; findings fail gate; no opt-out. Check first:praetorctl caveman check --kind=context AGENTS.md.
-
-
SARIF diagnostic distillation. Compiler/linter errors -> distill to
$\le 1,500$ tokens ($< 60$ lines): top 3 root-cause failures with file/line pointers; full SARIF logs -> ephemeral storage. -
No evasion. Never attempt
--no-verify,LEFTHOOK=0, or modifying.git/hooks. Hooks = local gate adoption installs. Adoption scaffolds no CI workflow:praetorctlgates run local only. -
Anti-loop interception. Same AST diff + error category repeats
$\ge 3$ times -> halt immediately. Re-evaluate design; no micro-textual retries.
Register follows the audience, then the task label of your brief (register: in .standards.yaml; labels are the router's target_tasks).
| Register | Where | Form |
|---|---|---|
| social | forge: issues, PR bodies, review comments, commit bodies | social-text skill: BLUF, full sentences, scannable, enough and no more; conventional commit subject unchanged |
| docs | docs/, README, ADR bodies | complete without bloat: newcomer path first, expert reference after; every claim points at a file, command or test; no restated code |
| internal | briefs, agent-to-agent traffic, research fan-outs, workflow returns | caveman skill: fragments, no filler, verbatim code/paths/errors; facts, paths, commands, verdict |
- Task rows: social = commit_message_synthesis, waiver_signoff; docs = architecture_synthesis, function_docstrings; every other label and any unlabeled text = internal. Subagent launch brief:
cavemanbrief shape withtask:= routing label. - Evidence above 58 lines or 1500 tokens leaves the message as a file under
.workingdir/evidence/; returnevidence: <path> sha256:<12 hex> lines:<n>and fetch it only when a decision needs it. - An internal return carries verdict, changed paths, commands run, evidence pointers and open questions, nothing else.
# Fast local test suite
# Project verification unavailable: Discovery reached the workspace scan bound; define and exercise a project verify-all target.
exit 1
# Recompile and verify cross-agent context outputs
praetorctl compile-context --verify
# Audit repository against declared HISS standards
praetorctl audit