Skip to content

🀯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

6.0 KB
Raw Blame

Cross-surface evidence contract

This reference defines the artifact contract shared by every surface. Capture commands belong to the selected surface guide; do not load another surface's instructions merely to learn how to submit an artifact.

Evidence media

Type Use when
text Command output, logs, focused request/response data, or computed assertions prove the criterion
markdown Reviewer-facing prose (a reasoning write-up, structured findings) should render as body text
dom_snapshot Structured content is stronger and smaller than pixels
screenshot A settled visual state, layout, or native rendering is the claim
gif A short temporal state should render inline, usually no more than about 10 seconds
video A longer animation, transition, gesture, or multi-step flow needs a player and better compression
audio The deliverable is something the user hears β€” TTS output, a voice reply, an alert tone
transcript A conversation, event stream, or request log is itself the proof

The declared requiredEvidence type is binding. Do not replace a required video with a final screenshot or a required DOM snapshot with prose.

Every video you capture carries chapters β€” your steps, the claims you verified on specific frames, and the anomalies you noticed β€” so the reviewer can seek to each one instead of watching the whole clip: video-chapters.md.

Audio deliverables

A sound cannot be verified in prose, and a waveform screenshot proves only that a file exists. Upload the clip itself with --type audio and the acceptance page gives the reviewer a player.

# The generated file is the evidence β€” keep the artifact the feature produced,
# not a re-encode and not a screenshot of the player.
cp ./out/tts-zh-female.mp3 "$REPORT_DIR/assets/"
// its case in result.json
"evidence": [
  { "path": "assets/tts-zh-female.mp3",
    "description": "TTS output for γ€Œδ»Šε€©ε€©ζ°”δΈι”™γ€, zh-CN female voice, 2.4s" }
]
  • mp3 / wav / m4a / aac / flac / ogg / opus are recognized by extension, so acceptance run ingest types them as audio automatically.
  • Listen before citing it. Confirm the clip is non-silent and is the right content (duration + a transcription pass, or a spectral check) β€” an empty or truncated file looks identical to a good one in the file list.
  • Pair the clip with a short text artifact when the claim is about what was said (the input text, the voice/model, the measured duration). The player proves it plays; the text artifact makes it auditable.
  • Capture what the product produced. A screen recording with system audio is a fallback for "the UI plays it at the right moment" β€” for "the output is correct", attach the file itself.

Dual text evidence for non-visual behavior

CLI, API, backend, policy, security, and migration claims normally need two separate text artifacts on the same check:

  1. A reasoning artifact: claim, setup or threat model, method, pass criteria, interpretation, and limitations.
  2. An execution artifact: exact command or request, relevant raw observations, exit/status values, and a short mapping back to the pass criteria.

Keep both artifacts in the current immutable round. Do not ask a reviewer to join an explanation from an older round with fresh execution output.

File versus inline content

  • Save binary artifacts and larger text/DOM/transcript files into the round's assets/ and list them in the case's evidence; ingest inlines small text files itself.
  • When supplementing a single artifact with result submit, use --file for a file and --content for a short text assertion β€” exactly one of them.
  • Description is mandatory for every file artifact. Always supply a description on each evidence entry in result.json, and a non-empty --desc when supplementing with --file or attaching a fileId. Small text files converted to inline content still require it; do not rely on the filename fallback.
  • Write a concise, factual sentence identifying the file's contents and their relevance to the criterion, including the action, observed state, or target where useful. The reviewer should know why to open it without inspecting the payload. A filename, path, id, "JSON", or "evidence" alone is insufficient. Do not invent conclusions or place the verdict in the description unless explicitly asked.
  • Example: goal-final-state.json β†’ "Goal final state after training: completion status and the four final validation results." Describe each artifact separately instead of repeating the criterion title for every file.
# Supplementing one artifact after the round was published.
lh acceptance run result submit --operation "$OPERATION_ID" --item "$CHECK_ITEM_ID" \
  --type "$EVIDENCE_TYPE" --file "$ARTIFACT_PATH" --by "$PROVENANCE" \
  --desc "Observed state after the planned action"
# A video carries its chapters: add --chapters "$CHAPTERS_JSON".

Provenance (--by)

Set --by to the producer named by the selected surface guide. Use the direct capture source for an unmodified artifact and program for a deterministic test, script, or media transform. Do not infer provenance from the file extension.

Artifact safety

  • Inspect every image, clip, and generated document before citing it.
  • Never upload credentials, cookies, tokens, private user data, unrelated host windows, or notifications.
  • Prefer a focused artifact over an unfiltered log or full-session recording.
  • Retain the raw source when submitting a derived chart, contact sheet, GIF, or edited comparison image.