Skip to content

feat: integrate device-pass workflow and evidence viewer #117

Closed

Description

@ElbertePlinio

Integrate the approved device-pass workflow and Pickforge evidence viewer into the existing computer-use evidence system. The current implementation is a portable local skill for six harnesses in ElbertePlinio/dotfiles#30, under dot_agents/skills/device-pass/. Its report includes device filters, capture search, keyboard navigation, full-size image inspection, journey outcomes, environment details and limitations.

Build on the existing recorder and artifact/report surfaces rather than introducing a second evidence store. packages/core/src/evidence-render.ts already renders HTML timelines; MCP records actions and screenshots; the Rust evidence record command writes external evidence with a Markdown report. #20 delivered the recording foundation. Coordinate with #110 on orphaned-run finalization.

Reference: the approved local report is ~/Artifacts/<private-app>/2026-09-05/device-pass/report.html. Its reusable renderer and assets are in the linked skill PR. Preserve evidence locally; do not commit screenshots, recordings or session data to product docs.

Implement after the current private-app device-pass work is closed out. Scope is the existing local lab and agent workflow; cloud publication is separate work.

Scheduled in #89 after 0.4.0 stable and after the current private-app device-pass work is closed out. Implement this evidence/workflow integration before the Linux desktop computer-use extension planned in #118. This scheduling update does not start implementation or add a 0.4.0 release blocker.

Activity

  1. ElbertePlinio commented on Sep 9, 2026

    @ElbertePlinio
    MemberAuthor

    Started 2026-09-09 after 0.4.0 shipped (#89 closed).

    Audit of the existing surfaces: evidence-render.ts builds the run report.html under default-src 'none'; img-src 'self' data:; style-src 'unsafe-inline' with no script-src, so the prototype's JavaScript cannot be ported as is. Run metadata today has no viewport, device kind, scenario, revision, outcome or limitation fields. Rust pickforge evidence record writes evidence.json + report.md runs into the same runs/ tree and the lab catalog skips them.

    Interaction strategy decision: CSS-first for device filters, capture inspection and keyboard focus so the report fully works with scripts blocked, plus one self-contained inline script pinned by a script-src 'sha256-…' entry for search and arrow-key browsing. No external scripts, no network; the hash pin blocks everything else. The README's "no-script" wording changes to describe this exactly.

    Plan, one PR each with a separate final reviewer:

    1. Core: optional device manifest metadata populated from session facts only, plus an append-only outcome journal record (scenario, status pass/fail/partial/blocked, revision, steps, inspected screenshots, limitations). A pass is refused without an ok interaction action and at least one inspected screenshot that exists in the run. Exposed as MCP evidence_outcome and CLI artifacts outcome.
    2. Artifacts: list and report Rust evidence runs read-only with a source discriminator; no migration, no writes into Rust runs.
    3. Renderer: brand-token viewer on the existing report with device/scenario filters, search, capture inspection, keyboard navigation, and explicit empty, failed, partial, blocked and truncated states, under the CSP above, with escaping, path-safety and old-manifest tests.
    4. Report exposure: HTML path in artifact_report/CLI output, resource updates, docs.
    5. Acceptance workflow bundled with the agent integrations, then desktop, browser and Android acceptance runs with independent visual review, recorded in local evidence outside the repo.

    1 and 2 are in progress in parallel; 3 starts on top of 1.

  2. ElbertePlinio commented on Sep 10, 2026

    @ElbertePlinio
    MemberAuthor

    Acceptance runs done on main f23b9fe, all driven through the lab MCP tools and the device_pass workflow, evidence kept locally outside the repo:

    • Desktop: Xvfb 1280x900, Flutter counter fixture, two desktop_click steps, three inspected screenshots, outcome pass.
    • Browser: isolated Chrome through the DevTools relay, the desktop run's viewer opened over loopback; search filtering (desktop_click, desktop_screenshot), inspect overlay and ArrowRight navigation verified, zero console messages, so no CSP violations; outcome pass.
    • Android: private copy of the emulator AVD at 3072 MiB, the release counter fixture APK, two android_tap steps, three inspected screenshots, outcome pass.

    Each run's report.html renders with every image link resolving, and a separate reviewer that did not drive the runs judged all three image sets as supporting the recorded sequence, flagging only low label contrast in the viewer (non-blocking).

    Observations from the runs, filed separately: the browser session's run records device kind desktop with no browser name or version (#149). Also noted: artifact_report returns reportPath: null until the session is destroyed, which matches the workflow text, and the viewer's Markdown twin had a step-number gap with mid-run outcomes (#148).

  3. ElbertePlinio commented on Sep 10, 2026

    @ElbertePlinio
    MemberAuthor

    All checklist items done; follow-ups tracked in #144, #147, #148 and #149.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions