mirror of
https://github.com/norandom/OpenUltraSAST.git
synced 2026-10-17 20:19:29 +00:00
plane/memory.py: the MemoryStore interface with FileStore (index.jsonl, facts by content hash, repos/<host>__<owner>__<name>/<pin>.jsonl, idempotent ingest, deterministic row ids, refusal below 1 GiB free naming the path) and MinioStore (object metadata and tags, S3 Select pushdown probed once per process with a logged local fallback, object version ids on every row read, versioning and runs/ lifecycle helper, presigned URLs). OUSAST_MEMORY selects the backend; MINIO_* settings come from .env; the minio SDK is the optional extra `minio`. plane/tasks/remember.py: model-free rows (facts, verdict, unit_cost, alert) from a case's artifacts; remember_run computes them on the host for a recorded run without writing into it. reconciler.mark_done (477 lines total), seed before and ingest after `ousast plane run`, `ousast plane remember <run>`. The generator annotates each repo-facts Task with openultrasast.io/memory-key (repo, pin, candidates digest, image digest) and the Run with its population and split; plane/ regenerated. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01EmM1j46qgKMh3zqD1QMwEo
17 lines
291 B
JSON
17 lines
291 B
JSON
{
|
|
"status": "done",
|
|
"units_done": 1,
|
|
"units_total": 1,
|
|
"usd": 0.009799,
|
|
"calls": 7,
|
|
"usage": {
|
|
"prompt_tokens": 61163,
|
|
"prompt_cache_hit_tokens": 46464,
|
|
"completion_tokens": 2031
|
|
},
|
|
"priced": true,
|
|
"model": "deepseek-flash",
|
|
"pass": "b",
|
|
"family": "untrusted_destination"
|
|
}
|