Agentclash scorecard reader

From agentclash/agentclash · View interactive version

Agentclash scorecard reader is an AI agent skill from the GitHub repository agentclash/agentclash. Use when interpreting AgentClash rankings, scorecards, replay timelines, artifacts, LLM judge results, eval-set scanner findings, or failure-review evidence into source-backed findings and next actions. Also use it to make, change or revoke public share links of results.

How to use this skill

Skill file

AgentClash Scorecard Reader

Purpose

Turn completed or inspectable AgentClash run evidence into an engineering readout: who won, why, which claims are backed by scorecard/replay/artifact evidence, and what the next command or fix should be.

Use When

Do Not Use When

Inputs Needed

Environment

Use hosted production by default unless the user intentionally targets local or self-hosted infrastructure:

export AGENTCLASH_API_URL="https://api.agentclash.dev"
agentclash auth status
agentclash workspace use <WORKSPACE_ID>

Workspace resolution follows the CLI setup rules: --workspace, AGENTCLASH_WORKSPACE, saved config, or .agentclash.yaml. run failures, artifact list, and eval scorecard require a workspace. artifact download uses an artifact ID directly.

Procedure

  1. Confirm the run exists and get its agent IDs.
  2. Read the ranking to identify the winner, sort mode, gaps, unavailable scores, and evidence warnings.
  3. Read the relevant scorecard. Use eval scorecard for run-first analysis and baseline comparison; use run scorecard when you already have a run agent ID.
  4. Read failure-review items for concrete failed checks, replay refs, artifact refs, judge refs, metric refs, severity, and promotability.
  5. Pull replay steps around referenced sequences, or page through replay when no refs exist.
  6. Inspect artifacts only when a scorecard, failure item, or user request points to them.
  7. Report claims as evidence-first findings: claim, evidence pointer, impact, next action.

Commands

Start with run-level shape:

agentclash run get <RUN_ID> --json
agentclash run agents <RUN_ID> --json
agentclash run ranking <RUN_ID> --json
agentclash run ranking <RUN_ID> --sort-by composite --json
agentclash run ranking <RUN_ID> --sort-by correctness --json

Scorecard commands:

agentclash eval scorecard <RUN_ID> --agent <RUN_AGENT_ID_OR_LABEL> --json
agentclash eval scorecard --agent <RUN_AGENT_ID_OR_LABEL> --json
agentclash run scorecard <RUN_AGENT_ID> --json

Replay and failure-review commands:

agentclash run failures <RUN_ID> --json
agentclash run failures <RUN_ID> --agent <RUN_AGENT_ID> --severity blocking --json
agentclash run failures <RUN_ID> --class policy_violation --evidence-tier hosted_structured --json
agentclash run failures <RUN_ID> --cluster <FAILURE_CLUSTER_KEY> --limit 50 --json
agentclash replay get <RUN_AGENT_ID> --limit 50 --json
agentclash replay get <RUN_AGENT_ID> --cursor 50 --limit 50 --json

Artifact commands:

agentclash artifact list --json
agentclash artifact download <ARTIFACT_ID> --output <PATH>

Important exact CLI shapes:

Ranking JSON

agentclash run ranking <RUN_ID> --json returns a stateful response:

{
  "state": "ready",
  "ranking": {
    "run_id": "<RUN_ID>",
    "evaluation_spec_id": "<EVALUATION_SPEC_ID>",
    "sort": {
      "field": "correctness_then_reliability",
      "direction": "desc",
      "default_order": true
    },
    "winner": {
      "run_agent_id": "<RUN_AGENT_ID>",
      "strategy": "<strategy>",
      "status": "<status>",
      "reason_code": "<reason_code>"
    },
    "evidence_quality": {
      "missing_fields": [],
      "warnings": []
    },
    "items": [
      {
        "rank": 1,
        "run_agent_id": "<RUN_AGENT_ID>",
        "lane_index": 0,
        "label": "<agent label>",
        "status": "completed",
        "has_scorecard": true,
        "evaluation_status": "complete",
        "sort_value": 0.92,
        "delta_from_top": 0,
        "sort_state": "available",
        "strategy": "<strategy>",
        "passed": true,
        "overall_reason": "<reason>",
        "composite_score": 0.91,
        "overall_score": 0.91,
        "correctness_score": 0.95,
        "reliability_score": 0.9,
        "latency_score": 0.8,
        "cost_score": 0.7,
        "dimensions": {
          "correctness": {
            "state": "available",
            "score": 0.95,
            "better_direction": "higher"
          }
        }
      }
    ]
  }
}

Read evidence_quality.warnings before declaring a winner as conclusive. A low sort_value, missing rank, sort_state: "unavailable", has_scorecard: false, or missing score fields means the ranking may be partial even if the run itself completed.

Model-Written Ranking Insights

agentclash run insights asks a model to explain the ranking of a completed comparison run with two or more ranked agents. It is optional, and each call is a paid model call on the provider account that you give. Use it only when the user asks for a written explanation or approves the cost.

agentclash infra provider-account list --json
agentclash infra provider-account models <PROVIDER_ACCOUNT_ID> --json
agentclash run insights <RUN_ID> --provider-account <PROVIDER_ACCOUNT_ID> --model <MODEL_ID> --json

The response has recommended_winner, why_it_won, tradeoffs, optional best_for_reliability, best_for_cost and best_for_latency picks, model_summaries, recommended_next_step, confidence_notes, provider_key, provider_model_id and generated_at. When the deterministic ranking has a winner, the server rejects a recommended_winner that is a different agent. All other text comes from the model: compare it with the ranking and the scorecard before you report it as a finding.

Exit codes: 1 for a run that is not a completed comparison run (invalid_run_status, invalid_run_for_insights, ranking_unavailable), a bad provider account or model, or budget_exceeded. 66 for an unknown run. 75 for a rate limit (ranking_insights_rate_limited, with retry_after_seconds) or a provider that is not available. The CLI does not retry the call. Do not retry a 75 in a loop: wait for retry_after_seconds, and ask the user before a second paid call.

Eval Set Scanner Findings

Scanners read the finished case transcripts of an eval set and write findings. They do not change the scores. The built-in scanners are reward-hacking, tool-misuse, sandbox-escape-attempt and instruction-injection-compliance. instruction-injection-compliance is an LLM judge: the server sends each case transcript to its judge model.

agentclash evalset finding list <EVAL_SET_ID> --severity high --status open --json
agentclash evalset scan <EVAL_SET_ID> --scanner reward-hacking --json
agentclash evalset finding update <FINDING_ID> --status triaged --json

Exit codes: 64 for an ID that is not a UUID, an unknown scanner name, or a bad --severity, --status or --limit (no request). 66 for an unknown eval set or finding. 1 for scan_already_running: a scan runs now, so wait and do not start a loop. 77 for a missing permission. 75 for a temporary server or network failure.

Share Links

A share URL is public. Anyone who has it can see the resource with no login.

agentclash share create --resource-type run_scorecard --resource-id <RUN_ID> --expires-in 168h --json
agentclash share update <SHARE_ID> --search-indexing=false
agentclash share revoke <SHARE_ID>

The share commands use these exit codes.

| Code | Cause |

| --- | --- |

| 64 | The CLI rejects local input, such as an invalid UUID, or has no confirmation to revoke. |

| 66 | The resource or link does not exist, or the link is already revoked. |

| 77 | The user lacks permission. |

| 1 | HTTP 409 with agent_tryout_redaction_not_ready. |

| 75 | A network error or an HTTP 5xx response. |

If share create exits 75, check whether the first attempt created or changed a link before repeating the command. A repeat returns an active link, renews an expired link with a new URL and expiry, and turns indexing on if you pass --search-indexing.

Scorecard JSON

Use agentclash run scorecard <RUN_AGENT_ID> --json when you already know the agent ID. The top level mirrors /v1/scorecards/{runAgentID}:

{
  "state": "ready",
  "run_agent_status": "completed",
  "id": "<SCORECARD_ID>",
  "run_agent_id": "<RUN_AGENT_ID>",
  "run_id": "<RUN_ID>",
  "evaluation_spec_id": "<EVALUATION_SPEC_ID>",
  "overall_score": 0.91,
  "correctness_score": 0.95,
  "reliability_score": 0.9,
  "latency_score": 0.8,
  "cost_score": 0.7,
  "behavioral_score": 0.85,
  "llm_judge_results": [
    {
      "id": "<JUDGE_RESULT_ID>",
      "judge_key": "<judge_key>",
      "mode": "<mode>",
      "normalized_score": 0.8,
      "confidence": "medium",
      "variance": 0.02,
      "sample_count": 3,
      "model_count": 1,
      "payload": {},
      "created_at": "<timestamp>",
      "updated_at": "<timestamp>"
    }
  ],
  "scorecard": {
    "run_agent_id": "<RUN_AGENT_ID>",
    "evaluation_spec_id": "<EVALUATION_SPEC_ID>",
    "status": "complete",
    "strategy": "<strategy>",
    "overall_score": 0.91,
    "passed": true,
    "overall_reason": "<reason>",
    "warnings": [],
    "dimensions": {
      "correctness": {
        "state": "available",
        "score": 0.95,
        "reason": "<reason>",
        "weight": 1,
        "gate": true,
        "pass_threshold": 0.8,
        "contribution": 0.95,
        "gate_passed": true
      }
    },
    "validator_summary": {},
    "validator_details": [
      {
        "key": "<validator_key>",
        "type": "<validator_type>",
        "verdict": "pass",
        "state": "complete",
        "reason": "<reason>",
        "normalized_score": 1,
        "source": {
          "kind": "final_output",
          "sequence": 12,
          "event_type": "<event type>",
          "field_path": "<field path>"
        }
      }
    ],
    "metric_summary": {},
    "metric_details": [
      {
        "key": "<metric_key>",
        "collector": "<collector>",
        "state": "available",
        "numeric_value": 123
      }
    ]
  },
  "created_at": "<timestamp>",
  "updated_at": "<timestamp>"
}

Read the nested scorecard.dimensions first, then inspect validator_details, metric_details, and llm_judge_results for supporting evidence. Treat llm_judge_results.payload as judge-specific raw data; do not invent a stable schema inside it.

Eval Scorecard Envelope

agentclash eval scorecard [RUN_ID] --agent <RUN_AGENT_ID_OR_LABEL> --json is run-first. If RUN_ID is omitted, the CLI selects the latest run in the workspace. If the run has multiple agents in non-interactive mode, pass --agent.

Structured output is an envelope:

{
  "candidate": {
    "workspace_id": "<WORKSPACE_ID>",
    "run_id": "<RUN_ID>",
    "run_name": "<name>",
    "run_status": "completed",
    "run_agent_id": "<RUN_AGENT_ID>",
    "run_agent_label": "<label>",
    "official_pack_mode": "full"
  },
  "baseline": null,
  "scorecard": {},
  "comparison": null,
  "release_gate": null
}

When a baseline bookmark exists, the CLI also fetches /v1/compare and /v1/release-gates/evaluate, then fills baseline, comparison, and release_gate. Use this envelope for regression-style summaries; use run scorecard for the raw per-agent scorecard only.

Replay JSON

agentclash replay get <RUN_AGENT_ID> --json returns replay state, optional replay metadata, steps, and pagination:

{
  "state": "ready",
  "run_agent_id": "<RUN_AGENT_ID>",
  "run_id": "<RUN_ID>",
  "run_agent_status": "completed",
  "replay": {
    "id": "<REPLAY_ID>",
    "artifact_id": "<ARTIFACT_ID>",
    "summary": {},
    "latest_sequence_number": 12,
    "event_count": 42,
    "created_at": "<timestamp>",
    "updated_at": "<timestamp>"
  },
  "steps": [
    {
      "sequence_number": 12,
      "step_type": "<step type>",
      "summary": "<summary>"
    }
  ],
  "pagination": {
    "next_cursor": "50",
    "limit": 50,
    "total_steps": 120,
    "has_more": true
  }
}

Use replay to verify whether scorecard and judge claims match observable behavior. Prefer referenced sequence_number values from failure items or validator sources before paging through the whole replay.

Failure Review JSON

agentclash run failures <RUN_ID> --json returns:

{
  "items": [
    {
      "run_id": "<RUN_ID>",
      "run_agent_id": "<RUN_AGENT_ID>",
      "challenge_identity_id": "<CHALLENGE_ID>",
      "challenge_key": "<challenge_key>",
      "case_key": "<case_key>",
      "item_key": "<item_key>",
      "failure_fingerprint": "frf_...",
      "failure_cluster_key": "frc_...",
      "failure_state": "failed",
      "failed_dimensions": ["correctness"],
      "failed_checks": ["<validator_or_judge_key>"],
      "failure_class": "policy_violation",
      "headline": "<headline>",
      "detail": "<detail>",
      "recommended_action": "<recommended action>",
      "promotable": true,
      "promotion_mode_available": ["full_executable", "output_only"],
      "replay_step_refs": [
        {
          "sequence_number": 12,
          "event_type": "<event type>",
          "kind": "<kind>"
        }
      ],
      "artifact_refs": [
        {
          "key": "<artifact key>",
          "kind": "<kind>",
          "path": "<path>",
          "media_type": "<media type>"
        }
      ],
      "judge_refs": [
        {
          "key": "<judge key>",
          "kind": "llm_judge",
          "state": "fail",
          "normalized_score": 0.2,
          "reason": "<reason>",
          "sequence_number": 12,
          "event_type": "<event type>"
        }
      ],
      "metric_refs": [
        {
          "key": "<metric key>",
          "metric_type": "<type>",
          "state": "available",
          "numeric_value": 123
        }
      ],
      "evidence_tier": "hosted_structured",
      "severity": "blocking"
    }
  ],
  "clusters": [
    {
      "failure_cluster_key": "frc_...",
      "representative_failure_fingerprint": "frf_...",
      "count": 2,
      "promotable_count": 1,
      "severity": "blocking",
      "failure_state": "failed",
      "failure_class": "policy_violation",
      "evidence_tier": "hosted_structured",
      "challenge_keys": ["<challenge_key>"],
      "case_keys": ["<case_key>"],
      "run_agent_ids": ["<RUN_AGENT_ID>"],
      "headline": "<headline>",
      "recommended_action": "<recommended action>"
    }
  ],
  "next_cursor": "<cursor>"
}

Filters supported by the CLI:

Failure classes currently accepted by the API are incorrect_final_output, tool_selection_error, tool_argument_error, retrieval_grounding_failure, policy_violation, timeout_or_budget_exhaustion, sandbox_failure, dependency_resolution_failure, malformed_output, flaky_non_deterministic, insufficient_evidence, and other.

Stateful Reads and Exit Codes

Ranking, scorecard, and replay reads can be ready, pending, or errored.

When a read is pending, do not infer pass/fail. Re-check later or inspect run get, run agents, and run events. When a read is errored, report the state and switch to available run, failure, event, and artifact evidence.

Evidence-First Interpretation

Use this ordering when writing findings:

  1. Ranking: winner, sort field, score gap, evidence warnings, unavailable scores.
  2. Scorecard dimensions: failed gates, low scores, unavailable/error dimensions, overall_reason, warnings.
  3. Validator and metric details: exact failed checks, source refs, numeric values, reasons.
  4. LLM judge results: judge key, mode, normalized score, confidence, variance, sample/model counts, concise rationale if present in payload.
  5. Failure review: failure_state, failure_class, severity, evidence_tier, refs, recommended_action, promotability.
  6. Replay: sequence refs and behavior observed around final output, tool calls, sandbox failures, or malformed outputs.
  7. Artifacts: downloaded only when needed to verify file output or user-visible content.

Do not say "the judge proved" something. Say "the scorecard/judge reports X, and replay/artifact evidence Y supports or contradicts it."

Expected Output

Failure Modes

Safety Notes

Report Back Format

Outcome: <winner/status/pending/errored>
Run: <RUN_ID>
Agent(s): <RUN_AGENT_ID or labels>
Evidence:
- <claim> | scorecard=<field/path> | replay=<sequence or none> | artifact=<id/path or none>
Findings:
- <impact> -> <next action>
Uncertainties:
- <pending/errored/unavailable evidence, or none>
Follow-up commands:
- agentclash run ranking <RUN_ID> --json
- agentclash run failures <RUN_ID> --json
- agentclash run scorecard <RUN_AGENT_ID> --json
- agentclash replay get <RUN_AGENT_ID> --limit 50 --json
Next skill: <agentclash-regression-flywheel | challenge-pack skill | none>

Related Skills

Related Docs

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.