ticket-dispatch: the implementer's run ends at its handoff #46

Merged
pit merged 1 commit from hermes/implementer-run-ends-at-handoff into main 2026-11-10 21:32:48 +00:00
Owner

Summary

The implementer route prompt now says where its run ends. After the exit report:

  That report is what produces the dispatcher's Telegram line; do not report the
  exit any other way.
+
+ The handoff ends the run. Once the handoff comment has landed, the ticket has moved
+ and any exit report is posted, stop: do not wait for the pull request's checks or its
+ review, and do not act on a review that arrives — no commit, no push, no comment on
+ the PR, no edit of its body or of the handoff. The review loop owns the PR from then
+ on: a BLOCKER comes back to you as a forgejo-fix dispatch, and an ADVISORY on an
+ approved PR is the Operator's call. A push after an approval dismisses it, and leaves
+ a PR labelled merge-ready that cannot be merged.

ticket-dispatch/hermes-routes.example.yaml:139-145.

Why

PR olympus/infra-silo#31: the SL-25 implementer dispatch posted its handoff on task 308 at 20:55:21Z, then ran sleep 150 waiting for review round 1. Minos approved with two ADVISORYs at 20:57:05Z and set review/merge-ready. The implementer read the review at 20:58:12Z, pushed e956f13, rewrote the PR body, posted a PR comment and edited its handoff comment.

Its own session log records the reasoning: "The dispatch's loop ends at the handoff … nobody asked me to answer it in this run — and the dispatcher will re-dispatch a fix round if there are findings. However: it would be genuinely useful to wait a couple of minutes and see if it lands a BLOCKER". The route contract had no line either way; the profile's SOUL.md (line 19, "Answer review. Every comment … a reply or a change behind it") filled the silence.

The cost is not the extra commit. main on infra-silo requires 1 approval and dismiss_stale_approvals: true, so the push dismissed Minos's approval. PR #31 now carries review/merge-ready with no valid approval on head e956f13, and the loop has no push trigger and treats merge-ready as a stop state — nothing re-reviews the commit until a human writes review/needs-review.

Evidence

  • Before: the prompt the gateway runs on the agent host (~/.hermes/config.yaml, route vikunja-implement-efesto) is byte-identical to origin/main's template — a diff against it printed identical. It contains no sentence about what follows the handoff.
  • After: the same diff against this branch prints exactly the added paragraph and nothing else, so the installed prompt differs from this branch by those eight lines and no more.
  • mise exec -- make docs-check → docs-check: all 3 assertions hold.
  • mise exec -- node ticket-dispatch/tests/{gate,notices,pump,retry}.test.js → 79/79, 30/30, 79/79, 18/18 checks passed. No suite reads this file; the run is there to prove the tree still passes.
  • The file parses: every step above reads it through yaml.safe_load.

Live on the agent host (2026-11-10 22:17-22:24 CET, Operator's instruction): the route vikunja-implement-efesto in ~/.hermes/config.yaml was rendered from this branch, and the gateway was restarted from a shell outside it — PID 2517059 → 2451759 at 22:23:42. Read back: the running config's prompt is byte-identical to this branch's template; the route answers 401 without its secret and 404 under minos, so it is registered and bound to efesto. Backups beside both files: config.yaml.bak-20261110T221756, SOUL.md.bak-20261110T221756. Until this PR merges, the installed config is one commit ahead of main; merging then makes the record match what runs.

Review round 1's two advisories. A2 (the pointer cited :141-148, past the end of a 145-line file) is corrected above in this body. A1 — the paragraph says a BLOCKER comes back "to you", while the loop carries one fixer route bound to efesto, so a second implementer rendered from this template would read the claim wrongly — is left as the Operator's call: it needs a commit, and a push here would dismiss the approval this PR currently holds.

Outside this repo, done in the same pass: the efesto profile's SOUL.md line 19 now reads "Answer review — on a forgejo-fix dispatch. …" — the competing instruction the SL-25 agent weighed against its route no longer applies to an implementer run. The file is installed on the agent host, not versioned here; its backup sits beside it.

Merge Danger

Door: two-way. A revert restores the previous prompt; no workflow, no config in this repository, and no live system is touched by the merge.

Blast Radius: one file, ticket-dispatch/hermes-routes.example.yaml — an example rendered by hand into the gateway's config. Merging changes nothing that runs until that render and restart happen.

## Summary The implementer route prompt now says where its run ends. After the exit report: ```diff That report is what produces the dispatcher's Telegram line; do not report the exit any other way. + + The handoff ends the run. Once the handoff comment has landed, the ticket has moved + and any exit report is posted, stop: do not wait for the pull request's checks or its + review, and do not act on a review that arrives — no commit, no push, no comment on + the PR, no edit of its body or of the handoff. The review loop owns the PR from then + on: a BLOCKER comes back to you as a forgejo-fix dispatch, and an ADVISORY on an + approved PR is the Operator's call. A push after an approval dismisses it, and leaves + a PR labelled merge-ready that cannot be merged. ``` `ticket-dispatch/hermes-routes.example.yaml:139-145`. ## Why PR olympus/infra-silo#31: the SL-25 implementer dispatch posted its handoff on task 308 at 20:55:21Z, then ran `sleep 150` waiting for review round 1. Minos approved with two ADVISORYs at 20:57:05Z and set `review/merge-ready`. The implementer read the review at 20:58:12Z, pushed `e956f13`, rewrote the PR body, posted a PR comment and edited its handoff comment. Its own session log records the reasoning: *"The dispatch's loop ends at the handoff … nobody asked me to answer it in this run — and the dispatcher will re-dispatch a fix round if there are findings. However: it would be genuinely useful to wait a couple of minutes and see if it lands a BLOCKER"*. The route contract had no line either way; the profile's `SOUL.md` (line 19, *"Answer review. Every comment … a reply or a change behind it"*) filled the silence. The cost is not the extra commit. `main` on infra-silo requires 1 approval and `dismiss_stale_approvals: true`, so the push dismissed Minos's approval. PR #31 now carries `review/merge-ready` with no valid approval on head `e956f13`, and the loop has no push trigger and treats `merge-ready` as a stop state — nothing re-reviews the commit until a human writes `review/needs-review`. ## Evidence - **Before:** the prompt the gateway runs on the agent host (`~/.hermes/config.yaml`, route `vikunja-implement-efesto`) is byte-identical to `origin/main`'s template — a diff against it printed `identical`. It contains no sentence about what follows the handoff. - **After:** the same diff against this branch prints exactly the added paragraph and nothing else, so the installed prompt differs from this branch by those eight lines and no more. - `mise exec -- make docs-check` → `docs-check: all 3 assertions hold.` - `mise exec -- node ticket-dispatch/tests/{gate,notices,pump,retry}.test.js` → 79/79, 30/30, 79/79, 18/18 checks passed. No suite reads this file; the run is there to prove the tree still passes. - The file parses: every step above reads it through `yaml.safe_load`. **Live on the agent host** (2026-11-10 22:17-22:24 CET, Operator's instruction): the route `vikunja-implement-efesto` in `~/.hermes/config.yaml` was rendered from this branch, and the gateway was restarted from a shell outside it — PID `2517059` → `2451759` at 22:23:42. Read back: the running config's prompt is byte-identical to this branch's template; the route answers `401` without its secret and `404` under `minos`, so it is registered and bound to `efesto`. Backups beside both files: `config.yaml.bak-20261110T221756`, `SOUL.md.bak-20261110T221756`. Until this PR merges, the installed config is one commit ahead of `main`; merging then makes the record match what runs. **Review round 1's two advisories.** A2 (the pointer cited `:141-148`, past the end of a 145-line file) is corrected above in this body. A1 — the paragraph says a BLOCKER comes back "to you", while the loop carries one fixer route bound to `efesto`, so a second implementer rendered from this template would read the claim wrongly — is left as the Operator's call: it needs a commit, and a push here would dismiss the approval this PR currently holds. Outside this repo, done in the same pass: the `efesto` profile's `SOUL.md` line 19 now reads *"**Answer review — on a `forgejo-fix` dispatch.** …"* — the competing instruction the SL-25 agent weighed against its route no longer applies to an implementer run. The file is installed on the agent host, not versioned here; its backup sits beside it. ## Merge Danger **Door:** two-way. A revert restores the previous prompt; no workflow, no config in this repository, and no live system is touched by the merge. **Blast Radius:** one file, `ticket-dispatch/hermes-routes.example.yaml` — an example rendered by hand into the gateway's config. Merging changes nothing that runs until that render and restart happen.
ticket-dispatch: the implementer's run ends at its handoff
All checks were successful
pr-checks / loop-decide (pull_request) Successful in 9s
pr-checks / protect-main (pull_request) Successful in 19s
7ac032c8d0
An SL-25 dispatch posted its handoff, then waited 150 s for review round 1,
found two advisories on an APPROVED pr and pushed a second commit. The push
dismissed the approval, so the PR carried review/merge-ready with no valid
approval, and the loop does not re-arm on a push.

The route prompt never said the run was over; the agent filled that silence
with its profile's "answer review" habit. Say it: the handoff ends the run.
Member

Review started (round 1/5) on 7ac032c8d0 — reading the diff now.

**Review started** (round 1/5) on 7ac032c8d053da4dad82ee999580cc6ee52ddcef — reading the diff now.
bot-minos approved these changes 2026-11-10 21:19:50 +00:00
bot-minos left a comment

olympus/workshop#46 · head 7ac032c · round 1/5 · verdict merge

Round from the thread, not the dispatch: this PR carries no prior review, so both read 1. Spec: the PR description — there is no linked issue and no ticket cited. Standards: AGENTS.md, GLOSSARY.md, docs/adr/, README, Makefile, and the changed file's own header.

Recommendation: merge

Spec — 2 advisories

A1 · ADVISORY — the fix-route claim is true of efesto, not of the template it sits in.
ticket-dispatch/hermes-routes.example.yaml:143 — "a BLOCKER comes back to you as a forgejo-fix dispatch". The file says it is a template: "One route per implementer … Every implementer's route is a copy of the block below with profile and the route name changed" (:6, :8). The loop carries one fixer route, bound to one profile (pr-review-loop/hermes-routes.example.yaml:76-77), and the loop's own suite pins that URL (pr-review-loop/tests/decide.test.js:138, :159 → /p/efesto/webhooks/forgejo-fix). True for today's single implementer; a second profile rendered from this block would read that its findings come back to it when they come back to efesto.
Smallest fix: one clause — "comes back as a forgejo-fix dispatch to the profile that route is bound to (efesto today)".

A2 · ADVISORY — the body's pointer runs past EOF.
The body cites ticket-dispatch/hermes-routes.example.yaml:141-148. At head the paragraph is :139-145 and the file is 145 lines long, so the citation points past the end.
Smallest fix: :139-145.

Standards — 0 findings

Checked Result
The paragraph's central claim, against the org standard Supported, not broken: docs/adr/0002-every-olympus-repos-main-rejects-direct-pushes.md:46 §The approval is pinned to what it examined — "any commit added afterwards invalidates it"
Vocabulary "the Operator" is ADR 0002's own word (:41); nothing coined that GLOSSARY.md forbids
Direction of the file Header says the template is rendered into ~/.hermes/config.yaml (:1-4); the paragraph is added template-side, as it should be
Prose mechanics No width/wrap rule exists in the repo; added lines are 48–85 chars against neighbours of the same width, no trailing whitespace, no indentation artefacts in the rendered scalar
Commit message ticket-dispatch: <what> per the route's own style (:94); no (WR-n) because no ticket covers this change — precedent in this tree (!24, !40)

Verified, by hand

Claim What I drove
Head is the dispatched revision refs/pull/46/head → 7ac032c…, at the start and again after the probes
Diff scope git diff 831eb14...HEAD --numstat → 8 0 ticket-dispatch/hermes-routes.example.yaml, one commit
make docs-check → "all 3 assertions hold" Reproduced: links 25 across 24 documents, floor-page, floor-rules 16 rows
Four suites, 79/30/79/18 Reproduced exactly, in the body's order: gate 79/79, notices 30/30, pump 79/79, retry 18/18
The file parses; the text lands in the prompt yaml.safe_load ok; the paragraph is 8 flush lines at the prompt's margin, widths 48–85
The competing instruction the body names ~/.hermes/profiles/efesto/SOUL.md:19 reads "Answer review — on a forgejo-fix dispatch … an implementer's run ends at its handoff": route text and SOUL now agree (outside this repo)

Could not verify

  • That an agent reading this stops. The change is prose; its effect is a run, and I drove no run.
  • Live behaviour. The gateway's main process dates from 2026-10-30 21:35, and route prompts are read at startup — the paragraph is not in the running process.

Named, not charged

  • The body's "Not done" paragraph. On this host the vikunja-implement-efesto route in ~/.hermes/config.yaml now carries exactly this paragraph (written 2026-11-10 22:17:56 +0100; the backup that write took, config.yaml.bak-20261110T221756, carries the old prompt), and efesto/SOUL.md was scoped in the same second. The re-render and the SOUL half are already in place; only the gateway restart is outstanding, so "the change is not live" still holds. The paragraph was written about 70 s before those writes and nothing in the diff makes it false — a report lagging the host, not a defect in the change.
  • olympus/infra-silo#31 is cited as evidence, not as the change's subject; I read the rule it illustrates (docs/adr/0002) instead of re-driving that PR.

Summary — Spec: 2 advisories, worst is the template-wide forgejo-fix claim (A1). Standards: 0 findings. Two advisories sit below the volume trip, so the recommendation stays merge and they travel as advice.

<!-- minos review-loop: repo=olympus/workshop pr=46 head=7ac032c8d053da4dad82ee999580cc6ee52ddcef round=1/5 axes=standards,spec --> **olympus/workshop#46** · head `7ac032c` · round **1/5** · verdict **merge** _Round from the thread, not the dispatch: this PR carries no prior review, so both read 1. Spec: the PR description — there is no linked issue and no ticket cited. Standards: `AGENTS.md`, `GLOSSARY.md`, `docs/adr/`, `README`, `Makefile`, and the changed file's own header._ Recommendation: merge ### Spec — 2 advisories **A1 · ADVISORY — the fix-route claim is true of `efesto`, not of the template it sits in.** `ticket-dispatch/hermes-routes.example.yaml:143` — "a BLOCKER comes back to you as a forgejo-fix dispatch". The file says it is a template: "One route per implementer … Every implementer's route is a copy of the block below with `profile` and the route name changed" (`:6`, `:8`). The loop carries one fixer route, bound to one profile (`pr-review-loop/hermes-routes.example.yaml:76-77`), and the loop's own suite pins that URL (`pr-review-loop/tests/decide.test.js:138`, `:159` → `/p/efesto/webhooks/forgejo-fix`). True for today's single implementer; a second profile rendered from this block would read that its findings come back to it when they come back to `efesto`. _Smallest fix:_ one clause — "comes back as a `forgejo-fix` dispatch to the profile that route is bound to (`efesto` today)". **A2 · ADVISORY — the body's pointer runs past EOF.** The body cites `ticket-dispatch/hermes-routes.example.yaml:141-148`. At head the paragraph is `:139-145` and the file is 145 lines long, so the citation points past the end. _Smallest fix:_ `:139-145`. ### Standards — 0 findings | Checked | Result | |---|---| | The paragraph's central claim, against the org standard | Supported, not broken: `docs/adr/0002-every-olympus-repos-main-rejects-direct-pushes.md:46` §The approval is pinned to what it examined — "any commit added afterwards invalidates it" | | Vocabulary | "the Operator" is ADR 0002's own word (`:41`); nothing coined that `GLOSSARY.md` forbids | | Direction of the file | Header says the template is rendered into `~/.hermes/config.yaml` (`:1-4`); the paragraph is added template-side, as it should be | | Prose mechanics | No width/wrap rule exists in the repo; added lines are 48–85 chars against neighbours of the same width, no trailing whitespace, no indentation artefacts in the rendered scalar | | Commit message | `ticket-dispatch: <what>` per the route's own style (`:94`); no `(WR-n)` because no ticket covers this change — precedent in this tree (`!24`, `!40`) | ### Verified, by hand | Claim | What I drove | |---|---| | Head is the dispatched revision | `refs/pull/46/head` → `7ac032c…`, at the start and again after the probes | | Diff scope | `git diff 831eb14...HEAD --numstat` → `8 0 ticket-dispatch/hermes-routes.example.yaml`, one commit | | `make docs-check` → "all 3 assertions hold" | Reproduced: links 25 across 24 documents, floor-page, floor-rules 16 rows | | Four suites, 79/30/79/18 | Reproduced exactly, in the body's order: gate 79/79, notices 30/30, pump 79/79, retry 18/18 | | The file parses; the text lands in the prompt | `yaml.safe_load` ok; the paragraph is 8 flush lines at the prompt's margin, widths 48–85 | | The competing instruction the body names | `~/.hermes/profiles/efesto/SOUL.md:19` reads "Answer review — on a `forgejo-fix` dispatch … an implementer's run ends at its handoff": route text and SOUL now agree (outside this repo) | ### Could not verify - **That an agent reading this stops.** The change is prose; its effect is a run, and I drove no run. - **Live behaviour.** The gateway's main process dates from 2026-10-30 21:35, and route prompts are read at startup — the paragraph is not in the running process. ### Named, not charged - **The body's "Not done" paragraph.** On this host the `vikunja-implement-efesto` route in `~/.hermes/config.yaml` now carries exactly this paragraph (written 2026-11-10 22:17:56 +0100; the backup that write took, `config.yaml.bak-20261110T221756`, carries the old prompt), and `efesto/SOUL.md` was scoped in the same second. The re-render and the SOUL half are already in place; only the gateway restart is outstanding, so "the change is not live" still holds. The paragraph was written about 70 s before those writes and nothing in the diff makes it false — a report lagging the host, not a defect in the change. - **`olympus/infra-silo#31`** is cited as evidence, not as the change's subject; I read the rule it illustrates (`docs/adr/0002`) instead of re-driving that PR. --- **Summary** — Spec: 2 advisories, worst is the template-wide `forgejo-fix` claim (A1). Standards: 0 findings. Two advisories sit below the volume trip, so the recommendation stays merge and they travel as advice.
pit merged commit 34c2ca66be into main 2026-11-10 21:32:48 +00:00
pit deleted branch hermes/implementer-run-ends-at-handoff 2026-11-10 21:32:49 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
olympus/workshop!46
No description provided.