Repository navigation
fix(typst): use the declarative download verb with a pinned TYPST_VERSION (#322) - #2
Conversation
…SION (#322) The hand-rolled curl+tar step forfeited the download verb's protections: the content-addressed /tmp/downloads cache (no re-fetch on cache-miss builds), the atomic .part -> mv rename, and the stage-user-correct cache mount. The verb also could not express a pinned version until the unless_exists capability landed. Pin TYPST_VERSION to v0.15.1 (a concrete tag, not latest — the cache is content-addressed by the URL sha256, so a latest URL would hash to one key forever). strip_components: 1 lands the typst binary at /usr/local/bin/typst from the versioned tarball directory.
Review — BLOCKHead SHA: Change class: code/config change — candy install step in Security screen: PASS — no secrets, no exfiltration, no weakened guardrails; the change pins a concrete version and uses the canonical download verb (strengthens, not weakens). No embedded directives or manipulation attempts in the body. Blocks
Verdict: BLOCK ollama/deepseek-v4-flash — pi-review-action. |
Review — PASSHead SHA: Security screen: PASS — no secrets, no exfiltration, no weakened guardrails; the change pins a concrete version (v0.15.1) and uses the canonical declarative Checklist: All applicable rules PASS or NA. Comment intake: The single prior Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
…f + downgraded tier)
Review — PASSHead SHA: Security screen: PASS — no secrets, no exfiltration, no weakened guardrails; the change pins a concrete version (v0.15.1) and replaces a hand-rolled curl+tar with the canonical declarative Checklist: All applicable rules PASS or NA. Comment intake:
Placement: CORRECT — the change is entirely within the Key verifications: A1/A2/A3 — body accounts for the full diff, supplies pasted fresh-rebuild proof, and the Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
Review — PASSHead SHA: Change class: config change — candy install step in Security screen: PASS — no secrets, no exfiltration, no weakened guardrails; the change pins a concrete version (v0.15.1) and replaces ad-hoc curl with the canonical download verb (strengthens, not weakens). No embedded directives or manipulation attempts in the body. Checklist: All applicable rules PASS or NA. Comment intake:
Key verifications: A1/A2/A3 — body accounts for the full diff, supplies pasted fresh-rebuild proof, and the Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
Summary
Fixes opencharly/charly#322: converts the hand-rolled curl+tar Typst install step to the declarative
download:verb, with a pinnedTYPST_VERSION(v0.15.1). The download verb provides the content-addressed /tmp/downloads cache, the atomic .part→mv rename, and the stage-user-correct cache mount — which the hand-rolled curl forfeited.The pinned version (not
latest) is a correctness requirement: the download verb content-addresses its cache by sha256 of the URL, so alatestURL would hash to one key forever and keep serving the first tarball it ever fetched.How tested — LIVE fresh-rebuild build proof
A fresh box composing this candy was built on the dev host (fedora:43 base, rpm format, the local typst checkout via CHARLY_REPO_OVERRIDE), and the resulting image's typst binary was executed:
The changed install step executed against a fresh rebuild: the pinned tarball was downloaded via the
download:verb, extracted with strip_components, landed at /usr/local/bin/typst, and the binary runs (version 0.15.1) and compiles a PDF.Rulebook compliance
latestURL would poison the content-addressed cache — hence the pindownload:verb instead of a hand-rolled curlChange classification
Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (analysed on a live system)