Skip to content

evidence: record device state, UI trees and logs #352

Closed

Description

@ElbertePlinio

Part of #350.

Problem

Evidence accepts only screenshot artifacts (ArtifactKind::Screenshot in crates/pickforge-cli/src/evidence.rs). A reviewer cannot see the UI tree or the log excerpt behind a verdict, or the device state at capture time. Matrix runs and rule checks need all three.

Acceptance criteria

  • A capture can record the requested and the observed device state: display mode, fold state and posture where known, rotation, density, font scale, dark mode and locale.
  • A capture records the capture time, the app build, and the emulator and system image versions.
  • Evidence can hold a UI tree or a log excerpt as an artifact, with size limits and the same redaction as other stored output.
  • Supported sources are named in each artifact, with the capture time: the Android UI tree and logcat, the DevTools accessibility snapshot, console messages and Lighthouse report, and the AT-SPI tree once desktop: investigate an isolated AT-SPI tree for desktop sessions #359 lands. A source that is not available reports unavailable.
  • Imported report HTML is treated as untrusted content.
  • Existing schema v3 documents stay valid inputs.

Checklist

  • Decide how non-screenshot artifacts fit the Rust evidence path
  • State fields and capture metadata
  • Tree and log artifacts with limits and redaction
  • Viewer and report show the new fields
  • Tests and docs

Activity

  1. added
    enhancement
    on Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions