seon 53ff243183 feat: per-run model selection, usage in diagnosis results and a Claude Messages API provider
캠페인마다 진단 모델을 고를 수 있게 한다. 하네스는 runs.model 열을 추가해 POST /runs의
model을 저장하고, 활성 런의 model을 /diagnose 요청에 실어 보낸다. 에이전트는 요청의
model을 우선 사용하고(없으면 OPENAI_MODEL 기본값), 모델 id가 claude-로 시작하면
internal/anthropic(Claude Messages API 어댑터)로 라우팅한다. 어댑터는 Responses API
항목(message/function_call/function_call_output)을 system·tools(input_schema)·tool_use/
tool_result로 변환하고 previous_response_id 체인을 클라이언트 쪽에서 재현하며, Claude 5.5가
강제 tool_choice를 거부하므로 강제 호출은 auto + 지시문으로 바꾼다. 키는
ANTHROPIC_KEY_FILE(/run/secrets/anthropic-api-key)에서 읽고 비어 있으면 명확한 오류를 낸다.
Result에 usage(입력·출력·합계 토큰)를 추가해 하네스 diagnosis 이벤트에 비용 근거를 남긴다.
2026-10-14 23:21:46 +09:00
2026-09-24 01:32:06 +09:00
2026-09-23 23:35:10 +09:00

selfheal-lab-apps

Application sources for the self-healing verification lab (VM + container mixed environment). Infrastructure: seon-labs/selfheal-lab-terraform. Runtime configuration (compose, manifests): selfheal-lab/selfheal-lab-gitops. This repository is public and contains no secrets.

Directory Runs on Image
legacy-api/ GCP MIG instances (docker compose) Artifact Registry asia-northeast1-docker.pkg.dev/cms-d-414903/selfheal/legacy-api:<git sha>
demo-app/ AWS Kubernetes (Argo CD, namespace demo) Public Artifact Registry asia-northeast1-docker.pkg.dev/cms-d-414903/selfheal-public/demo-api:<git sha> (anonymous pull; kubeadm nodes have no cloud credentials)
harness/ GCP harness VM (docker compose) Public Artifact Registry selfheal-public/harness:<git sha>
ai/ GCP AI VM (docker compose): cmd/agent (diagnosis, experiment design 6.2-6.4) and cmd/hitl (Discord approval bot, 6.5-6.6) Public Artifact Registry selfheal-public/ai-agent:<git sha>, selfheal-public/ai-hitl:<git sha> (gcloud builds submit ai --config ai/cloudbuild.yaml --substitutions=_TAG=<git sha>)

Build (Cloud Build, from the repository root):

gcloud builds submit legacy-api --project cms-d-414903 --tag asia-northeast1-docker.pkg.dev/cms-d-414903/selfheal/legacy-api:$(git rev-parse --short HEAD)
S
Description
Self-healing lab application sources (legacy-api for the VM layer, demo-app for Kubernetes). Public, no secrets.
Readme
68 MiB
0 Stars 1 Watchers 0 Forks
Languages
Go 99.2%
Dockerfile 0.8%