Adaptive organic security guidance framework. Agents decide what's understood and escalate what isn't. Security that gets more automatic as it matures, with root kept human.
Find a file
tegwick 07656b6ea8 Record 0.2.4 repository pilots and a Grok resume reload
Four Claude sessions in the retained pilot repositories preserve the scenario
boundaries. One Grok session re-read startup after resume and refused effect
authority. Compaction and the other providers' resume remain open.
EMERGENT-WP-0002 stays blocked.

Assistant: grok
Assistant-Session: 01a10286-9185-7bb2-b411-89cf6ab4c0c6
2026-10-03 20:42:29 +02:00
docs Record 0.2.4 repository pilots and a Grok resume reload 2026-10-03 20:42:29 +02:00
envelopes Seeded repo with intent and initial content. 2026-10-03 14:13:45 +02:00
knowledge Reconcile published offline intake in knowledge 0.2.4 2026-10-03 20:14:41 +02:00
runbooks/security-orientation Link security knowledge to human decisions and guided runbooks 2026-10-03 15:50:04 +02:00
specs Seeded repo with intent and initial content. 2026-10-03 14:13:45 +02:00
src/emergent_security Bind knowledge retrieval to sealed bytes and invalidate changed releases 2026-10-03 17:44:52 +02:00
tests Reconcile published offline intake in knowledge 0.2.4 2026-10-03 20:14:41 +02:00
tools Record 0.2.4 Codex, Claude, and Grok scenario probes 2026-10-03 20:37:30 +02:00
workplans Record 0.2.4 repository pilots and a Grok resume reload 2026-10-03 20:42:29 +02:00
.custodian-brief.md chore(consistency): sync task status from DB [auto] 2026-10-03 19:18:57 +02:00
.gitignore Implement source-backed NetKingdom agent security knowledge pilot 2026-10-03 15:25:04 +02:00
AGENTS.md Implement source-backed NetKingdom agent security knowledge pilot 2026-10-03 15:25:04 +02:00
CLAUDE.md Implement source-backed NetKingdom agent security knowledge pilot 2026-10-03 15:25:04 +02:00
emergent-security-agent.md Seeded repo with intent and initial content. 2026-10-03 14:13:45 +02:00
INTENT.md Implement source-backed NetKingdom agent security knowledge pilot 2026-10-03 15:25:04 +02:00
MANIFEST.in Link security knowledge to human decisions and guided runbooks 2026-10-03 15:50:04 +02:00
pyproject.toml Implement source-backed NetKingdom agent security knowledge pilot 2026-10-03 15:25:04 +02:00
README.md Link security knowledge to human decisions and guided runbooks 2026-10-03 15:50:04 +02:00
SCOPE.md Record 0.2.4 repository pilots and a Grok resume reload 2026-10-03 20:42:29 +02:00
WORK-RECORDS.md Track work record index generated by consistency audit 2026-10-03 19:19:14 +02:00

emergent-security

Security guidance, delegation envelopes, and source-backed situational knowledge for coding agents in the NetKingdom ecosystem. Root stays human-controlled.

Agent knowledge

Start with the orientation card and the NetKingdom integration map. Install and use:

pip install -e '.[test]'
emergent-knowledge show start --audience codex
emergent-knowledge show access --audience claude --json
emergent-knowledge --repositories /path/to/checkouts check

The package serves reviewed estate-general summaries with source versions and freshness receipts. It supports Codex, Claude, Grok, and generic adapters, offline bundles, and changed/withdrawn-source withholding. It never retrieves credentials, private tenant content, or operational grants. Source checks verify documented bytes, not live health. See loading and maintenance and operational seams.

Release status is pilot. Provider proof and owner adoption are tracked in EMERGENT-WP-0002. Knowledge loading is separate from enforcement, identity isolation, and fleet rollout. The integration decision keeps the reference model distinct from the estate's sole PDP, access-engine.

Default envelope reference

The default delegation envelope of the Emergent Security canon v0.8 (A6) as policy data, the tenant envelopes (B10, B11) as examples, and a small reference decision function (A3) that the fixtures run against.

envelopes/
  scales.yaml                     ordinal risk scales shared by all envelopes
  default-envelope.yaml           A6: what an L0 agent decides alone in a HOT build estate
  examples/
    platform-tenant-acme.yaml     B10: platform-owned outer bound for one tenant
    tenant-governance-acme.yaml   B11: tenant-owned narrowing, self_governed mode
src/emergent_security/            one module per concern (see package docstring)
tests/fixtures/
  decisions/*.yaml                request → expected decision, data only
  tenants/governance-validation.yaml

Run

pip install -e '.[test]'
pytest

Semantics in one screen

  • Modes: autonomous, autonomous_with_obligations, escalate, deny, root_authorization_required.
  • Variants refine a row by request attributes; first match wins and may replace mode, rules, obligations and evidence.
  • deny and root_authorization_required are constitutional: they apply in every scope, including tenants and COLD zones, and no delegation overrides them.
  • Every other row applies only where applies_when matches (L0, HOT, build, no tenant).
  • escalate means "not delegated here". A registry delegation can grant it (most specific scope wins, ties by id).
  • Inside a tenant the default envelope never grants anything. Grants come from the platform tenant envelope or the registry, always bounded by the effective envelope: platform ∩ tenant governance.
  • Risk fails safe. A dimension the envelope declares but the request leaves unclassified, or classifies with an unknown value, counts as exceeding.

Changing the policy, test first

  1. Add or change a case in tests/fixtures/decisions/*.yaml describing the request and the expected decision. Run pytest; it must fail.
  2. Change envelopes/default-envelope.yaml (or an envelope example) until it passes. Touch code only if the canon's semantics changed.
  3. Adding an A6 row also means updating A6_CLASSES in tests/test_default_envelope.py and the canon table.

The suite also enforces determinism, idempotency (inputs never mutated, registry order irrelevant), that auto mode equals no tenant configuration, and the G7 tenant invariants.

Human decisions and guided procedures

Decision/runbook integration links informed-decision presentation and human binding to owner-held procedures using runbook-tutorials. Retrieve the decisions and runbooks cards. The native runbooks/security-orientation/pack.yaml prepares an evidence handoff; the unsigned adoption memo in docs/decisions/ is ready for review. Neither submits a human answer or executes an infrastructure change.