Implement source-backed NetKingdom agent security knowledge pilot

Assistant: codex
Assistant-Model: gpt-6-astra
Assistant-Session: 01a101af-e240-7882-a1e3-e37720cbdbea
This commit is contained in:
tegwick 2026-10-03 15:25:04 +02:00
parent caa7da2397
commit a835c11ae7
54 changed files with 3634 additions and 27 deletions

View file

@ -129,10 +129,22 @@ curl -s -X PATCH "http://127.0.0.1:8000/tasks/<task_id>" \
## Local Verification
Before security-related work, read `knowledge/cards/start.md` and retrieve the
task's card using `PYTHONPATH=src python3 -m emergent_security.knowledge show
<card> --audience codex` (Grok may use `--audience grok`). Put
`--repositories <checkout-parent>` before `show` to validate current source
files; omission is an explicitly offline snapshot. Record the package version,
digest and source status. Reload after resume/compaction and repository changes.
The package is orientation, not operational authorization. Do not load the
generic v0.8 canon as though it overrode current NetKingdom owner contracts.
Requires Python 3.11 or newer. Install with `pip install -e '.[test]'` and run
`python3 -m pytest -q`. Policy changes start with a failing decision fixture;
keep the canon, agent extract, YAML envelopes, and A6 class coverage aligned.
There is currently no dedicated lint command or running service in this repo.
Knowledge release checks: `python3 tools/seal_knowledge.py --check` and
`PYTHONPATH=src python3 -m emergent_security.knowledge --repositories
<checkout-parent> check`. A source check verifies files, not service health.
---