Commit e88a918
feat: k9iser Phase 1 — config parser, K9 contract generation, validator, tests
Manifest redesigned for K9 contracts: [project] with safety tiers,
[[configs]] with four pillars (must/trust/dust/intend), [validation] options.
Backward compatibility preserved via optional [workload] section.
Parser: TOML/YAML/JSON/INI config file reading and key-value extraction.
Contract generator: produces .k9 contract files from parsed configs + rules.
Validator: checks configs against contracts, produces violation reports.
ABI types: SafetyTier, K9Contract, ValidationResult, ConfigFormat.
45 tests passing (19 unit + 19 binary + 7 integration).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 612a5ef commit e88a918
11 files changed
Lines changed: 2288 additions & 46 deletions
File tree
- examples/web-app
- config
- src
- abi
- codegen
- manifest
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
0 commit comments