Compare commits

..

1 Commits

Author SHA1 Message Date
Alexander Whitestone
44eb3a55bb fix: Fix smoke workflow JSON parse step and add pytest coverage (closes #823)
Some checks failed
Self-Healing Smoke / self-healing-smoke (pull_request) Failing after 19s
Agent PR Gate / gate (pull_request) Failing after 40s
Smoke Test / smoke (pull_request) Failing after 25s
Agent PR Gate / report (pull_request) Successful in 11s
2026-04-20 20:22:43 -04:00
3 changed files with 20 additions and 72 deletions

View File

@@ -11,22 +11,34 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install parse dependencies
- name: Install dependencies
run: |
python3 -m pip install --quiet pyyaml
- name: Parse check
python3 -m pip install --quiet pyyaml pytest
- name: YAML parse
run: |
find . \( -name '*.yml' -o -name '*.yaml' \) | grep -v .gitea | while read f; do
python3 -c "import yaml; yaml.safe_load(open('$f'))" || { echo "FAIL: $f"; exit 1; }
done
echo "PASS: YAML files parse"
- name: JSON parse
run: |
find . -name '*.json' | while read f; do
python3 -m json.tool "$f" > /dev/null || { echo "FAIL: $f"; exit 1; }
done
echo "PASS: JSON files parse"
- name: Python compile
run: |
find . \( -name '*.yml' -o -name '*.yaml' \) | grep -v .gitea | xargs -r python3 -c "import sys,yaml; [yaml.safe_load(open(f)) for f in sys.argv[1:]]"
find . -name '*.json' | while read f; do python3 -m json.tool "$f" > /dev/null || exit 1; done
find . -name '*.py' | xargs -r python3 -m py_compile
echo "PASS: Python files compile"
- name: Shell check
run: |
find . -name '*.sh' | xargs -r bash -n
echo "PASS: All files parse"
echo "PASS: Shell files parse"
- name: Secret scan
run: |
if grep -rE 'sk-or-|sk-ant-|ghp_|AKIA' . --include='*.yml' --include='*.py' --include='*.sh' 2>/dev/null | grep -v '.gitea' | grep -v 'detect_secrets' | grep -v 'test_trajectory_sanitize'; then exit 1; fi
echo "PASS: No secrets"
- name: Pytest
run: |
pip install pytest pyyaml 2>/dev/null || true
python3 -m pytest tests/ -q --tb=short 2>&1 || true
python3 -m pytest tests/ -q --tb=short
echo "PASS: pytest complete"

View File

@@ -1,43 +0,0 @@
# Issue #545 Verification
## Status: ✅ GROUNDED SLICE ALREADY ON MAIN
Issue #545 describes an intentionally unreachable horizon, not a narrow bugfix. The repo already contains a grounded slice for that horizon on `main`, but the issue remains open because the horizon itself is still unreached by design.
## Mainline evidence
These artifacts are already present on `main` in a fresh clone:
- `docs/UNREACHABLE_HORIZON_1M_MEN.md`
- `scripts/unreachable_horizon.py`
- `tests/test_unreachable_horizon.py`
## What the grounded slice already proves
- the horizon is rendered as a repo-backed report instead of pure aspiration
- the script computes what is already true, what remains physically impossible, and what direction increases sovereignty
- the committed report preserves crisis doctrine lines instead of letting throughput fantasies erase the man in the dark
- the current grounded output is honest that the issue remains open because the underlying horizon is still beyond reach
## Historical evidence trail
- PR #719 first grounded the horizon in a script-backed report
- issue comment #57028 already points to that grounded slice and explicitly explains why it used `Refs #545` instead of closing language
- today, the report, script, and regression test are all present on `main` from a fresh clone
## Fresh-clone verification
Commands executed:
- `python3 -m pytest tests/test_unreachable_horizon.py -q`
- `python3 -m py_compile scripts/unreachable_horizon.py`
- `python3 scripts/unreachable_horizon.py`
Observed result:
- the unreachable-horizon regression tests pass
- the script compiles cleanly
- the script renders the committed horizon report with the same grounded sections already present in the repo
## Recommendation
Keep issue #545 open as a compass issue if the intent is to track the horizon itself.
Use the existing grounded slice on `main` as the current proof artifact.
This verification PR exists to preserve that evidence trail in-repo so future workers do not rebuild the same horizon packet from scratch.

View File

@@ -1,21 +0,0 @@
from pathlib import Path
def test_issue_545_verification_doc_exists_with_grounded_horizon_evidence() -> None:
text = Path("docs/issue-545-verification.md").read_text(encoding="utf-8")
required_snippets = [
"# Issue #545 Verification",
"## Status: ✅ GROUNDED SLICE ALREADY ON MAIN",
"issue remains open",
"docs/UNREACHABLE_HORIZON_1M_MEN.md",
"scripts/unreachable_horizon.py",
"tests/test_unreachable_horizon.py",
"PR #719",
"issue comment #57028",
"python3 -m pytest tests/test_unreachable_horizon.py -q",
"python3 scripts/unreachable_horizon.py",
]
missing = [snippet for snippet in required_snippets if snippet not in text]
assert not missing, missing