{
  "schema_version": 1,
  "run_id": "gitgod-debug--kv-routing-sim-gpt-6-luna-1795751332253654899",
  "date": "2026-11-27T03:52:50.021598+00:00",
  "repo": "gitgod-debug/kv-routing-sim",
  "model": "gpt-6-luna",
  "kind": "repo",
  "mcp": "none",
  "commit": "eaafacd69d875172bf6a7f1a6f16b819f65e7c8c",
  "outcome": "pass",
  "time_to_working_s": 193.41426680900622,
  "install_s": 31.121,
  "first_use_s": 68.087,
  "stuck_step": null,
  "what_failed": null,
  "suggested_fix": null,
  "what_it_did": "Generated a synthetic agent trace and replayed it through session-sticky and round-robin routing for one and two replicas using the shipped calibrated T4 profile and cost model.",
  "needs": [],
  "needs_which": null,
  "missing": null,
  "claims": [
    {
      "kind": "claim",
      "claim": "Trace-driven simulator for LLM serving on several replicas",
      "source": "A calibrated instrument, plus a replication.",
      "input": "generated trace",
      "expected": "routing recommendation",
      "command": "<guest-path> replay <guest-path> --policies session-sticky,round-robin --replicas 1-2 --seeds 1 --profile t4-qwen3-4b-vllm0.30.0-ctx --cost-model default --format json --no-edge-check --no-spread",
      "verdict": "yes",
      "outcome": "Real input produced the expected result: \"requests\": 36",
      "evidence": "…\"requests\": 36,\n    \"skipped_lines\": 0,\n    \"skip_reasons\": {}\n  },\n  \"profile\": {\n    \"name\": \"t4-qwen3-4b-vllm0.30.0-ctx\",\n    \"prefill_base_s\": 0.0,\n    \"prefill_per_token_s\": 0.00031888614178891746,\n    \"decode_base_s\": 0.040134812311633544,\n    \"decode_per_seq_s\": 0.00033595622179426437,\n    \"kv_cache_blocks\": 1537,\n    \"block_size\": 16,\n    \"max_num_seqs\": 256,\n    \"gpu\": \"Tesla T4\",\n    \"model\": \"Qwen/Qwen3-4B\",\n    \"engine_version\": \"0.30.0\",\n    \"calibrated\": true,\n    \"calibration_error\": null,\n    \"prefill_attn_s\": 7.575762731263971e-07,\n    \"decode_per_ctx_token_s\": 3.4952927062706",
      "cwd": "<guest-path>",
      "hardware_prerequisite": null,
      "returncode": 0,
      "stdout": "re replicas than were swept.\",\n    \"inr_delta_pct_vs_baseline\": -24.17,\n    \"replica_delta_vs_baseline\": 0,\n    \"frontier_size\": 3,\n    \"calibrated\": true,\n    \"tied_with\": []\n  },\n  \"slo\": \"SLO: p95 time to first token \\u2264 2,000 ms and p95 time per output token \\u2264 100 ms. The per-token limit is this command's (`--tpot-slo-ms`; 0 sizes on the first token alone); the cost model sets none.\",\n  \"replica_spread\": null,\n  \"replica_spread_note\": null,\n  \"edge\": null,\n  \"prompt_range\": {\n    \"longest_measured\": 1984,\n    \"longest_here\": 1530,\n    \"requests\": 36,\n    \"requests_longer\": 0\n  }\n}\n",
      "stderr": "",
      "output_truncated": true,
      "source_checked": true,
      "source_file": "README.md"
    },
    {
      "kind": "claim",
      "claim": "Trace input normalized and prompt hashed",
      "source": "**Trace input.** It reads serving logs (vLLM-style JSONL, OpenAI-style request logs) and three public trace formats (Mooncake, AgentX, Qwen-Bailian) into one normalized, versioned request schema. Prompts are hashed at the adapter boundary and never enter the simulator. So the user content of a trace stays out of memory and out of the output files.",
      "input": "36 request generated trace",
      "expected": "\"requests\": 36",
      "command": "<guest-path> replay <guest-path> --policies session-sticky,round-robin --replicas 1-2 --seeds 1 --profile t4-qwen3-4b-vllm0.30.0-ctx --cost-model default --format json --no-edge-check --no-spread",
      "verdict": "yes",
      "outcome": "Real input produced the expected result: \"requests\": 36",
      "evidence": "…\"requests\": 36,\n    \"skipped_lines\": 0,\n    \"skip_reasons\": {}\n  },\n  \"profile\": {\n    \"name\": \"t4-qwen3-4b-vllm0.30.0-ctx\",\n    \"prefill_base_s\": 0.0,\n    \"prefill_per_token_s\": 0.00031888614178891746,\n    \"decode_base_s\": 0.040134812311633544,\n    \"decode_per_seq_s\": 0.00033595622179426437,\n    \"kv_cache_blocks\": 1537,\n    \"block_size\": 16,\n    \"max_num_seqs\": 256,\n    \"gpu\": \"Tesla T4\",\n    \"model\": \"Qwen/Qwen3-4B\",\n    \"engine_version\": \"0.30.0\",\n    \"calibrated\": true,\n    \"calibration_error\": null,\n    \"prefill_attn_s\": 7.575762731263971e-07,\n    \"decode_per_ctx_token_s\": 3.4952927062706",
      "cwd": "<guest-path>",
      "hardware_prerequisite": null,
      "returncode": 0,
      "stdout": "re replicas than were swept.\",\n    \"inr_delta_pct_vs_baseline\": -24.17,\n    \"replica_delta_vs_baseline\": 0,\n    \"frontier_size\": 3,\n    \"calibrated\": true,\n    \"tied_with\": []\n  },\n  \"slo\": \"SLO: p95 time to first token \\u2264 2,000 ms and p95 time per output token \\u2264 100 ms. The per-token limit is this command's (`--tpot-slo-ms`; 0 sizes on the first token alone); the cost model sets none.\",\n  \"replica_spread\": null,\n  \"replica_spread_note\": null,\n  \"edge\": null,\n  \"prompt_range\": {\n    \"longest_measured\": 1984,\n    \"longest_here\": 1530,\n    \"requests\": 36,\n    \"requests_longer\": 0\n  }\n}\n",
      "stderr": "",
      "output_truncated": true,
      "source_checked": true,
      "source_file": "README.md"
    },
    {
      "kind": "claim",
      "claim": "Block-level KV cache model for each replica",
      "source": "**A block-level KV cache model** for each replica. The default model follows the block pool of vLLM 0.30.0 line by line: reference counts, freeing from the tail, cached decode blocks, admission by free memory, and preemption. A plain LRU model is kept next to it for comparison. Many simulators have such a model. What this project adds is a measurement of how close it is to the real engine.",
      "input": "36 request generated trace",
      "expected": "\"requests\": 36",
      "command": "<guest-path> replay <guest-path> --policies session-sticky,round-robin --replicas 1-2 --seeds 1 --profile t4-qwen3-4b-vllm0.30.0-ctx --cost-model default --format json --no-edge-check --no-spread",
      "verdict": "yes",
      "outcome": "Real input produced the expected result: \"requests\": 36",
      "evidence": "…\"requests\": 36,\n    \"skipped_lines\": 0,\n    \"skip_reasons\": {}\n  },\n  \"profile\": {\n    \"name\": \"t4-qwen3-4b-vllm0.30.0-ctx\",\n    \"prefill_base_s\": 0.0,\n    \"prefill_per_token_s\": 0.00031888614178891746,\n    \"decode_base_s\": 0.040134812311633544,\n    \"decode_per_seq_s\": 0.00033595622179426437,\n    \"kv_cache_blocks\": 1537,\n    \"block_size\": 16,\n    \"max_num_seqs\": 256,\n    \"gpu\": \"Tesla T4\",\n    \"model\": \"Qwen/Qwen3-4B\",\n    \"engine_version\": \"0.30.0\",\n    \"calibrated\": true,\n    \"calibration_error\": null,\n    \"prefill_attn_s\": 7.575762731263971e-07,\n    \"decode_per_ctx_token_s\": 3.4952927062706",
      "cwd": "<guest-path>",
      "hardware_prerequisite": null,
      "returncode": 0,
      "stdout": "re replicas than were swept.\",\n    \"inr_delta_pct_vs_baseline\": -24.17,\n    \"replica_delta_vs_baseline\": 0,\n    \"frontier_size\": 3,\n    \"calibrated\": true,\n    \"tied_with\": []\n  },\n  \"slo\": \"SLO: p95 time to first token \\u2264 2,000 ms and p95 time per output token \\u2264 100 ms. The per-token limit is this command's (`--tpot-slo-ms`; 0 sizes on the first token alone); the cost model sets none.\",\n  \"replica_spread\": null,\n  \"replica_spread_note\": null,\n  \"edge\": null,\n  \"prompt_range\": {\n    \"longest_measured\": 1984,\n    \"longest_here\": 1530,\n    \"requests\": 36,\n    \"requests_longer\": 0\n  }\n}\n",
      "stderr": "",
      "output_truncated": true,
      "source_checked": true,
      "source_file": "README.md"
    }
  ],
  "example_checks": [
    {
      "kind": "example",
      "claim": "Generate and replay a synthetic agent trace",
      "source": "README.md Install quickstart",
      "input": "12 sessions, 3 turns, seed 0",
      "command": "bash -c '<guest-path> generate --out <guest-path> --sessions 12 --turns 3 --rate 0.5 --seed 0 && <guest-path> replay <guest-path> --policies session-sticky,round-robin --replicas 1-2 --seeds 1 --profile t4-qwen3-4b-vllm0.30.0-ctx --cost-model default --format json --no-edge-check --no-spread'",
      "evidence": "ore replicas than were swept.\",\n    \"inr_delta_pct_vs_baseline\": -24.17,\n    \"replica_delta_vs_baseline\": 0,\n    \"frontier_size\": 3,\n    \"calibrated\": true,\n    \"tied_with\": []\n  },\n  \"slo\": \"SLO: p95 time to first token \\u2264 2,000 ms and p95 time per output token \\u2264 100 ms. The per-token limit is this command's (`--tpot-slo-ms`; 0 sizes on the first token alone); the cost model sets none.\",\n  \"replica_spread\": null,\n  \"replica_spread_note\": null,\n  \"edge\": null,\n  \"prompt_range\": {\n    \"longest_measured\": 1984,\n    \"longest_here\": 1530,\n    \"requests\": 36,\n    \"requests_longer\": 0\n  }\n}",
      "deferred": false,
      "expected": "\"requests\": 36",
      "hardware_prerequisite": null,
      "returncode": 0,
      "native_crash": false,
      "stdout": "re replicas than were swept.\",\n    \"inr_delta_pct_vs_baseline\": -24.17,\n    \"replica_delta_vs_baseline\": 0,\n    \"frontier_size\": 3,\n    \"calibrated\": true,\n    \"tied_with\": []\n  },\n  \"slo\": \"SLO: p95 time to first token \\u2264 2,000 ms and p95 time per output token \\u2264 100 ms. The per-token limit is this command's (`--tpot-slo-ms`; 0 sizes on the first token alone); the cost model sets none.\",\n  \"replica_spread\": null,\n  \"replica_spread_note\": null,\n  \"edge\": null,\n  \"prompt_range\": {\n    \"longest_measured\": 1984,\n    \"longest_here\": 1530,\n    \"requests\": 36,\n    \"requests_longer\": 0\n  }\n}\n",
      "stderr": "",
      "output_truncated": true,
      "verdict": "yes",
      "outcome": "command completed successfully"
    }
  ],
  "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": "Inspected README Install, What it does and the CLI entrypoint: product runs are explicit generate, replay, crossover or calibrate commands; no scheduled or repeated cycle is documented.",
      "evidence": "Inspected README Install, What it does and the CLI entrypoint: product runs are explicit generate, replay, crossover or calibrate commands; no scheduled or repeated cycle is documented.",
      "command": ""
    }
  ],
  "maintenance": {
    "archived": false,
    "ci_commit": "eaafacd69d875172bf6a7f1a6f16b819f65e7c8c",
    "ci_read_at": "2026-11-27T03:47:35Z",
    "ci_state": "SUCCESS",
    "commits_90d": 142,
    "last_commit_at": "2026-11-26T18:51:57Z",
    "last_release_at": null,
    "median_reply_hours": null,
    "merged_prs_90d": 0,
    "note": "actively maintained: last commit 0 days ago; 142 commits and 0 merged PRs in 90 days; 0 open issues, 0 open PRs; no releases",
    "open_issues": 0,
    "open_prs": 0,
    "reply_share": null,
    "reply_threads": 0,
    "verdict": "maintained"
  },
  "dependencies": [
    "Python 3.12.3",
    "PyYAML 6.0.4",
    "editable kv-routing-sim installation in .venv"
  ],
  "local_or_hosted": "local",
  "readme_deviations": [],
  "safety": {
    "version": "z2x-1",
    "summary": "Review signals: 3 hardcoded secret.",
    "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."
    ]
  },
  "observed": {
    "traced": true,
    "trace_truncated": false,
    "network_rule": true,
    "unsorted_contacts": false,
    "protocols_recorded": false,
    "lookups_recorded": true,
    "unsorted_blocked_ports": [],
    "contacts": [],
    "contacts_not_listed": 0,
    "lookups": [
      {
        "owner": "installer",
        "programs": [
          "git-remote-https"
        ],
        "names": [
          "github.com"
        ]
      },
      {
        "owner": "installer",
        "programs": [
          "python"
        ],
        "names": [
          "files.pythonhosted.org",
          "pypi.org"
        ]
      }
    ],
    "credential_reads": [],
    "outside_writes": 0,
    "download_and_run_lines": 0,
    "malware_advisories": [],
    "vulnerabilities": [],
    "secrets": 3,
    "secrets_in_tests": 0,
    "download_lines_in_tests": 0,
    "dependency_versions": 0,
    "scanned": {
      "secrets": true,
      "dependencies": true,
      "source": true
    },
    "capped_kinds": [],
    "findings_capped": false,
    "malware_checked": true,
    "scan_skips": {},
    "compiled": {
      "counts": {},
      "paths": []
    },
    "installed": {
      "packages": 6,
      "malicious": [],
      "vulnerabilities": [
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "GHSA-4xh5-x5gv-qwph"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "GHSA-58qw-9mgm-455v"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "GHSA-6vgw-5pg2-w6jp"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "GHSA-jp4c-xjxw-mgf9"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "GHSA-qwm4-qh6w-59xr"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "GHSA-wf93-45jw-7689"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "PYSEC-2026-1795"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "PYSEC-2026-1796"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "PYSEC-2026-196"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "PYSEC-2026-2875"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "PYSEC-2026-2876"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "PYSEC-2026-3721"
        }
      ]
    },
    "installed_inventory": true,
    "installed_partial": false
  },
  "platform": "linux",
  "test_version": "readme-4243f19282e59714a358f5d27849c5ebf3ef413d1667fe1ae5969f004abbb1d7",
  "touched": {
    "evidence_file": "touched.json.gz",
    "linked_files": [
      "agent-events.jsonl.gz",
      "command-output.jsonl.gz"
    ],
    "network": {
      "allowed_hosts": [
        "files.pythonhosted.org",
        "pypi.org"
      ],
      "blocked_hosts": [],
      "canary_checked": true,
      "canary_sent": false,
      "canary_sent_to": [],
      "hosts": [
        "files.pythonhosted.org",
        "pypi.org"
      ],
      "package_registries": [
        "files.pythonhosted.org",
        "pypi.org"
      ],
      "private_address_attempts": 0,
      "recorded": true,
      "repo_hosts": [],
      "unanswered_hosts": [],
      "unattributed": [],
      "hosts_withheld": 2
    },
    "secret_files": {
      "opened_by_agent": [],
      "opened_by_other": [],
      "opened_by_repo": [],
      "planted": [
        "~/.env",
        "~/.ssh/id_ed25519",
        "~/.aws/credentials",
        "~/.config/gh/hosts.yml"
      ],
      "recorded": true
    },
    "version": 1
  },
  "evidence_strength": "readme_checked"
}
