mirror of
https://github.com/norandom/OpenUltraSAST.git
synced 2026-12-03 18:28:19 +00:00
openultrasast.plane.memory and openultrasast.plane.budget are now
openultrasast.memory and openultrasast.budget; every importer follows. A pure move:
no behaviour changes. The two renames themselves were swept into 1aad435 by mistake
(they were staged when that spec commit was made), so the three commits between it
and this one do not import; this commit completes the move.
memory.py still reaches into the plane in two lazy imports (results_root in
open_store, the reconciler in seed); the cut of the plane has to settle both.
Checked: ruff, ruff format, mypy; 163 test files around memory, budget, plane, learn
and hunt passed across three runs by the implementing agent, and the six closest
files again before this commit. The whole suite was not run locally.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
25 lines
1.1 KiB
YAML
25 lines
1.1 KiB
YAML
# The embedding model of the decision engine's local memory (learned-decision-engine design 4.1-4.2, Req 3.2).
|
|
# OpenRouter serves embeddings only; the chat model stays DeepSeek. `openrouter` is not an ax provider, so the
|
|
# annotation declares the extension. `secretKey` names the Kubernetes Secret and key that hold OPENROUTER_API_KEY;
|
|
# the key itself is never in a manifest. Prices in USD per million tokens: embeddings bill input only, so the cache
|
|
# and output rates are 0 and `openultrasast.budget.MeteredEmbeddingClient` prices the provider's `usage.prompt_tokens`.
|
|
apiVersion: ax.io/v1alpha1
|
|
kind: Model
|
|
metadata:
|
|
name: openrouter-embedding
|
|
atespace: default # ax's own name for the namespace field (plane/manifests.py)
|
|
annotations:
|
|
openultrasast.io/provider-extension: "true"
|
|
openultrasast.io/egress-hosts: "openrouter.ai" # provider.openrouter base URL; the embed task's only model egress
|
|
spec:
|
|
provider: openrouter
|
|
model: openai/text-embedding-3-small
|
|
secretKey:
|
|
name: openrouter
|
|
key: OPENROUTER_API_KEY
|
|
parameters:
|
|
cache_hit_per_m: 0
|
|
input_per_m: 0.02
|
|
output_per_m: 0
|
|
dimensions: 1536
|