fix(hooks): repair shared-hook announcement policy#73800
Conversation
Greptile SummaryThis PR repairs the shared-hook announcement policy from #55761: successful The Confidence Score: 5/5This PR is safe to merge — the announcement policy logic is correct, well-tested, and limited in scope. No P0 or P1 issues found. The shouldAnnounceHookRunResult predicate correctly handles all status × deliver × delivered × deliveryAttempted combinations. New tests cover every path added. The sourcePath field is threaded through all dispatch call sites and the type system would surface any missed callers at compile time. No files require special attention. Reviews (5): Last reviewed commit: "fix(hooks): audit suppressed hook succes..." | Re-trigger Greptile |
|
Codex review: needs maintainer review before merge. What this changes: This PR adds a Gateway hook announcement predicate, Maintainer follow-up before merge: Keep this PR open for maintainer review. If accepted, land the narrow Gateway hook announcement-policy change after resolving or documenting the raw Best possible solution: Keep this PR open for maintainer review. If accepted, land the narrow Gateway hook announcement-policy change after resolving or documenting the raw Acceptance criteria:
What I checked:
Likely related people:
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 39f810911c38. |
|
Thanks for opening the replacement. Happy with this as the narrow landing path if that's the maintainer preference. I can take the remaining hook-policy pieces as follow-ups, or keep maintaining the broader source implementation, whichever is more useful. For context: I'd been keeping #55761 current with
It passed targeted hook tests, This PR looks like a clean narrow path for the core behavior:
The main delta from #55761 is that this leaves out:
If this lands as-is, I'd treat those as follow-up hook-policy work. On the red parity check: the failure was a timeout in |
37d57b2 to
c675791
Compare
|
Closing this PR because the author has more than 10 active PRs in this repo. Please reduce the active PR queue and reopen or resubmit once it is back under the limit. You can close your own PRs to get back under the limit. |
c675791 to
a2376f7
Compare
|
Closing this PR because the author has more than 10 active PRs in this repo. Please reduce the active PR queue and reopen or resubmit once it is back under the limit. You can close your own PRs to get back under the limit. |
a2376f7 to
487c688
Compare
|
Closing this PR because the author has more than 10 active PRs in this repo. Please reduce the active PR queue and reopen or resubmit once it is back under the limit. You can close your own PRs to get back under the limit. |
|
Closing this PR because the author has more than 10 active PRs in this repo. Please reduce the active PR queue and reopen or resubmit once it is back under the limit. You can close your own PRs to get back under the limit. |
|
Closing this PR because the author has more than 10 active PRs in this repo. Please reduce the active PR queue and reopen or resubmit once it is back under the limit. You can close your own PRs to get back under the limit. |
487c688 to
e941551
Compare
|
Closing this PR because the author has more than 10 active PRs in this repo. Please reduce the active PR queue and reopen or resubmit once it is back under the limit. You can close your own PRs to get back under the limit. |
e941551 to
7199f05
Compare
* fix(hooks): repair shared-hook announcement policy * fix(hooks): audit suppressed hook successes --------- Co-authored-by: openclaw-clownfish[bot] <280122609+openclaw-clownfish[bot]@users.noreply.github.com> Co-authored-by: Vincent Koc <[email protected]>
* fix(hooks): repair shared-hook announcement policy * fix(hooks): audit suppressed hook successes --------- Co-authored-by: openclaw-clownfish[bot] <280122609+openclaw-clownfish[bot]@users.noreply.github.com> Co-authored-by: Vincent Koc <[email protected]>
* fix(hooks): repair shared-hook announcement policy * fix(hooks): audit suppressed hook successes --------- Co-authored-by: openclaw-clownfish[bot] <280122609+openclaw-clownfish[bot]@users.noreply.github.com> Co-authored-by: Vincent Koc <[email protected]>
* fix(hooks): repair shared-hook announcement policy * fix(hooks): audit suppressed hook successes --------- Co-authored-by: openclaw-clownfish[bot] <280122609+openclaw-clownfish[bot]@users.noreply.github.com> Co-authored-by: Vincent Koc <[email protected]>
* fix(hooks): repair shared-hook announcement policy * fix(hooks): audit suppressed hook successes --------- Co-authored-by: openclaw-clownfish[bot] <280122609+openclaw-clownfish[bot]@users.noreply.github.com> Co-authored-by: Vincent Koc <[email protected]>
Repairs #55761 on the contributor branch.
This keeps the shared-hook announcement policy narrow: successful deliver:false hooks remain silent, real non-ok hook results still surface, handled deliveryAttempted paths do not duplicate fallback events, and target-agent event routing from #73228 remains composed with the policy gate.
Credit: source PR #55761 by @EffortlessSteven, building on earlier deliver:false work in #36332 by @cioclawcode and #49234 by @BrennerSpear. Related fixed routing work: #73228.
Validation before merge:
Merge gate notes: run a fresh Codex /review on the current head, address or document all Greptile/Codex findings, and investigate the failing OpenAI / Opus 4.6 qa-lab parity gate before any merge action.
ProjectClownfish replacement details:
! [remote rejected] HEAD -> fix/hooks-announce-policy-upstream (refusing to allow a GitHub App to create or update workflow
.github/workflows/clawsweeper-dispatch.ymlwithoutworkflowspermission)error: failed to push some refs to 'https://github.com/EffortlessSteven/openclaw.git'