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
84 changes: 0 additions & 84 deletions .agents/skills/ship-pr/SKILL.md

This file was deleted.

25 changes: 18 additions & 7 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ project knowledge here rather than in tool-specific configuration.
## Agent compatibility

- Codex loads this `AGENTS.md` directly.
- Canonical project skills live in [`.agents/skills/`](.agents/skills/).
- Keep repository-specific guidance here; personal skills are installed globally.
- Quality enforcement is agent-independent: use the Git hooks, `npm run
validate`, and CI. Do not add tool-specific lifecycle hooks for checks that
belong in those shared gates.
Expand Down Expand Up @@ -159,9 +159,20 @@ finishes with health and contract checks.
Repository reads/writes, `npm run *`, local Wrangler commands, and Vitest are
otherwise safe without confirmation.

## Skills

- `ship-pr` — use the shared skill for the canonical push -> PR -> CI -> review
-> triage -> squash-merge -> cleanup flow. Never use `--auto`; merge directly
when the PR is clean, and escalate only decisions that need product or team
input.
## PR review and delivery

The personal `ship-pr` skill is installed globally; do not keep a duplicate
repository-local entry. These project rules also apply without that skill:

- Use `.github/required-checks.txt` alongside live branch protection to identify
required checks. Harness drift sensors are informational unless policy changes.
- Review D1 access boundaries and parameter binding, API alignment with
`openboot-contract`, forward-only D1 migrations, and field round trips through
CLI -> server -> CLI. Check new warnings, test gaps, and generated files.
- For backwards-incompatible D1 migrations, verify locally and obtain the
rollout decision before proceeding. Review is the last reversible gate before
merging to `main` triggers deployment.
- When merging is authorized, use squash merge after CI and review pass. Do not
use auto-merge. Fix clear issues in scope; escalate product or rollout choices.
- Do not roll back a failed deployment, modify the separate `openboot-contract`
repository, or alter production secrets without explicit direction.
4 changes: 2 additions & 2 deletions docs/HARNESS.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Three regulation categories:
| Behav. | Post-deploy health check (`/api/health`) | CD `deploy` job | `.github/workflows/deploy.yml` |
| Behav. | Post-deploy smoke test + contract round-trip | CD `deploy` job | `scripts/smoke-test-api.sh` |
| Feedfwd. | Shared agent conventions | Codex loads directly | `AGENTS.md` (canonical) |
| Feedfwd. | `ship-pr` skill — push → CI → review → triage → squash → cleanup; **no `--auto`** | model-loaded | `.agents/skills/ship-pr/SKILL.md` |
| Feedfwd. | PR review and delivery rules; personal global `ship-pr` can orchestrate the flow | PR delivery | `AGENTS.md` "PR review and delivery" |
| Maint. | `eslint` on staged diff + `prettier --check` | local git pre-commit | `scripts/hooks/pre-commit` |
| Behav. | `npm run validate` (lint + check + test + build) | local git pre-push | `scripts/hooks/pre-push` |
| Drift loop | Failed harness sensor → open/update GitHub issue | on main / nightly | `.github/workflows/drift-to-issue.yml` |
Expand All @@ -70,7 +70,7 @@ When you observe a recurring issue, decide where to encode the fix:
| "Agent breaks behaviour that has no test." | Write the test next to existing ones (`src/**/*.test.ts`). The pattern is vitest + happy-dom + the helpers in `src/lib/test/`. |
| "Agent missed an `AGENTS.md` rule we keep restating." | Make it a lint rule or an archtest test. A docs rule that doesn't fail is a docs rule that drifts. |
| "Agent guessed at an API contract." | Update `openboot-contract` fixtures + schemas. CI runs schema validation against them in the `check` job and after deploy. |
| "Agent's PR description was off." | Tighten `.github/pull_request_template.md` (if added) or the `ship-pr` skill. |
| "Agent's PR description was off." | Tighten `.github/pull_request_template.md` (if added) or the PR delivery rules in `AGENTS.md`. |
| "Drift sensor failed on main but nobody noticed." | Already handled: `.github/workflows/drift-to-issue.yml` opens/updates a tracking issue per failed sensor. |

Rule of thumb: **if you reach for a doc edit, first ask whether a test or
Expand Down
Loading