Skip to content

chore(scripts): wire provenance check into pre-pr#91

Open
satwareAG-ironMike wants to merge 1 commit into
main-speckfrom
chore/wire-provenance-prepr
Open

chore(scripts): wire provenance check into pre-pr#91
satwareAG-ironMike wants to merge 1 commit into
main-speckfrom
chore/wire-provenance-prepr

Conversation

@satwareAG-ironMike

Copy link
Copy Markdown

Summary

Add [5/5] step to scripts/bash/pre-pr.sh that calls $SATWARE_HARNESS/scripts/check-speckit-cli.sh before pushing. Fatal when the system specify resolves to anything other than the satwareAG fork at a pushed satware-v* release tag.

Background

A real incident triggered this: an ambient uv tool install from upstream github/spec-kit was silently shadowing the fork's editable venv (Common Pitfall #6 in this repo's AGENTS.md), running stale 0.8.15.dev0 instead of the satwareAG v0.13.0 release. The satwareAG fork uses a satware-vX.Y.Z+N tag scheme; a local-only v0.13.0 tag from an upstream leftover was never the satwareAG release.

Changes

  • scripts/bash/pre-pr.sh (+20/-4): new [5/5] step calls $SATWARE_HARNESS/scripts/check-speckit-cli.sh. Fatal on exit 2 (foreign / missing / untagged). Skipped gracefully when SATWARE_HARNESS is unset or the script is not executable, so contributors without the satware harness can still run pre-pr.
  • Updated step labels [1/4]...[4/4] -> [1/5]...[4/5].

Pairs With

satware/harness PR #64: feat(security): add tool provenance rule + check script - adds the check-speckit-cli.sh script and rules/tool.provenance.md policy that this change invokes.

Test Plan

  • bash scripts/daily-routine.sh pre-pr end-to-end: === pre-pr: all checks passed ===
  • All 5 steps pass:
    • [1/5] ruff check src/ -> All checks passed
    • [2/5] pytest tests/integrations/ -> 1902 passed, 3 skipped
    • [3/5] check-privacy-leaks.sh -> No violations
    • [4/5] check-upstream-sync.sh -> Non-fatal (expected)
    • [5/5] check-speckit-cli.sh -> OK: specify 0.13.0 (uv-tool, satware-v0.13.0+1 @ 5ddf6a312a1b)
  • Graceful skip when SATWARE_HARNESS unset: prints skipped (SATWARE_HARNESS not set or check-speckit-cli.sh not found)

🤖 Assisted-by: opencode z-ai/glm-5.2 (autonomous)

Add [5/5] step to scripts/bash/pre-pr.sh that calls
$SATWARE_HARNESS/scripts/check-speckit-cli.sh before pushing. Fatal
when the system `specify` resolves to anything other than the
satwareAG fork at a pushed satware-v* release tag.

Skipped gracefully when SATWARE_HARNESS is unset or the script is not
executable, so contributors without the satware harness can still run
pre-pr.

Pairs with satware/harness rules/tool.provenance.md.

Assisted-by: opencode z-ai/glm-5.2 (autonomous)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant