feat(approval): record prompt_sha256 on every decision audit line - #18
Merged
Merged
Conversation
Approve and reject decision lines (classic and enterprise gates) carry the digest of the prompt the decision was made on. After a reapprove_required refusal the pause is re-baselined, so a re-approval records the new digest. Documented in docs/workflows.md; CHANGELOG Unreleased. Signed-off-by: Agent G <326687097+readyagentsdev@users.noreply.github.com>
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.
Every approval
decisionaudit line (approve and reject, classic and enterprise gates) now carriesprompt_sha256, the sha256 of the prompt the decision was made on.After a
reapprove_requiredrefusal the pause is re-baselined to the new prompt, so a re-approval's decision line carries the new digest, not the one on the originalpausedline.src/readyagents/workflow/nodes.py:prompt_sha256=approval_prompt_digest(prompt)on bothdecisionauditor calls.tests/test_approval_digest.py: first approve, re-approve after mismatch (asserts the new digest and no decision line on the refusal), reject after an edit.docs/workflows.md: re-baseline behaviour and the decision-line field.Not included: the
examples/approval_gate.yamldescription tweak. That file is pinned byte-for-byte to v1.9.0 by the*_additivetests, so it's left alone.