Skip to content

Commit a25238f

Browse files
authored
chore: tighten org profile policy checks (#5)
1 parent 187527f commit a25238f

4 files changed

Lines changed: 36 additions & 5 deletions

File tree

.github/workflows/policy-check.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Profile Policy Check
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [main]
7+
8+
jobs:
9+
policy-check:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Run profile policy checks
14+
run: bash scripts/check-policy.sh

AGENTS.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ or infrastructure change.
3737
## Backend Quick Reference
3838

3939
- API base: `https://loop-api.urbnia.com`
40-
- Health: `/api/health`
40+
- Health: `/health`
4141
- Metrics: `/api/metrics`
4242
- Interest list: `/api/interest`
4343
- Interest SSE: `/api/interest/stream`
@@ -135,4 +135,3 @@ only `alpha912` should merge.
135135
## Security
136136

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

CLAUDE.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Keep it in sync with AGENTS.md.
1414

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

1919
## VPS / Traefik
2020

@@ -30,7 +30,7 @@ docker compose up -d --build
3030

3131
## API Endpoints
3232

33-
- `/api/health`
33+
- `/health`
3434
- `/api/metrics`
3535
- `/api/interest`
3636
- `/api/interest/stream` (SSE)
@@ -60,4 +60,3 @@ Update `DOMAIN-POLICY.md` and domain check scripts if domains change.
6060
## Claims Policy
6161

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

scripts/check-policy.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
4+
ROOT_DIR="$(cd "$(dirname "$0")/.." && pwd)"
5+
cd "$ROOT_DIR"
6+
7+
fail=0
8+
9+
if rg -n "/api/health" AGENTS.md CLAUDE.md README.md profile/README.md; then
10+
echo "Found stale /api/health reference; use /health." >&2
11+
fail=1
12+
fi
13+
14+
if rg -n "api\\.local-loop\\.io" AGENTS.md CLAUDE.md README.md profile/README.md | rg -vi "not.*exist|does not exist"; then
15+
echo "Found non-canonical api.local-loop.io wording." >&2
16+
fail=1
17+
fi
18+
19+
exit "$fail"

0 commit comments

Comments
 (0)