Spaces:
Running
Running
| # status-page.yml — Update STATUS.md based on live endpoint checks. | |
| # Runs every 15 minutes. Provides public status visibility (C-09). | |
| # Doctrine v11 LOCKED 749/14/163 | SLSA L1 honest | |
| # Signed-off-by: Stephen P. Lutar Jr. <stephenlutar2@gmail.com> | |
| # Co-Authored-By: Perplexity Computer Agent <agent@perplexity.ai> | |
| name: Status Page Update | |
| "on": | |
| schedule: | |
| - cron: '*/15 * * * *' | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| update-status: | |
| name: Update STATUS.md | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| steps: | |
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| - name: Check all endpoints | |
| id: check | |
| run: | | |
| TS=$(date -u +"%Y-%m-%dT%H:%M:%SZ") | |
| echo "ts=$TS" >> $GITHUB_OUTPUT | |
| check_endpoint() { | |
| local name="$1" | |
| local url="$2" | |
| local code | |
| code=$(curl -o /dev/null -s -w '%{http_code}' --max-time 15 "$url") | |
| if [ "$code" = "200" ]; then | |
| echo "| $name | OK $code | Operational |" | |
| else | |
| echo "| $name | ERR $code | Degraded |" | |
| fi | |
| } | |
| { | |
| echo "# SZL Holdings --- Service Status" | |
| echo "" | |
| echo "**Last updated:** $TS" | |
| echo "" | |
| echo "**Doctrine:** v11 LOCKED 749/14/163 | SLSA L1 honest | kernel: c7c0ba17" | |
| echo "" | |
| echo "## Flagship Endpoints" | |
| echo "" | |
| echo "| Endpoint | Status | State |" | |
| echo "|----------|--------|-------|" | |
| check_endpoint "a11oy root" "https://szlholdings-a11oy.hf.space/" | |
| check_endpoint "a11oy lambda" "https://szlholdings-a11oy.hf.space/v1/lambda" | |
| check_endpoint "a11oy honest" "https://szlholdings-a11oy.hf.space/v1/honest" | |
| check_endpoint "a11oy fleet" "https://szlholdings-a11oy.hf.space/api/a11oy/v4/fleet" | |
| check_endpoint "sentra root" "https://szlholdings-sentra.hf.space/" | |
| check_endpoint "sentra lambda" "https://szlholdings-sentra.hf.space/api/sentra/v1/lambda" | |
| check_endpoint "sentra verdict" "https://szlholdings-sentra.hf.space/api/sentra/v1/verdict" | |
| check_endpoint "amaru root" "https://szlholdings-amaru.hf.space/" | |
| check_endpoint "amaru lambda" "https://szlholdings-amaru.hf.space/api/amaru/v1/lambda" | |
| check_endpoint "amaru brain" "https://szlholdings-amaru.hf.space/api/amaru/v1/brain" | |
| check_endpoint "rosie root" "https://szlholdings-rosie.hf.space/" | |
| check_endpoint "rosie lambda" "https://szlholdings-rosie.hf.space/api/rosie/v1/lambda" | |
| check_endpoint "rosie honest" "https://szlholdings-rosie.hf.space/api/rosie/v1/honest" | |
| check_endpoint "killinchu root" "https://szlholdings-killinchu.hf.space/" | |
| check_endpoint "killinchu lambda" "https://szlholdings-killinchu.hf.space/api/killinchu/v1/lambda" | |
| echo "" | |
| echo "## Doctrine Invariants" | |
| echo "" | |
| echo "| Invariant | Value | Status |" | |
| echo "|-----------|-------|--------|" | |
| echo "| Doctrine version | v11 LOCKED | OK |" | |
| echo "| Declarations | 749 | OK |" | |
| echo "| Axioms | 14 | OK |" | |
| echo "| Sorries | 163 | OK |" | |
| echo "| Kernel commit | c7c0ba17 | OK |" | |
| echo "| Lambda | Conjecture 1 | OK |" | |
| echo "| SLSA | L1 honest | OK |" | |
| echo "| Section 889 | 5 vendors | OK |" | |
| echo "" | |
| echo "---" | |
| echo "*Auto-generated by status-page.yml GHA workflow. Doctrine v11 LOCKED.*" | |
| } > STATUS.md | |
| - name: Commit STATUS.md | |
| env: | |
| TS: ${{ steps.check.outputs.ts }} | |
| run: | | |
| git config user.name "Yachay" | |
| git config user.email "yachay@szlholdings.ai" | |
| git add STATUS.md | |
| git diff --staged --quiet && exit 0 | |
| MSG="chore(status): update STATUS.md [$TS]" | |
| git commit -m "$MSG" | |
| # Push may fail if branch protection requires PRs; that is expected | |
| # and non-fatal -- the status data is still captured in the workflow log. | |
| git push || echo "[status-page] push blocked by branch protection (non-fatal)" | |