test(eval): cover audit-chain integrity and decoder dispatch in the CI gate#142
Merged
Conversation
…I gate The golden eval suite is the CI regression gate for top-level agent flows, but two recently-shipped capabilities reached it only through unit tests: the tamper-evidence audit hash chain (v0.761/0.762) and the new decoder tools (WebAuthn / COSE / CWT). A regression in the agent dispatch path for either would have slipped past `task eval`. Two scenarios close that. - audit_chain_intact_after_agent_run: drives Low-risk tools through agent.RunTool (the real RunTool -> RecordCtx path), verifies the resulting hash chain is intact with the expected row count, then anchors the state out-of-band, grows the chain, and confirms VerifyChainAgainst still validates the protected prefix. Guards the agent -> audit -> chain -> anchor integration the unit tests (which call Record directly) don't exercise. - decoder_dispatches_through_agent: dispatches cwt_decode (RFC 8392 example claims) through agent.RunTool and checks the decoded issuer claim — a stand-in protecting the decoder family's agent-path dispatch. Suite grows 15 -> 17 scenarios. Test-only; no production change. Verified: task ci green (lint 0 / vet / build / test:full 0 fail / govulncheck clean); task eval 17/17.
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
The golden eval suite is the CI regression gate for top-level agent flows, but two recently-shipped capabilities reached it only through unit tests: the tamper-evidence audit hash chain (v0.761/0.762) and the new decoder tools (WebAuthn / COSE / CWT). A regression in the agent dispatch path for either would have slipped past
task eval. Two scenarios close that gap.audit_chain_intact_after_agent_run— drives Low-risk tools throughagent.RunTool(the realRunTool→RecordCtxpath), verifies the resulting hash chain is intact with the expected row count, then anchors the state out-of-band, grows the chain, and confirmsVerifyChainAgainststill validates the protected prefix. Guards the agent → audit → chain → anchor integration the unit tests (which callRecorddirectly) don't exercise.decoder_dispatches_through_agent— dispatchescwt_decode(RFC 8392 example claims) throughagent.RunTooland checks the decoded issuer claim; a stand-in protecting the decoder family's agent-path dispatch.Suite grows 15 → 17 scenarios.
Verification
task cigreen (lint 0 / vet / build /test:full0 fail / govulncheck clean);task eval17/17.Test-only, no production change — no release on its own; rides the next feature release.