From 083c513be220da25f7f1865e7bf77fb80e0ae9bd Mon Sep 17 00:00:00 2001 From: Edbert Chan Date: Sun, 11 Oct 2026 14:22:06 +0000 Subject: [PATCH 1/2] Stamp an event_uid on every runner metrics row. Hook runs belonging to the same harness event had no shared key, so grouping them for herd/wall-clock metrics relied on fragile 2s-window inference. Add event_uid = sha256(stdin)[:12] to _row() so every runner that receives the same stdin self-groups with zero coordination. --- engine/hooks/_runner/run.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engine/hooks/_runner/run.py b/engine/hooks/_runner/run.py index 081747e3c..42fa17fc5 100644 --- a/engine/hooks/_runner/run.py +++ b/engine/hooks/_runner/run.py @@ -2,6 +2,7 @@ import argparse import datetime +import hashlib import json import os import subprocess @@ -234,6 +235,7 @@ def _row( "hook": hook, "script": script, "event": event, + "event_uid": hashlib.sha256(stdin).hexdigest()[:12], "session_id": session_id, "outcome": outcome, "exit_code": exit_code, From 1e585e335925f921f670a9c672097c43d09a3bdb Mon Sep 17 00:00:00 2001 From: Invoker Bot Date: Sun, 11 Oct 2026 14:23:24 +0000 Subject: [PATCH 2/2] =?UTF-8?q?invoker:=20wf-1791728211949-11/publish-even?= =?UTF-8?q?t-uid=20=E2=80=94=20Review=20claim:=20Every=20runner=20metrics?= =?UTF-8?q?=20row=20gains=20an=20event=5Fuid=20field=20that=20groups=20all?= =?UTF-8?q?=20hook=20runs=20belonging=20to=20one=20harness=20event,=20with?= =?UTF-8?q?=20no=20change=20to=20hook=20stdout,=20stderr,=20or=20exit=20co?= =?UTF-8?q?des.=20Review=20lane:=20behavior=20Safety=20invariant:=20Hook?= =?UTF-8?q?=20stdout=20and=20exit=20codes=20stay=20the=20same.=20This=20sl?= =?UTF-8?q?ice=20does=20not=20change=20the=20other=20four=20claims.=20File?= =?UTF-8?q?s:=20engine/hooks/=5Frunner/run.py=20Change=20types:=20bugfix?= =?UTF-8?q?=20Acceptance=20criteria:=20The=20branch=20contains=20only=20th?= =?UTF-8?q?is=20claim,=20and=20the=20review=20step=20publishes=20one=20pul?= =?UTF-8?q?l=20request.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Exit code: 0 Invoker-Finalize-Id: 5330cf4f-7efd-43e4-9fc5-fbc19b9c9a89