Skip to content

feat(artifacts): expose report path, outcome and device in artifact commands - #145

Merged
ElbertePlinio merged 6 commits into
mainfrom
feat/117-report-exposure
Sep 9, 2026
Merged

ElbertePlinio merged 6 commits into
mainfrom
feat/117-report-exposure

Conversation

@ElbertePlinio

Copy link
Copy Markdown
Member

Refs #117 (bullet 4). Stacked on #141; merge after it and after main is merged in.

pickforge-lab artifacts report and MCP artifact_report now return reportPath (the run's report.html when it exists as a regular file inside the run, checked through the catalog's confined root-file helper, null otherwise), outcome (latest outcome record's status and scenario, or null) and device (manifest device metadata, or null). Text mode ends with Report: <path> or Report: not finalized yet while the run is still running. artifacts list, artifact_list and pickforge://runs gain outcome per lab run, read through the existing journal path with a corrupt-journal fallback to null; sort order is unchanged and reads never generate a report. README documents the new fields.

Validation on this branch: typecheck, oxlint, complexity-gate, bun run test:coverage 1676 tests with thresholds held (run by the lead outside the lane sandbox).

Author: Astra lane. Reviewer: separate Fable review.

@ElbertePlinio

Copy link
Copy Markdown
Member Author

Merged main (#141 and #142). The per-run outcome lookup moved into core as latestOutcomeStatus and listArtifactRuns now carries outcome for lab runs (null for Rust runs), so CLI, MCP and the runs resource share one listing again. The CLI report command was split into labReport to stay under the complexity limit and the MCP outcome tool registration into its own function for the line limit. Affected CLI, MCP, core and security suites: 547 passed; typecheck, oxlint and complexity-gate clean.

@ElbertePlinio

ElbertePlinio commented Sep 9, 2026 •

Copy link
Copy Markdown
Member Author

Review fixes pushed (099e4e5): journals are read one at a time in the listing so at most one journal is buffered (cheaper tail-scan or manifest cache tracked in #147); one core latestOutcome helper now serves list, CLI report and MCP report; the text listing prints outcome: none instead of unknown; README states that outcome is the lab journal record only and Rust runs carry their result in status; assertions added for device: null, a completed run without report.html printing no Report line, and the Rust list entry shape. CLI artifacts suite and MCP/core suites green, typecheck and oxlint clean.

@ElbertePlinio
ElbertePlinio merged commit f23b9fe into main Sep 9, 2026
18 of 20 checks passed
@ElbertePlinio
ElbertePlinio deleted the feat/117-report-exposure branch September 9, 2026 20:21
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