Merge pull request 'docs: permit subagents explicitly, and make claiming an issue a check rather than a label' (#682) from docs/claim-protocol-and-subagents into main
Build ErsatzTV Image / Formatting (changed .cs conform to .editorconfig) (push) Has been skipped
Build ErsatzTV Image / Build & test (.NET) (push) Successful in 29s
Build ErsatzTV Image / Functional E2E (curl + UI contracts) (push) Successful in 41s
Build ErsatzTV Image / EF migration integrity (SQLite + MySql) (push) Successful in 43s
Build ErsatzTV Image / Build & push image (amd64) (push) Successful in 11s
Build ErsatzTV Image / API docs in sync (OpenAPI + endpoint index) (push) Has been skipped

This commit was merged in pull request #682.
This commit is contained in:
2026-07-27 16:04:13 +00:00
4 changed files with 98 additions and 9 deletions
+1 -1
View File
@@ -104,7 +104,7 @@ the link for rationale. Superseded/retired history lives in `archive/`. Regenera
| `process.local-gate-before-push` | Run the local build/test gate and a cold-context, scoped "review only" adversarial review over the diff, fold the fixes, and only then push or open the PR. | 2026-07-21 | [link](records/process/local-gate-before-push.md) |
| `process.lock-ownership-enumerate-producers` | Before trusting any "single owner / no double release / no cross-release" claim, grep the whole host project for every writer of that channel message (or acquirer of that lock) — the background scheduler/worker is the usual missing producer. | 2026-07-21 | [link](records/process/lock-ownership-enumerate-producers.md) |
| `process.one-worktree-one-committing-agent` | Never run two committing agents concurrently on one worktree — give each parallel slice its own worktree branched off the feature branch and merge back. | 2026-07-21 | [link](records/process/one-worktree-one-committing-agent.md) |
| `process.parallel-session-claim` | Apply the `in-progress` label before starting an issue, and still read its dependency notes before touching shared surfaces — a claim prevents duplicate pickup, not overlapping code changes. | 2026-07-21 | [link](records/process/parallel-session-claim.md) |
| `process.parallel-session-claim` | Before starting an issue, check for an existing claim four ways — open PRs referencing it, remote branches naming it, recent comments (a claim can precede the label), and a fresh `git fetch origin main` — then claim with the `in-progress` label plus a comment. A claim prevents duplicate PICKUP, not duplicate WORK. Re-fetch `origin/main` before every push, not only at branch time. | 2026-07-21 | [link](records/process/parallel-session-claim.md) |
| `process.per-agent-model-routing` | State the model tier (and effort, where the client exposes it) in the dispatch itself for every delegated agent — bounded recon → cheapest fast tier at `low`; mechanical slice against a documented contract → mid tier; judgment-heavy work → orchestrator tier; independent review → a different model family than the implementer. | 2026-07-25 | [link](records/process/per-agent-model-routing.md) |
| `process.pr-routine-sequence` | Worktree off origin/main → implement → regenerate API artifacts → full local tests + cold review + live-E2E ALL before the push → push, open PR, arm the CI monitor at open → fixes after the push are follow-up commits, never amend/force-push. | 2026-07-21 | [link](records/process/pr-routine-sequence.md) |
| `process.review-disagreement-frontier-judge` | When independent reviews disagree on a gate PR, escalate to the frontier judge, and put the proposed fix approach in front of it — not just the disputed finding. | 2026-07-21 | [link](records/process/review-disagreement-frontier-judge.md) |
@@ -5,8 +5,8 @@ status: active
since: '2026-07-21'
supersedes: none
superseded-by: none
rule: Apply the `in-progress` label before starting an issue, and still read its dependency notes before touching shared surfaces — a claim prevents duplicate pickup, not overlapping code changes.
signals: 'parallel sessions · in-progress label · claim race · dependency notes · shared surfaces · lore pruning · paths: `docs/handoffs/chicorytv-issue-queue.md` · issues: #542'
rule: 'Before starting an issue, check for an existing claim four ways — open PRs referencing it, remote branches naming it, recent comments (a claim can precede the label), and a fresh `git fetch origin main` — then claim with the `in-progress` label plus a comment. A claim prevents duplicate PICKUP, not duplicate WORK. Re-fetch `origin/main` before every push, not only at branch time.'
signals: 'parallel sessions · in-progress label · claim race · duplicate implementation · stale base · branch reverts merged work · dependency notes · shared surfaces · lore pruning · paths: `docs/handoffs/chicorytv-issue-queue.md` · issues: #542, #649, #666'
mechanics: '`in-progress` label on the Gitea issue. The tiny read→claim race window is accepted; the later claimant backs off. Runner topology: two runners (ci-runner VM 127 + bumblebee-runner), 4 slots total.'
---
@@ -17,3 +17,32 @@ after #231", "coordinate with #215").
When editing the standing lore/handoff doc, prune covered and stale bullets rather than appending — it
is not append-only, and git keeps the history. `git pull --rebase` before committing it, since it is
the single most contended file across parallel sessions.
## The label is not the check (ersatztv#649, 2026-07-26)
#649 was implemented **twice, in parallel, to completion**. One session had labelled it `in-progress`
and was three commits and four review rounds deep when a reviewer noticed `origin/main` had moved ten
commits: the other session had already merged the same work as PR #666. The duplicate branch was
discarded — pushing it would have reverted #666 *and* #667, showing the merged work as deletions
because its diff was computed against a stale base.
Two distinct failures, both now covered by the kickoff's step 3:
1. **The claim was made, and was insufficient.** The other session was presumably already underway
when the label went on. A label answers "has anyone announced this?", not "is anyone doing this?"
The cheap proxies for the second question are an open PR whose body says `fixes #N`, a remote
branch with the number in it, and a claiming *comment* that predates the label — which is exactly
the `CLAIM?` flag `scripts/select-queue.sh` already raises and deliberately does not resolve.
2. **The base went stale and nothing re-checked it.** `origin/main` was read once, at branch time,
and not again across many hours. The tell is a `git diff origin/main` that shows deletions you did
not make. Re-fetch before every push; rebase (never merge main in) when it has moved.
Neither session did anything wrong at the moment of claiming. The lesson is that the *duration* of a
session is the risk: the longer a branch lives, the more the "I checked at the start" evidence decays.
Worth noting what worked: the duplicate effort was not wasted. The merged implementation was better in
one respect (it exports `ETV_GITEA_URL` as well as `GITEA_BASE_URL`, because `pr-changed-files.sh`
reads the former at higher precedence), and the discarded branch's test coverage was salvaged onto the
merged code as an additive tests-only PR. When you discover a collision, diff the two implementations
before throwing yours away — the loser usually contains something the winner lacks.