diff --git a/docs/handoffs/chicorytv-issue-queue.md b/docs/handoffs/chicorytv-issue-queue.md index e8ccc1373..679df3b33 100644 --- a/docs/handoffs/chicorytv-issue-queue.md +++ b/docs/handoffs/chicorytv-issue-queue.md @@ -274,9 +274,15 @@ HARD CONSTRAINTS: references the current head, and CI is green — no conversational confirmation on that satisfied path (ersatztv#314). Confirm in-conversation only when the gate ASKS (state not derivable: no creds, no linked issue, no Done-when/verdict, Gitea down). Prior pre-approvals still do NOT carry over. +- **Local gate + cold review run BEFORE the push to Gitea CI, not after** (Timothy, 2026-07-17): + run the local build/test gate AND a cold-context adversarial review agent (SCOPED "review only") + over the diff, fold any fixes, and only THEN push / open the PR. Gitea runners should only ever + see already-validated work — CI is a scarce shared slow resource and a run cannot be cancelled on + this Gitea, so spending a run to surface a lint error or a review-caught bug is pure waste + queue + pressure. CI (armed at PR-open, below) *confirms*; it is not the first line of defence. - Arm a CI monitor on the PR head sha AT PR-OPEN (commit-status endpoint), not at the end. -- Live-E2E via scripts/e2e-local.sh; NEVER exercise download endpoints via browser tabs (curl - them). Run a cold-context adversarial review agent per PR diff, SCOPED "review only". +- Live-E2E via scripts/e2e-local.sh (also before the push for write-path / UI changes); NEVER + exercise download endpoints via browser tabs (curl them). --- @@ -368,16 +374,19 @@ HARD CONSTRAINTS: session" note.) Same family as the sibling bullet below: never commit inside a checkout or worktree you didn't create. - Subagent connection drops = laptop sleep/transient; re-resume via SendMessage (work survives). -- Build/verify locally, then trust it; CI (VM 127) confirms (~9 min warm). Watch by commit +- Build/verify (and review) locally, then trust it; CI (VM 127) confirms (~9 min warm; seconds for + a docs-only PR since ersatztv#416). Watch by commit status: `/api/v1/repos/timothy/ersatztv/commits/{sha}/status`. - PR routine (works): worktree off origin/main → implement (strongest tier for judgment-heavy / balanced tier for mechanical work when model routing is available; doc pointers + exact facts; use the available C# language tooling) → API changes: build app project - FIRST then `./scripts/update-openapi.sh` then `npm run generate:api` → full local test pass - → push, PR → cold-context adversarial review (SCOPED "review only") + live-E2E for UI changes - (`scripts/e2e-local.sh`) → review fixes as follow-up COMMITS (never amend/force-push) → CI - green → merge (derived consent gate) → structured close comments per the applicable - `AGENTS.md` / `CLAUDE.md` protocol. + FIRST then `./scripts/update-openapi.sh` then `npm run generate:api` → **full local test pass + + cold-context adversarial review (SCOPED "review only") + live-E2E for UI/write-path changes + (`scripts/e2e-local.sh`), ALL BEFORE the push** — fold pre-push review fixes into the branch + (amend/reword is fine while nothing is pushed) → push, PR (arm the CI monitor at open) → CI + *confirms* → any further review fixes (a post-push cross-model pass, or CI-surfaced issues) as + follow-up COMMITS (never amend/force-push a pushed branch) → CI green → merge (derived consent + gate) → structured close comments per the applicable `AGENTS.md` / `CLAUDE.md` protocol. - Never run TWO committing agents on one worktree concurrently. Read-only review agents are fine. - **A KILLED job reports `conclusion: failure` — the conclusion field is not enough. Read the log tail.** (2026-07-17.) When the operator restarts the runners (a retune, a reboot), in-flight jobs die and Gitea