diff --git a/AGENT.md b/AGENT.md index 3db0fad..8c320c1 100644 --- a/AGENT.md +++ b/AGENT.md @@ -186,7 +186,7 @@ integration interface. ## Development principles Production collection and analysis must not require Python. Use PowerShell for -native Windows collection, shell and jq for portable offline processing, and +native Windows collection, shell and Typst for portable offline processing, and Make for the public interface. Python may exist only in `tests/`, must run through a uv-managed virtual environment, and must not be called by production. diff --git a/AGENTS-TASKS.md b/AGENTS-TASKS.md index 8c5b090..9f3307a 100644 --- a/AGENTS-TASKS.md +++ b/AGENTS-TASKS.md @@ -2,8 +2,8 @@ ## Pass 5 — Runtime without Python -- [x] WD5.1 Port offline normalization and rule analysis to shell and jq with identical deterministic fixtures. -- [x] WD5.2 Port diagnostic validation and evidence verification to shell and jq. +- [x] WD5.1 Port offline normalization and rule analysis to shell and Typst with identical deterministic fixtures. +- [x] WD5.2 Port diagnostic validation and evidence verification to shell and Typst. - [x] WD5.3 Provide Make targets for collection, analysis, validation, and uv-managed tests. - [x] WD5.4 Remove production Python files and prove tests are the only Python consumers. diff --git a/Jenkinsfile b/Jenkinsfile index dfe7014..703fa6c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -22,7 +22,7 @@ pipeline { conclusion: 'SUCCESS', name: 'Win Diagnostics CI', summary: 'All diagnostic checks passed.', - text: 'Contracts, evidence integrity, fixtures, rules, watchlists, and the shell/jq runtime passed.', + text: 'Contracts, evidence integrity, fixtures, rules, watchlists, and the shell/Typst runtime passed.', title: 'Win Diagnostics CI passed' ) echo '✅ Win Diagnostics CI passed.' diff --git a/README.md b/README.md index 80e2d81..67939a1 100644 --- a/README.md +++ b/README.md @@ -14,9 +14,9 @@ as `unanalysed`. It does not render reports or PDFs. ## Requirements -Runtime analysis requires Bash, jq, and standard Unix utilities. The component -has no dependency on Reportist, Beffroi -Reports, or the integration workspace. +Runtime analysis requires Bash, Typst 0.15 or newer, and standard Unix +utilities. The component has no dependency on Reportist, Beffroi Reports, or +the integration workspace. ## Analyse a capture diff --git a/docs/development.md b/docs/development.md index 1453cfd..eb058b1 100644 --- a/docs/development.md +++ b/docs/development.md @@ -15,7 +15,7 @@ make test The suite covers diagnostic contract validation, evidence hashes and JSON Pointers, supported capture schemas, collection limitations, deterministic analysis, event grouping, the complete rule catalog, watchlist gates, standalone -operation, and the production shell/jq runtime. +operation, and the production shell/Typst runtime. ## Rule maintenance @@ -36,4 +36,4 @@ When changing a rule: `schemas/diagnostic.schema.json` is a public interface. Preserve compatibility for existing consumers or introduce a new schema version with documented mapping. Keep test-only Python support code under `tests/`; production analysis -and validation remain shell/jq based. +and validation remain shell/Typst based. diff --git a/docs/diagnostic-contract.md b/docs/diagnostic-contract.md index d11ccc6..305b577 100644 --- a/docs/diagnostic-contract.md +++ b/docs/diagnostic-contract.md @@ -6,7 +6,7 @@ examples, not a migrated collector or analysis engine. ## Install and validate independently -Bash and jq are required at runtime. From a standalone component checkout: +Bash and Typst 0.15 or newer are required at runtime. From a standalone component checkout: ```bash make validate INPUT=examples/diagnostic.json diff --git a/docs/standalone.md b/docs/standalone.md index 868c844..4e23c6b 100644 --- a/docs/standalone.md +++ b/docs/standalone.md @@ -2,7 +2,7 @@ ## Install and verify -Runtime analysis requires Bash, jq, and standard Unix utilities. Python and uv +Runtime analysis requires Bash, Typst 0.15 or newer, and standard Unix utilities. Python and uv are used only for tests. Reportist, beffroi-reports, the integration workspace, and legacy sources are not runtime dependencies. diff --git a/tools/analyse.jq b/tools/analyse.jq deleted file mode 100644 index fcb49e6..0000000 --- a/tools/analyse.jq +++ /dev/null @@ -1,92 +0,0 @@ -def slug: tostring | gsub("[^A-Za-z0-9._:-]+"; "-") | gsub("^-|-$"; "") | ascii_downcase | if . == "" then "unknown" else . end; -def timestamp: type == "string" and test("^[0-9]{4}-[0-9]{2}-[0-9]{2}T.*(Z|[+-][0-9]{2}:[0-9]{2})$"); -def epoch: - capture("^(?[0-9]{4}-[0-9]{2}-[0-9]{2})T(?