triage: wire openclaw local diagnosis

This commit is contained in:
jenkins 2026-05-20 03:14:50 -03:00
parent 878f9ed9b8
commit a30d0fffa4
3 changed files with 22 additions and 7 deletions

View File

@ -21,6 +21,10 @@ spec:
maintenance.bstein.dev/restart-rev: "20260413-jenkins-api-2" maintenance.bstein.dev/restart-rev: "20260413-jenkins-api-2"
vault.hashicorp.com/agent-inject: "true" vault.hashicorp.com/agent-inject: "true"
vault.hashicorp.com/role: "maintenance" vault.hashicorp.com/role: "maintenance"
vault.hashicorp.com/agent-requests-cpu: "25m"
vault.hashicorp.com/agent-limits-cpu: "100m"
vault.hashicorp.com/agent-requests-mem: "32Mi"
vault.hashicorp.com/agent-limits-mem: "128Mi"
vault.hashicorp.com/agent-inject-secret-ariadne-env.sh: "kv/data/atlas/maintenance/ariadne-db" vault.hashicorp.com/agent-inject-secret-ariadne-env.sh: "kv/data/atlas/maintenance/ariadne-db"
vault.hashicorp.com/agent-inject-template-ariadne-env.sh: | vault.hashicorp.com/agent-inject-template-ariadne-env.sh: |
{{ with secret "kv/data/atlas/maintenance/ariadne-db" }} {{ with secret "kv/data/atlas/maintenance/ariadne-db" }}
@ -407,6 +411,12 @@ spec:
value: "45 */6 * * *" value: "45 */6 * * *"
- name: ARIADNE_SCHEDULE_TESTING_TRIAGE - name: ARIADNE_SCHEDULE_TESTING_TRIAGE
value: "*/15 * * * *" value: "*/15 * * * *"
- name: ARIADNE_TESTING_TRIAGE_MODEL_URL
value: http://openclaw-ollama.openclaw.svc.cluster.local:11434
- name: ARIADNE_TESTING_TRIAGE_MODEL
value: qwen2.5:7b-instruct-q4_0
- name: ARIADNE_TESTING_TRIAGE_MODEL_TIMEOUT_SEC
value: "180"
- name: JENKINS_WORKSPACE_NAMESPACE - name: JENKINS_WORKSPACE_NAMESPACE
value: jenkins value: jenkins
- name: JENKINS_WORKSPACE_PVC_PREFIX - name: JENKINS_WORKSPACE_PVC_PREFIX

View File

@ -86,16 +86,18 @@ data:
You are OpenClaw running inside the Titan Kubernetes cluster as a read-only You are OpenClaw running inside the Titan Kubernetes cluster as a read-only
testing and operations triage assistant. testing and operations triage assistant.
Ariadne owns deterministic evidence collection. Start every testing triage Ariadne owns deterministic evidence collection and local diagnosis. Start
by reading: every testing triage by reading:
- `curl -sS "$ARIADNE_BASE_URL/api/internal/testing/triage/latest"` - `curl -sS "$ARIADNE_BASE_URL/api/internal/testing/triage/diagnosis/latest"`
- if that is missing or stale, ask a human to run: - if that is missing or stale, ask a human to run:
`curl -sS -X POST "$ARIADNE_BASE_URL/api/internal/testing/triage/collect"` `curl -sS -X POST "$ARIADNE_BASE_URL/api/internal/testing/triage/diagnosis/run"`
- if the diagnosis is unavailable, fall back to:
`curl -sS "$ARIADNE_BASE_URL/api/internal/testing/triage/latest"`
Treat the Ariadne bundle as the source of truth. Your job is to explain the Treat the Ariadne diagnosis and evidence bundle as the source of truth. Your
evidence and propose small Flux/IaC changes, not to rediscover everything job is to explain the evidence and propose small Flux/IaC changes, not to
from raw shell commands. rediscover everything from raw shell commands.
Your job is to explain failing or suspicious test runs without mutating the Your job is to explain failing or suspicious test runs without mutating the
cluster. Prefer concise incident summaries with: cluster. Prefer concise incident summaries with:
@ -108,6 +110,8 @@ data:
Useful read-only commands: Useful read-only commands:
- `curl -sS "$ARIADNE_BASE_URL/api/internal/testing/triage/diagnosis/latest"`
- `curl -sS -X POST "$ARIADNE_BASE_URL/api/internal/testing/triage/diagnosis/run"`
- `curl -sS "$ARIADNE_BASE_URL/api/internal/testing/triage/latest"` - `curl -sS "$ARIADNE_BASE_URL/api/internal/testing/triage/latest"`
- `kubectl get nodes -o wide` - `kubectl get nodes -o wide`
- `kubectl get pods -A -o wide` - `kubectl get pods -A -o wide`

View File

@ -23,6 +23,7 @@ spec:
ai.bstein.dev/instructions: kubectl-field-selectors ai.bstein.dev/instructions: kubectl-field-selectors
ai.bstein.dev/role: testing-triage ai.bstein.dev/role: testing-triage
ai.bstein.dev/placement: arm64 gateway lane (jetson preferred) ai.bstein.dev/placement: arm64 gateway lane (jetson preferred)
ai.bstein.dev/config-rev: "20260520-local-triage"
spec: spec:
serviceAccountName: openclaw-triage serviceAccountName: openclaw-triage
automountServiceAccountToken: true automountServiceAccountToken: true