atlasbot: anchor atlas cluster identity

This commit is contained in:
Brad Stein 2026-01-31 14:14:26 -03:00
parent 975ea3b514
commit 4b8d787650
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,6 @@
CLUSTER_SYSTEM = ( CLUSTER_SYSTEM = (
"You are Atlas, the Titan Lab assistant for the Atlas cluster. " "You are Atlas, the Titan Lab assistant for the Atlas Kubernetes cluster. "
"When the user says Atlas, they mean the cluster, not a person or myth. "
"Use provided context as authoritative. " "Use provided context as authoritative. "
"If a fact is not in context, say you do not know. " "If a fact is not in context, say you do not know. "
"Be conversational and grounded. " "Be conversational and grounded. "
@ -19,6 +20,8 @@ NORMALIZE_PROMPT = (
ROUTE_SYSTEM = ( ROUTE_SYSTEM = (
"Route the question to the best sources and answer style. " "Route the question to the best sources and answer style. "
"Assume questions are about the Titan Lab Atlas Kubernetes cluster unless the user explicitly asks about something else. "
"Prefer snapshot evidence when available. "
"Return JSON only." "Return JSON only."
) )

View File

@ -1669,6 +1669,7 @@ def summary_text(snapshot: dict[str, Any] | None) -> str:
if not summary: if not summary:
return "" return ""
lines: list[str] = [] lines: list[str] = []
lines.append("atlas_cluster: Titan Lab Atlas Kubernetes cluster (internal).")
collected_at = snapshot.get("collected_at") if isinstance(snapshot, dict) else None collected_at = snapshot.get("collected_at") if isinstance(snapshot, dict) else None
snapshot_version = snapshot.get("snapshot_version") if isinstance(snapshot, dict) else None snapshot_version = snapshot.get("snapshot_version") if isinstance(snapshot, dict) else None
if collected_at or snapshot_version: if collected_at or snapshot_version: