feat(clients): sessions+registry+optimize+armor: close gaps, loud list truncation, shared Gemini adapter

sessions: operations get/list/cancel/delete/wait for engine, session, memory and
serving profile; servingProfiles CRUD. registry: ListResult with truncated flag,
v1alpha twins, gateway/policy operations, authz IAM, deny policy update, boundary
patch/bindings. optimize: make_gemini_model over models::VertexModel (DirectModel
removed), generateSyntheticData, online evaluator operations, trace/log writers.
armor: SecurityAdmin for all SCC v2 methods (attack exposure excluded), documented
agent threat categories, floor settings fixed to location global after live run.
check_discovery.py of all four enforce coverage.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-24 05:43:13 +02:00
co-authored by Claude Sonnet 5.5
parent 29d775a923
commit a3396bfc68
83 changed files with 5020 additions and 378 deletions
+7 -3
View File
@@ -16,13 +16,15 @@
"templates/create": ["a-template"],
"templates/delete": ["a-template"],
"floor/get": ["a-scope"],
"findings": ["a-scope", "a-severity"],
"dashboard": ["a-scope", "a-severity"]
"findings": ["a-scope", "a-severity", "a-family"],
"dashboard": ["a-scope", "a-severity", "a-family"],
"scc/availability": ["a-scope"],
"scc/configs/list": ["a-scope", "a-kind"]
};
function sync() {
var shown = uses[action.value] || [];
["a-template", "a-text", "a-scope", "a-severity"].forEach(function (id) {
["a-template", "a-text", "a-scope", "a-severity", "a-family", "a-kind"].forEach(function (id) {
$(id).parentNode.style.display = shown.indexOf(id) >= 0 ? "" : "none";
});
}
@@ -34,6 +36,8 @@
if (text.value) b.text = text.value;
if (scope.value) b.scope = scope.value;
if (severity.value) b.severity = severity.value;
if ($("a-family").value) b.family = $("a-family").value;
if (a === "scc/configs/list") { b.kind = $("a-kind").value; b.parent = scope.value; delete b.scope; }
if (a === "templates/create") {
b.pi = "MEDIUM_AND_ABOVE";
b.malicious_uri = "true";
+9
View File
@@ -17,6 +17,15 @@
fields: [["agent_instruction", "area"], ["instruction", "text"], ["count", "text:5"]] },
runs: { help: "List evaluation runs (needs OAuth).", fields: [["limit", "text:10"]] },
traces: { help: "Cloud Trace summary (needs OAuth).", fields: [["limit", "text:20"], ["filter", "text"]] },
synthetic: { help: "generateSyntheticData: paste the request JSON (needs OAuth).",
fields: [["request", "area:{ ... }"]] },
"operations/list": { help: "Operations of an online evaluator (needs OAuth).",
fields: [["evaluator", "text:projects/P/locations/L/onlineEvaluators/ID"], ["limit", "text:20"]] },
"operations/get": { help: "One online evaluator operation.", fields: [["name", "text"]] },
"operations/wait": { help: "Server-side wait, 1..60 seconds.",
fields: [["name", "text"], ["timeout_seconds", "text:30"]] },
"logs/write": { help: "Write one log entry. Dry run unless confirm is write.",
fields: [["log_id", "text:agent-check"], ["text", "text"], ["confirm", "text"]] },
logs: { help: "Cloud Logging entries (needs OAuth).", fields: [["limit", "text:20"], ["trace_id", "text"], ["filter", "text"]] }
};
var $ = function (id) { return document.getElementById(id); };
+16 -2
View File
@@ -28,13 +28,25 @@
function get(path) {
return fetch(path).then(function (res) { return res.json(); });
}
// A list that hit its cap says so loudly; it is never presented as complete.
function banner(j) {
var el = $("r-truncated");
if (j && j.truncated === true) {
el.textContent = "TRUNCATED: showing " + j.count + " of more than " + j.cap_items +
" items (" + j.pages + " pages). Narrow the query or continue from the page token.";
el.hidden = false;
} else {
el.hidden = true;
el.textContent = "";
}
}
function run(promise) {
promise.then(function (j) { show(JSON.stringify(j, null, 2), false); })
promise.then(function (j) { banner(j); show(JSON.stringify(j, null, 2), false); })
.catch(function (e) { show(e.message, true); });
}
$("r-list").addEventListener("click", function () {
run(post("/agent/registry/list", { kind: $("r-kind").value }));
run(post("/agent/registry/list", { kind: $("r-kind").value, version: $("r-version").value }));
});
$("r-search").addEventListener("click", function () {
run(post("/agent/registry/search", { kind: $("r-kind").value, q: $("r-q").value }));
@@ -47,6 +59,8 @@
if (which === "gateways") run(post("/agent/registry/gateways/list"));
else if (which === "policies") run(post("/agent/registry/policies/list"));
else if (which === "identity") run(post("/agent/registry/identity", { engine_id: $("r-q").value }));
else if (which.indexOf("ops-") === 0)
run(post("/agent/registry/operations/list", { scope: which.substring(4) }));
else if (which === "approvals") run(get("/agent/registry/approvals"));
else run(get("/agent/registry/audit"));
});