Repository navigation
docs(agt): say manifest.drift.yaml does not reach warn - #541
rocklambros merged 1 commit into
Conversation
The agt and guardian READMEs say policy/manifest.drift.yaml is used to reach the warn verdict. It denies every call on annotation_failed: the Guardian has no drift_score annotator, and data.json sets no drift.warn_threshold. Correct both READMEs and the manifest header, and pin it with a test. Closes GenAI-Security-Project#379 Signed-off-by: aaronormerod <137795541+aaronormerod@users.noreply.github.com>
|
Thanks for this. It is queued rather than ignored. A lead has not reviewed this pull request yet. A lead will read it when they have time, and we can't promise a date. Nothing here is rejected. If a check below fails, please fix it. A pull request that waits a long time may be closed, and you can reopen it later. |
|
This pull request's description says it closes #379, which is on the project roadmap. When it merges, GitHub closes that issue and the roadmap counts it as delivered. Please confirm the change delivers the whole issue before merging. |
drk-ram
left a comment
There was a problem hiding this comment.
Reviewed reference-implementations/agt/README.md, packages/guardian/README.md, and drift-manifest.test.ts (c156cf45):
- Aligns both README tables with
policy/manifest.drift.yaml's header (this Guardian has no drift_score annotator, so that manifest denies every call and does not reach warn) and pins that behavior with a live Guardian test intest/drift-manifest.test.ts.
|
Closing to stay within the queue limit. I'll reopen once #379 is assigned. |
rocklambros
left a comment
There was a problem hiding this comment.
Thanks, Aaron. I'm approving this PR at c156cf4.
The fix is right: with policy/manifest.drift.yaml, this Guardian denies every call and never reaches warn, and your new test passes 3 of 3.
Two things will change when this PR merges in the next batch with PR #229 (ACS-Core wire safeguards). I'll make both changes myself, so you don't need to do anything:
- PR #229 makes the Guardian answer
-32003 CAPABILITY_NOT_NEGOTIATEDuntil it gets ahandshake/hello. Sodecide()indrift-manifest.test.tswill callhandshakeForfromtest/helpers/handshake.tsbefore it posts the envelope. With that change the test passes 3 of 3 on the merged code. - The four
agt-gochecks failed because the Go testTestRecordingIsCurrenthashes the wholepolicy/folder, and your edit tomanifest.drift.yamlchanged that hash. I'll re-recordts-cases.jsononce for the whole batch.
One optional follow-up: the header of manifest.drift.yaml names two missing pieces, the drift_score annotator and a threshold. The manifest also declares no egress annotator and no post_tool_call point, so "Nothing else differs" is not quite true.
9c9590b
into
GenAI-Security-Project:integration
PR GenAI-Security-Project#229 makes the Guardian answer -32003 until handshake/hello declares the method (§4). The drift manifest test from PR GenAI-Security-Project#541 posted its step directly, so it read no decision. It now calls handshakeFor first, as the other Guardian tests do. Signed-off-by: Rock Lambros <rock@rockcyber.com>
PR GenAI-Security-Project#359 changed packages/guardian/src and PR GenAI-Security-Project#541 changed policy/, so TestRecordingIsCurrent no longer matched. Re-recorded once with scripts/record-ts-cases.sh after every PR in the batch was merged. Only the two input hashes changed: every recorded decision is the same. Signed-off-by: Rock Lambros <rock@rockcyber.com>
What changed
Corrects the README claim that
manifest.drift.yamlreacheswarn. It denies every call. Same fix in the Guardian README and the manifest header, plus a test that pins it.Which issue does this implement
Closes #379.
Base branch
integration, because this touches the specification, schemas, a referenceimplementation, an adapter, tests, or CI
main, because every changed path is on the documentation lane allowlist inCONTRIBUTING.md
Type of change
I tested this
uv run pytest -vpasses on my machineuv run mkdocs build --strictpasses on my machinebun testinreference-implementations/agtalso passes: 1286 pass, 4 skip. The new test is mutation-checked.Checklist
git commit -s(required by the DCO)Security
The manifest already fails closed.