Agentclash challenge pack artifacts

From agentclash/agentclash · View interactive version

Agentclash challenge pack artifacts is an AI agent skill from the GitHub repository agentclash/agentclash. Use when specifying AgentClash challenge pack assets, artifact references, produced file captures, evidence references, artifact upload/download expectations, and review-only evidence.

How to use this skill

Skill file

AgentClash Challenge Pack Artifacts

Purpose

Make challenge pack files and evidence explicit without confusing three different surfaces:

Use this skill when a coding agent needs exact artifact fields and evidence references without reading the AgentClash source repo.

Use When

Do Not Use When

Environment

Use hosted production for CLI examples unless the user intentionally targets a local or self-hosted backend.

export AGENTCLASH_API_URL="https://api.agentclash.dev"

agentclash challenge-pack validate is a hosted API call: authenticate first and select a workspace with agentclash link, --workspace, AGENTCLASH_WORKSPACE, or local .agentclash.yaml. Use agentclash-cli-setup if the machine is not already logged in.

Validation Commands

Validate after changing any asset, artifact reference, input artifact key, expectation artifact key, or file evidence target.

agentclash challenge-pack validate path/to/pack.yaml
agentclash challenge-pack validate path/to/pack.yaml --json

Human output prints Challenge pack is valid or Challenge pack has errors. Use --json for structured valid and errors fields.

Asset Declaration Shape

Challenge-pack assets use the same field shape at version.assets, challenges[].assets, and input_sets[].cases[].assets.

version:
  assets:
    - key: policy_pdf
      kind: document
      path: assets/policy.pdf
      media_type: application/pdf
      artifact_id: 00000000-0000-0000-0000-000000000000

challenges:
  - key: summarize-policy
    title: Summarize Policy
    category: document
    difficulty: medium
    assets:
      - key: challenge_notes
        path: assets/challenge-notes.md

input_sets:
  - key: policy-smoke
    name: Policy Smoke
    cases:
      - challenge_key: summarize-policy
        case_key: summary-basic
        assets:
          - key: case_notes
            path: assets/cases/summary-basic-notes.md

Source-backed fields:

The current validator does not enforce enums for kind or media_type; use clear, conventional values and validate the pack.

Version Assets Versus Local Assets

Only version.assets form the reference pool for artifact references.

These fields must reference a declared version.assets[].key:

Challenge-level and case-level assets are validated for key and path, but they are not accepted as targets for artifact_refs, artifacts, artifact_key, or source: artifact:.... If a file needs to be referenced by scoring or case evidence, declare it in version.assets.

Artifact References

Use artifact_refs on a challenge to say which version assets matter to that challenge. Use case artifacts to expose version assets as artifact evidence for a case.

version:
  assets:
    - key: policy_pdf
      path: assets/policy.pdf
      media_type: application/pdf
    - key: expected_summary
      path: assets/expected-summary.json
      media_type: application/json

challenges:
  - key: summarize-policy
    title: Summarize Policy
    category: document
    difficulty: medium
    artifact_refs:
      - key: policy_pdf

input_sets:
  - key: policy-smoke
    name: Policy Smoke
    cases:
      - challenge_key: summarize-policy
        case_key: summary-basic
        artifacts:
          - key: policy_pdf
          - key: expected_summary
        inputs:
          - key: prompt
            kind: text
            value: Summarize the refund policy.
          - key: source_document
            kind: file
            artifact_key: policy_pdf
            path: assets/policy.pdf
        expectations:
          - key: summary_reference
            kind: json
            artifact_key: expected_summary
          - key: summary_reference_via_source
            kind: json
            source: artifact:expected_summary

Hard validation rules:

Evidence References

Scoring references case and artifact evidence through supported evidence-reference strings.

Artifact evidence:

Case evidence:

Produced file evidence:

Use literal:<value> for inline expected values when a validator requires expected_from.

Produced File Capture

Agent-produced files are not declared with pack assets. Capture them after native execution through version.evaluation_spec.post_execution_checks.

version:
  execution_mode: native
  tool_policy:
    allowed_tool_kinds:
      - file
      - build
  evaluation_spec:
    name: policy-artifact-eval
    version_number: 1
    judge_mode: deterministic
    post_execution_checks:
      - key: generated_summary
        type: file_capture
        path: /workspace/summary.json
        max_size_bytes: 1048576
      - key: project_listing
        type: directory_listing
        path: /workspace
        recursive: true
    validators:
      - key: generated_summary_exists
        type: file_exists
        target: file:generated_summary
      - key: generated_summary_matches_schema
        type: file_json_schema
        target: file:generated_summary
        config:
          schema:
            type: object
    scorecard:
      dimensions:
        - key: correctness
          source: validators
          weight: 1

Source-backed post_execution_checks fields:

File validators must target file:<post_execution_check_key>. code_execution validators must reference a file_capture, not a directory_listing.

Review-Only Evidence Patterns

Use review-only evidence when humans need debugging context but scoring should not depend on it.

Good review-only patterns:

Keep scored evidence and review evidence separate in the report. If a file should affect the score, reference it from a validator, judge context_from, or judge reference_from. If it is only context for humans, leave it unreferenced by scoring.

Artifact CLI Surface

Workspace artifacts are managed by the CLI, but challenge-pack YAML does not have upload or download commands inside the bundle.

agentclash artifact list
agentclash artifact list --json
agentclash artifact upload path/to/file --type reference-data
agentclash artifact upload path/to/file --type reference-data --metadata '{"purpose":"review"}' --json
agentclash artifact download <ARTIFACT_ID> --output path/to/file

Exact command notes:

Use these commands for workspace artifact inspection or preloading stored artifacts. Use version.assets[].artifact_id only when you already have a stored artifact UUID to reference.

Common Validation Failures

Authoring Procedure

  1. List every static file the pack needs.
  2. Put any file that must be referenced by cases or scoring in version.assets.
  3. Add challenge-local or case-local assets only for local organization; do not rely on them for artifact_key references.
  4. Add artifact_refs to each challenge when a version asset belongs to that challenge.
  5. Add case artifacts when scoring or review evidence should expose a version asset on that case.
  6. Use inputs[].artifact_key, expectations[].artifact_key, or source: artifact:<key> only for declared version assets.
  7. For agent-produced files, use version.evaluation_spec.post_execution_checks, then target them with file:<key>.
  8. Decide which captured files are scored and which are review-only.
  9. Run agentclash challenge-pack validate path/to/pack.yaml --json.
  10. Report exact artifact keys, file paths, scored evidence references, review-only evidence, and validation result.

Safety

Report Back Format

Version assets:
- key:
  path:
  media_type:
  artifact_id:
Challenge artifact refs:
Case artifacts:
Input artifact keys:
Expectation artifact keys/sources:
Produced file captures:
- key:
  type:
  path:
  scored: <yes/no>
Scoring evidence refs:
Review-only evidence:
Artifact CLI commands used:
Validation command:
Validation result:
Open issues:

Related Skills

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.