mirror of
https://github.com/norandom/OpenUltraSAST.git
synced 2026-10-16 03:49:26 +00:00
search-with-proof group 4 + image: board, spend reservation, coordinator, search-task image
Board as immutable versioned blobs (coordinator sole writer); budget reserve/settle before model calls; per-task and run caps; coordinator loop over an injected executor; batch.py accepts a fixed allow-list of search variables; XSS browser oracle; ousast-search-task image (Python, Node/TypeScript, PHP, Java 17, sqlite, bwrap, chromium) built by CI. 103 tests on the host. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
6394ee473d
commit
4b38239f68
@@ -157,3 +157,21 @@ def test_bounded_lanes_oom_and_instrument_retry(tmp_path):
|
||||
|
||||
assert dispatch([item("fail")], workload(), tmp_path, {"ax": failed}, lanes=("ax",))
|
||||
assert attempts == [0, 1]
|
||||
|
||||
|
||||
@pytest.mark.parametrize("step", ["reason", "explore", "verify"])
|
||||
def test_search_environment(step):
|
||||
it = item()
|
||||
it.extra_env = {"SEARCH_STEP": step, "SEARCH_ID": "search-1", "SEARCH_TASK_ID": "task-2"}
|
||||
urls = {"SPEC_URL": "https://files.example/spec.dat", "RESULT_URL": "https://files.example/result.dat"}
|
||||
doc = manifest("ousast-engine-search-1", workload(), it, urls)
|
||||
assert {"name": "SEARCH_STEP", "value": step} in doc["spec"]["env"]
|
||||
for key, value in [
|
||||
("SEARCH_STEP", "shell"),
|
||||
("SEARCH_ID", "https://secret"),
|
||||
("SEARCH_TASK_ID", "x\nTOKEN=y"),
|
||||
("MODEL_API_KEY", "secret"),
|
||||
]:
|
||||
it.extra_env = {key: value}
|
||||
with pytest.raises(ValueError):
|
||||
manifest("ousast-engine-search-1", workload(), it, urls)
|
||||
|
||||
Reference in New Issue
Block a user