Skip to content

Commit 2dfd854

Browse files
author
Kevin Arthur
committed
docs(audit): trace PDF alpha follow-up evidence
1 parent 173d6d9 commit 2dfd854

6 files changed

Lines changed: 148 additions & 5 deletions

File tree

‎docs/audits/photocraft/README.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ hardening Varve.
1010
| `findings.md` | Failure classes, their Varve verdicts, the implementation log, evidence limitations |
1111
| `issue-ledger.jsonl` | Frozen cutoff A issue records and screening dispositions |
1212
| `issue-ledger-follow-on-b.jsonl` | Cutoff B new issue inventory with per-issue review/disposition status |
13+
| `link-frontier.jsonl` | Deduplicated recursive evidence edges and their review dispositions |
1314
| `issue-ledger-follow-on-b.summary.json` | Cutoff B inventory counts and review coverage |
1415
| `issue-ledger.summary.json` | Counts for frozen cutoff A |
1516
| `continuation.md` | Where the work stopped and the exact next operation |
@@ -19,7 +20,7 @@ hardening Varve.
1920
| Cutoff | Window (UTC) | Issue count | Notes |
2021
|---|---|---|---|
2122
| **Cutoff A (frozen)** | `2026-10-17T04:41:35Z` → `2026-10-17T04:42:17Z` | 1 296 issues (827 open / 469 closed) + 1 682 PRs | Full enumeration, reconciled against the search totals |
22-
| **Cutoff B (frozen)** | `2026-10-18T12:28:21Z` → `2026-10-18T12:28:46Z` | 1 454 issues (936 open / 518 closed) + 1 795 PRs | Reconciled by pagination and issue search totals; all 158 new issue bodies and current comments screened (40 screened for Varve, 116 out of scope, 2 already handled); 40 existing issues changed state |
23+
| **Cutoff B (frozen)** | `2026-10-18T12:28:21Z` → `2026-10-18T12:28:46Z` | 1 454 issues (936 open / 518 closed) + 1 795 PRs | Reconciled by pagination and issue search totals; all 158 new issue bodies and current comments screened; after follow-up, 38 remain screened for Varve, 117 are out of scope, 2 already handled, and 1 has a linked Varve fix; 40 existing issues changed state |
2324

2425
Issues created after cutoff A are recorded in the cutoff B follow-on ledger; they do not
2526
change the frozen A ledger. Cutoff B is the current source-reconciliation boundary.

‎docs/audits/photocraft/continuation.md‎

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,85 @@ VARVE_E2E_PORT=1527 node scripts/quality/heavy-lease.mjs "e2e: buffered text sav
339339
bash -lc 'TMPDIR=/home/kevina/.cache/varve-photocraft-tmp npx playwright test tests/e2e/save/text-draft-save.spec.ts --project=chromium --workers=1 --reporter=list'
340340
```
341341

342+
## 2026-10-18: authored PDF stroke alpha follow-up
343+
344+
The recursive thread review for cutoff-B #3229 and #3176 is recorded in
345+
`findings.md` §4.24 and `link-frontier.jsonl`. The combined-PDF-operator issue
346+
does not map to Varve's partial PDF importer or its separate canvas fill/stroke
347+
paint contract. During the adjacent authored-output check, a real Varve scene
348+
export exposed a directly shared transparency defect: the PDF writer dropped
349+
`EngineColor` alpha for strokes. Commit `173d6d9f1` fixes this by writing
350+
`node.opacity × stroke.color.alpha` as the stroke graphics-state alpha. A
351+
separate regression confirms the product and PDF/X-1a refusal remains covered.
352+
353+
The tracked Poppler renders were visually inspected:
354+
355+
- `evidence/pdf-stroke-alpha-after.png`, SHA-256
356+
`bbf202a52dd331fdccbe6fb782d4313cd4ddac3a53faf13983ab74040ae40d92`; at
357+
72 dpi, inner stroke over red `(95,31,158)`, outer stroke over gray
358+
`(64,64,191)`, fill `(191,63,63)`.
359+
- `evidence/pdf-pattern-opacity.png`, SHA-256
360+
`27724baad0ca4116a1625a10febe4c96c773c716e80d58168fe3999f5cf9c241`; the
361+
25% red raster pattern over gray sampled `(159,95,95)`, with untouched gray
362+
outside.
363+
364+
The reproducible exporter command was
365+
`cargo run -p varve-print --example blend_probe -- /tmp/varve-pdf-alpha-verification`;
366+
Poppler rendered the resulting PDFs with `pdftoppm -r 72`. The before-fix
367+
render was captured and inspected during the first run (opaque blue stroke),
368+
then the same inputs were rerendered after the fix. The post-fix captures above
369+
are retained; the pre-fix raster was not retained as a file.
370+
371+
Validation for this slice:
372+
373+
```text
374+
Changed scope: varve-print Rust exporter/tests/probe; fill-system architecture doc; changelog and website deploy path filter; PdfCraft audit records/evidence
375+
Validation plan: 13 files selected Tier 0 format/lint/emoji/docs, Tier 2 varve-print test/clippy, Tier 3 standalone desktop Rust tests; the workflow trigger change caused FULL-SUITE ESCALATION: YES (validation-infrastructure change).
376+
Commands actually run: cargo fmt --check; cargo test -p varve-print render_strokes_preserves_stroke_color_alpha (red before fix, green after); cargo test -p varve-print; cargo clippy -p varve-print -- -D warnings; node scripts/audit-docs.mjs; node scripts/audit-emoji.mjs; just validate-workflows; just pin-actions; git diff --check; Poppler `pdftoppm` renders and ImageMagick pixel samples.
377+
Passed: 193 varve-print tests; focused red→green regression; print-crate Clippy; formatting; docs audit (1,140 docs / 816 links / 178 ADRs); emoji audit (5,308 files); 13 workflow YAML/actionlint checks; all action pins.
378+
Skipped as unrelated: website functional tests and full canvas visual suite were not selected by the direct affected plan; website `/changelog` visual inspection is still due after its master deployment.
379+
Escalations: Full exact-SHA gate is required by the plan and remains to be run after the reviewed commit is pushed to a remote branch. `cargo test --manifest-path apps/desktop/src-tauri/Cargo.toml` reached the Tauri build script but stopped because this integration clone lacks the ignored `onnxruntime-libs/**/*` bundle. The bundle exists in the active task worktree; it was not copied or modified. Its local build target was cleaned after failure (5.0 GiB reclaimed).
380+
Full suite run: no
381+
If yes, reason: —
382+
```
383+
384+
`pnpm verify:plan` in the dependency-light integration clone began pnpm's
385+
workspace linking rather than reaching the planner; that command was stopped
386+
before completion. The same planner was run directly from the already
387+
provisioned task-worktree script against this exact tree. `pnpm verify:affected`
388+
was not run in this clone; its selected print-crate lanes were run directly,
389+
and the dependent desktop lane is blocked as described above. Do not treat the
390+
local push checkpoint or hosted full gate as passed yet.
391+
392+
Website impact: `CHANGELOG.md` feeds `/changelog`, but Website Deploy did not
393+
watch that source file. Commit `173d6d9f1` adds it to the workflow path filter.
394+
The visible item is explicitly `Unreleased`; export-feature marketing copy
395+
needs no change. The master website build/deploy and visual inspection still
396+
need confirmation after integration.
397+
398+
Integration state: local implementation commit `173d6d9f1` is on
399+
`codex/photocraft-hardening-integration`, based on master `d8adb3be1`; audit
400+
records/evidence reconciliation is not yet committed. Remote master still
401+
points to `d8adb3be1`. The exact-SHA CI on `3da083f54` remains in progress and
402+
the docs-only `d8adb3be1` CI remains pending; retain and poll these workflows.
403+
No full-gate, website deployment, or native UI export verification is claimed.
404+
405+
Second-pass self-review (not independent): inspected the complete implementation
406+
diff and both production PDF builder call paths. The opacity resource is
407+
collected before page resources are assembled; PDF/X-1a still rejects visible
408+
stroke alpha; no hub, schema, or public UI boundary changed. No other actionable
409+
code finding was found. The direct exporter output is verified, but native UI
410+
export remains unverified because the local Tauri build lacks its ignored model
411+
bundle; exact-SHA hosted validation is still required.
412+
413+
Next: commit the audit ledger/frontier reconciliation separately, publish the
414+
reviewed candidate branch to obtain the plan-required hosted exact-SHA full
415+
gate, and fast-forward the verified commits to master through the normal
416+
permitted path. Then inspect the deployed `/changelog` at desktop and mobile
417+
widths. Continue cutoff-A and cutoff-B recursive evidence and Varve-specific
418+
checks; 38 cutoff-B issues remain screened for Varve and the older cutoff-A
419+
queue is still open.
420+
342421
## 2026-10-18: direct text-session handoff follow-up
343422

344423
The first post-merge run of `tests/e2e/save/text-target-switch.spec.ts` exposed

‎docs/audits/photocraft/findings.md‎

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -857,3 +857,49 @@ ledger rationales and narrowed one disposition:
857857

858858
These findings came from source review only; they do not claim a fresh Varve
859859
reproduction for the unresolved routes.
860+
861+
### 4.24 Follow-up: authored stroke alpha and PDF pattern reports
862+
863+
The later comment on cutoff-B issue [#3229](https://github.com/storytold/pdfcraft/issues/3229)
864+
reports a current PdfCraft reproduction and ongoing work. Its primary defect is
865+
specific to reading one PDF `B`/`b` path operator or text rendering mode 2 as
866+
two compositing operations. Varve does not import arbitrary PDF content
867+
streams, and its authored scene contract paints fills and strokes as separate
868+
canvas paints, so that single-object knockout behavior is not a Varve feature
869+
gap. The issue's alpha example did, however, motivate a separate authored
870+
output check: Varve canvas stroke colors retain their alpha, while the Rust PDF
871+
stroke serializer previously emitted only RGB. A real scene export rendered
872+
through Poppler confirmed a fully opaque blue border before the fix. The
873+
writer now writes the product of node opacity and stroke-color alpha as PDF
874+
graphics-state alpha. After the fix, Poppler samples on the same output were
875+
`(95,31,158)` on the stroke over the red fill and `(64,64,191)` on the outer
876+
stroke over gray; the fill remained `(191,63,63)`. This addresses Varve's
877+
separate color-alpha defect, not PdfCraft's combined-operator bug.
878+
The inspected post-fix captures are [the vector fill/stroke export](evidence/pdf-stroke-alpha-after.png)
879+
and [the raster-pattern export](evidence/pdf-pattern-opacity.png); SHA-256
880+
values are recorded in the audit continuation checkpoint.
881+
882+
Issue [#3176](https://github.com/storytold/pdfcraft/issues/3176) is likewise an
883+
imported-PDF pattern graphics-state timing problem. Its linked #2200 / PR #2132
884+
is a distinct soft-mask/shading fast-path fix; #2975 / PR #2977 concerns
885+
stencil-mask alpha; #2970 concerns page backdrop blend modes. Those branches
886+
were followed and kept separate. Varve's authored raster-pattern export uses
887+
an explicit opacity graphics state and embedded tile alpha. A synthetic
888+
Varve-exported red pattern at 25% opacity rendered over gray through Poppler
889+
to `(159,95,95)`; the saved visual was inspected. Existing `varve-print` tests
890+
also verify the opacity state and tile soft mask. The importer-specific
891+
`/ca`-after-`scn` and `/CA`-after-`SCN` failure is outside Varve's partial PDF
892+
import contract.
893+
894+
Related issue [#1469](https://github.com/storytold/pdfcraft/issues/1469) and
895+
merged PR #1478 concern Type 3 glyphs, where text rendering mode 2 must not
896+
paint glyph procedures twice. The report and patch were inspected; that
897+
Type-3-only behavior does not apply to Varve's authored text-to-PDF path.
898+
Other followed edges are recorded in `link-frontier.jsonl`. The export feature
899+
page was reviewed; it makes no specific stroke-alpha or PDF transparency
900+
promise that this correction would require changing. The new `CHANGELOG.md`
901+
Unreleased entry is also the public `/changelog` source. Website Deploy did
902+
not previously watch that root source file, so its path filter now includes
903+
`CHANGELOG.md`; otherwise the public changelog would remain stale. No
904+
export-feature marketing claim changed. `docs/architecture/fill-system.md`
905+
now records the PDF and PDF/X stroke-alpha contract.

0 commit comments

Comments
 (0)