Repository navigation
Address human-gate (#14) review follow-ups - #15
Merged
Merged
Conversation
Three non-blocking items from the final whole-branch review: - leaf-job-runner: processOne returns accurate paused/aborted labels instead of collapsing them to "failed" (label is log/metrics-only; ack behavior unchanged). +2 tests. - gate-marker: readGateMarker now shape-validates (status, sessionId, gateId, ts, gate.summary/proposed_action) and returns null on off-shape input, matching readDecision's discipline. +1 test. - run-leaf: restored the dropped cwd / LLM-gateway / durable-session / fast-path invariant comments in realProduceVerdict (readability). - request-approval-tool: added the empty-proposed_action rejection test (was only covering empty summary). Harness 119 passed (2 skipped), knative-server 29, typecheck clean. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Paolo Dettori <[email protected]>
pdettori
commented
Jun 28, 2026
pdettori
left a comment
Member
Author
There was a problem hiding this comment.
Self-review (LGTM)
Clean follow-up to PR #14 (human-gate). Adds shape validation to readGateMarker, makes processOne return accurate terminal-state labels for logging/metrics, restores invariant comments in realProduceVerdict, and adds the missing proposed_action rejection test. No behavior changes; +4 unit tests.
All commits signed-off, CI green, no security concerns.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Non-blocking cleanups flagged by the final whole-branch review of the human-gate feature (#14). No behavior change to any runtime path; pure accuracy/readability/test-coverage improvements.
leaf-job-runner:processOnenow returns accuratepaused/abortedlabels instead of collapsing them to"failed". The label is log/metrics-only (the drain loop branches only onidle/retry), and ack behavior is unchanged — but the old label was misleading. +2 unit tests.gate-marker:readGateMarkernow shape-validates (statusisawaiting_approval,sessionId/tsstrings,gateIdnumber,gate.summary/gate.proposed_actionstrings) and returnsnullon off-shape input, matchingreadDecision's discipline. +1 unit test.run-leaf: restored the cwd / LLM-gateway / durable-session / verdict-fast-path invariant comments inrealProduceVerdictthat were condensed away during the gate front-end rewrite (readability only).request-approval-tool: added the empty-proposed_actionrejection test (was only covering emptysummary).Verification
@sh/harness119 passed (2 skipped),@sh/knative-server29 passed, typecheck clean.Assisted-By: Claude Code