Author: Lucien Huber <im@lcnbr.ch>
Committer: GitHub <noreply@github.com>
Deduplicate main evidence in PR previews and prune closed PRs (#12) PR preview assembly previously copied all of main's retained docs/results, snapshots, and shared assets into every PR capture directory, causing O(M x P) Pages artifact growth (reaching 6.28 GB across 41 captures and failing actions/deploy-pages). - Record main_root, shared assets, and PR-local prefixes in preview.json during assemble_previews so build-pages.sh copies only PR-local reports and snapshots into each preview directory and reuses site-root assets. - Resolve non-local docs/results and snapshots links against main_root in web/main.typ, web/explorer.typ, web/list.js, and web/explorer.js while keeping PR-local evidence paths local and preserving traversal checks. - Add prune_previews (and CLI prune-previews) to remove closed/merged PR previews and cap captures per open PR (preserving latest), invoked automatically on PR publication in scripts/publish-ci.py.