From 69740b5bbd3bf9b8d86899b74440a7815e333e30 Mon Sep 17 00:00:00 2001 From: CoderDeltaLAN Date: Sat, 20 Jun 2026 05:16:02 +0100 Subject: [PATCH] fix: derive post-release audit version smoke --- CHANGELOG.md | 1 + scripts/post-release-audit.sh | 12 +++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 42e40a1..fdeabd9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -87,6 +87,7 @@ This project has a published GitHub Release line, but no stable support or API g ### Fixed +- Made the post-release audit CLI version smoke derive the expected version from `pyproject.toml` instead of hardcoding `0.3.0`. - Scoped governance finding suppression to same-line negation or approval cues so adjacent safe guidance no longer hides unrelated risky instructions. - Reject symlinked supported instruction files and harden `init --write` temporary and backup paths against symlink escapes. - Report non-UTF-8 supported instruction files as `AIRK-SYS001` findings instead of silently skipping governance analysis. diff --git a/scripts/post-release-audit.sh b/scripts/post-release-audit.sh index 761b68c..02091f5 100755 --- a/scripts/post-release-audit.sh +++ b/scripts/post-release-audit.sh @@ -200,7 +200,17 @@ print(f"OK: package metadata and version parity {pyproject_version}") PY_METADATA printf '\n== local CLI smoke ==\n' -PYTHONPATH=src python -m agent_rules_kit.cli --version | grep -Eq '^agent-rules-kit 0\.3\.0$' +PACKAGE_VERSION="$(python - <<'PY_VERSION' +from __future__ import annotations + +import tomllib +from pathlib import Path + +project = tomllib.loads(Path("pyproject.toml").read_text(encoding="utf-8"))["project"] +print(project["version"]) +PY_VERSION +)" +PYTHONPATH=src python -m agent_rules_kit.cli --version | grep -Fx "agent-rules-kit ${PACKAGE_VERSION}" PYTHONPATH=src python -m agent_rules_kit.cli check tests/fixtures/repositories/single-agent --format json | python -m json.tool >/dev/null PYTHONPATH=src python -m agent_rules_kit.cli doctor tests/fixtures/repositories/single-agent >/dev/null PYTHONPATH=src python -m agent_rules_kit.cli budget tests/fixtures/repositories/single-agent >/dev/null