Skip to content

Commit 335b4ce

Browse files
authored
Merge pull request #165 from varvedesign/feat/vectorcraft-corpus
VectorCraft corpus review: save truthfulness, bounded Offset Path, SVG fidelity
2 parents 2e8c5b0 + 4801d4b commit 335b4ce

24 files changed

Lines changed: 2720 additions & 53 deletions

‎CHANGELOG.md‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,21 @@ update, not for someone reading the commit log.
3333

3434
### Fixed
3535

36+
- **Varve Library saves that fail no longer report Saved** — when the library
37+
write itself fails, the document stays modified, keeps its recovery point and
38+
says the work is still unsaved. Previously only the status line changed and
39+
closing could discard the document.
40+
- **Offset Path** — rounded joins now round only the outside of a corner, so an
41+
inward offset no longer scoops material out of every corner. Work is bounded
42+
by a chord tolerance instead of the entered distance, so a very large offset
43+
can no longer freeze the app, and an open path no longer bridges its ends.
44+
- **SVG text names a generic font family** — exported `font-family` values end
45+
in `serif`, `sans-serif` or `monospace` and are quoted so viewers parse the
46+
list, so a viewer without the design font keeps the right classification
47+
instead of drawing the design in its default serif. Text without an explicit
48+
family uses the engine default.
49+
- **Whole-document SVG export keeps gradients** — Export → SVG (whole document)
50+
wrote gradient fills as one flat colour.
3651
- **AppImageHub launch**: 0.5.1 failed with
3752
`libwebkit2gtk-4.1.so.0: cannot open shared object file` on a clean offline
3853
VM. The AppImage now carries WebKitGTK in the payload.

‎apps/website/src/pages/docs/tools/export.astro‎

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,27 @@ import '../../../styles/docs-prose.css';
5959
</p>
6060
<ul>
6161
<li>Shape geometry (rect, circle, ellipse, line, polygon, path)</li>
62-
<li>Text elements with font family and styling</li>
62+
<li>
63+
Text elements with font family, weight, style and size. Every exported
64+
<code>font-family</code> list ends in a generic family
65+
(<code>serif</code>, <code>sans-serif</code> or <code>monospace</code>), so a
66+
viewer without the design face keeps the intended classification instead of
67+
falling back to its default serif
68+
</li>
6369
<li>Gradient and solid fills</li>
6470
<li>Stroke properties (dash, cap, join, weight)</li>
6571
<li>Transform matrices (position, rotation, scale)</li>
6672
</ul>
6773
<p>
6874
SVG export supports optional <code>boundsOverride</code> for focused sub-region export and multi-page document support.
6975
</p>
76+
<p>
77+
SVG text is referenced by name; the exporter does not embed or subset fonts. A
78+
recipient without the design face will substitute it — the generic fallback keeps
79+
the substitution in the right classification, but glyph metrics can still change.
80+
Expand text to outlines when exact metrics matter, and open the exported file in a
81+
viewer that lacks the font when the result will be published.
82+
</p>
7083
</section>
7184

7285
<section class="docs-section">

‎docs/audits/vectorcraft/README.md‎

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
# VectorCraft issue-corpus review
2+
3+
Scope, source inventory, and retrieval record for the review of
4+
[`storytold/vectorcraft`](https://github.com/storytold/vectorcraft)'s issue
5+
history and its relevance to Varve.
6+
7+
This directory is the durable audit area for the corpus. It is deliberately
8+
outside `docs/plans/` because it records evidence and dispositions, not a plan.
9+
10+
## Identity and remotes (verified at execution time, 2026-10-21)
11+
12+
| Item | Value |
13+
|---|---|
14+
| Source project | `storytold/vectorcraft` (default branch `main`, `19c7d61f`) |
15+
| Source description | "VectorCraft: An open-source, vector art tool written by scratch in pure Rust" |
16+
| Varve (brief) | `varvedesign/varve` → resolves to default branch `master`, `2e8c5b018` |
17+
| Varve (previous URL) | `K-Arthur/varve` → same repository, `master`, `2e8c5b018` |
18+
| Local baseline | `origin/master` = `2e8c5b018b00a85fde341a0acc3dc80cde042f83` |
19+
| Task worktree | `.worktrees/vectorcraft-corpus`, branch `feat/vectorcraft-corpus` |
20+
21+
`varvedesign/varve` and the previous `K-Arthur/varve` URL are the same
22+
repository; no redirect ambiguity remained. The main checkout was 314 commits
23+
ahead / 16 behind `origin/master` with 43 dirty entries owned by other work, so
24+
this review runs in an isolated worktree based on `origin/master` and touches
25+
nothing in the main checkout.
26+
27+
## Cutoffs
28+
29+
- **Cutoff A (frozen baseline):** crawl window
30+
`2026-10-21T19:30:05Z` – `2026-10-21T19:31:11Z`.
31+
The frozen issue-ID set is every issue in `issue-ledger.jsonl`. Do not move
32+
cutoff A.
33+
- **Cutoff B (incremental reconciliation):** `2026-10-21T20:41:01Z`.
34+
Four new issues (#3465, #3467, #3470, #3471) and two upstream status changes
35+
(#3446, #2523) are recorded in `issue-ledger-cutoff-b.jsonl`. Issues created
36+
after cutoff B belong to the follow-on queue and must not move the
37+
completion boundary.
38+
39+
## Inventory and reconciliation
40+
41+
| Measure | Count |
42+
|---|---|
43+
| Issues (`state=all`, pull requests excluded) | **1,237** |
44+
| — open / closed | 531 / 706 |
45+
| Pull-request records (retained as linked evidence, not issues) | 2,221 |
46+
| Issue comments | 4,964 |
47+
| Issues with an empty body | 7 |
48+
| Issue creation range | 2026-10-03T19:26:58Z – 2026-10-21T19:09:11Z |
49+
50+
Retrieval method and completeness accounting:
51+
52+
- `GET /repos/storytold/vectorcraft/issues?state=all&per_page=100&page=N`
53+
(`sort=created&direction=asc`), 35 pages. Every page was fetched; pagination
54+
ended on a 58-record page. `per_page` was never raised as a substitute for
55+
following pages.
56+
- Records with `pull_request != null` were split out (2,221 PR records) and are
57+
**not** counted as issues. They remain available as linked evidence.
58+
- `GET /repos/storytold/vectorcraft/issues/comments`, 50 pages, 4,964 records.
59+
- Independent reconciliation: the search index reports 1,237 issue records
60+
(`incomplete_results: false`) and 2,221 PR records. The paginated listing
61+
matched both totals exactly, so no page, cursor, or duplicate gap was found.
62+
The repository's `open_issues_count` (773) is not an issue count — it is open
63+
issues plus open pull requests — and was not used as evidence.
64+
- All requests were authenticated (`gh`, `repo` scope). No rate-limit response,
65+
5xx, or truncated body occurred; no request was retried. A failed request was
66+
treated as a failure, never as an empty result.
67+
68+
Raw artifacts are intentionally outside Git:
69+
70+
| Artifact | Location | Digest |
71+
|---|---|---|
72+
| Issue pages (35) | `/tmp/opencode/vectorcraft/raw/issues-p*.json` | aggregate SHA-256 `59eb7225874acf08886b85c940d09cd9cf0443676f91030caa7d736f45702ef2` (19,429,090 bytes) |
73+
| Comment pages (50) | `/tmp/opencode/vectorcraft/raw/comments/` | not digested (review-time cache) |
74+
| Compact index | `/tmp/opencode/vectorcraft/index.json` | derived from the pages |
75+
76+
These are reproducible from the public API; they are not part of the repository
77+
because they contain third-party issue text and attachments we have no
78+
redistribution rights to.
79+
80+
## Method
81+
82+
1. Read every issue title (all 1,237) and classified each onto a Varve
83+
subsystem or an exclusion reason (`issue-ledger.jsonl`).
84+
2. Read the full thread — body plus every comment — for each issue whose
85+
mechanism was going to drive a change, and for the highest-severity
86+
safety/integrity classes.
87+
3. Inspect the corresponding Varve source before accepting any external claim;
88+
reproduce in Varve where the mechanism is reachable without private data.
89+
4. Record research depth and engineering status separately. A reviewed issue
90+
is not an implemented one.
91+
5. Link every change to an issue ID in the commit message and in
92+
`findings.md`.
93+
94+
## Status vocabulary
95+
96+
| Disposition | Meaning |
97+
|---|---|
98+
| `outside-varve-scope` | No Varve subsystem serves it; `disposition_reason` names the concrete exclusion (unsupported format, VectorCraft packaging, host automation surface, ...). |
99+
| `screened-relevant` | Title maps onto a Varve subsystem and needs a deeper thread review plus a Varve reproduction. **Open work.** |
100+
| `applicable-requires-work` | Mechanism inspected in the source and confirmed relevant; not yet implemented. |
101+
| `verified-existing` | Varve already behaves correctly; verification evidence named in the row. |
102+
| `implemented-pending-integration` | Implemented and locally validated; integration state tracked in `continuation.md`. |
103+
| `integrated-verified` | Merged and verified on the integrated candidate. |
104+
105+
## Coverage and limits
106+
107+
- **Titles:** 1,237 / 1,237 reviewed.
108+
- **Full threads:** the subset listed in `findings.md`; the rest are title-level
109+
dispositions. This is an explicit, recorded gap — `screened-relevant` rows
110+
are not a verdict.
111+
- **Attachments:** screenshots and recordings were not downloaded. Where a
112+
thread depended on an attachment, that dependency is noted rather than
113+
guessed at.
114+
- **Non-English reports:** translated when they carried a mechanism; the
115+
original text stays at the source URL.
116+
- **Upstream fixes:** a closed status or a linked PR is treated as evidence of
117+
intent, not proof that a shipped build behaves correctly. Varve changes are
118+
driven by the described mechanism, and verified here.
119+
120+
## Related
121+
122+
- `findings.md` — evidence chains and outcomes per finding.
123+
- `continuation.md` — current state, blockers, and the exact next operation.
124+
- `issue-ledger.jsonl` — one record per issue with disposition and, where
125+
reviewed, the Varve mapping.
126+
- `issue-ledger.summary.json` — machine-readable totals.
Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
# Continuation record
2+
3+
Last updated: 2026-10-21 (session 1).
4+
5+
## Frozen baseline
6+
7+
- **Cutoff A:** `2026-10-21T19:30:05Z` – `2026-10-21T19:31:11Z`.
8+
- 1,237 issues (531 open / 706 closed) and 2,221 pull-request records,
9+
reconciled against the search index; 4,964 comments over 50 pages.
10+
- Raw pages are outside Git at `/tmp/opencode/vectorcraft/raw/`, aggregate
11+
issue-page SHA-256 `59eb7225874acf08886b85c940d09cd9cf0443676f91030caa7d736f45702ef2`.
12+
- Do not move cutoff A.
13+
- **Cutoff B:** `2026-10-21T20:41:01Z`. Four issues created after cutoff A
14+
(#3465, #3467, #3470, #3471) and two older issues whose status changed
15+
(#3446, #2523, both closed upstream). The four new records are reviewed in
16+
`issue-ledger-cutoff-b.jsonl`; they do not move cutoff A, and anything
17+
created after cutoff B belongs to the follow-on queue.
18+
19+
## Repository and ownership
20+
21+
- Worktree: `/home/kevina/CodingProjects/varve/.worktrees/vectorcraft-corpus`
22+
- Branch: `feat/vectorcraft-corpus`, based on `origin/master`
23+
`2e8c5b018b00a85fde341a0acc3dc80cde042f83`.
24+
- The main checkout at `/home/kevina/CodingProjects/varve` is **dirty** and
25+
314 commits ahead / 16 behind `origin/master`. Those 43 entries belong to
26+
other work: nothing was staged, reverted, stashed, or committed there, and no
27+
file from it was read for this task.
28+
- `origin` is `https://github.com/K-Arthur/varve.git`; `varvedesign/varve` is
29+
the same repository and `master` is unprotected (admin permission confirmed,
30+
no branch protection). No push has happened yet.
31+
32+
## Task commits (local, not pushed)
33+
34+
| Commit | Scope |
35+
|---|---|
36+
| `54c5e8e21` | `fix(persistence)`: library save confirms the write before marking clean |
37+
| `8e0523450` | `fix(engine)`: bounded Offset Path tessellation, real round joins, open-path endpoints |
38+
| `f87e66c1d` | `fix(codegen)`: generic `font-family` fallback in exported SVG (quoted so it parses) |
39+
| `c6f479aa5` | `docs`: vectorcraft audit area, ledger, findings, website export guidance |
40+
| `683153357` | `fix(codegen)`: whole-document SVG export keeps gradient fills |
41+
| `e79389c3a` | `fix(engine)`: round only the outside of a turn (review finding), global point ceiling |
42+
| `9cee9e7c8` | `test(persistence)`: editor-level library-save failure; codegen emits the engine default family |
43+
44+
## Validation evidence
45+
46+
| Check | Result |
47+
|---|---|
48+
| `packages/editor/src/persistence/librarySave.test.ts` | 5/5 pass |
49+
| `packages/editor/src/persistence` + `autoSaveService.test.ts` | 56/56 pass |
50+
| `pnpm --filter @varve/editor exec tsc --noEmit` | clean |
51+
| `packages/engine/src/pathOffset.test.ts` | 16/16 pass (4 new) |
52+
| `packages/editor/src/geometry` + pathOffset | 41/41 pass |
53+
| `@varve/codegen` suite | 383 pass, 1 skipped |
54+
| `@varve/codegen` typecheck | clean |
55+
| `pnpm audit:claims` | clean |
56+
| `pnpm audit:docs` | clean (1148 docs) |
57+
| Visual: exported SVG rendered in Chromium | before = Times New Roman (serif), after = `'Source Sans 3', sans-serif` → sans-serif; **this check caught that the unquoted form did not work** |
58+
| Visual: exported gradient document rendered in Chromium | before = flat dark rectangle, after = red→blue gradient |
59+
| `pnpm audit:emoji` / `audit:tokens` / `audit:claims` / `audit:docs` | clean |
60+
| `packages/editor/src/context/__tests__/librarySave.test.tsx` | 2/2 pass (editor-level failure and success) |
61+
| `tests/e2e/canvas/offset-path.spec.ts` | **2/2 pass** through `scripts/quality/heavy-lease.mjs` (Chromium, web build, workers=1). Asserts Inspector dimensions: outward +200 adds 400 per axis, inward −60 removes 120. Captures inspected; see `evidence/`. |
62+
| Website `astro check` | 0 errors, 0 warnings, 0 hints (201 files) |
63+
64+
## Engineering status
65+
66+
Implemented and locally validated, awaiting integration:
67+
68+
- **F1** library save truthfulness (vectorcraft #1693 / #1685).
69+
- **F2** bounded offset path + round joins + open-path endpoints (#1028).
70+
- **F3** SVG generic font fallback (#3135).
71+
- **F8** whole-document SVG export keeps gradients (export/canvas agreement;
72+
visual before/after in Chromium).
73+
74+
Verified as already correct:
75+
76+
- **F4** SVG physical size (#864 / #2924 duplicate) — pinned by a regression test.
77+
- **F7** hover/selection spatial index (#1280 / #1172) — existing grid index.
78+
79+
Open, recorded, not implemented:
80+
81+
- **F5** area-text overset is computed then discarded (#1471 / #2323 / #2769).
82+
- **F6** PDF gradient stop alpha discarded by the shading sampler (#1140).
83+
- Autosave failure visibility: `AutoSaveService.onStateChange` has no
84+
production consumer, so a user whose recovery writes keep failing is never
85+
told. Separate finding from F1.
86+
- `HitTestEngine.queryWithTolerance` whole-document scan in master-placement
87+
mode.
88+
89+
## Cutoff B arrivals (reviewed)
90+
91+
| Issue | Disposition |
92+
|---|---|
93+
| #3465 `.ase` palette files missing from the picker | outside scope — Varve has no palette import UI (parsers exist unused in `@varve/shared`) |
94+
| #3467 drag stroke colour onto fill does nothing | screened-relevant (paint/UI); unverified in Varve, same request as #2223 |
95+
| #3470 masked artwork not rendered after save | uncertain — report needs the screenshots and a reproduction |
96+
| #3471 taskbar treated as app area in full screen | outside scope — Tauri window chrome, not egui viewport |
97+
98+
## Corpus status
99+
100+
| Disposition | Count |
101+
|---|---|
102+
| `screened-relevant` (open work) | 830 |
103+
| `outside-varve-scope` (reason recorded per row) | 398 |
104+
| `verified-existing` | 3 |
105+
| `implemented-pending-integration` | 4 |
106+
| `applicable-requires-work` | 2 |
107+
108+
All 1,237 titles were read. Full threads were read for the issues behind
109+
F1–F7 and the highest-severity integrity threads. The 830 `screened-relevant`
110+
rows are **not** a verdict and **not** a completion signal; each needs a thread
111+
review plus a Varve reproduction before it can be dispositioned.
112+
113+
## Exact next operation
114+
115+
1. Push `feat/vectorcraft-corpus` and open a pull request against `master`,
116+
then merge it (the repository's recent history uses merged PRs; `master` is
117+
unprotected and admin permission is confirmed). Merging touches
118+
`apps/website/**`, so `website-deploy.yml` publishes the docs page — a Pages
119+
deploy, not a release.
120+
2. Record the merge commit and the remote state here; do not describe the work
121+
as released.
122+
3. Remove the worktree only after the merge is confirmed on the remote.
123+
4. Reviewer findings: resolved — inner-corner arcs (high), global ceiling
124+
(medium-high), call-site regression test (medium-high), default font family
125+
(low). The miter-limit ratio (low) is pre-existing and left unchanged; it is
126+
recorded in `findings.md` as a follow-up rather than silently altered.
127+
3. Commit the audit docs and the e2e spec.
128+
4. `pnpm verify:plan` then `pnpm verify:affected` on the integrated candidate.
129+
5. Merge `feat/vectorcraft-corpus` into `master` and push; verify the pushed
130+
SHA on the remote. Report merge separately from deployment.
131+
6. Take cutoff B, record it here, and remove the worktree only after the merge
132+
is confirmed on the remote.
133+
134+
## Blockers
135+
136+
- Heavy-task lease contention (another agent's `verify:affected`). This blocks
137+
only the browser E2E; every unit-level check above is complete.
138+
- No blocker on the code; the remaining corpus work is a scope/time limit, not
139+
an access limit. No issue body, comment page, or attachment failed to fetch.
38.9 KB
Loading
33.8 KB
Loading
16.6 KB
Loading
28 KB
Loading

0 commit comments

Comments
 (0)