Skip to content

Commit 1fc24ab

Browse files
hyperpolymathclaude
andcommitted
feat: add k9iser.toml and generate K9 contracts
Adds k9iser manifest for docmatrix (hunt tier). Sources: Cargo.toml, Justfile, CI workflows. Rust workspace: formatrix-core, -db, -gui, -pipeline. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 4767fe4 commit 1fc24ab

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

k9iser.toml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# SPDX-License-Identifier: PMPL-1.0-or-later
2+
# Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) <j.d.a.jewell@open.ac.uk>
3+
#
4+
# k9iser manifest for docmatrix
5+
# Generates K9 contracts from repo configuration files.
6+
# docmatrix is a Rust document transformation tool — workspace with formatrix-core, -db, -gui, -pipeline crates
7+
8+
[project]
9+
name = "docmatrix"
10+
safety_tier = "hunt"
11+
12+
[[source]]
13+
path = "Cargo.toml"
14+
type = "cargo"
15+
output = "generated/k9iser/cargo-manifest.k9"
16+
17+
[[source]]
18+
path = "Justfile"
19+
type = "justfile"
20+
output = "generated/k9iser/justfile-recipes.k9"
21+
22+
[[source]]
23+
path = ".github/workflows/hypatia-scan.yml"
24+
type = "workflow"
25+
output = "generated/k9iser/ci-security.k9"
26+
27+
[[source]]
28+
path = ".github/workflows/codeql.yml"
29+
type = "workflow"
30+
output = "generated/k9iser/ci-codeql.k9"
31+
32+
[[constraint]]
33+
rule = "build.dependencies has no banned_packages"
34+
severity = "error"
35+
36+
[[constraint]]
37+
rule = "build.workspace.members all have [lib] or [[bin]] sections"
38+
severity = "warn"
39+
40+
[[constraint]]
41+
rule = "workflows includes hypatia-scan"
42+
severity = "error"
43+
44+
[[constraint]]
45+
rule = "abi.definitions exist in src/abi/ when ffi/ is present"
46+
severity = "warn"

0 commit comments

Comments
 (0)