Skip to content

Canvix — Free & open-source graphic design tool. A community-built Canva alternative with a drag-and-drop editor, templates, shapes, text, images & one-click export. Works on desktop, tablet & mobile.

docs(grants): funding-boundary corrections — SDK removal out of funded scope, labour-only budget, accessible WP3

Ashiq Hussain Mirc3783fe3865f
diff --git a/CHANGELOG.md b/CHANGELOG.md
index fc3b618..8a6ee08 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -47,20 +47,48 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
but all test cases, code, fixes and documentation are independently
human-authored; zero AI development in the funded scope; €0 for AI
subscriptions/credits (non-reimbursable).
- - ROADMAP WP5 rescoped to **"v1.0 quality gate & vendor
- independence"**: funded scope = removing the vendor-locked
- `z-ai-web-dev-sdk` from core (one production file,
- `src/lib/ai/provider.ts`; the SDK-free BYOK rail is the migration
- path) + S1–S4 (CI perf budgets, WCAG a11y audit, self-hoster
- handbook, 1.0 definition pass). The provider-neutral AI adapter is
- **outside the funded scope** (FAQ: AI connectors stay out of funded
- work) and proceeds as unfunded project work — §3 sequencing note,
- §5 item 1 and §6 updated to match.
+ - ROADMAP WP5 rescoped to **"v1.0 quality gate"**: funded scope =
+ S1–S4 stabilization only (CI perf budgets, WCAG a11y audit,
+ self-hoster handbook, 1.0 definition pass). The vendor SDK and any
+ replacement client are entirely outside the funded scope (FAQ: AI
+ connectors stay out of funded work) — see the corrections under
+ "Changed" below for the precise code-level picture
+ (`src/lib/ai/provider.ts` constructs every AI client, BYOK
+ included). §3 sequencing note, §5 item 1 and §6 updated to match.
- WP2/WP4 language grounded in shipped work: WP2 builds on the HLC
LWW merge + deletion tombstones of v0.10.0; WP4 notes vector-text
PDF (v0.15.3) and native editable PPTX (v0.21.0) as the shipped
export track record the `.canvix` open format extends.
+### Changed
+
+- **Funding-boundary corrections, verified against code and policy**
+ (2026-11-15; follow-up to the alignment commit above):
+ - **BYOK scope claim fixed.** The previous entry said the BYOK rail
+ is "SDK-free"; wrong. `src/lib/ai/byok.ts` stores and resolves
+ per-user credentials, but every client — instance slots and BYOK
+ alike — is constructed by `makeClient()` in
+ `src/lib/ai/provider.ts` via `z-ai-web-dev-sdk`. The vendor SDK
+ spans every AI request today (ROADMAP §3 context note + §5 item 1
+ now state this precisely).
+ - **SDK removal moved out of the funded scope.** Removing the SDK
+ means writing the direct OpenAI-compatible client — that *is* AI
+ connector work, and the GenAI FAQ keeps connectors outside funded
+ work; funding the removal while leaving the replacement unfunded
+ was an impossible split. WP5 is now the pure S1–S4 quality gate
+ (~60 h); the whole provider track (removal + adapter, ~65 h)
+ rides unfunded. README disclosure updated to match.
+ - **Workstation hardware line removed (€1,200 → €0).** NLnet's
+ external-spending policy: "NLnet does not allocate grant money to
+ basic operational IT cost, such as regular laptops,
+ desktops/workstations, or mobile phones." The request is now
+ labour-only.
+ - **WP3 refocused (~100 h → ~60 h)** on accessible touch/pointer
+ semantics (WCAG pointer-target minimums) and responsive layout
+ verification; deep gesture polish stays on the project's own
+ cadence. Revised funded total: **420 h ≈ €12,600 at €30/h
+ cost-recovery (~21 weeks at 20 h/week)**, hardware €0.
+
## [0.23.2] — 2026-11-13
### Fixed
diff --git a/README.md b/README.md
index f040c85..96cfc99 100644
--- a/README.md
+++ b/README.md
@@ -961,7 +961,7 @@ NLnet's [generative-AI policy](https://nlnet.nl/foundation/policies/generativeAI
**Historical development (v0.1 – v0.23.2).** Canvix was rapid-prototyped by a solo maintainer using AI coding assistants: drafting editor modules, unit tests and documentation at a pace (23 minor releases in 14 days) that would not otherwise have been possible for one person around classes. **No AI output was ever merged unreviewed.** Every line landed through the human review loop: the maintainer reads, edits and takes authorship responsibility for all of it; CI gates every PR on typecheck, lint, and the full test wall — **1,411 unit tests (108 files) and 32 end-to-end Playwright specs** — plus the production-build guard added in v0.16.1. Where AI-generated code failed that gate, it was fixed or rewritten before merge (the [changelog](CHANGELOG.md) records the honest incidents, e.g. the plugin-ceiling misses). The AI features in the product are runtime capabilities behind provider keys — they are not the development process.
-**Grant-funded milestones (WP1–WP5).** Any code funded through the proposed NLnet grant will be **human-authored engineering**. AI tools are restricted to read-only review of human-authored code and tests, including identifying defects, security issues, and potential test-coverage gaps. AI may recommend additional test scenarios, but all test cases, code, fixes, and documentation must be independently authored by human contributors. The grant funds **zero AI development**: no AI connector work is in the funded scope (the provider-neutral adapter, where it happens, is unfunded project work), and the budget requests **€0 for AI subscriptions or API credits** (AI costs are not reimbursable under the policy). To keep this auditable we adopt a commit convention: grant-funded commits carry a `Grant: NLnet WP#` trailer identifying the work package, and the maintainer is the sole recorded author of every commit. When an AI tool contributed to a commit's review, that fact is noted in plain prose in the commit message body (`AI-assisted: …`) — a commit note, never a `Co-authored-by` trailer — so the authorship record stays unambiguous: one human, responsible for every line. Anyone can audit the funding boundary with `git log --grep='Grant: NLnet'`.
+**Grant-funded milestones (WP1–WP5).** Any code funded through the proposed NLnet grant will be **human-authored engineering**. AI tools are restricted to read-only review of human-authored code and tests, including identifying defects, security issues, and potential test-coverage gaps. AI may recommend additional test scenarios, but all test cases, code, fixes, and documentation must be independently authored by human contributors. The grant funds **zero AI development**: the entire AI-provider path — removing the `z-ai-web-dev-sdk` dependency and the provider-neutral adapter that replaces it — proceeds as unfunded project work outside the grant, and the budget requests **€0 for AI subscriptions or API credits** (AI costs are not reimbursable under the policy). To keep this auditable we adopt a commit convention: grant-funded commits carry a `Grant: NLnet WP#` trailer identifying the work package, and the maintainer is the sole recorded author of every commit. When an AI tool contributed to a commit's review, that fact is noted in plain prose in the commit message body (`AI-assisted: …`) — a commit note, never a `Co-authored-by` trailer — so the authorship record stays unambiguous: one human, responsible for every line. Anyone can audit the funding boundary with `git log --grep='Grant: NLnet'`.
**Also disclosed:** the [funding.json](funding.json) manifest (three milestones, USD 7,000 total) exists for transparency about non-grant funding; it is not a revenue stream for the project.
diff --git a/ROADMAP.md b/ROADMAP.md
index 8f1cb54..ab78c3d 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -128,17 +128,17 @@ Not in the original plan, forced by operating canvix.app in production:
| WP | Scope | Absorbs | Effort | v1.0 unblocks |
|---|---|---|---|---|
-| **WP1 — Deployment & API trust** | Docker image + compose file (Postgres + app, single `docker compose up`) · scoped API keys for self-hosters (read-only/read-write per key, revocable) | Wave 6 core (Docker), Wave 6 (scoped keys via the MCP-rail model) | M | Docker/compose is the single most-asked self-hoster item; the M-block and every deployment story after it get cheaper |
-| **WP2 — Real-time collaboration at scale** | Postgres `LISTEN/NOTIFY` → in-process hub → SSE fan-out (kills the per-connection poll loop) · **op-level undo broadcast** that preserves concurrent remote edits rather than clobbering them (undo syncs as ops, not `pages:replace`) — building on the HLC last-write-wins merge + deletion tombstones shipped in v0.10.0 | M4 + M6 | M/L | The scaling wall (~0.31–1.25 q/s per client); live-session correctness for shared editing |
-| **WP3 — Mobile & touch editing** | Touch-first editing (large handles, 1-finger drag vs 2-finger pan, double-tap zoom, long-press menu) · bottom-sheet properties · gesture polish (pinch-rotate, momentum pan, edge-pinch) | M1 + M2 + M3 — **the last unchecked README promise** | M | Closes the displaced v0.16 mobile block; parity with Canva mobile web |
-| **WP4 — Sharing roles & portability** | Share links with view/comment/edit roles (+ optional password & expiry) · `.canvix` portable project file — a **documented, open archive format** (design JSON + embedded media, single-file backup/transfer). Vector-text PDF (v0.15.3) and native editable PPTX (v0.21.0) already shipped — they are the export track record this WP extends, not its scope | Wave 5 remainder (share roles, `.canvix`) | M | The feature the competitive matrix scores hardest against Canva; the backup story self-hosters ask for |
-| **WP5 — v1.0 quality gate & vendor independence** | **Removing the vendor-locked `z-ai-web-dev-sdk` from core** (the last pre-1.0 dependency — confined to one production file, `src/lib/ai/provider.ts`, with the SDK-free BYOK rail as the migration path) · S1–S4 stabilization: performance budgets in CI, **WCAG keyboard/screen-reader accessibility audit**, self-hoster handbook, the 1.0 definition pass. **Funded scope contains zero AI connector work** — the provider-neutral adapter is deliberately outside the grant (NLnet policy: optional AI connectors stay out of funded scope) and proceeds as unfunded project work on its own cadence | §4.5 (S1–S4) + the SDK-removal half of debt #9 | M | The gate itself: vendor-free core, then tag v1.0.0 |
+| **WP1 — Deployment & API trust** | Docker image + compose file (Postgres + app, single `docker compose up`) · scoped API keys for self-hosters (read-only/read-write per key, revocable) | Wave 6 core (Docker), Wave 6 (scoped keys via the MCP-rail model) | M (~100 h) | Docker/compose is the single most-asked self-hoster item; the M-block and every deployment story after it get cheaper |
+| **WP2 — Real-time collaboration at scale** | Postgres `LISTEN/NOTIFY` → in-process hub → SSE fan-out (kills the per-connection poll loop) · **op-level undo broadcast** that preserves concurrent remote edits rather than clobbering them (undo syncs as ops, not `pages:replace`) — building on the HLC last-write-wins merge + deletion tombstones shipped in v0.10.0 | M4 + M6 | M/L (~120 h) | The scaling wall (~0.31–1.25 q/s per client); live-session correctness for shared editing |
+| **WP3 — Accessible mobile & touch editing** | Touch-first editing with accessible pointer/touch semantics — large handles, 1-finger drag vs 2-finger pan, double-tap zoom, long-press menu, handle/target sizing to WCAG pointer-target minimums · bottom-sheet properties on mobile · responsive layout verification across breakpoints; pairs with WP5's S2 audit. Deep gesture polish (pinch-rotate, momentum pan, edge-pinch) stays on the project's own cadence, outside the funded scope | M1 + M2 + M3 — **the last unchecked README promise** | M (~60 h) | Closes the displaced v0.16 mobile block; parity with Canva mobile web, on accessible terms |
+| **WP4 — Sharing roles & portability** | Share links with view/comment/edit roles (+ optional password & expiry) · `.canvix` portable project file — a **documented, open archive format** (design JSON + embedded media, single-file backup/transfer). Vector-text PDF (v0.15.3) and native editable PPTX (v0.21.0) already shipped — they are the export track record this WP extends, not its scope | Wave 5 remainder (share roles, `.canvix`) | M (~80 h) | The feature the competitive matrix scores hardest against Canva; the backup story self-hosters ask for |
+| **WP5 — v1.0 quality gate** | S1–S4 stabilization only: performance budgets in CI (S1) · **WCAG keyboard/screen-reader accessibility audit** (S2) · self-hoster handbook (S3) · the 1.0 definition pass + tag (S4). **Funded scope contains zero AI code of any kind** — both the `z-ai-web-dev-sdk` removal and the provider-neutral adapter sit outside the grant: removing the SDK means writing the direct OpenAI-compatible client, which is AI connector work, and NLnet's FAQ is explicit that connectors stay out of funded scope. Both proceed as unfunded project work on their own cadence | §4.5 (S1–S4) | M (~60 h: S1 25 + S2 20 + S3 10 + S4 5) | The gate itself: the audited, budgeted, documented core — then tag v1.0.0 |
-**Sequencing:** WP1 → WP2 → WP3 → WP4 → WP5 — deployment trust first (every later WP ships to a reproducible environment), the scaling wall before the traffic that mobile brings, sharing after the sessions it serves are correct, and the vendor-independence/stabilization gate last, wrapping v1.0. Each WP lands as minor releases with the full CI wall + docs + export-parity checks per the standing acceptance bar. **Funding boundary:** WP1–WP4 plus WP5's SDK-removal and stabilization items are the funded scope; the provider-neutral AI adapter is not funded work (it proceeds unfunded, outside the grant, per NLnet's rule that AI connectors stay outside funded scope).
+**Sequencing:** WP1 → WP2 → WP3 → WP4 → WP5 — deployment trust first (every later WP ships to a reproducible environment), the scaling wall before the traffic that mobile brings, sharing after the sessions it serves are correct, and the stabilization gate last, wrapping v1.0. Each WP lands as minor releases with the full CI wall + docs + export-parity checks per the standing acceptance bar. **Funding boundary:** the funded scope is WP1–WP4 plus WP5's S1–S4 — **420 h ≈ €12,600 at €30/h cost-recovery (~21 weeks at 20 h/week)**, labour-only: no hardware line (NLnet's external-spending policy excludes regular workstation upgrades as basic operational IT cost), no AI subscriptions (non-reimbursable). The entire AI-provider track — SDK removal and adapter together, ~65 h — is deliberately unfunded and proceeds on the project's own cadence.
**Recently landed (context for the WPs):**
-- **v0.23.x BYOK arc** — profile page, per-user AI providers (`UserAIProvider`), key-before-instance resolution, admin test round-trips on all five slots (v0.23.2). The BYOK rail is already SDK-free end-to-end — it is the migration path WP5 uses to take the vendor SDK out of core.
+- **v0.23.x BYOK arc** — profile page, per-user AI providers (`UserAIProvider`), key-before-instance resolution, admin test round-trips on all five slots (v0.23.2). Scope note, stated precisely: `src/lib/ai/byok.ts` stores and resolves per-user credentials, but client construction lives in `makeClient()` in `src/lib/ai/provider.ts`, which instantiates `z-ai-web-dev-sdk` for **both** the instance slots and the BYOK rail — the vendor SDK spans every AI request today, and taking it out means writing a direct OpenAI-compatible client. That is precisely why the whole provider path (removal + adapter) rides the unfunded track rather than WP5.
- **Dependency freshness** — the 2026-11-13 sweep merged 9 Dependabot PRs (Next 16.4.6, babel, Actions bumps, the 79-update dev group); lucide-react 1.x and Prisma 7 were deliberately declined with reasons on the PRs (lucide 1.0 drops brand icons the code imports; Prisma 7 breaks the patched-wasm generation flow). Both need real migration PRs, not bot bumps.
- **Release hygiene** — the plugin-ceiling incident (×2) and the `.gitignore`-ate-my-route incident are now covered by `RELEASE-CHECKLIST.md` (root) — the E9 item, closed 2026-11-14.
@@ -206,7 +206,7 @@ This is the largest *new* surface, and the audit's biggest measured deficit (Acc
## 5. What needs enhancement (shipped, but with known ceilings)
-1. **AI provider portability (debt #9, scheduled "v0.15" in the original plan, never done).** `z-ai-web-dev-sdk` remains the only pre-1.0 dependency and is vendor-locked. The admin table + BYOK now wrap it on both sides; the remaining step is the **adapter interface** so any OpenAI-compatible provider is first-class. This is also the prerequisite for a real BYOK model catalog. *Deliberately outside the NLnet funded scope* (policy: AI connectors stay out of funded work) — the grant funds only the SDK's removal from core (WP5); the adapter itself proceeds as unfunded project work.
+1. **AI provider portability (debt #9, scheduled "v0.15" in the original plan, never done).** `z-ai-web-dev-sdk` remains the only pre-1.0 dependency and is vendor-locked — `makeClient()` in `src/lib/ai/provider.ts` instantiates it for both the instance slots and the BYOK rail (`byok.ts` resolves credentials; `provider.ts` builds the client). The remaining step is the **direct OpenAI-compatible client** that replaces the SDK — the adapter interface that makes any such provider first-class, and the prerequisite for a real BYOK model catalog. *Deliberately outside the NLnet funded scope in its entirety*: removing the SDK is writing a new AI connector, and the GenAI FAQ is explicit that connectors stay out of funded work. SDK removal + adapter together (~65 h) proceed as unfunded project work on their own cadence.
2. **eslint posture (debt #11).** ~25 rules disabled incl. `react-hooks/exhaustive-deps`. The whole-store subscriptions (debt #3) were never fixed either — `PropertiesBar` ×2, `ToolsPanel`, `BrandPanel`, `context-menu` still re-render on every mutation. Both are perf/quality multipliers; both are "real refactor" sized.
3. **God files (debt #6).** `mcp/tools.ts` (1,316 → now larger), `editor-store.ts` (1,240), `Dashboard.tsx` (992), `CanvasStage`/`PropertiesBar` — the change-velocity tax compounds; each split is M-sized and safe to do opportunistically.
4. **Media lifecycle (debt #4/H6 residue).** bytea-in-Postgres works (32 MB cap) but there is no user-facing media delete/GC; orphans accumulate. An S-sized "delete on element delete + GC sweep" closes the loop; object storage (S3/R2) stays the documented post-1.0 option.
@@ -227,7 +227,7 @@ This is the largest *new* surface, and the audit's biggest measured deficit (Acc
2. **The M-block, led by M4 (collab fan-out) with M6 (op-level undo).** LISTEN/NOTIFY removes the scaling wall while staying Postgres-only; M1–M3 close the last README promise; M5/M6 double as Wave-6 items. *(= WP2 + WP3)*
3. **Wave 5 remainder (share roles first, then `.canvix`).** Roles+password+expiry sharing is the feature the competitive matrix scores hardest against Canva. *(= WP4)*
-Then the v1.0 gate — SDK removal from core + S1–S4 *(= WP5's funded scope; the AI adapter itself is deliberately unfunded)*. The enhancement list (§5) runs opportunistically alongside — items 1 (AI adapter, unfunded), 4 (media GC) and 9 (release checklist, closed) are the ones with disproportionate leverage.
+Then the v1.0 gate — S1–S4 *(= WP5's funded scope)*. The AI-provider track (SDK removal + adapter, ~65 h) rides unfunded alongside, per §5 item 1 — as do items 4 (media GC) and 9 (release checklist, closed), the ones with disproportionate leverage.
---