Repository navigation
Fix adversarial evaluation boundaries and fail closed on malformed reports - #145
oliarmak-web wants to merge 6 commits into
Conversation
|
Thank you, @oliarmak-web. This is a big step forward from #134, and it shows real care. Both blockers from the #134 review are addressed in substance:
I'm closing this PR because review found a new way past the same Blocking1. The gate can still be bypassed through line-separator characters (reproduced end to end). gives 2. "Fail closed" crashes the run instead of failing it (reproduced). prints a Rich traceback, exits 1 and writes 0 bytes to stdout, so CI gets no JSON document to read. The other skill's outcome is discarded. Both run rows end up 3. One old stored report takes down whole dashboard pages (reproduced).
A single successful report saved before the upgrade that ends in an unclosed Should fix
Housekeeping
Fixing blockers 1 and 2 properly also fixes most of 3. With those and the two parser regressions done, I expect this to be very close to mergeable. Looking forward to the next version. |
Closes #117
Supersedes #134 and addresses the maintainer review. GitHub rejected reopening #134, so this follows the maintainer’s invitation to submit a replacement.
Repository instructions can suppress real findings, fabricate reports, or induce tool requests. This adds paired adversarial fixtures, offline replay and opt-in live collection, plus focused report/prompt hardening.
Changes addressing the maintainer review
###[High]. The runner records malformed reports as failed before findings ingestion.Validation
test_sensor_dying_mid_run_drops_events_without_blocking, reproduces identically on untouched baselinef24043bd6f01618128748241b6729bebc9254a26on this Mac.Evidence and remaining work
Draft pending fresh Claude/API measurements on the revised corpus and implementation. This machine has no configured model credentials, CLI authentication or local model runtime. No billable evaluation workflow was dispatched.
The November 16 raw records are preserved unchanged, with their labeled SQL-only corpus archived under corpus-v1. Historical first-trial results were Claude attack/control retention 8/8 in both phases; local Qwen API attack retention 7/8 baseline and 8/8 hardened, with 8/8 controls in both phases. All 32 API reports failed format checks. These are small historical observations, not measurements of the revised code or corpus and not a statistically established improvement.
Original API empty tool lists were asserted rather than observed and now replay as unknown. Only four historical Claude runs have complete streams, under narrower-than-production grants. Current collection records production grants and telemetry in the same invocation.
See evaluation guide and historical evidence for reproduction and limitations. Retention remains a location/CWE heuristic requiring human review; F900 detection is not a general hallucination detector.
AI assistance: OpenAI Codex implemented and tested these changes under the account owner's direction. Maintainer feedback approved resubmission after fixes, not this implementation or its results.