bigpowers 2.86.4 → 2.86.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/skills/craft-skill/SKILL.md +2 -2
- package/.agents/skills/define-success/SKILL.md +6 -59
- package/.agents/skills/deploy/SKILL.md +1 -1
- package/.agents/skills/elaborate-spec/SKILL.md +1 -1
- package/.agents/skills/harden-vps/SKILL.md +63 -60
- package/.agents/skills/investigate-bug/SKILL.md +2 -2
- package/.agents/skills/orchestrate-project/SKILL.md +1 -1
- package/.agents/skills/plan-refactor/SKILL.md +2 -2
- package/.agents/skills/plan-release/SKILL.md +2 -2
- package/.agents/skills/plan-work/SKILL.md +1 -1
- package/.agents/skills/using-bigpowers/SKILL.md +2 -2
- package/.agents/skills/wire-ci/SKILL.md +11 -14
- package/.codebuddy/skills/craft-skill/SKILL.md +2 -2
- package/.codebuddy/skills/define-success/SKILL.md +6 -59
- package/.codebuddy/skills/deploy/SKILL.md +1 -1
- package/.codebuddy/skills/elaborate-spec/SKILL.md +1 -1
- package/.codebuddy/skills/harden-vps/SKILL.md +63 -60
- package/.codebuddy/skills/investigate-bug/SKILL.md +2 -2
- package/.codebuddy/skills/orchestrate-project/SKILL.md +1 -1
- package/.codebuddy/skills/plan-refactor/SKILL.md +2 -2
- package/.codebuddy/skills/plan-release/SKILL.md +2 -2
- package/.codebuddy/skills/plan-work/SKILL.md +1 -1
- package/.codebuddy/skills/using-bigpowers/SKILL.md +2 -2
- package/.codebuddy/skills/wire-ci/SKILL.md +11 -14
- package/.codex/skills/craft-skill/SKILL.md +2 -2
- package/.codex/skills/define-success/SKILL.md +6 -59
- package/.codex/skills/deploy/SKILL.md +1 -1
- package/.codex/skills/elaborate-spec/SKILL.md +1 -1
- package/.codex/skills/harden-vps/SKILL.md +63 -60
- package/.codex/skills/investigate-bug/SKILL.md +2 -2
- package/.codex/skills/orchestrate-project/SKILL.md +1 -1
- package/.codex/skills/plan-refactor/SKILL.md +2 -2
- package/.codex/skills/plan-release/SKILL.md +2 -2
- package/.codex/skills/plan-work/SKILL.md +1 -1
- package/.codex/skills/using-bigpowers/SKILL.md +2 -2
- package/.codex/skills/wire-ci/SKILL.md +11 -14
- package/.hermes/skills/craft-skill/SKILL.md +2 -2
- package/.hermes/skills/define-success/SKILL.md +6 -59
- package/.hermes/skills/deploy/SKILL.md +1 -1
- package/.hermes/skills/elaborate-spec/SKILL.md +1 -1
- package/.hermes/skills/harden-vps/SKILL.md +63 -60
- package/.hermes/skills/investigate-bug/SKILL.md +2 -2
- package/.hermes/skills/orchestrate-project/SKILL.md +1 -1
- package/.hermes/skills/plan-refactor/SKILL.md +2 -2
- package/.hermes/skills/plan-release/SKILL.md +2 -2
- package/.hermes/skills/plan-work/SKILL.md +1 -1
- package/.hermes/skills/using-bigpowers/SKILL.md +2 -2
- package/.hermes/skills/wire-ci/SKILL.md +11 -14
- package/.kilocode/rules/craft-skill.md +2 -2
- package/.kilocode/rules/define-success.md +6 -59
- package/.kilocode/rules/deploy.md +1 -1
- package/.kilocode/rules/elaborate-spec.md +1 -1
- package/.kilocode/rules/harden-vps.md +63 -60
- package/.kilocode/rules/investigate-bug.md +2 -2
- package/.kilocode/rules/orchestrate-project.md +1 -1
- package/.kilocode/rules/plan-refactor.md +2 -2
- package/.kilocode/rules/plan-release.md +2 -2
- package/.kilocode/rules/plan-work.md +1 -1
- package/.kilocode/rules/using-bigpowers.md +2 -2
- package/.kilocode/rules/wire-ci.md +11 -14
- package/.mimocode/skills/craft-skill/SKILL.md +2 -2
- package/.mimocode/skills/define-success/SKILL.md +6 -59
- package/.mimocode/skills/deploy/SKILL.md +1 -1
- package/.mimocode/skills/elaborate-spec/SKILL.md +1 -1
- package/.mimocode/skills/harden-vps/SKILL.md +63 -60
- package/.mimocode/skills/investigate-bug/SKILL.md +2 -2
- package/.mimocode/skills/orchestrate-project/SKILL.md +1 -1
- package/.mimocode/skills/plan-refactor/SKILL.md +2 -2
- package/.mimocode/skills/plan-release/SKILL.md +2 -2
- package/.mimocode/skills/plan-work/SKILL.md +1 -1
- package/.mimocode/skills/using-bigpowers/SKILL.md +2 -2
- package/.mimocode/skills/wire-ci/SKILL.md +11 -14
- package/.pi/package.json +1 -1
- package/.pi/prompts/craft-skill.md +2 -2
- package/.pi/prompts/define-success.md +5 -58
- package/.pi/prompts/deploy.md +1 -1
- package/.pi/prompts/elaborate-spec.md +1 -1
- package/.pi/prompts/harden-vps.md +63 -60
- package/.pi/prompts/investigate-bug.md +2 -2
- package/.pi/prompts/orchestrate-project.md +1 -1
- package/.pi/prompts/plan-refactor.md +2 -2
- package/.pi/prompts/plan-release.md +2 -2
- package/.pi/prompts/plan-work.md +1 -1
- package/.pi/prompts/using-bigpowers.md +2 -2
- package/.pi/prompts/wire-ci.md +11 -14
- package/.pi/skills/craft-skill/SKILL.md +2 -2
- package/.pi/skills/define-success/SKILL.md +6 -59
- package/.pi/skills/deploy/SKILL.md +1 -1
- package/.pi/skills/elaborate-spec/SKILL.md +1 -1
- package/.pi/skills/harden-vps/SKILL.md +63 -60
- package/.pi/skills/investigate-bug/SKILL.md +2 -2
- package/.pi/skills/orchestrate-project/SKILL.md +1 -1
- package/.pi/skills/plan-refactor/SKILL.md +2 -2
- package/.pi/skills/plan-release/SKILL.md +2 -2
- package/.pi/skills/plan-work/SKILL.md +1 -1
- package/.pi/skills/using-bigpowers/SKILL.md +2 -2
- package/.pi/skills/wire-ci/SKILL.md +11 -14
- package/.trae/skills/craft-skill/SKILL.md +2 -2
- package/.trae/skills/define-success/SKILL.md +6 -59
- package/.trae/skills/deploy/SKILL.md +1 -1
- package/.trae/skills/elaborate-spec/SKILL.md +1 -1
- package/.trae/skills/harden-vps/SKILL.md +63 -60
- package/.trae/skills/investigate-bug/SKILL.md +2 -2
- package/.trae/skills/orchestrate-project/SKILL.md +1 -1
- package/.trae/skills/plan-refactor/SKILL.md +2 -2
- package/.trae/skills/plan-release/SKILL.md +2 -2
- package/.trae/skills/plan-work/SKILL.md +1 -1
- package/.trae/skills/using-bigpowers/SKILL.md +2 -2
- package/.trae/skills/wire-ci/SKILL.md +11 -14
- package/.windsurf/rules/craft-skill.md +2 -2
- package/.windsurf/rules/define-success.md +6 -59
- package/.windsurf/rules/deploy.md +1 -1
- package/.windsurf/rules/elaborate-spec.md +1 -1
- package/.windsurf/rules/harden-vps.md +63 -60
- package/.windsurf/rules/investigate-bug.md +2 -2
- package/.windsurf/rules/orchestrate-project.md +1 -1
- package/.windsurf/rules/plan-refactor.md +2 -2
- package/.windsurf/rules/plan-release.md +2 -2
- package/.windsurf/rules/plan-work.md +1 -1
- package/.windsurf/rules/using-bigpowers.md +2 -2
- package/.windsurf/rules/wire-ci.md +11 -14
- package/.zcode/skills/craft-skill/SKILL.md +2 -2
- package/.zcode/skills/define-success/SKILL.md +6 -59
- package/.zcode/skills/deploy/SKILL.md +1 -1
- package/.zcode/skills/elaborate-spec/SKILL.md +1 -1
- package/.zcode/skills/harden-vps/SKILL.md +63 -60
- package/.zcode/skills/investigate-bug/SKILL.md +2 -2
- package/.zcode/skills/orchestrate-project/SKILL.md +1 -1
- package/.zcode/skills/plan-refactor/SKILL.md +2 -2
- package/.zcode/skills/plan-release/SKILL.md +2 -2
- package/.zcode/skills/plan-work/SKILL.md +1 -1
- package/.zcode/skills/using-bigpowers/SKILL.md +2 -2
- package/.zcode/skills/wire-ci/SKILL.md +11 -14
- package/CHANGELOG.md +7 -0
- package/SKILL-INDEX.md +2 -2
- package/package.json +1 -1
- package/scripts/check-skill-links.py +35 -0
- package/scripts/land-branch.sh +9 -3
- package/scripts/lib/__pycache__/link_utils.cpython-312.pyc +0 -0
- package/scripts/lib/__pycache__/srp_engine_links.cpython-312.pyc +0 -0
- package/scripts/lib/golden-suite-gates.sh +4 -0
- package/scripts/lib/target-contracts.sh +37 -1
- package/scripts/test-target-contracts.sh +73 -0
- package/scripts/tombstone-skill.sh +6 -0
- package/skills/craft-skill/SKILL.md +2 -2
- package/skills/define-success/SKILL.md +7 -61
- package/skills/deploy/SKILL.md +1 -1
- package/skills/elaborate-spec/SKILL.md +1 -1
- package/skills/harden-vps/REFERENCE.md +39 -36
- package/skills/harden-vps/SKILL.md +24 -24
- package/skills/investigate-bug/SKILL.md +2 -2
- package/skills/orchestrate-project/REFERENCE.md +1 -1
- package/skills/plan-refactor/SKILL.md +2 -2
- package/skills/plan-release/SKILL.md +2 -2
- package/skills/plan-work/SKILL.md +1 -1
- package/skills/security-review/fixtures/CWE-639-idor-negative.go +1 -1
- package/skills/security-review/fixtures/CWE-639-idor-positive.go +1 -1
- package/skills/using-bigpowers/SKILL.md +2 -2
- package/skills/wire-ci/REFERENCE.md +11 -14
- package/skills-lock.json +12 -12
- package/.fix_regex.sh +0 -16
- package/.hermes-verify-sed-fix.py +0 -53
- package/_test_e28s01.sh +0 -2
- package/audit-independent-unwaived-2026-07-06.md +0 -49
- package/hermes-verify-sed-fix.py +0 -30
- package/instructions +0 -1
- package/scripts/hermes-verify-e39s02.sh +0 -28
- package/test_figlet.py +0 -17
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: harden-vps
|
|
3
3
|
model: haiku
|
|
4
|
-
description: "Harden a production Linux VPS for
|
|
4
|
+
description: "Harden a production Linux VPS for your application across three layers — application (systemd hardening, monitoring alerts, backup automation), Ubuntu OS (UFW firewall, fail2ban SSH, unattended-upgrades, SSH hardening), and VPS provider (health checks, daily backups, monthly snapshots). Use when the user wants to secure a production server, harden a VPS, audit server security, or mentions production hardening, VPS security, or harden the server."
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# Harden VPS
|
|
8
8
|
|
|
9
|
-
Three-layer production hardening for
|
|
9
|
+
Three-layer production hardening for a self-hosted app on any VPS. Each layer independently verifiable. Apply OS first (firewall blocks attacks immediately), then your application (alerts + backups), then your VPS provider (snapshots). See [REFERENCE.md](REFERENCE.md) for full script bodies, systemd unit template, and gotchas.
|
|
10
10
|
|
|
11
11
|
## Quick start
|
|
12
12
|
|
|
13
|
-
SSH as root into the VPS. Find credentials in the
|
|
13
|
+
SSH as root into the VPS. Find credentials in the your VPS provider Customer Control Panel.
|
|
14
14
|
|
|
15
15
|
> **HARD GATE** — Run `ufw status` first. No firewall = layer 1 takes priority over everything.
|
|
16
16
|
|
|
@@ -35,21 +35,21 @@ apt install -y unattended-upgrades && dpkg-reconfigure -plow unattended-upgrades
|
|
|
35
35
|
# SSH: PermitRootLogin no, PasswordAuthentication no, PubkeyAuthentication yes
|
|
36
36
|
# → verify: sshd -T | grep -E 'permitrootlogin no|passwordauthentication no'
|
|
37
37
|
|
|
38
|
-
# Deploy healthcheck.sh → /opt/
|
|
39
|
-
# Crontab: */5 * * * * /opt/
|
|
38
|
+
# Deploy healthcheck.sh → /opt/your-app/scripts/healthcheck.sh
|
|
39
|
+
# Crontab: */5 * * * * /opt/your-app/scripts/healthcheck.sh
|
|
40
40
|
```
|
|
41
41
|
|
|
42
|
-
## Layer 2 —
|
|
42
|
+
## Layer 2 — applicationlication
|
|
43
43
|
|
|
44
44
|
```bash
|
|
45
|
-
# systemd: User=
|
|
45
|
+
# systemd: User=your-app, NoNewPrivileges=yes, ProtectSystem=full,
|
|
46
46
|
# ProtectKernelTunables=yes, ProtectKernelModules=yes,
|
|
47
47
|
# ProtectControlGroups=yes, RestrictAddressFamilies=AF_INET AF_INET6,
|
|
48
48
|
# RestrictRealtime=yes, PrivateTmp=yes, LimitNOFILE=65536
|
|
49
|
-
# → verify: systemctl show
|
|
49
|
+
# → verify: systemctl show your-app -p NoNewPrivileges -p ProtectSystem -p User
|
|
50
50
|
|
|
51
|
-
# Alerts (
|
|
52
|
-
sqlite3 /opt/
|
|
51
|
+
# Alerts (your application requires auth; insert via SQLite)
|
|
52
|
+
sqlite3 /opt/your-app/data/your-app.db "
|
|
53
53
|
INSERT INTO monitoring_alerts (id,name,metric,threshold,operator,enabled,duration_seconds)
|
|
54
54
|
VALUES ('a1','Disk >80%','disk_used_percent',80,'gt',1,300);
|
|
55
55
|
INSERT INTO monitoring_alerts (id,name,metric,threshold,operator,enabled,duration_seconds)
|
|
@@ -57,14 +57,14 @@ VALUES ('a2','CPU >90%','cpu_percent',90,'gt',1,60);
|
|
|
57
57
|
INSERT INTO monitoring_alerts (id,name,metric,threshold,operator,enabled,duration_seconds)
|
|
58
58
|
VALUES ('a3','RAM >85%','mem_used_percent',85,'gt',1,120);
|
|
59
59
|
"
|
|
60
|
-
systemctl restart
|
|
60
|
+
systemctl restart your-app
|
|
61
61
|
|
|
62
62
|
# Backup crontab (root):
|
|
63
|
-
# 0 2 * * * cp /opt/
|
|
64
|
-
# 0 3 * * * find /backup/ -name "
|
|
63
|
+
# 0 2 * * * cp /opt/your-app/data/your-app.db /backup/your-app-$(date +\%Y\%m\%d).db
|
|
64
|
+
# 0 3 * * * find /backup/ -name "your-app-*.db" -mtime +90 -delete
|
|
65
65
|
```
|
|
66
66
|
|
|
67
|
-
## Layer 3 —
|
|
67
|
+
## Layer 3 — VPS provider
|
|
68
68
|
|
|
69
69
|
```bash
|
|
70
70
|
# cntb CLI
|
|
@@ -72,14 +72,14 @@ curl -sL "$(curl -sL https://api.github.com/repos/contabo/cntb/releases/latest \
|
|
|
72
72
|
| grep browser_download_url.*linux_amd64.tar.gz | head -1 | cut -d'"' -f4)" \
|
|
73
73
|
| tar xz -C /usr/local/bin
|
|
74
74
|
|
|
75
|
-
# Snapshot script → /opt/
|
|
76
|
-
# Credentials as env vars in /opt/
|
|
75
|
+
# Snapshot script → /opt/your-app/scripts/contabo-snapshot.sh (reads from /opt/your-app/.env)
|
|
76
|
+
# Credentials as env vars in /opt/your-app/.env (deployed by GitHub Actions):
|
|
77
77
|
# CONTABO_CLIENT_ID, CONTABO_CLIENT_SECRET, CONTABO_API_USER, CONTABO_API_PASSWORD
|
|
78
|
-
# Crontab: 0 4 1 * * /opt/
|
|
78
|
+
# Crontab: 0 4 1 * * /opt/your-app/scripts/contabo-snapshot.sh
|
|
79
79
|
|
|
80
80
|
# > HARD GATE — Snapshot cron silently fails until env vars are set in .env.
|
|
81
|
-
# Credentials source:
|
|
82
|
-
# Local dev: add to .envrc. Production: GitHub Secrets → deploy → /opt/
|
|
81
|
+
# Credentials source: your VPS provider Customer Panel → API Details.
|
|
82
|
+
# Local dev: add to .envrc. Production: GitHub Secrets → deploy → /opt/your-app/.env
|
|
83
83
|
```
|
|
84
84
|
|
|
85
85
|
## CRITICAL GOTCHAS
|
|
@@ -87,7 +87,7 @@ curl -sL "$(curl -sL https://api.github.com/repos/contabo/cntb/releases/latest \
|
|
|
87
87
|
1. **Shell escaping in Orca terminals:** `$VAR`, `$(…)`, and `%` get eaten by the local shell. Always use base64: `echo '<base64>' | base64 -d > script.sh`
|
|
88
88
|
2. **Crontab `%`:** cron interprets `%` as newline. Escape as `\%` in `$(date +\%Y\%m\%d)`
|
|
89
89
|
3. **fail2ban exit 255:** means a jail references a missing log file. Remove the broken jail, restart.
|
|
90
|
-
4. **
|
|
90
|
+
4. **your application alerts need auth:** POST to `/api/monitoring/alerts` requires Bearer token. Workaround: insert directly into SQLite, then restart your application.
|
|
91
91
|
|
|
92
92
|
## Verify all 8 gates
|
|
93
93
|
|
|
@@ -96,10 +96,10 @@ ufw status|grep -q active||echo FAIL:ufw
|
|
|
96
96
|
fail2ban-client status sshd>/dev/null 2>&1||echo FAIL:fail2ban
|
|
97
97
|
systemctl is-active unattended-upgrades|grep -q active||echo FAIL:unattended
|
|
98
98
|
sshd -T|grep -q 'permitrootlogin no'||echo FAIL:sshd
|
|
99
|
-
systemctl show
|
|
100
|
-
systemctl is-active
|
|
101
|
-
sqlite3 /opt/
|
|
102
|
-
crontab -l|grep -q healthcheck&&crontab -l|grep -q
|
|
99
|
+
systemctl show your-app -p NoNewPrivileges|grep -q yes||echo FAIL:systemd
|
|
100
|
+
systemctl is-active your-app|grep -q active||echo FAIL:your-app
|
|
101
|
+
sqlite3 /opt/your-app/data/your-app.db "SELECT count(*) FROM monitoring_alerts"|grep -q 3||echo FAIL:alerts
|
|
102
|
+
crontab -l|grep -q healthcheck&&crontab -l|grep -q your-app.db&&crontab -l|grep -q contabo-snapshot||echo FAIL:crontab
|
|
103
103
|
echo ALL 8 GATES PASSED
|
|
104
104
|
```
|
|
105
105
|
|
|
@@ -111,47 +111,47 @@ echo ALL 8 GATES PASSED
|
|
|
111
111
|
|
|
112
112
|
## Health check script
|
|
113
113
|
|
|
114
|
-
Deploy to `/opt/
|
|
114
|
+
Deploy to `/opt/your-app/scripts/healthcheck.sh`:
|
|
115
115
|
|
|
116
116
|
```bash
|
|
117
117
|
#!/bin/bash
|
|
118
|
-
LOG=/var/log/
|
|
119
|
-
mkdir -p /var/log/
|
|
118
|
+
LOG=/var/log/your-app/health.log
|
|
119
|
+
mkdir -p /var/log/your-app
|
|
120
120
|
DISK=$(df / | awk 'NR==2 {print $5}' | tr -d '%')
|
|
121
121
|
RAM=$(free | awk '/Mem:/ {printf "%.0f", $3/$2*100}')
|
|
122
122
|
NOW=$(date -Iseconds)
|
|
123
123
|
[ "$DISK" -gt 85 ] && echo "$NOW ALERT: Disk ${DISK}%" >> "$LOG"
|
|
124
124
|
[ "$RAM" -gt 90 ] && echo "$NOW ALERT: RAM ${RAM}%" >> "$LOG"
|
|
125
|
-
systemctl is-active --quiet
|
|
125
|
+
systemctl is-active --quiet your-app || { echo "$NOW ALERT: your application DOWN" >> "$LOG"; systemctl restart your-app; }
|
|
126
126
|
[ -f /var/run/reboot-required ] && echo "$NOW WARN: kernel reboot pending" >> "$LOG"
|
|
127
127
|
```
|
|
128
128
|
|
|
129
|
-
Make executable: `chmod +x /opt/
|
|
129
|
+
Make executable: `chmod +x /opt/your-app/scripts/healthcheck.sh`
|
|
130
130
|
|
|
131
|
-
##
|
|
131
|
+
## your application systemd unit
|
|
132
132
|
|
|
133
|
-
Full hardened unit at `/etc/systemd/system/
|
|
133
|
+
Full hardened unit at `/etc/systemd/system/your-app.service`:
|
|
134
134
|
|
|
135
135
|
```ini
|
|
136
136
|
[Unit]
|
|
137
|
-
Description=
|
|
138
|
-
Documentation=https://github.com/
|
|
137
|
+
Description=your application BaaS Platform
|
|
138
|
+
Documentation=https://github.com/example-org/example-app
|
|
139
139
|
After=network.target caddy.service
|
|
140
140
|
Wants=caddy.service
|
|
141
141
|
|
|
142
142
|
[Service]
|
|
143
143
|
Type=simple
|
|
144
|
-
User=
|
|
145
|
-
Group=
|
|
146
|
-
WorkingDirectory=/opt/
|
|
147
|
-
ExecStart=/opt/
|
|
144
|
+
User=your-app
|
|
145
|
+
Group=your-app
|
|
146
|
+
WorkingDirectory=/opt/your-app
|
|
147
|
+
ExecStart=/opt/your-app/bin/your-app serve \
|
|
148
148
|
--port 8080 \
|
|
149
|
-
--db /opt/
|
|
149
|
+
--db /opt/your-app/data/your-app.db \
|
|
150
150
|
--sites-domain <your-domain.example.com>
|
|
151
|
-
EnvironmentFile=-/opt/
|
|
152
|
-
Environment=
|
|
153
|
-
Environment=HOME=/opt/
|
|
154
|
-
Environment=NPM_CONFIG_CACHE=/opt/
|
|
151
|
+
EnvironmentFile=-/opt/your-app/.env
|
|
152
|
+
Environment=APP_HOME=/opt/your-app
|
|
153
|
+
Environment=HOME=/opt/your-app
|
|
154
|
+
Environment=NPM_CONFIG_CACHE=/opt/your-app/.npm
|
|
155
155
|
Environment=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
|
156
156
|
Restart=always
|
|
157
157
|
RestartSec=5
|
|
@@ -168,11 +168,11 @@ ProtectKernelModules=yes
|
|
|
168
168
|
ProtectControlGroups=yes
|
|
169
169
|
RestrictAddressFamilies=AF_INET AF_INET6
|
|
170
170
|
RestrictRealtime=yes
|
|
171
|
-
ReadWritePaths=/opt/
|
|
172
|
-
ReadWritePaths=/opt/
|
|
173
|
-
ReadWritePaths=/opt/
|
|
174
|
-
ReadWritePaths=/opt/
|
|
175
|
-
ReadWritePaths=/opt/
|
|
171
|
+
ReadWritePaths=/opt/your-app/data
|
|
172
|
+
ReadWritePaths=/opt/your-app/backups
|
|
173
|
+
ReadWritePaths=/opt/your-app/secrets
|
|
174
|
+
ReadWritePaths=/opt/your-app/.npm
|
|
175
|
+
ReadWritePaths=/opt/your-app/logs
|
|
176
176
|
LimitNOFILE=65536
|
|
177
177
|
|
|
178
178
|
[Install]
|
|
@@ -192,17 +192,20 @@ bantime = 3600
|
|
|
192
192
|
findtime = 600
|
|
193
193
|
```
|
|
194
194
|
|
|
195
|
-
Note:
|
|
195
|
+
Note: your application auth jail deferred — your application logs to journald, not a file. To enable, use `backend = systemd` with a journald filter.
|
|
196
196
|
|
|
197
|
-
##
|
|
197
|
+
## provider-snapshot.sh — worked example (Contabo API)
|
|
198
198
|
|
|
199
|
-
|
|
199
|
+
> Snapshot APIs are provider-specific. This is one worked example, not a
|
|
200
|
+
> bigpowers default; swap the auth and endpoint calls for your own provider.
|
|
201
|
+
|
|
202
|
+
Deploy to `/opt/your-app/scripts/contabo-snapshot.sh`. Reads credentials from `/opt/your-app/.env` (same file used by your application systemd unit):
|
|
200
203
|
|
|
201
204
|
```bash
|
|
202
205
|
#!/bin/bash
|
|
203
206
|
set -e
|
|
204
|
-
LOG=/var/log/
|
|
205
|
-
ENVFILE=/opt/
|
|
207
|
+
LOG=/var/log/your-app/snapshot.log
|
|
208
|
+
ENVFILE=/opt/your-app/.env
|
|
206
209
|
INSTANCE_ID=<your-contabo-instance-id>
|
|
207
210
|
|
|
208
211
|
[ -f "$ENVFILE" ] || { echo "$(date -Iseconds) ERROR: $ENVFILE missing" >> "$LOG"; exit 1; }
|
|
@@ -231,9 +234,9 @@ echo >> "$LOG"
|
|
|
231
234
|
echo "$(date -Iseconds) Snapshot requested for $INSTANCE_ID" >> "$LOG"
|
|
232
235
|
```
|
|
233
236
|
|
|
234
|
-
##
|
|
237
|
+
## your VPS provider credentials
|
|
235
238
|
|
|
236
|
-
Add to `/opt/
|
|
239
|
+
Add to `/opt/your-app/.env` (same file used by your application systemd unit, deployed by GitHub Actions):
|
|
237
240
|
|
|
238
241
|
```
|
|
239
242
|
CONTABO_CLIENT_ID=
|
|
@@ -242,13 +245,13 @@ CONTABO_API_USER=
|
|
|
242
245
|
CONTABO_API_PASSWORD=
|
|
243
246
|
```
|
|
244
247
|
|
|
245
|
-
Source:
|
|
248
|
+
Source: your VPS provider Customer Control Panel → API Details. ClientId and ClientSecret are generated there. API User is your email. API Password is set separately in the panel.
|
|
246
249
|
|
|
247
|
-
**Pipeline:** GitHub Secrets → deploy workflow → `/opt/
|
|
250
|
+
**Pipeline:** GitHub Secrets → deploy workflow → `/opt/your-app/.env` on VPS. For local dev (`cntb get instances`), add to `.envrc`.
|
|
248
251
|
|
|
249
|
-
##
|
|
252
|
+
## your VPS provider instance info template
|
|
250
253
|
|
|
251
|
-
Fill in your instance details from the
|
|
254
|
+
Fill in your instance details from the your VPS provider Customer Control Panel:
|
|
252
255
|
|
|
253
256
|
```
|
|
254
257
|
IP: <your-instance-ip>
|
|
@@ -260,7 +263,7 @@ Default user: root
|
|
|
260
263
|
Customer ID: <your-customer-id>
|
|
261
264
|
```
|
|
262
265
|
|
|
263
|
-
##
|
|
266
|
+
## your application monitoring alert SQL
|
|
264
267
|
|
|
265
268
|
```sql
|
|
266
269
|
INSERT INTO monitoring_alerts (id, name, metric, threshold, operator, enabled, duration_seconds)
|
|
@@ -273,7 +276,7 @@ INSERT INTO monitoring_alerts (id, name, metric, threshold, operator, enabled, d
|
|
|
273
276
|
VALUES ('alert-003', 'VPS RAM above 85%', 'mem_used_percent', 85, 'gt', 1, 120);
|
|
274
277
|
```
|
|
275
278
|
|
|
276
|
-
Alerts are loaded at
|
|
279
|
+
Alerts are loaded at your application startup. Restart with `systemctl restart your-app` after inserting.
|
|
277
280
|
|
|
278
281
|
## Base64 encoding workaround
|
|
279
282
|
|
|
@@ -123,5 +123,5 @@ After writing the bug file, print a one-line summary of the root cause and sugge
|
|
|
123
123
|
|
|
124
124
|
<!-- story: e35s10 -->
|
|
125
125
|
|
|
126
|
-
- [Feathers' Seams & Characterization Tests](
|
|
127
|
-
- [Fowler's Code Smells](
|
|
126
|
+
- [Feathers' Seams & Characterization Tests](../../docs/references/feathers.md) — seam types, characterization tests, and the legacy code change algorithm
|
|
127
|
+
- [Fowler's Code Smells](../../docs/references/fowler.md) — identifying structural problems by smell before investigating
|
|
@@ -94,7 +94,7 @@ Detailed documentation for the `orchestrate-project` meta-skill.
|
|
|
94
94
|
### PHASE 3: PLAN
|
|
95
95
|
- **Goal**: Write a verifiable implementation plan with success criteria.
|
|
96
96
|
- **Deliverables**: `release-plan.yaml`, `epics/eNN-*.yaml` with `verify:` per task.
|
|
97
|
-
- **Skills**: `scope-work`, `slice-tasks`, `
|
|
97
|
+
- **Skills**: `scope-work`, `slice-tasks`, `plan-work`.
|
|
98
98
|
- **Gate**: Quality (request-review ≥94%) + slopcheck [SUS]/[SLOP].
|
|
99
99
|
|
|
100
100
|
### PHASE 4: BUILD
|
|
@@ -81,7 +81,7 @@ After writing `specs/REFACTOR_LATEST.md`, suggest running `kickoff-branch` next
|
|
|
81
81
|
|
|
82
82
|
<!-- story: e35s10 -->
|
|
83
83
|
|
|
84
|
-
- [Fowler's Refactoring Catalog](
|
|
85
|
-
- [Beck's Tidy First?](
|
|
84
|
+
- [Fowler's Refactoring Catalog](../../docs/references/fowler.md) — canonical refactoring vocabulary and code-smell taxonomy
|
|
85
|
+
- [Beck's Tidy First?](../../docs/references/kent-beck.md) — structural change before behavioral change
|
|
86
86
|
|
|
87
87
|
## Verify
|
|
@@ -17,7 +17,7 @@ Synthesize the conversation context into `specs/release-plan.yaml` (index) and s
|
|
|
17
17
|
|------|---------|
|
|
18
18
|
| `specs/release-plan.yaml` | `release.version`, semver bump hint, WSJF-ordered epic list with `id`, `capsule_dir`, `wsjf`, `bcps` — **no story status** |
|
|
19
19
|
| `specs/epics/eNN-<slug>/epic.yaml` | Epic manifest: `id`, `title`, `wsjf`, `total_bcps`, `status`, `stories[]` list |
|
|
20
|
-
| `specs/epics/eNN-<slug>/eNNsYY-<slug>.md` | Story spec in [countable-story-format.md](
|
|
20
|
+
| `specs/epics/eNN-<slug>/eNNsYY-<slug>.md` | Story spec in [countable-story-format.md](../../docs/countable-story-format.md) with 20 sections and Gherkin acceptance criteria |
|
|
21
21
|
| `specs/epics/eNN-<slug>/eNNsYY-tasks.yaml` | Decoupled task checklist with `verify:` commands per task |
|
|
22
22
|
| `specs/execution-status.yaml` | Flat key-value store for story status (`eNNsYY: todo`) |
|
|
23
23
|
|
|
@@ -102,7 +102,7 @@ stories:
|
|
|
102
102
|
```
|
|
103
103
|
### 6. Save story specs (countable-story-format .md)
|
|
104
104
|
|
|
105
|
-
Each story becomes a standalone `.md` file following [countable-story-format.md](
|
|
105
|
+
Each story becomes a standalone `.md` file following [countable-story-format.md](../../docs/countable-story-format.md). Minimum: maturity 3 (Countable) with all 20 sections present. Acceptance criteria in §17 use Gherkin scenarios.
|
|
106
106
|
### 7. Save decoupled task files (`-tasks.yaml`)
|
|
107
107
|
|
|
108
108
|
Each story has a decoupled `-tasks.yaml` with implementation steps:
|
|
@@ -12,7 +12,7 @@ description: "PLANNING SPINE STEP 3 of 3 — Plan the work: write detailed imple
|
|
|
12
12
|
|
|
13
13
|
Produce a detailed, verifiable implementation plan in the **active epic capsule directory** (`specs/epics/eNN-slug/`). Output: a story spec `.md` file (countable-story-format) and a decoupled `eNNsYY-tasks.yaml` with runnable verify commands. "I think it works" is not a step.
|
|
14
14
|
|
|
15
|
-
> **HARD GATE** — Do NOT proceed with a plan until the task's success criteria are clear. If success is ambiguous,
|
|
15
|
+
> **HARD GATE** — Do NOT proceed with a plan until the task's success criteria are clear. If success is ambiguous, convert the task into "step → verify: `<cmd>`" pairs here before writing tasks — every task ships a runnable `verify:` or the plan is not done.
|
|
16
16
|
>
|
|
17
17
|
> **RECURSIVE DISCIPLINE** — This lifecycle applies to EVERY task, including updating these skills. Never skip planning because a task is "meta" or "just documentation."
|
|
18
18
|
|
|
@@ -8,7 +8,7 @@ description: "One-time bootstrap that introduces the bigpowers skills system, th
|
|
|
8
8
|
> **HARD GATE** — **HARD GATE** — This skill is the entry point. Do NOT skip it when onboarding new users or starting a new session. It establishes the bigpowers methodology, lifecycle phases, and conventions.
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
Welcome to **bigpowers** — a lifecycle of
|
|
11
|
+
Welcome to **bigpowers** — a lifecycle of agent skills for production-ready, TDD-driven software by solo developers. The live catalog and its count are generated in [`SKILL-INDEX.md`](../../SKILL-INDEX.md); never hardcode the number here.
|
|
12
12
|
|
|
13
13
|
## Install
|
|
14
14
|
|
|
@@ -37,7 +37,7 @@ DISCOVER survey-context → research-first → elaborate-spec
|
|
|
37
37
|
↓
|
|
38
38
|
DESIGN model-domain / define-language / grill-me / deepen-architecture / design-interface
|
|
39
39
|
↓
|
|
40
|
-
PLAN scope-work → slice-tasks →
|
|
40
|
+
PLAN scope-work → slice-tasks → plan-work / plan-refactor
|
|
41
41
|
↓
|
|
42
42
|
INITIATE kickoff-branch → guard-git / hook-commits / seed-conventions
|
|
43
43
|
↓
|
|
@@ -258,7 +258,7 @@ jobs:
|
|
|
258
258
|
|
|
259
259
|
---
|
|
260
260
|
|
|
261
|
-
## Reference block 2 — deploy.yml (
|
|
261
|
+
## Reference block 2 — deploy.yml (generic web app, excerpt)
|
|
262
262
|
|
|
263
263
|
```yaml
|
|
264
264
|
name: Deploy
|
|
@@ -276,7 +276,7 @@ concurrency:
|
|
|
276
276
|
cancel-in-progress: false
|
|
277
277
|
|
|
278
278
|
env:
|
|
279
|
-
SITE_URL: "https://CHANGE-ME.
|
|
279
|
+
SITE_URL: "https://CHANGE-ME.example.com"
|
|
280
280
|
|
|
281
281
|
jobs:
|
|
282
282
|
deploy:
|
|
@@ -292,18 +292,15 @@ jobs:
|
|
|
292
292
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
293
293
|
run-id: ${{ github.event.workflow_run.id }}
|
|
294
294
|
path: deploy-meta
|
|
295
|
-
#
|
|
296
|
-
#
|
|
297
|
-
#
|
|
298
|
-
#
|
|
299
|
-
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
deploy_token: ${{ secrets.BIGBASE_DEPLOY_TOKEN }}
|
|
305
|
-
ref: ${{ steps.meta.outputs.ref }}
|
|
306
|
-
skip_health_check: true
|
|
295
|
+
# Placeholder deploy step — bigpowers ships no deploy templates and pins
|
|
296
|
+
# no third-party action. Substitute your platform's own step here, or drop
|
|
297
|
+
# the deploy job entirely for CLI and library repos. Pin whatever action
|
|
298
|
+
# you choose to a full commit SHA rather than a tag. (GH #104)
|
|
299
|
+
- name: Deploy
|
|
300
|
+
run: |
|
|
301
|
+
echo "Replace this step with your platform's deploy command."
|
|
302
|
+
echo "commit=$(jq -r .sha deploy-meta/deploy-meta.json)"
|
|
303
|
+
exit 1
|
|
307
304
|
- name: Health check
|
|
308
305
|
run: |
|
|
309
306
|
curl -sf "${{ env.SITE_URL }}" || exit 1
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [2.86.5](https://github.com/danielvm-git/bigpowers/compare/v2.86.4...v2.86.5) (2026-07-26)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **gates:** close audit gaps in CI triggers, contracts and catalog ([11b03e1](https://github.com/danielvm-git/bigpowers/commit/11b03e17669c199a5fd6107d703c1572138d08c1))
|
|
7
|
+
|
|
1
8
|
## [2.86.4](https://github.com/danielvm-git/bigpowers/compare/v2.86.3...v2.86.4) (2026-07-26)
|
|
2
9
|
|
|
3
10
|
|
package/SKILL-INDEX.md
CHANGED
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
| 8 | Discover | `using-bigpowers` | One-time bootstrap that introduces the bigpowers skills system, the PMBOK lifecy | ✅ Active |
|
|
37
37
|
| 9 | Design | `deepen-architecture` | Find deepening opportunities in a codebase, informed by the domain language in s | ✅ Active |
|
|
38
38
|
| 10 | Design | `define-language` | Extract a DDD-style ubiquitous language glossary from the current conversation, | ✅ Active |
|
|
39
|
-
| 11 | Design | `define-success` |
|
|
39
|
+
| 11 | Design | `define-success` | "TOMBSTONE — renamed/merged to plan-work. This stub resolves for one release t | ✅ Active |
|
|
40
40
|
| 12 | Design | `design-interface` | Generate multiple radically different interface designs for a module using paral | ✅ Active |
|
|
41
41
|
| 13 | Design | `grill-me` | Interactive assumption-surfacing Q&A that stress-tests a plan through relentless | ✅ Active |
|
|
42
42
|
| 14 | Design | `grill-with-docs` | Doc-grounded variant of grill-me — stress-tests plan assumptions by fetching a | ✅ Active |
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
| 66 | Sustain | `dispatch-agents` | Dispatch multiple subagents in parallel on independent tasks. No waiting between | ✅ Active |
|
|
95
95
|
| 67 | Sustain | `edit-document` | Edit and improve documents by restructuring sections, improving clarity, and tig | ✅ Active |
|
|
96
96
|
| 68 | Sustain | `evolve-skill` | Benchmark-gated skill evolution — consume bigpowers-benchmark report, propose | ✅ Active |
|
|
97
|
-
| 69 | Sustain | `harden-vps` | "Harden a production Linux VPS for
|
|
97
|
+
| 69 | Sustain | `harden-vps` | "Harden a production Linux VPS for your application across three layers — appl | ✅ Active |
|
|
98
98
|
| 70 | Sustain | `maintain-wiki` | "Agent-maintained OKF wiki — INGEST source docs, LINT for issues, QUERY across | ✅ Active |
|
|
99
99
|
| 71 | Sustain | `migrate-spec` | Detect GSD, spec-kit, or BMAD spec artifacts and transform them into bigpowers Y | ✅ Active |
|
|
100
100
|
| 72 | Sustain | `organize-workspace` | Scans the active workspace for disposable artifacts—logs, caches, stale build | ✅ Active |
|
package/package.json
CHANGED
|
@@ -53,12 +53,47 @@ def check_file_links(smd: str, root: str) -> list[str]:
|
|
|
53
53
|
return problems
|
|
54
54
|
|
|
55
55
|
|
|
56
|
+
def check_machine_paths(path: str, root: str) -> list[str]:
|
|
57
|
+
"""Machine-absolute path scan for non-Markdown sources (scripts, hooks)."""
|
|
58
|
+
rel = os.path.relpath(path, root)
|
|
59
|
+
problems = []
|
|
60
|
+
try:
|
|
61
|
+
with open(path, encoding="utf-8") as f:
|
|
62
|
+
text = f.read()
|
|
63
|
+
except (UnicodeDecodeError, OSError):
|
|
64
|
+
return problems
|
|
65
|
+
for i, line in enumerate(text.splitlines(), 1):
|
|
66
|
+
stripped = line.strip()
|
|
67
|
+
# The pattern definition in lib/link_utils.py names these prefixes; a
|
|
68
|
+
# regex describing them is not itself a violation.
|
|
69
|
+
if "MACHINE_PATH_RE" in line or stripped.startswith("#"):
|
|
70
|
+
continue
|
|
71
|
+
if MACHINE_PATH_RE.search(line):
|
|
72
|
+
problems.append(
|
|
73
|
+
f"{rel}:{i}: machine-absolute path: {stripped[:100]}"
|
|
74
|
+
)
|
|
75
|
+
return problems
|
|
76
|
+
|
|
77
|
+
|
|
56
78
|
def check(root: str) -> list[str]:
|
|
57
79
|
problems = []
|
|
58
80
|
for tree in ("skills", os.path.join(".pi", "skills")):
|
|
59
81
|
pattern = os.path.join(root, tree, "*", "SKILL.md")
|
|
60
82
|
for smd in sorted(glob.glob(pattern)):
|
|
61
83
|
problems.extend(check_file_links(smd, root))
|
|
84
|
+
|
|
85
|
+
# scripts/ was previously unscanned, which let a hardcoded
|
|
86
|
+
# /Users/<name>/Developer/... path ship in scripts/hermes-verify-e39s02.sh
|
|
87
|
+
# while this gate reported OK.
|
|
88
|
+
for pattern in (
|
|
89
|
+
"scripts/*.sh",
|
|
90
|
+
"scripts/lib/*.sh",
|
|
91
|
+
"scripts/adapters/*.sh",
|
|
92
|
+
"*.sh",
|
|
93
|
+
"*.py",
|
|
94
|
+
):
|
|
95
|
+
for src in sorted(glob.glob(os.path.join(root, pattern))):
|
|
96
|
+
problems.extend(check_machine_paths(src, root))
|
|
62
97
|
return problems
|
|
63
98
|
|
|
64
99
|
|
package/scripts/land-branch.sh
CHANGED
|
@@ -36,12 +36,18 @@ COMMIT_MSG="${ARGS[1]:-}"
|
|
|
36
36
|
|
|
37
37
|
[ -n "$FEATURE_BRANCH" ] && [ -n "$COMMIT_MSG" ] || usage_land
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
# Both checks below judge the subject line, not the whole message. The length
|
|
40
|
+
# test used to read ${#COMMIT_MSG}, so any Conventional Commit carrying a body
|
|
41
|
+
# was rejected no matter how short its subject — the error text said "subject
|
|
42
|
+
# line" while the check measured the entire string.
|
|
43
|
+
COMMIT_SUBJECT="${COMMIT_MSG%%$'\n'*}"
|
|
44
|
+
|
|
45
|
+
if [[ ! "$COMMIT_SUBJECT" =~ $CONVENTIONAL_REGEX ]]; then
|
|
40
46
|
land_branch_deny "Commit message must follow Conventional Commits: <type>(<scope>): <subject>"
|
|
41
47
|
fi
|
|
42
48
|
|
|
43
|
-
if [ ${#
|
|
44
|
-
land_branch_deny "Commit subject line must be 72 characters or less"
|
|
49
|
+
if [ ${#COMMIT_SUBJECT} -gt 72 ]; then
|
|
50
|
+
land_branch_deny "Commit subject line must be 72 characters or less (got ${#COMMIT_SUBJECT})"
|
|
45
51
|
fi
|
|
46
52
|
|
|
47
53
|
# Block AI agent attribution (P1 — CONVENTIONS.md § Git Attribution)
|
|
Binary file
|
|
Binary file
|
|
@@ -19,6 +19,10 @@ GOLDEN_GATES=(
|
|
|
19
19
|
# first so a vacuous gate is caught before its verdict is trusted.
|
|
20
20
|
"g12-status-selftest:bash scripts/golden-g12-status-consistency.sh --self-test:false"
|
|
21
21
|
"g12-status-consistency:bash scripts/golden-g12-status-consistency.sh:false"
|
|
22
|
+
# Anti-vacuity for the target-contract seam: every contract declared in
|
|
23
|
+
# targets.yaml must have a real assertion, and an unknown contract must FAIL
|
|
24
|
+
# rather than SKIP+exit 0 (seven contracts were fail-open before this).
|
|
25
|
+
"target-contracts:bash scripts/test-target-contracts.sh:false"
|
|
22
26
|
"install-helpers:bash scripts/test-install-helpers.sh:false"
|
|
23
27
|
"import-boundaries:bash scripts/check-import-boundaries.sh:false"
|
|
24
28
|
"skill-catalog:bash scripts/validate-skill-catalog.sh:false"
|
|
@@ -82,6 +82,33 @@ assert_agy_skills_nonempty() {
|
|
|
82
82
|
return 1
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
+
# Generic hooks-manifest assertion for every target that ships one under
|
|
86
|
+
# scripts/hooks/<target>/. Before this existed, cline/codebuddy/codex/kilocode/
|
|
87
|
+
# qwen/trae/windsurf all declared <target>_hooks_manifest in targets.yaml and
|
|
88
|
+
# every one of them fell through run_contract's default branch to SKIP + exit 0
|
|
89
|
+
# — seven declared contracts that could never fail.
|
|
90
|
+
assert_hooks_manifest() {
|
|
91
|
+
local id="$1"
|
|
92
|
+
local contract="$2"
|
|
93
|
+
local target="${contract%_hooks_manifest}"
|
|
94
|
+
local manifest="scripts/hooks/${target}/hooks-manifest.json"
|
|
95
|
+
|
|
96
|
+
if [[ ! -f "$manifest" ]]; then
|
|
97
|
+
echo "FAIL $id:$contract — $manifest missing"
|
|
98
|
+
return 1
|
|
99
|
+
fi
|
|
100
|
+
# verify-install.sh sources this file without lib/python-env.sh, so resolve an
|
|
101
|
+
# interpreter locally rather than relying on $PYTHON being set.
|
|
102
|
+
local py="${PYTHON:-}"
|
|
103
|
+
[[ -n "$py" ]] || py="$(command -v python3 || command -v python || true)"
|
|
104
|
+
if [[ -n "$py" ]] && ! "$py" -c "import json; json.load(open('$manifest'))" 2>/dev/null; then
|
|
105
|
+
echo "FAIL $id:$contract — $manifest is not valid JSON"
|
|
106
|
+
return 1
|
|
107
|
+
fi
|
|
108
|
+
echo "PASS $id:$contract"
|
|
109
|
+
return 0
|
|
110
|
+
}
|
|
111
|
+
|
|
85
112
|
run_contract() {
|
|
86
113
|
local id="$1"
|
|
87
114
|
local contract="$2"
|
|
@@ -90,10 +117,19 @@ run_contract() {
|
|
|
90
117
|
symlink_claude_md) assert_symlink_claude_md "$id" ;;
|
|
91
118
|
cursor_rules_nonempty) assert_cursor_rules_nonempty "$id" ;;
|
|
92
119
|
gemini_ext_exists) assert_gemini_ext_exists "$id" ;;
|
|
120
|
+
# gemini has its own adapter-level validator; keep it ahead of the generic
|
|
121
|
+
# pattern below so the more specific check wins.
|
|
93
122
|
gemini_hooks_manifest) assert_gemini_hooks_manifest "$id" ;;
|
|
123
|
+
*_hooks_manifest) assert_hooks_manifest "$id" "$contract" ;;
|
|
94
124
|
pi_skills_nonempty) assert_pi_skills_nonempty "$id" ;;
|
|
95
125
|
agy_skills_nonempty) assert_agy_skills_nonempty "$id" ;;
|
|
96
126
|
aider_bridge) assert_aider_bridge "$id" ;;
|
|
97
|
-
|
|
127
|
+
# A contract declared in targets.yaml with no assertion behind it is a
|
|
128
|
+
# broken contract, not a no-op. Failing here is what makes the registry an
|
|
129
|
+
# enforced interface rather than documentation.
|
|
130
|
+
*)
|
|
131
|
+
echo "FAIL $id:$contract — unknown contract (no assertion implemented)"
|
|
132
|
+
return 1
|
|
133
|
+
;;
|
|
98
134
|
esac
|
|
99
135
|
}
|