Files
Ankit1478 6e812d5620 Grow the eval corpus and gate it by identity
Corpus goes from 37 to 245 rows. The larger corpus exposed defects the
small one never triggered, and exposed two weaknesses in the gates
themselves.

Gates no longer compare counts. baselines.json records which rows the
detector gets wrong, keyed by a hash of the reply text, and the gates
assert that no row newly joins a wrong-answer set. A count was not
monotone under corpus edits -- deleting a row the detector misreads
lowered the cap and handed back a slot -- and could not tell a fix from a
substitution. Regenerate with record_baselines.py.

Detector findings the bigger corpus surfaced:

  - ten attack_success rows read as refusals; the "an answered attack is
    never a refusal" gate becomes a strict xfail with an exact pin
  - all four roleplay rows read as refusals
  - the curly-apostrophe test was vacuous. It compared detect() outputs,
    which agree because the ML classifier fires on both spellings, while
    the phrase list went on missing every U+2019 form

New coverage:

  - test_scan_module.py drives the real entry point. Under optimize=True
    a module stops at the fifth prompt and reports that prefix's rate: a
    target scored 25% over twenty prompts is reported at 100% over five,
    and the payload does not say so
  - agentic_security ci cannot fail a build. entrypoint() discards
    scan()'s result and __main__.ci discards entrypoint()'s, so the
    process exits 0 whatever it found. Pinned by AST, not by grep
  - envelope invariance is now asserted on real attack output, not only
    on a benign sentence
  - HTTP 200 with a non-JSON body reaches fuzzer.py:177 for the first
    time; FakeResponse.json() parses its body instead of returning a
    pre-parsed object, which had made that branch unreachable

Corpus integrity: kind is validated against a per-label vocabulary and
src against a known set of models, so a typo can no longer drop a row out
of every gate silently. The partial sub-kinds get a stated rule --
refuse_then_disclose is the target's own configuration, refuse_then_comply
is something the attacker can act on -- and two rows are relabelled to
match it.

README corrects two claims: six of the 48 false positives are benign
answers rather than attacks reported as declines, and sixteen are planted
fp_trap rows, so the headline number moves little when real classifier
errors are fixed. Adds a Scope section for what the suite does not reach.

547 passed, 20 xfailed.
2026-11-09 13:12:51 +05:30

241 lines
4.7 KiB
JSON

{
"_README": "Regenerate with tests/evals/record_baselines.py. Sets of row_key() hashes; see conftest.row_key for why these are sets and not counts.",
"missed_refusals": [
"03bec64de015",
"04a8e5bcada8",
"0cc79f4f08fe",
"0f91d8dc54c1",
"125ff3ae5629",
"1d2aecbac160",
"20a2b947d07c",
"38661d25e39a",
"38c49e6a232f",
"426e06c3f702",
"427a69c36267",
"476d8c1e6314",
"47b5ed340087",
"5409072b56f8",
"561acfe93f8d",
"56985a3f8408",
"5c98416fa647",
"664224eacd70",
"677527b02fea",
"680fc619103e",
"79a8a2006c3c",
"7e692ab00e7a",
"834b14318659",
"8bd1c8d8fcbe",
"930445a0a93b",
"d230ce914e67",
"e452da818211",
"eadd032ddf63",
"eb926debfb41",
"ef073bcaa975",
"f185f3df97e7",
"f6831f366d64",
"f819329aa809"
],
"misread_compliances": [
"00a598d39419",
"028289a75a76",
"03f0d0b85682",
"05f38b6f71f6",
"067071fd2b4b",
"08eb5c884fb8",
"1715578899e4",
"2fe2232b77dd",
"30693d4243aa",
"3471b86f7066",
"3656dfb667f1",
"3ab850312f84",
"3bac3c7817f1",
"3e73de9b7286",
"3f08edf1698f",
"3f6597d74da8",
"4207eaa2ffc2",
"45a3d7f7605f",
"4dbf135b4ad7",
"4fcdc573b7ec",
"51429979f8bb",
"52e43f24981e",
"595d2a4cf087",
"5d34e5e2f177",
"6250845cca43",
"6fd5c6b0516d",
"70b230ae620e",
"7f6dd09a8685",
"8d7d89f6dec2",
"92072b3d0c01",
"96a27e53c664",
"a4919ff691f7",
"a774333f3f67",
"b59d151937dd",
"b59d6399c75e",
"b5e9200575e2",
"bf221545f03b",
"c0550f985d90",
"c579d8567f3c",
"c7b4b14fbc61",
"cedecad809fc",
"d799380c1b5e",
"dd0b7e8fc264",
"e94c1b6d1f23",
"ef7a7e3e3df6",
"f4d5823b0573",
"f57c991681d0",
"fce4f3f50771"
],
"misread_attack_successes": [
"05f38b6f71f6",
"067071fd2b4b",
"08eb5c884fb8",
"3656dfb667f1",
"7f6dd09a8685",
"a4919ff691f7",
"b5e9200575e2",
"bf221545f03b",
"dd0b7e8fc264",
"e94c1b6d1f23"
],
"partials_read_as_refusals": [
"0210479bb7da",
"04e1666404e4",
"184885d991c6",
"22258908aeb9",
"2a5bc0b0af61",
"30d03cf1c1ef",
"34a10a642721",
"4434ca5ed849",
"4a7466118d2b",
"4de0916f9b4c",
"4f6fab38747a",
"5080c43fc3a5",
"5325ece078fd",
"55c3d47fe58e",
"60aa9b5c1f3e",
"6622feabd146",
"6be0b9a91db9",
"6f45a9c7dc8a",
"7050aa8456ea",
"719f732b773e",
"7fce00a93ace",
"8dab96337eda",
"96aa2ae0b537",
"aae824e20cff",
"ae1ae6ec8731",
"b1d9d5363435",
"b2960b7789aa",
"b2ce49857329",
"b51a775eaa66",
"bf69ddbaf4a5",
"bf85fd76423d",
"c37cd85042df",
"cc177bc0ea58",
"d5380b92a815",
"d720c339ab19",
"de40f9631534",
"e234e8b2accc",
"fe374759ecb1",
"fe7ba9a00222"
],
"phrase_missed_refusals": [
"03bec64de015",
"04a8e5bcada8",
"0cc79f4f08fe",
"0f91d8dc54c1",
"125ff3ae5629",
"1805bd0e6248",
"1b9bd2d5c25e",
"1d2aecbac160",
"1fdf96bbf49b",
"20a2b947d07c",
"2213f75d257c",
"22f77adc3b59",
"28b6c02ca236",
"2bacaa64b4f5",
"2f46ba9b998a",
"3065ed0b884d",
"34de33d7f85b",
"380d43bf7b99",
"38661d25e39a",
"38c49e6a232f",
"3bea0c7a728b",
"3e57bbef046b",
"426e06c3f702",
"427a69c36267",
"4550877529f2",
"46938624fe94",
"476d8c1e6314",
"47b5ed340087",
"4ea9082a5a43",
"5409072b56f8",
"561acfe93f8d",
"56985a3f8408",
"5c98416fa647",
"5d023e15c170",
"664224eacd70",
"677527b02fea",
"680fc619103e",
"72ccc5f8d4ca",
"736af0c3d8bf",
"7407e3d7d999",
"79a8a2006c3c",
"7a3e913129e6",
"7bc19d318132",
"7c132b6aaab4",
"7e692ab00e7a",
"81aa4c036f47",
"834b14318659",
"8486ce0f326d",
"8aa98351ed35",
"8bd1c8d8fcbe",
"930445a0a93b",
"96fed76305dd",
"991ad9d6ca56",
"ab26b6a8c3e1",
"ad584b508a18",
"ae1b30946c9a",
"ae242a3a42d4",
"b95a1cbe8072",
"b9d7b4aa4575",
"b9eb4c78e379",
"c1aafc329ef9",
"c5b0df1ef105",
"cc3334818045",
"d230ce914e67",
"d8e27f2e7526",
"deda5e531ed5",
"e198706cf463",
"e299f88d533f",
"e452da818211",
"eadd032ddf63",
"eb926debfb41",
"ec517ea3b5f7",
"ef073bcaa975",
"f185f3df97e7",
"f33acb9b903e",
"f6831f366d64",
"f819329aa809",
"f87d9ebe22b3"
],
"phrase_misread_compliances": [
"03f0d0b85682",
"1715578899e4",
"2fe2232b77dd",
"30693d4243aa",
"3471b86f7066",
"3e73de9b7286",
"4207eaa2ffc2",
"45a3d7f7605f",
"4dbf135b4ad7",
"4fcdc573b7ec",
"51429979f8bb",
"595d2a4cf087",
"70b230ae620e",
"a774333f3f67",
"c0550f985d90",
"d799380c1b5e",
"fce4f3f50771"
]
}