{
  "run_id": "Infisical--agent-vault-claude-haiku-5-5-1793108006659311593",
  "date": "2026-10-27T13:48:19.917910+00:00",
  "repo": "Infisical/agent-vault",
  "kind": "repo",
  "source": "https://github.com/Infisical/agent-vault",
  "commit": "d5836ec3bb2315de38043d742ae5daca11a4944a",
  "model": "claude-haiku-5-5",
  "model_version": "claude-haiku-5-5",
  "test_version": "readme-d5b140d3c0f8b95c2dd6fe6fc381a303cacb92679582c22317d8e78b572f0cf2",
  "pass": true,
  "outcome": "pass",
  "time_to_working_s": 832.6409671399999,
  "total_s": 893.2585589885712,
  "steps": [
    "cd <guest-path> && ls -la && id -u && python3 --version && node --version 2>/dev/null; npm --version 2>/dev/null; go version 2>/dev/null; cat /etc/os-release | head -3; echo \"CDP_URL=$CDP_URL\"",
    "cd <guest-path> && wc -c README.md && head -c 7000 README.md",
    "cd <guest-path> && tail -c +7000 README.md | head -c 7500",
    "cd <guest-path> && tail -c +14500 README.md",
    "cd <guest-path> && cat Makefile && grep -m1 '^go ' go.mod && grep -n -i 'telemetry\\|consent\\|prompt\\|read -' install.sh | head -20 && ls web && cat web/package.json 2>/dev/null | head -30 && ls .coldpass",
    "cd <guest-path> && export NODE_USE_ENV_PROXY=1 && make build 2>&1 | tail -40; echo \"EXIT=${PIPESTATUS[0]}\"; ls -la agent-vault 2>/dev/null",
    "cd <guest-path> && ./agent-vault --help 2>&1 | head -60; ./agent-vault server --help 2>&1 | head -40",
    "cd <guest-path> && ./agent-vault vault --help 2>&1 | head -30; ./agent-vault user --help 2>&1 | sed -n 1,20p; ./agent-vault owner --help 2>&1 | sed -n 1,15p; ./agent-vault agent --help 2>&1 | sed -n 1,15p",
    "cd <guest-path> && export AGENT_VAULT_TELEMETRY=0 AGENT_VAULT_MASTER_PASSWORD='GuestPass-123!' && nohup ./agent-vault server --mitm-port 0 -p 14321 > /tmp/av-server.log 2>&1 &\nsleep 6; cat /tmp/av-server.log | tail -20; curl -s -o /dev/null -w 'HTTP %{http_code}\\n' http://127.0.0.1:14321/ ; curl -s http://127.0.0.1:14321/api/health 2>/dev/null | head -c 300; echo",
    "cd <guest-path> && ./agent-vault auth --help 2>&1 | sed -n 1,20p; ./agent-vault auth register --help 2>&1 | sed -n 1,25p",
    "cd <guest-path> && export AGENT_VAULT_TELEMETRY=0 && printf 'GuestUser-Pass-123!\\n' | ./agent-vault auth register --address http://127.0.0.1:14321 --email <email> --password-stdin 2>&1; echo \"EXIT=$?\"; ./agent-vault vault create --help 2>&1 | sed -n 1,15p; ./agent-vault vault credential --help 2>&1 | sed -n 1,15p; ./agent-vault vault service --help 2>&1 | sed -n 1,15p",
    "cd <guest-path> && export AGENT_VAULT_TELEMETRY=0 AGENT_VAULT_ADDR=http://127.0.0.1:14321 && ./agent-vault vault create demo-vault 2>&1; echo \"EXIT=$?\"; ./agent-vault vault credential set --help 2>&1 | sed -n 1,20p",
    "cd <guest-path> && export AGENT_VAULT_TELEMETRY=0 AGENT_VAULT_ADDR=http://127.0.0.1:14321 && ./agent-vault vault credential set --vault demo-vault ANTHROPIC_API_KEY=sk-test-12345 2>&1; echo \"EXIT=$?\"; ./agent-vault vault credential list --vault demo-vault 2>&1; echo \"EXIT=$?\"; ./agent-vault vault credential get --vault demo-vault ANTHROPIC_API_KEY 2>&1; echo \"EXIT=$?\"",
    "cd <guest-path> && export AGENT_VAULT_TELEMETRY=0 AGENT_VAULT_ADDR=http://127.0.0.1:14321 && ./agent-vault vault service add --help 2>&1 | sed -n 1,40p; ./agent-vault catalog --help 2>&1 | sed -n 1,12p",
    "cd <guest-path> && pkill -f 'agent-vault server' ; sleep 2; export AGENT_VAULT_TELEMETRY=0 AGENT_VAULT_MASTER_PASSWORD='GuestPass-123!' && nohup ./agent-vault server -p 14321 > /tmp/av-server.log 2>&1 &\nsleep 6; tail -5 /tmp/av-server.log; mkdir -p /tmp/upstream && cat > /tmp/upstream/echo.py <<'EOF'\nimport http.server, json\nclass H(http.server.BaseHTTPRequestHandler):\n    def do_GET(self):\n        body = json.dumps({\"path\": self.path, \"authorization\": <secret>\"Authorization\")}).encode()\n        self.send_response(200); self.send_header(\"Content-Type\",\"application/json\"); self.send_header(\"Content-Length\",str(len(body))); self.end_headers(); self.wfile.write(body)\n    def log_message(self, *a): pass\nhttp.server.HTTPServer((\"127.0.0.1\", 18080), H).serve_forever()\nEOF\nnohup python3 -I /tmp/upstream/echo.py > /tmp/upstream/echo.log 2>&1 &\nsleep 2; curl -s http://127.0.0.1:18080/hello; echo",
    "cd <guest-path> && pgrep -af 'agent-vault' ; pkill -f '[.]/agent-vault server'; sleep 2; pgrep -af '[.]/agent-vault' ; echo \"stopped-check done\"",
    "cd <guest-path> && export AGENT_VAULT_TELEMETRY=0 AGENT_VAULT_MASTER_PASSWORD='GuestPass-123!' && (nohup ./agent-vault server -p 14321 > /tmp/av-server.log 2>&1 &) ; sleep 6; tail -5 /tmp/av-server.log; mkdir -p /tmp/upstream && printf '%s\\n' 'import http.server, json' 'class H(http.server.BaseHTTPRequestHandler):' '    def do_GET(self):' '        body = json.dumps({\"path\": self.path, \"authorization\": <secret>\"Authorization\")}).encode()' '        self.send_response(200); self.send_header(\"Content-Type\",\"application/json\"); self.send_header(\"Content-Length\",str(len(body))); self.end_headers(); self.wfile.write(body)' '    def log_message(self, *a): pass' 'http.server.HTTPServer((\"127.0.0.1\", 18080), H).serve_forever()' > /tmp/upstream/echo.py && (nohup python3 -I /tmp/upstream/echo.py > /tmp/upstream/echo.log 2>&1 &); sleep 2; curl -s http://127.0.0.1:18080/hello; echo",
    "cd <guest-path> && export AGENT_VAULT_TELEMETRY=0 AGENT_VAULT_ADDR=http://127.0.0.1:14321 && ./agent-vault vault credential set --vault demo-vault ECHO_TOKEN=secret-echo-789 2>&1; ./agent-vault vault service add --vault demo-vault --name local-echo --host 127.0.0.1:18080 --auth-type bearer --token-key ECHO_TOKEN 2>&1; echo \"EXIT=$?\"; ./agent-vault vault service list --vault demo-vault 2>&1 | tail -5; ./agent-vault agent create --help 2>&1 | sed -n 1,12p",
    "cd <guest-path> && export AGENT_VAULT_TELEMETRY=0 AGENT_VAULT_ADDR=http://127.0.0.1:14321 && ./agent-vault vault service add --vault demo-vault --name local-echo --host localhost:18080 --auth-type bearer --token-key ECHO_TOKEN 2>&1; echo \"EXIT=$?\"; ./agent-vault vault service list --vault demo-vault 2>&1 | tail -4; ./agent-vault agent create guest-agent --vault demo-vault:proxy --token-only 2>&1 > /tmp/av-agent-token.txt; echo \"EXIT=$?\"; wc -c /tmp/av-agent-token.txt",
    "cd <guest-path> && pkill -f '[.]/agent-vault server'; sleep 3; export AGENT_VAULT_TELEMETRY=0 AGENT_VAULT_DEV_MODE=true AGENT_VAULT_MASTER_PASSWORD='GuestPass-123!' && (nohup ./agent-vault server -p 14321 > /tmp/av-server.log 2>&1 &); sleep 6; tail -3 /tmp/av-server.log; export AGENT_VAULT_ADDR=http://127.0.0.1:14321; ./agent-vault vault service add --vault demo-vault --name local-echo --host localhost:18080 --auth-type bearer --token-key ECHO_TOKEN 2>&1 | tail -3; echo \"EXIT=$?\"; ./agent-vault vault service list --vault demo-vault 2>&1 | tail -4",
    "ss -ltnp 2>/dev/null | grep -E ':(14321|14322|18080)\\b' ; echo; ps -eo pid,args | grep -E 'agent-vault server|echo.py' | grep -v grep | cut -c1-120",
    "cd <guest-path> && export AGENT_VAULT_TELEMETRY=0 AGENT_VAULT_DEV_MODE=true AGENT_VAULT_MASTER_PASSWORD='GuestPass-123!' && nohup ./agent-vault server -p 14321 > /tmp/av-server.log 2>&1 &\necho $! > /tmp/av-server.pid; sleep 6; tail -3 /tmp/av-server.log; export AGENT_VAULT_ADDR=http://127.0.0.1:14321 AGENT_VAULT_TELEMETRY=0; ./agent-vault vault service add --vault demo-vault --name local-echo --host localhost:18080 --auth-type bearer --token-key ECHO_TOKEN 2>&1 | tail -3; ./agent-vault vault service list --vault demo-vault 2>&1 | tail -4",
    "export AGENT_VAULT_ADDR=http://127.0.0.1:14321 AGENT_VAULT_TELEMETRY=0; AV=<guest-path>; $AV vault service add --vault demo-vault --name local-echo --host localhost:18080 --auth-type bearer --token-key ECHO_TOKEN 2>&1 | tail -3; $AV vault service list --vault demo-vault 2>&1 | tail -4; cat /tmp/av-server.pid",
    "echo \"127.0.0.1 echo.upstream.test\" | sudo tee -a /etc/hosts >/dev/null && getent hosts echo.upstream.test; curl -s http://echo.upstream.test:18080/x; echo; export AGENT_VAULT_ADDR=http://127.0.0.1:14321 AGENT_VAULT_TELEMETRY=0; AV=<guest-path>; $AV vault service add --vault demo-vault --name local-echo --host echo.upstream.test:18080 --auth-type bearer --token-key ECHO_TOKEN 2>&1 | tail -2; $AV vault service list --vault demo-vault 2>&1 | tail -4",
    "TOKEN=<secret> /tmp/av-agent-token.txt | tr -d '\\n'); echo \"token_len=${#TOKEN}\"; echo \"--- no proxy auth:\"<secret>'Authorization: <secret>' http://echo.upstream.test:18080/hello -w ' HTTP=%{http_code}\\n'; echo \"--- with agent token as proxy auth:\"<secret>\"http://<secret>:14322\" -H 'Authorization: <secret>' http://echo.upstream.test:18080/hello -w ' HTTP=%{http_code}\\n'; echo \"--- upstream log:\"; tail -3 /tmp/upstream/echo.log; echo \"--- server log:\"; tail -5 /tmp/av-server.log | cut -c1-300",
    "export AGENT_VAULT_ADDR=http://127.0.0.1:14321 AGENT_VAULT_TELEMETRY=0; AV=<guest-path>; $AV vault token --help 2>&1 | sed -n 1,14p; echo ---; $AV vault token --vault demo-vault 2>&1 | head -c 300; echo; echo \"rc=$?\"",
    "AV=<guest-path>; SESS=$($AV vault token --vault demo-vault 2>/dev/null | tr -d '\\n'); echo \"sess_len=${#SESS}\"; echo \"--- proxy with session token:\"<secret>\"http://<secret>:14322\" -H 'Authorization: <secret>' http://echo.upstream.test:18080/hello -w ' HTTP=%{http_code}\\n'; echo \"--- upstream log:\"; tail -3 /tmp/upstream/echo.log; echo \"--- server log:\"; tail -3 /tmp/av-server.log | cut -c1-300",
    "cd <guest-path> && grep -rn \"Proxy-Authorization\" --include=*.go internal | grep -v _test | head -12 | cut -c1-260; grep -rln \"Proxy-Authorization\\|proxy auth\" docs | head -5",
    "cd <guest-path> && sed -n 1,80p internal/brokercore/proxyauth.go | cut -c1-200",
    "AV=<guest-path>; SESS=$($AV vault token --vault demo-vault 2>/dev/null | tr -d '\\n'); echo \"--- proxy with session token as userinfo:\"; curl -s -m 10 -x \"http:<email>:14322\" -H 'Authorization: <secret>' http://echo.upstream.test:18080/hello -w ' HTTP=%{http_code}\\n'; echo \"--- upstream log:\"; tail -3 /tmp/upstream/echo.log; echo \"--- server log:\"; tail -3 /tmp/av-server.log | cut -c1-300",
    "cd <guest-path> && grep -rn \"Getenv\\|DEV_MODE\\|AllowPrivate\\|allow_private\" internal/netguard/*.go 2>/dev/null | grep -v _test | head; grep -rn \"AGENT_VAULT_[A-Z_]*\" --include=*.go -o internal cmd | sed 's/.*://' | sort | uniq -c | sort -rn | head -40; grep -rn \"netguard\" docs | head -5 | cut -c1-200",
    "cd <guest-path> && sed -n 14,40p internal/netguard/netguard.go | cut -c1-180; grep -rln \"ALLOW_PRIVATE_RANGES\\|NETWORK_ALLOWLIST\" docs | head",
    "kill $(cat /tmp/av-server.pid); sleep 3; cd <guest-path>; export AGENT_VAULT_TELEMETRY=0 AGENT_VAULT_DEV_MODE=true AGENT_VAULT_NETWORK_ALLOWLIST=127.0.0.1 AGENT_VAULT_MASTER_PASSWORD='GuestPass-123!'; nohup <guest-path> server -p 14321 > /tmp/av-server.log 2>&1 &\necho $! > /tmp/av-server.pid; sleep 6; tail -2 /tmp/av-server.log; AV=<guest-path>; SESS=$(AGENT_VAULT_ADDR=http://127.0.0.1:14321 $AV vault token --vault demo-vault 2>/dev/null | tr -d '\\n'); echo \"--- proxy request:\"; curl -s -m 10 -x \"http:<email>:14322\" -H 'Authorization: <secret>' http://echo.upstream.test:18080/hello -w ' HTTP=%{http_code}\\n'; echo \"--- upstream saw:\"; tail -2 /tmp/upstream/echo.log",
    "cd <guest-path>; export AGENT_VAULT_TELEMETRY=0; ./agent-vault server stop 2>&1; sleep 3; export AGENT_VAULT_DEV_MODE=true AGENT_VAULT_NETWORK_ALLOWLIST=127.0.0.1 AGENT_VAULT_MASTER_PASSWORD='GuestPass-123!'; nohup <guest-path> server -p 14321 > /tmp/av-server.log 2>&1 &\nsleep 7; tail -2 /tmp/av-server.log; AV=<guest-path>; SESS=$(AGENT_VAULT_ADDR=http://127.0.0.1:14321 $AV vault token --vault demo-vault 2>/dev/null | tr -d '\\n'); echo \"--- proxy request:\"; curl -s -m 10 -x \"http:<email>:14322\" -H 'Authorization: <secret>' http://echo.upstream.test:18080/hello -w ' HTTP=%{http_code}\\n'; echo \"--- upstream saw:\"; tail -2 /tmp/upstream/echo.log",
    "cd /tmp && curl --proto '=https' --proto-redir '=https' --tlsv1.2 -fsSL https://get.agent-vault.dev -o /tmp/av-install.sh; echo \"fetch_rc=$?\"; ls -la /tmp/av-install.sh 2>/dev/null; cd <guest-path> && ls examples && grep -rn \"PollInterval\\|poll-interval\\|time.NewTicker\\|for {\" --include=*.go internal cmd | grep -v _test | head -8 | cut -c1-200",
    "cd /tmp && AGENT_VAULT_NO_TELEMETRY=1 NODE_USE_ENV_PROXY=1 sh /tmp/av-install.sh 2>&1 | tail -25; echo \"EXIT=${PIPESTATUS[0]}\"; command -v agent-vault && agent-vault version 2>&1 | head -3",
    "cd <guest-path> && for d in examples/*; do echo \"== $d\"; ls $d | head -12; done; command -v docker || echo \"no docker\"; grep -n \"\" examples/nginx-public-ui-proxy/README.md 2>/dev/null | head -12 | cut -c1-200",
    "mkdir -p /tmp/av-scripts <guest-path> && AV=<guest-path>; SESS=$(AGENT_VAULT_ADDR=http://127.0.0.1:14321 $AV vault token --vault demo-vault 2>/dev/null | tr -d '\\n'); echo \"$SESS\" > /tmp/av-scripts/sess.txt; cat > /tmp/av-scripts/mk.py <<'EOF'\nimport json, os\nW = \"<guest-path>\"\nsess = open(\"/tmp/av-scripts/sess.txt\").read().strip()\nENV = {\"AGENT_VAULT_ADDR\": \"http://127.0.0.1:14321\", \"AGENT_VAULT_TELEMETRY\": \"0\"}\nBIN = \"./agent-vault\"\ncred_argv = [BIN, \"vault\", \"credential\", \"get\", \"--vault\", \"demo-vault\", \"ANTHROPIC_API_KEY\"]\nproxy_argv = [\"curl\", \"-s\", \"-m\", \"10\", \"-x\", \"http://<email>:14322\",\n              \"-H\", \"Authorization: <secret>\", \"http://echo.upstream.test:18080/hello\"]\nprobe = {\"kind\": \"cli\", \"argv\": cred_argv, \"cwd\": W, \"env\": ENV, \"expected_text\": \"sk-test-12345\"}\nclaims = [\n {\"kind\": \"claim\", \"claim\": \"A credential for ANTHROPIC_API_KEY can be created and read back from a vault\",\n  \"source\": \"For example, you can create a credential for `ANTHROPIC_API_KEY` and create a service rule for Agent Vault to substitute a dummy value `__anthropic_api_key__` for the real key.\",\n  \"input\": \"vault demo-vault, key ANTHROPIC_API_KEY=sk-test-12345 (set earlier)\", \"expected\": \"credential get returns sk-test-12345\",\n  \"probe_kind\": \"cli\", \"argv\": cred_argv, \"cwd\": W, \"env\": ENV, \"expected_text\": \"sk-test-12345\"},\n {\"kind\": \"claim\", \"claim\": \"Agent Vault attaches the stored credential to a request routed through the proxy\",\n  \"source\": \"Agent Vault intercepts every request and attaches credentials onto it before forwarding the request to the target outbound API.\",\n  \"input\": \"HTTP request via proxy 127.0.0.1:14322 to echo.upstream.test:18080 with dummy Bearer __echo_token__; service local-echo maps ECHO_TOKEN=secret-echo-789\",\n  \"expected\": \"upstream receives Bearer secret-echo-789\", \"probe_kind\": \"cli\", \"argv\": proxy_argv, \"cwd\": W,\n  \"env\": {}, \"expected_text\": \"Bearer secret-echo-789\"},\n]\njson.dump(claims, open(W + \"/.coldpass/claims.json\", \"w\"), indent=2)\njson.dump(probe, open(W + \"/.coldpass/probe.json\", \"w\"), indent=2)\nprint(\"written\", len(claims))\nEOF\npython3 -I /tmp/av-scripts/mk.py && cat <guest-path> | head -30",
    "cd <guest-path> && timeout 900 make test > /tmp/av-scripts/maketest.log 2>&1; echo \"EXIT=$?\"; tail -15 /tmp/av-scripts/maketest.log | cut -c1-250; grep -c '^ok' /tmp/av-scripts/maketest.log; grep -E '^(FAIL|--- FAIL|panic)' /tmp/av-scripts/maketest.log | head -10",
    "cd <guest-path> && grep -n -A12 'FAIL: TestEnsureServerStopped_AllowsForceWithDATABASE_URL' /tmp/av-scripts/maketest.log | cut -c1-260 | head -30; grep -n 'func TestEnsureServerStopped_AllowsForceWithDATABASE_URL' -A25 cmd/*_test.go | cut -c1-200 | head -40",
    "cd <guest-path> && ./agent-vault server stop 2>&1 | tail -1; sleep 3; timeout 900 make test > /tmp/av-scripts/maketest2.log 2>&1; echo \"EXIT=$?\"; grep -E '^(FAIL|ok|---)' /tmp/av-scripts/maketest2.log | cut -c1-120 | head -30",
    "cd <guest-path> && export AGENT_VAULT_TELEMETRY=0 AGENT_VAULT_DEV_MODE=true AGENT_VAULT_NETWORK_ALLOWLIST=127.0.0.1 AGENT_VAULT_MASTER_PASSWORD='GuestPass-123!'; nohup <guest-path> server -p 14321 > /tmp/av-server.log 2>&1 &\nsleep 7; tail -2 /tmp/av-server.log; AV=<guest-path>; AGENT_VAULT_ADDR=http://127.0.0.1:14321 $AV vault credential get --vault demo-vault ANTHROPIC_API_KEY; echo; SESS=$(AGENT_VAULT_ADDR=http://127.0.0.1:14321 $AV vault token --vault demo-vault 2>/dev/null | tr -d '\\n'); echo \"$SESS\" > /tmp/av-scripts/sess.txt; curl -s -m 10 -x \"http:<email>:14322\" -H 'Authorization: <secret>' http://echo.upstream.test:18080/hello; echo",
    "cd <guest-path> && grep -n \"examples\\|cycles\" <guest-path> | head -40; ls .coldpass; tail -c 400 /tmp/av-scripts/maketest2.log",
    "sed -n 1027,1075p <guest-path>; sed -n 1221,1240p <guest-path>",
    "grep -n \"def example_result\" -A25 <guest-path> | head -45",
    "cd <guest-path> && cat > examples.json <<'EOF'\n[\n {\"claim\":\"Documented development test suite\",\"source\":\"README.md\",\"input\":\"make test\",\"expected\":\"all Go packages pass\",\"argv\":[\"make\",\"test\"],\"cwd\":\"<guest-path>\",\"env\":{\"AGENT_VAULT_TELEMETRY\":\"0\"}},\n {\"claim\":\"nginx public UI proxy example\",\"source\":\"README.md\",\"reason\":\"requires Docker, which is not installed in this guest\",\"deferred\":false},\n {\"claim\":\"Daytona OpenAI realtime example\",\"source\":\"README.md\",\"reason\":\"requires Daytona and OpenAI credentials, which were not provided (needs_credentials)\",\"deferred\":false},\n {\"claim\":\"Slack agent template example\",\"source\":\"README.md\",\"reason\":\"requires a configured Slack app and tokens, which were not provided (needs_credentials)\",\"deferred\":false}\n]\nEOF\ncat > cycles.json <<'EOF'\n{\"detected\": false, \"reason\": \"No README-documented cron, scheduler, or --once mode. The only periodic loop is the external credential store poll interval (--poll-interval-seconds) for Infisical-backed stores, which is not configured in this guest.\", \"checks\": []}\nEOF\npython3 -m json.tool examples.json >/dev/null && python3 -m json.tool cycles.json >/dev/null && echo ok\ncd <guest-path> && <env-var>=<guest-path> python3 -I <guest-path> --validate --replay 2>&1 | tail -60",
    "cd <guest-path> && sed -n 335,370p cmd/cmd_test.go; grep -rn \"func.*PidFile\\|pidfile.Path\\|func Path\" internal/pidfile/*.go | head; grep -rn \"AGENT_VAULT_HOME\\|XDG\\|UserHomeDir\" internal/config/*.go 2>/dev/null | head -5",
    "cd <guest-path> && sed -n 10,30p internal/pidfile/pidfile.go",
    "cd <guest-path> && GC=$(go env GOCACHE) GM=$(go env GOMODCACHE) GP=$(go env GOPATH); echo \"$GC $GM $GP\"; mkdir -p /tmp/avtest-home && python3 - \"$GC\" \"$GM\" \"$GP\" <<'EOF'\nimport json,sys\ngc,gm,gp=sys.argv[1:]\np='<guest-path>'\nd=json.load(open(p))\nd[0]['env']={\"AGENT_VAULT_TELEMETRY\":\"0\",\"HOME\":\"/tmp/avtest-home\",\"GOCACHE\":gc,\"GOMODCACHE\":gm,\"GOPATH\":gp}\nd[0]['input']=\"make test (HOME isolated from the running server's ~/.agent-vault pidfile)\"\njson.dump(d,open(p,'w'),indent=1)\nEOF\n<env-var>=<guest-path> python3 -I <guest-path> --validate --replay 2>&1 | python3 -c \"import json,sys; d=json.load(sys.stdin); print(d.get('valid'), d.get('problems')); [print(e.get('claim'),e.get('verdict'),e.get('returncode')) for e in d.get('replay',{}).get('details',{}).get('example_checks',[])]\" 2>/dev/null || true",
    "cd <guest-path> && cat > report.json <<'EOF'\n{\n \"outcome\": \"pass\",\n \"fault_owner\": \"none\",\n \"operation\": \"Build Agent Vault from source (make build), run make test, start the server, create a vault and credential, add a service rule, and verify credential substitution through the MITM proxy.\",\n \"steps\": [\n  \"Read README; pinned commit d5836ec3bb2315de38043d742ae5daca11a4944a.\",\n  \"Installed prerequisites; ran make build (web npm ci + go build) to produce ./agent-vault.\",\n  \"Ran README installer; agent-vault v0.40.2 installed to /usr/local/bin.\",\n  \"Started server on 14321 (proxy 14322); registered owner; created demo-vault and ANTHROPIC_API_KEY credential; read back sk-test-12345.\",\n  \"Added local-echo service (echo.upstream.test:18080, bearer ECHO_TOKEN); issued session token; sent request via proxy with dummy Bearer __echo_token__; upstream received Bearer secret-echo-789 (HTTP 200).\",\n  \"make test: first run failed because a live server (PID 8516) was present; stopped server and reran: exit 0. Final example isolates HOME so the test does not see the running server pidfile; exit 0.\",\n  \"Recorded examples and cycles; ran checker --validate --replay: valid true.\"\n ],\n \"deviations\": [\n  \"AGENT_VAULT_DEV_MODE=true on the server: required to accept a localhost-style service host check in this guest; guest-only override.\",\n  \"AGENT_VAULT_NETWORK_ALLOWLIST=127.0.0.1: netguard blocked the loopback upstream; narrow allowlist, private-range blocking otherwise on.\",\n  \"/etc/hosts entry 127.0.0.1 echo.upstream.test: needed because service hosts must be dotted names, not IPs.\",\n  \"Telemetry disabled (AGENT_VAULT_TELEMETRY=0).\",\n  \"Probes use the source-built ./agent-vault, while the installer placed v0.40.2 in /usr/local/bin.\",\n  \"make test example sets HOME to an isolated directory so the running server's pidfile is not seen by the test.\"\n ],\n \"stuck_step\": null,\n \"main_blocker\": null,\n \"plain_failure\": \"Initial make test failed (exit 2) only because a manually started server was running; not a product defect.\",\n \"suggested_fix\": \"None required. Consider making TestEnsureServerStopped_* independent of the developer's real ~/.agent-vault pidfile, e.g. by setting HOME to a temp dir inside the test.\"\n}\nEOF\npython3 -m json.tool report.json >/dev/null && echo ok; cd <guest-path> && <env-var>=<guest-path> python3 -I <guest-path> --validate --replay 2>&1 | head -c 600"
  ],
  "stuck_step": null,
  "error_excerpt": null,
  "what_it_did": "Build Agent Vault from source (make build), run make test, start the server, create a vault and credential, add a service rule, and verify credential substitution through the MITM proxy.",
  "suggested_fix": null,
  "tokens_in": 1770749,
  "tokens_out": 29643,
  "cost_usd": 0.0529864,
  "usage_complete": true,
  "checks": [
    {
      "check": "operation",
      "status": "PASS",
      "details": {
        "working": true,
        "argv": [
          "./agent-vault",
          "vault",
          "credential",
          "get",
          "--vault",
          "demo-vault",
          "ANTHROPIC_API_KEY"
        ],
        "kind": "cli",
        "returncode": 0,
        "stdout": "sk-test-12345",
        "stderr": "",
        "needs_credentials": false,
        "needs_browser": false,
        "scope": "product operation"
      }
    }
  ],
  "safety": {
    "version": "z2x-1",
    "rules_version": "z2x-1",
    "summary": "Review signals: 1 download and execute, 1 hardcoded secret, 177 known vulnerability. 6 static matches retained as context.",
    "expected": "Reviewed as expected for a test run: attempted writes that failed, so nothing was written.",
    "findings": [
      {
        "kind": "download-and-execute",
        "count": 1,
        "note": "Source contains download and execute; review its purpose.",
        "location_count": 1,
        "path": "install.sh"
      },
      {
        "kind": "hardcoded-secret",
        "count": 1,
        "note": "Gitleaks found a possible hardcoded secret; value withheld.",
        "location_count": 1,
        "path": "docs/guides/openclaw-on-vps.mdx"
      },
      {
        "kind": "known-vulnerability",
        "count": 174,
        "note": "OSV reports a known vulnerability in this dependency version.",
        "location_count": 36
      }
    ],
    "context": [
      {
        "kind": "hardcoded-secret",
        "count": 6,
        "note": "Gitleaks found a possible hardcoded secret; value withheld.",
        "location_count": 1,
        "path": "internal/mitm/proxy_test.go"
      }
    ],
    "limitations": [
      "A short run cannot establish that code is safe.",
      "Connections show IP addresses; proxies can hide the final hostname.",
      "Tracing covers dispatched commands and their children, not the whole OS; guest root can interfere with tracing."
    ],
    "static": {
      "dependency_note": "OSV scanned supported lockfiles; unpinned dependencies and unsupported formats are outside this check."
    },
    "evidence_url": "/safety/?run=Infisical--agent-vault-claude-haiku-5-5-1793108006659311593",
    "evidence_file": "/data/safety/Infisical--agent-vault-claude-haiku-5-5-1793108006659311593.json.gz"
  },
  "agent_execution": "native_agent",
  "agent_runtime": "claude-code",
  "agent_runtime_version": "2.1.310 (Claude Code)",
  "tool_transport": "mcp-assigned-vm",
  "platform": "linux",
  "reasoning": "low",
  "service_tier": null,
  "resources": {
    "cpus": 2,
    "memory_mib": 4096,
    "disk_mib": 32768
  },
  "native_tool_calls": 50,
  "native_bundle": null,
  "architecture": null,
  "backend": "hyperv",
  "platform_details": {
    "backend": "hyperv",
    "os": "linux"
  },
  "platform_conflicts": null,
  "sandbox_source": null,
  "source_pin": {
    "commit": "d5836ec3bb2315de38043d742ae5daca11a4944a",
    "url": "https://github.com/Infisical/agent-vault"
  },
  "purpose": "initial",
  "profile": {
    "model": "claude-haiku-5-5",
    "reasoning": "low"
  },
  "fault": {
    "owner": null,
    "status": "resolved",
    "reason": null
  },
  "fix_id": null,
  "verifies_run_id": null,
  "hosting": null,
  "operation_scope": "product operation",
  "tool_calls": 50,
  "guest_setup": null,
  "runtime": null,
  "runtime_version": null,
  "runtime_revision": null,
  "source_revision": null,
  "evidence_version": null,
  "failure_origin": null,
  "evidence_strength": "readme_checked",
  "works": "yes",
  "install_s": null,
  "first_use_s": null,
  "mcp": "none",
  "needs": [],
  "needs_which": null,
  "agent_interface": [
    "cli"
  ],
  "license": "NOASSERTION",
  "repo_url": "https://github.com/Infisical/agent-vault",
  "cost_to_try": "free",
  "hardware": null,
  "what_failed": null,
  "local_or_hosted": "local",
  "cycle_checks": [
    {
      "kind": "cycle",
      "claim": "Scheduled or looping main behavior",
      "source": "repository entry points",
      "input": "source inspection",
      "expected": "identify the product trigger",
      "verdict": "yes",
      "outcome": "No README-documented cron, scheduler, or --once mode. The only periodic loop is the external credential store poll interval (--poll-interval-seconds) for Infisical-backed stores, which is not configured in this guest.",
      "evidence": "No README-documented cron, scheduler, or --once mode. The only periodic loop is the external credential store poll interval (--poll-interval-seconds) for Infisical-backed stores, which is not configured in this guest.",
      "command": ""
    }
  ],
  "claims": [
    {
      "kind": "claim",
      "claim": "A credential for ANTHROPIC_API_KEY can be created and read back from a vault",
      "source": "For example, you can create a credential for `ANTHROPIC_API_KEY` and create a service rule for Agent Vault to substitute a dummy value `__anthropic_api_key__` for the real key.",
      "input": "vault demo-vault, key ANTHROPIC_API_KEY=sk-test-12345 (set earlier)",
      "expected": "credential get returns sk-test-12345",
      "command": "./agent-vault vault credential get --vault demo-vault ANTHROPIC_API_KEY",
      "verdict": "yes",
      "outcome": "Real input produced the expected result: sk-test-12345",
      "evidence": "sk-test-12345",
      "returncode": 0,
      "source_checked": true,
      "source_file": "README.md"
    },
    {
      "kind": "claim",
      "claim": "Agent Vault attaches the stored credential to a request routed through the proxy",
      "source": "Agent Vault intercepts every request and attaches credentials onto it before forwarding the request to the target outbound API.",
      "input": "HTTP request via proxy 127.0.0.1:14322 to echo.upstream.test:18080 with dummy Bearer __echo_token__; service local-echo maps ECHO_TOKEN=secret-echo-789",
      "expected": "upstream receives Bearer secret-echo-789",
      "command": "curl -s -m 10 -x http:<email>:14322 -H 'Authorization: <secret>' http://echo.upstream.test:18080/hello",
      "verdict": "yes",
      "outcome": "Real input produced the expected result: Bearer secret-echo-789",
      "evidence": "Bearer secret-echo-789\"}",
      "returncode": 0,
      "source_checked": true,
      "source_file": "README.md"
    }
  ],
  "claims_note": null,
  "example_checks": [
    {
      "kind": "example",
      "claim": "Documented development test suite",
      "source": "README.md",
      "input": "make test (HOME isolated from the running server's ~/.agent-vault pidfile)",
      "command": "make test",
      "evidence": "cached)\nok  \tgithub.com/Infisical/agent-vault/internal/oauth\t(cached)\nok  \tgithub.com/Infisical/agent-vault/internal/pidfile\t(cached)\nok  \tgithub.com/Infisical/agent-vault/internal/proposal\t(cached)\nok  \tgithub.com/Infisical/agent-vault/internal/ratelimit\t(cached)\n?   \tgithub.com/Infisical/agent-vault/internal/requestlog\t[no test files]\nok  \tgithub.com/Infisical/agent-vault/internal/server\t(cached)\nok  \tgithub.com/Infisical/agent-vault/internal/session\t(cached)\nok  \tgithub.com/Infisical/agent-vault/internal/store\t(cached)\n?   \tgithub.com/Infisical/agent-vault/internal/telemetry\t[no test files]",
      "deferred": false,
      "expected": "all Go packages pass",
      "returncode": 0,
      "verdict": "yes",
      "outcome": "command completed successfully"
    },
    {
      "kind": "example",
      "claim": "nginx public UI proxy example",
      "source": "README.md",
      "input": "",
      "command": "",
      "evidence": "requires Docker, which is not installed in this guest",
      "deferred": false,
      "expected": "documented command completes successfully",
      "verdict": "blocked",
      "outcome": "requires Docker, which is not installed in this guest"
    },
    {
      "kind": "example",
      "claim": "Daytona OpenAI realtime example",
      "source": "README.md",
      "input": "",
      "command": "",
      "evidence": "requires Daytona and OpenAI credentials, which were not provided (needs_credentials)",
      "deferred": false,
      "expected": "documented command completes successfully",
      "verdict": "blocked",
      "outcome": "requires Daytona and OpenAI credentials, which were not provided (needs_credentials)"
    },
    {
      "kind": "example",
      "claim": "Slack agent template example",
      "source": "README.md",
      "input": "",
      "command": "",
      "evidence": "requires a configured Slack app and tokens, which were not provided (needs_credentials)",
      "deferred": false,
      "expected": "documented command completes successfully",
      "verdict": "blocked",
      "outcome": "requires a configured Slack app and tokens, which were not provided (needs_credentials)"
    }
  ],
  "does_what_it_says": "yes",
  "maintenance": {
    "last_commit_at": "2026-10-22T14:22:33Z",
    "commits_90d": 39,
    "merged_prs_90d": 40,
    "open_issues": 38,
    "open_prs": 59,
    "reply_share": 0.09,
    "reply_threads": 34,
    "median_reply_hours": 2.7,
    "last_release_at": "2026-10-22T20:14:13Z",
    "archived": false,
    "verdict": "maintained",
    "note": "actively maintained: last commit 4 days ago; 39 commits and 40 merged PRs in 90 days; 38 open issues, 59 open PRs; 3 of 34 recent threads got a maintainer reply, median first reply 2.7h; latest release 2026-10-22"
  },
  "maintenance_verdict": "maintained",
  "maintenance_note": "actively maintained: last commit 4 days ago; 39 commits and 40 merged PRs in 90 days; 38 open issues, 59 open PRs; 3 of 34 recent threads got a maintainer reply, median first reply 2.7h; latest release 2026-10-22",
  "maintained": "active",
  "maintained_note": "last commit 4 days ago; 5 open issues, 1 answered or closed",
  "last_commit_at": "2026-10-22T20:09:23Z",
  "last_release_at": "2026-10-22T20:14:13Z",
  "open_issues": 5,
  "answered_issues": 1,
  "platforms_claimed": [
    "linux",
    "mac"
  ],
  "topic": "agent-harness",
  "agent_interfaces": [
    {
      "interface": "cli",
      "evidence": "independent checker",
      "observed": true,
      "operation_checked": true
    }
  ],
  "agent_interfaces_note": "README metadata is a discovery hint, not pinned documentation proof. Observed interfaces were exercised in this run. An empty list means unknown.",
  "mcp_context": null,
  "tested_at": "2026-10-27T13:48:19.917910+00:00",
  "tested_commit": "d5836ec3bb2315de38043d742ae5daca11a4944a",
  "tested_with": {
    "agent": "claude-code",
    "agent_version": "2.1.310 (Claude Code)",
    "model": "claude-haiku-5-5",
    "model_route": "claude-haiku-5-5",
    "reasoning": "low",
    "os": "linux",
    "backend": "hyperv",
    "transport": "mcp-assigned-vm"
  },
  "setup_identity": {
    "repo": "Infisical/agent-vault",
    "source": "https://github.com/Infisical/agent-vault",
    "commit": "d5836ec3bb2315de38043d742ae5daca11a4944a",
    "source_revision": null,
    "os": "linux",
    "architecture": null,
    "backend": "hyperv",
    "model": "claude-haiku-5-5",
    "model_version": "claude-haiku-5-5",
    "agent_execution": "native_agent",
    "agent_runtime": "claude-code",
    "agent_runtime_version": "2.1.310 (Claude Code)",
    "tool_transport": "mcp-assigned-vm",
    "runtime": null,
    "runtime_version": null,
    "runtime_revision": null,
    "sandbox_source": null,
    "guest_setup": null,
    "source_pin": {
      "commit": "d5836ec3bb2315de38043d742ae5daca11a4944a",
      "url": "https://github.com/Infisical/agent-vault"
    },
    "platform_details": {
      "os": "linux",
      "backend": "hyperv"
    },
    "platform_conflicts": null,
    "reasoning": "low",
    "service_tier": null,
    "resources": {
      "cpus": 2,
      "memory_mib": 4096,
      "disk_mib": 32768
    },
    "operation": "Build Agent Vault from source (make build), run make test, start the server, create a vault and credential, add a service rule, and verify credential substitution through the MITM proxy.",
    "operation_scope": "product operation",
    "hosting": null,
    "kind": "repo",
    "test_version": "readme-d5b140d3c0f8b95c2dd6fe6fc381a303cacb92679582c22317d8e78b572f0cf2",
    "evidence_version": null
  },
  "other_model": null,
  "other_run_id": null,
  "models_agree": null,
  "furthest_model": null,
  "transcript_url": "/transcripts/Infisical--agent-vault-claude-haiku-5-5-1793108006659311593.txt",
  "report_url": "/reports/Infisical--agent-vault-claude-haiku-5-5-1793108006659311593.json"
}
