Repository navigation
Description
Goal
Make device-pass and Pickforge Lab evidence quick to share as one offline HTML file. Preserve the existing Pickforge gallery design and enough context for a recipient to understand what passed, failed, or was not tested.
Implemented in #216 (Lab) and ElbertePlinio/dotfiles#36 (device-pass skill, merged and applied).
Current behavior
The personal device-pass renderer embeds styles and scripts, but links screenshots and optional video as separate files. Pickforge Lab has a separate HTML renderer with the same charcoal/orange visual style, capture filters, search, image inspection, and an action timeline. Its screenshots also remain separate files.
Relevant entry points:
- Pickforge Lab:
packages/core/src/evidence-render.ts, especiallyrenderEvidenceHtml,reportContentSecurityPolicy, and report writing. - Personal device-pass skill:
scripts/render_report.py,scripts/report.html,scripts/report.css,scripts/report.js, andreferences/gallery.mdunder the installed skill. Make durable changes in the chezmoi source throughagent-config-sync, not only the rendered skill.
Agreed direction
Generate a self-contained HTML report as the default shareable output in both workflows. Embed screenshots, CSS, and JavaScript. Opening the exported file must need neither a server nor an internet connection. Keep original screenshots, JSON manifests, and journals locally as the authoritative evidence; export must not modify them.
Preserve full-resolution image quality, and embed each unique image payload only once even when used by a thumbnail and the full-size viewer. Use the existing gallery design, not a redesign. Keep the two renderers visually consistent without requiring a broad renderer/framework consolidation.
Implementation checklist
- Confirm both current renderer entry points and the chezmoi-managed device-pass source before editing.
- Add standalone export to Pickforge Lab and make it the normal shareable report.
- Add equivalent standalone generation to the personal device-pass skill through
agent-config-sync. - Embed validated local screenshots once per unique payload and reuse them for gallery and full-size inspection.
- Preserve image fidelity and existing filters, search, keyboard navigation, image inspection, and Lab's action timeline.
- Include revision, environment/device details, scenario steps, outcomes, findings, and limitations inside the HTML. Essential context must not depend on adjacent JSON/text files.
- Preserve path confinement, escaping, redaction, and restrictive CSP. Do not fetch remote assets or embed arbitrary local files, credentials, or raw private logs.
- Keep original evidence untouched; preserve the existing linked-artifact workflow where needed for compatibility.
- Report export size and explain large-file limits without silently reducing quality or omitting evidence.
- Keep video optional and explicitly disclose anything not included in the portable file. Do not imply full portability if required evidence is external.
- Update sharing instructions: download and open in a browser; if a channel blocks HTML attachments, ZIP the single HTML file. No hosted sharing service is required.
Acceptance and verification
- Move or copy only the exported HTML into an unrelated directory and open it offline. All included images, metadata, and interactions work without the original evidence folder.
- Verify there are no external network dependencies and no dangling local artifact links in the standalone export.
- Test Unicode captions, pass/fail/blocked outcomes, missing or unsupported images, malicious captions and paths, and repeated image references.
- Assert each unique image payload is embedded once; compare exported image bytes against originals.
- Verify security boundaries, CSP behavior, and no evidence-source mutation in automated tests.
- Run both renderers' relevant checks and visually inspect desktop and narrow layouts, full-size image viewing, keyboard controls, search, and filters.
- Use a sanitized representative multi-scenario fixture. Do not commit customer evidence or the VPro report to the repository.
- Obtain independent review and link the implementation PR with
Closes.
Size reference and limits
The motivating VPro report has seven essential PNG images totaling approximately 2.7 MB. Base64 embedding would be roughly 3.6 MB plus markup and scripts if each image is embedded once. This is an estimate, not a size guarantee. Video can dominate file size and is not required for the initial screenshot-focused export.
Email/chat clients may block HTML attachments or previews. A single-file export does not remove those platform restrictions; downloading first or wrapping the HTML in a ZIP is the fallback.
Out of scope
Hosted public sharing, automatic publishing, cloud storage, clinical/customer data in test fixtures, lossy image compression by default, and merging the two evidence schemas or renderer implementations solely for this feature.
Activity