refactor: adopt typst and rust runtime
Beffroi Reporting CI All component and integration checks passed.
Beffroi/beffroi-reporting/pipeline/head This commit looks good
Details
Beffroi Reporting CI All component and integration checks passed.
Beffroi/beffroi-reporting/pipeline/head This commit looks good
Details
This commit is contained in:
parent
e7d7442d50
commit
5967f3e843
|
|
@ -2,14 +2,14 @@
|
|||
|
||||
## Pass 7 — Remove production Python
|
||||
|
||||
- [x] P7.1 Rewrite agent instructions and public commands around Make, shell, jq, PowerShell, and Typst; confine Python to uv-managed tests.
|
||||
- [x] P7.1 Rewrite agent instructions and public commands around Make, shell, Typst, PowerShell, and Rust/Cargo; confine Python to uv-managed tests.
|
||||
- [x] P7.2 Replace win-diagnostics Python normalization, analysis, and validation without changing contract or rule outcomes.
|
||||
- [x] P7.3 Replace beffroi-reports Python adaptation and immutable publication while preserving race safety and regeneration guarantees.
|
||||
- [x] P7.4 Replace Reportist Python validation/rendering while preserving input, asset, overwrite, and standalone behavior.
|
||||
- [x] P7.5 Remove Python from bootstrap and runtime dependency checks; make uv and Python test-only dependencies.
|
||||
- [x] P7.6 Run component tests through uv, then verify capture-to-PDF integration without Python on the runtime PATH.
|
||||
|
||||
Validation: 70 component tests pass through uv-managed environments, including all five owning-validator adapter integration tests. The root workflow then performs capture analysis, draft generation, validation, and PDF rendering using only shell, jq, Typst, and the native publication helper.
|
||||
Validation: 70 component tests pass through uv-managed environments, including all five owning-validator adapter integration tests. The root workflow then performs capture analysis, draft generation, validation, and PDF rendering using only shell, Typst, and the Rust publication helper.
|
||||
|
||||
## How to use this tracker
|
||||
|
||||
|
|
|
|||
|
|
@ -119,8 +119,8 @@ actually owns it.
|
|||
|
||||
## Implementation constraints
|
||||
|
||||
Production workflows use Make, POSIX-oriented shell, jq, PowerShell where
|
||||
Windows collection requires it, and Typst. Python is allowed only under test
|
||||
Production workflows use Make, POSIX-oriented shell, Typst, Rust for the
|
||||
publication helper, and PowerShell where Windows collection requires it. Python is allowed only under test
|
||||
directories as a test harness or independent oracle; it must never be required
|
||||
to bootstrap, analyse, adapt, validate, render, package, or publish a report.
|
||||
|
||||
|
|
|
|||
|
|
@ -25,8 +25,8 @@ versions and high-level commands for the complete workflow.
|
|||
|
||||
## Requirements
|
||||
|
||||
The runtime uses Bash, Git, Make, jq, Typst 0.15 or newer, and a C compiler.
|
||||
The compiler builds a small helper used for atomic, no-replace publication.
|
||||
The runtime uses Bash, Git, Make, Typst 0.15 or newer, and Rust/Cargo. Cargo
|
||||
installs a small helper used for atomic, no-replace publication.
|
||||
Selected report fonts must also be installed; the examples use DejaVu Sans and
|
||||
DejaVu Sans Mono.
|
||||
|
||||
|
|
|
|||
|
|
@ -13,12 +13,12 @@ elif [[ $# -ne 0 ]]; then
|
|||
fi
|
||||
|
||||
missing=()
|
||||
for command in git make jq typst cc; do
|
||||
for command in git make typst cargo; do
|
||||
command -v "$command" >/dev/null 2>&1 || missing+=("$command")
|
||||
done
|
||||
if ((${#missing[@]})); then
|
||||
echo "Missing required tools: ${missing[*]}" >&2
|
||||
echo 'Install Git, Make, jq, Typst, and a C compiler, then rerun bootstrap.' >&2
|
||||
echo 'Install Git, Make, Typst, and Rust/Cargo, then rerun bootstrap.' >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
|
@ -41,9 +41,8 @@ while IFS= read -r status; do
|
|||
fi
|
||||
done < <(git submodule status --recursive)
|
||||
git --version
|
||||
jq --version
|
||||
typst --version
|
||||
cc --version | head -n 1
|
||||
cargo --version
|
||||
|
||||
if $check_only; then
|
||||
echo 'Pinned components and required tools are available.'
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 00a7e8122c654b8e7650aeb41009ac616bbca7fb
|
||||
Subproject commit e1ae8bb5dfb30ed53cc19f2755d9aa81fde665fc
|
||||
2
reporter
2
reporter
|
|
@ -1 +1 @@
|
|||
Subproject commit a82bda2b4fd83eee118c81c3e7dd357bfcf14011
|
||||
Subproject commit 5902c6bc436fab99d055ad668d3d903fb58cf258
|
||||
2
reports
2
reports
|
|
@ -1 +1 @@
|
|||
Subproject commit c401e9fb585d91f05b78c22acc796c408adc59ba
|
||||
Subproject commit 419132b85f737f967fea71a823c8e80dc4c2b536
|
||||
|
|
@ -44,7 +44,9 @@ bash scripts/workflow.sh all \
|
|||
"$pipeline_check_root" \
|
||||
2026-09-15T12:00:00Z \
|
||||
'Synthetic diagnostic draft' 'CI Test' 2026-09-15
|
||||
jq -e '.findings[0].id == "event-service-control-manager-7000" and .findings[0].evidence == ["event-recent_system_errors-1"]' "$pipeline_check_root/diagnostic.json" >/dev/null
|
||||
cp scripts/check-diagnostic.typ "$pipeline_check_root/check-diagnostic.typ"
|
||||
typst query --root "$pipeline_check_root" --input diagnostic=diagnostic.json \
|
||||
"$pipeline_check_root/check-diagnostic.typ" '<valid>' --field value --one >/dev/null
|
||||
test "$(head -c 5 "$pipeline_check_root/report.pdf")" = '%PDF-'
|
||||
|
||||
echo 'Component suites and the raw-capture-to-PDF integration pipeline passed.'
|
||||
|
|
|
|||
|
|
@ -0,0 +1,4 @@
|
|||
#let diagnostic = json(sys.inputs.at("diagnostic"))
|
||||
#assert(diagnostic.findings.first().id == "event-service-control-manager-7000")
|
||||
#assert(diagnostic.findings.first().evidence == ("event-recent_system_errors-1",))
|
||||
#metadata(true) <valid>
|
||||
|
|
@ -21,8 +21,8 @@ require_values() {
|
|||
done
|
||||
}
|
||||
|
||||
for executable in jq typst; do command -v "$executable" >/dev/null || { echo "Missing runtime dependency: $executable" >&2; exit 1; }; done
|
||||
[[ -x reports/build/publish-exclusive ]] || make -C reports build
|
||||
for executable in typst cargo; do command -v "$executable" >/dev/null || { echo "Missing runtime dependency: $executable" >&2; exit 1; }; done
|
||||
[[ -x reports/.tools/bin/publish-exclusive ]] || make -C reports build
|
||||
|
||||
analyse() {
|
||||
[[ $# -eq 4 ]] || usage
|
||||
|
|
|
|||
Loading…
Reference in New Issue