Skip to content
Merged
Show file tree
Hide file tree
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
14 changes: 14 additions & 0 deletions .github/workflows/policy-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Profile Policy Check

on:
pull_request:
push:
branches: [main]

jobs:
policy-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run profile policy checks
run: bash scripts/check-policy.sh
3 changes: 1 addition & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ or infrastructure change.
## Backend Quick Reference

- API base: `https://loop-api.urbnia.com`
- Health: `/api/health`
- Health: `/health`
- Metrics: `/api/metrics`
- Interest list: `/api/interest`
- Interest SSE: `/api/interest/stream`
Expand Down Expand Up @@ -135,4 +135,3 @@ only `alpha912` should merge.
## Security

Never commit secrets or credentials. Keep `.env` files local only.

5 changes: 2 additions & 3 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Keep it in sync with AGENTS.md.

- Public site: `https://local-loop-io.github.io`
- Backend API: `https://loop-api.urbnia.com`
- Deprecated / invalid: `api.local-loop.io`
- `api.local-loop.io` does not exist

## VPS / Traefik

Expand All @@ -30,7 +30,7 @@ docker compose up -d --build

## API Endpoints

- `/api/health`
- `/health`
- `/api/metrics`
- `/api/interest`
- `/api/interest/stream` (SSE)
Expand Down Expand Up @@ -60,4 +60,3 @@ Update `DOMAIN-POLICY.md` and domain check scripts if domains change.
## Claims Policy

No public pilots or deployments. Keep all outward messaging “lab demo only.”

19 changes: 19 additions & 0 deletions scripts/check-policy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env bash
set -euo pipefail

ROOT_DIR="$(cd "$(dirname "$0")/.." && pwd)"
cd "$ROOT_DIR"

fail=0

if rg -n "/api/health" AGENTS.md CLAUDE.md README.md profile/README.md; then
echo "Found stale /api/health reference; use /health." >&2
fail=1
fi

if rg -n "api\\.local-loop\\.io" AGENTS.md CLAUDE.md README.md profile/README.md | rg -vi "not.*exist|does not exist"; then
echo "Found non-canonical api.local-loop.io wording." >&2
fail=1
fi

exit "$fail"