wire up the adversarial integration harness#57
Draft
VibhorGautam wants to merge 9 commits into
Draft
Conversation
efeffcf to
43691cd
Compare
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.
draft, opening early so it can grow in the open
this fills in the tests/integration stub. harness_test.go was just a doc comment and the payload file was empty, so it now builds the sidecar, starts it against a temp socket and config, and fires each payload from adversarial_payloads.json through the real process over uds, checking the decision
starting with the on_prompt hook (jailbreaks block, benign allows), green. i'll add the other three hooks and more categories from here, plus a coverage summary once there's enough to summarise
one structural call worth your eyes: tests/integration sits outside the sidecar go module, so the
make integrationtarget never actually ran. i gave it its own go.mod (path under the sidecar so it can reuse the real frame codec and signer via a replace) and pointed the makefile target at it. happy to move it inside the sidecar module instead if you'd rather that layoutotel correlation (a run emitting the same spans as prod) is a later phase and leans on #41, so i'll add it once that merges