Adaptive immune security architecture for netkingdom
The checker now prints the standard version and the run's scope first on every run, pass or fail, and enforces A12 r2 over every key and value of the INTENT.md frontmatter and layer.yaml, not only a key named standard_version. Tests fail if a versioned standard: path or a companion_version comes back. Neither declaration form changed. KG-DEC-2026-005 records assent to A9, A10, A11 and A13 and returns A12 r2 revised, with one finding: "any value" reaches prose revision citations. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Assistant: claude-code Assistant-Model: opus Assistant-Process: 63291@bnt-lap001 Assistant-Session: 8bd77868-ca68-4f49-bb1e-d539ecc0d703 |
||
|---|---|---|
| .repo-manager | ||
| decisions | ||
| docs | ||
| history | ||
| intake | ||
| intakes | ||
| scripts | ||
| specs | ||
| src/kings_guard | ||
| tests | ||
| workplans | ||
| .custodian-brief.md | ||
| .gitignore | ||
| .repo-classification.yaml | ||
| AGENTS.md | ||
| INTENT.md | ||
| layer.yaml | ||
| LICENSE | ||
| Makefile | ||
| pyproject.toml | ||
| README.md | ||
| SCOPE.md | ||
| WORK-RECORDS.md | ||
kings-guard
Adaptive security contracts and posture-evaluation scaffold for NetKingdom's immune-architecture work.
Layer: Staff (NetKingdom Security Layer Model v0.7). kings-guard publishes posture and requests bounded response through engine APIs; it never touches Tooling directly and never renders an authorization decision. It proposes containment and does not perform it.
Current slice
This repository now contains four aligned pieces:
INTENT.md/SCOPE.mdfor the repo's stable boundaryspecs/NetKingdomImmuneArchitecture.mdfor the reference architecturespecs/ImmuneContracts.mdfor the first canonical contract layersrc/kings_guard/plustests/for a minimal posture loop scaffold
The current implementation is intentionally narrow. It does not enforce anything. It provides:
- typed contracts for security genome, phenotype, observation, posture, signal, effector request, and immune memory entry;
- evidence-class and stream-completeness fields, so silence is a finding and record richness is not mistaken for a complete stream;
- a posture evaluator that judges one observation and, separately, the stream it came from;
- a
qonto-assistantpilot that still has a fixture regression case and can also consume real events from that service's own AuditLogger.
Repo layout
specs/NetKingdomImmuneArchitecture.mdspecs/ImmuneContracts.mddocs/AdjacentSystemBoundary.mddocs/pilots/QontoAssistantPosturePilot.mdsrc/kings_guard/tests/workplans/
Dev commands
# preferred, if make + pip are available
make install-dev
make test
make lint
make run-demo
# direct shell fallback used in minimal environments
python3 -m pytest -q
PYTHONPATH=src python3 -m kings_guard.main --pilot qonto-assistant