Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,27 @@ jobs:
- name: Run portable tests
shell: powershell
run: ./scripts/test-all.ps1

compass-mcp-freshness:
if: github.event_name == 'push'
runs-on: ubuntu-latest

steps:
- name: Require production MCP at pushed revision
env:
EXPECTED_REVISION: ${{ github.sha }}
shell: bash
run: |
python - <<'PY'
import json
import os
import urllib.request

expected = os.environ["EXPECTED_REVISION"]
with urllib.request.urlopen("https://compass.ariobarin.com/healthz?fresh=1", timeout=20) as response:
health = json.load(response)
actual = health.get("source_revision")
if actual != expected:
raise SystemExit(f"production Compass MCP is stale: {actual} != {expected}")
print(f"production Compass MCP is current: {actual}")
PY