Adaptive immune security architecture for netkingdom
Find a file
tegwick f2c28a1c33 build: keep generated orientation brief local and untracked
Assistant: codex
Assistant-Model: gpt-6-astra
Assistant-Session: 01a15374-f59f-7a31-86d2-d23b5d2ed181
2026-10-19 13:44:18 +02:00
.repo-manager Repoint at Security Layer Model v0.4; assess and report to gate-house 2026-08-29 02:41:43 +02:00
decisions chore(consistency): write back hub id for KG-DEC-2026-005 and refresh WORK-RECORDS.md 2026-09-21 09:40:20 +02:00
docs Correct acceptance preparation date 2026-10-15 21:18:37 +02:00
history Complete KG-WP-0004-T05 and finish the architecture vocabulary sweep 2026-09-02 10:06:53 +02:00
intake Close absorbed qonto pilot intake 2026-07-24 00:34:52 +02:00
intakes Apply GH-DEC-2026-017 to the layer declaration; close KG-IN-0007. 2026-09-21 07:35:40 +02:00
registry docs(reuse): establish reviewed NetKingdom security capabilities 2026-10-14 06:40:02 +02:00
scripts Record exact layer review and migrate checker to accepted v0.8 2026-10-11 02:21:40 +02:00
specs Admit source evidence snapshots and harden stream completeness 2026-09-05 00:42:19 +02:00
src/kings_guard Prepare independent deployed cadence acceptance verifier 2026-10-15 21:18:13 +02:00
tests Prepare independent deployed cadence acceptance verifier 2026-10-15 21:18:13 +02:00
workplans Correct acceptance preparation date 2026-10-15 21:18:37 +02:00
.generated-work-records.json build: adopt staged work-record index generation 2026-10-19 13:15:26 +02:00
.generated-work-records.mk build: adopt staged work-record index generation 2026-10-19 13:15:26 +02:00
.gitignore build: keep generated orientation brief local and untracked 2026-10-19 13:44:18 +02:00
.repo-classification.yaml Register kings-guard with State Hub 2026-07-23 22:55:42 +02:00
AGENTS.md AGENTS.md: fill unresolved {CREDENTIAL_ROUTING} placeholder with the credential-routing section 2026-09-22 08:29:33 +02:00
INTENT.md Apply GH-DEC-2026-017 to the layer declaration; close KG-IN-0007. 2026-09-21 07:35:40 +02:00
layer.yaml Apply GH-DEC-2026-017 to the layer declaration; close KG-IN-0007. 2026-09-21 07:35:40 +02:00
LICENSE Adopt Target Revenue Source License V1C1 (org-wide preliminary rollout) 2026-07-30 00:28:01 +02:00
Makefile build: adopt staged work-record index generation 2026-10-19 13:15:26 +02:00
pyproject.toml Admit source evidence snapshots and harden stream completeness 2026-09-05 00:42:19 +02:00
README.md Complete KG-WP-0004-T05 and finish the architecture vocabulary sweep 2026-09-02 10:06:53 +02:00
SCOPE.md build: keep generated orientation brief local and untracked 2026-10-19 13:44:18 +02:00
WORK-RECORDS.md build: adopt staged work-record index generation 2026-10-19 13:15:26 +02:00

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.md for the repo's stable boundary
  • specs/NetKingdomImmuneArchitecture.md for the reference architecture
  • specs/ImmuneContracts.md for the first canonical contract layer
  • src/kings_guard/ plus tests/ 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-assistant pilot that still has a fixture regression case and can also consume real events from that service's own AuditLogger.

Repo layout

  • specs/NetKingdomImmuneArchitecture.md
  • specs/ImmuneContracts.md
  • docs/AdjacentSystemBoundary.md
  • docs/pilots/QontoAssistantPosturePilot.md
  • src/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