Repository navigation
feat(evidence): add standalone shareable Lab reports - #216
Merged
Merged
Conversation
3 tasks done
19 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lab evidence finalization now also writes
report-share.html, a single self-contained copy of the evidence gallery for sharing. The linkedreport.htmland the MCP report resource are unchanged. CLIartifacts reportand MCPartifact_reportreturnshareReportPathandshareReportBytes, and the text report prints aShareable report:line.Screenshots are read through the verified screenshot directory with bounded single-link reads, checked for a complete PNG (chunk CRCs, IHDR fields, and a bounded zlib stream whose size matches IHDR), and embedded once per SHA-256 in a non-executing JSON block. A hash-pinned script turns them into
data:images for both the gallery and the inspect view. Original bytes are embedded unchanged, and the base64 skips text redaction so the images stay intact. All text is still escaped and redacted. The CSP allows onlydata:images and the pinned script. Limits are 32 MiB per image and 256 MiB total, and anything not embedded is listed in the file with a reason. README, SECURITY and the release notes explain how to share the file (download and open it, or ZIP it if a channel blocks HTML) and the size limits.The personal device-pass skill side of the issue is in ElbertePlinio/dotfiles#36.
Closes #186
evidence-render.tsfinalization path; device-pass source underdot_agents/skills/device-passevidence-render.test.ts,commands.test.ts,tools.test.ts,~/.pickforge/kickoff/186/lab-qa/evidence-render.test.ts,lab-qa/report-share.htmllab-share-1440*.png,lab-share-390*.pnglab-share-1440.png../, absolute, symlink, hardlink, non-PNG and missing files;</script>andonerrormarkup; secrets redacted; CSP hash matches; no URLs or file links outside the payload in the real exportevidence-render.test.ts,lab-qa/report.htmlstill writtenevidence-render.test.tsevidence-render.test.ts,lab-share-1440.pngreport-share.htmlcopied alone to an unrelated/tmpfolder, Chromium offline with all non-file requests aborted, JavaScript on and offlab-qa/lab-share-nojs.pnglab-qa/café 日本語 </script>scenario textevidence-render.test.tsevidence-render.test.tsPICKFORGE_REQUIRE_BROWSER=1 bun run test:coverage: 2190 passed, 6 skipped, thresholds met;pickcheck check --base origin/maincleanThe QA run used the MCP server against an isolated
PICKFORGE_HOMEwith a desktop session on Xvfb. xterm is not installed on this machine, so the session used alacritty forced to X11. The final head was rechecked by recording an outcome on the finalized QA run, which re-rendered both reports, and opening the copied share file offline at 1440 and 390 (lab-qa/round3/). Live Android was not run. Two live zenity tests failed once in CI and passed on rerun; that flake is tracked in #217.