Skip to content

feat(evidence): record device metadata and acceptance outcomes - #141

Merged
ElbertePlinio merged 3 commits into
mainfrom
feat/117-evidence-meta
Sep 9, 2026
Merged

ElbertePlinio merged 3 commits into
mainfrom
feat/117-evidence-meta

Conversation

@ElbertePlinio

Copy link
Copy Markdown
Member

Refs #117 (bullet 1 and the acceptance half of bullet 5).

Adds optional device metadata to run manifests, populated only from session facts (Linux desktop geometry, Android sessions as emulator), and an append-only outcome journal record with scenario, status (pass, fail, partial, blocked), revision, steps, inspected screenshots, limitations and notes. Text fields go through the existing sanitizers with caps. A pass is refused unless the run has a successful interaction action and at least one inspected screenshot that exists in the run as a regular file; partial needs an inspected screenshot. Exposed as MCP evidence_outcome and CLI pickforge-lab artifacts outcome. Evidence version stays 1; legacy journals and manifests parse unchanged, and unknown kind records are skipped rather than corrupting a journal.

Validation on this branch: bun run typecheck, bun run lint, complexity-gate check --changed, bun run test:coverage (1655 passed, thresholds held; the desktop containment test that failed once under a concurrent suite passes alone).

Author: Astra lane. Reviewer: separate Fable review.

Match interaction detection to the tool names producers actually persist,
refuse pass on orphaned or failed runs, reject oversize outcome lists
instead of truncating them, validate caller-supplied timestamps, and warn
when a journal hides records of an unknown kind. Device metadata is now
advisory: an unreadable session leaves it unset and mixed sessions are
stamped unknown.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant