feat(apps): core catalog v1 — signed components and effect functions for lane-3 compositions
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 15/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- github, typescript
- Domain
- backend-api-design, full-stack, security
Research direction
Start by reading docs/PRD.md and the linked lane-3 security-controls note, then check the blocked dependencies #175, #111, #135 and #167. The issue specifies a signed catalog spanning components, compiler rules, Gateway and host builds, tests, and staging verification; it says work starts after wave 2. Done means real compositions use the pinned catalog through wave-1 routes behind the dark capability id and pass staging verification.
Written by the indexing model from the issue text.
Description
Wave 3 of 4 for the mini-app lane-3 build. This is Dewee's core catalog v1: the signed, versioned set of components and functions that lane-3 compositions may use, and the rules compiled from it into the host build and the Gateway. A composition can only place these widgets and call these functions. Catalog JSON read at runtime never changes the rules.
Scope: in beta, lane 3 runs only in personal DMs. Shared rooms do not open until the controls pass a separate independent re-QA.
Design and contract
- Lane-3 security controls (gate 4, merged in #165; round 6 approved): note. The catalog's parts are U2 (signing keys), §2 (label rule 1, item keys, literal-only arguments), B1 (function table), B6 (catalog authority), B7 (literal templates), B10 (accessibility schema), S3 (
navOpenarguments), S4 (mediaPlay) and S8 (no look-alikes). Appendix §C N2 and N3. - Contract of record: an upstream item (tracked privately), the gate (a) names, items 1 to 7, the item-3 correction and items 8 to 12 (item 11: literal-only picker options).
docs/PRD.md"Mini-app direction: generative UI": Beta DONE option A names the minimal core catalog (text, table, chart, form, list, media and button) and catalog quality (small, bounded validate-and-repair, evaluations in CI).
The note's header line ("awaits a delta check") predates the closure: round 6 approved it, and gate 4 closed in an upstream item (tracked privately).
Fixed names: the A2UI 1.0 message model and the catalog functions toolCall, dataSet, navOpen and mediaPlay, each declaring requiresUserActivation. The catalog id, argument names, item-key field, purposes and limits are proposals. The baseline is A2UI a2ui-project/a2ui@9319ced, the v1.0 specification and its basic catalog, which is never loaded.
Acceptance criteria
Components
- Text, table, chart, form (with two-way inputs bound to personal or ephemeral paths only), list (with an optional item key,
itemKeyproposal), media and button, built on the shared design primitives and semantic tokens. Setup Concierge structured cards and inbox cards become the first widgets where they fit (PRD). - Each component declares whether it is actionable and its per-component permission data. An actionable component may sit at most one list-template level deep.
- Picker and selection option lists are literals only. The schema refuses an
@paththere (item 11). - There is no
Modal, toast, overlay or positioning, no free styling (semantic variants only), no lock, shield or verified icon, no password input and no autofocus (S8). - Accessibility:
hiddenis refused on actionable controls;@accessibility.labelon an actionable control must contain the visible label;liveispoliteonly (B10).
Functions
-
toolCall{name, digest, arguments}: the tool definition digest is its own argument (N3). Its result target is a personal path, labelledviewer_onlyby the Gateway. -
dataSet: target paths follow the B4 landing table; a write to shared scope requires the trusted "Share with room" confirmation. -
navOpen: the target is{ref}or{url}, as in S3. -
mediaPlay{mediaRef}: an attachment id, never a URL; still PNG, JPEG and WebP only; images only in the first slice. Until an upstream item (tracked privately) is deployed, the compiler refusesmediaPlayand the media widget (media_unavailable). -
requiresUserActivation,allowedCallers(the coordinator's term, a proposal; the note calls the rulerendererOnly) and the actionable-only rule for the four effect functions come from the pinned catalog and are compiled into the host build and the Gateway. A definition that disagrees with the compiled rules is refused at load (B6). - Passive bindings may call only the catalog's pure functions (formatting, comparison,
regexchecks). The template offormatStringand everyregexpattern are literals (B7). - Effect arguments and action context are literals or direct
@pathbindings only.
Signing and pins (U2, B6, S6)
- The catalog has a versioned id, and a composition pins
{catalogId, digest}. - Signatures carry a purpose:
catalog,compositionordenylist. Catalog and denylist signatures verify only against Dewee's catalog-signing key, which is built into the client; a key is accepted only for its own purpose. A deployment key and Dewee's composition-publishing key never verify as a catalog. - The host build carries an allowlist of accepted pins and a minimum version.
- Tests use a clearly marked test key. Using the production catalog-signing key, and publishing a signed catalog, need the owner's explicit approval.
Compiler refusals carried by the catalog
- The schema and compiled rules make these refusals mechanical:
sendDataModel; an@calloutside the function table; an effect function outsideaction.functionCallon an actionable component; an expression in an effect argument or action context; an@pathin picker options, aformatStringtemplate or aregexpattern; an actionable control in a nested list template;userMessageonaction.event;hiddenon an actionable control; a non-containing accessibility label; an assertiveliveregion; bidi and zero-width characters in labels; a per-node@catalogIdother than the pin;mediaPlaybefore an upstream item (tracked privately).
Shared artifact
- The catalog definition is a versioned contract in this repository (proposal: under
contracts/), with generated types and a contract check in CI. The Gateway (wave 1) compiles from the same pinned definition, so the host and the Gateway refuse the same compositions. The PRD makes the Gateway the owner of the catalog and composition schemas, so where the definition lives is settled with an upstream item (tracked privately) before this wave starts.
Catalog quality
- The catalog stays small. Agent-generated compositions go through bounded validate-and-repair attempts, with evaluations in CI that measure compile-pass rate on a fixed prompt set. Results are recorded, not claimed.
Tests
- Denied: a fixture for every compiler refusal above fails on both the host and the Gateway's compiler, with the same code.
- Catalog authority: a tampered digest, a validly signed denylisted digest, a version below the minimum, a definition flipping
requiresUserActivation, a catalog signed by a deployment key or by the composition-publishing key, and a per-node@catalogIdpointing at the basic catalog are each refused, and the surface showstextFallback. - Look-alikes: golden tests show no catalog composition reproduces the consent chrome, and the trusted dialog's location and provenance frame differ in every case.
- Media: an SVG, an animated WebP, a URL and another room's id are refused; no network request happens before the click.
- Cancel and recovery: an older pin shows "This app needs a newer Dewee" and never downgrades; an expired denylist disables effects until a fresh one verifies.
- Concurrency: a catalog pin and a denylist update arriving while a surface is open take effect at the next recheck, never mid-transaction.
- Both hosts render every component at 390, 768, 1024 and 1440 widths, light and dark, keyboard-only, in English and Vietnamese.
- Release checks in
plans/EVIDENCE.md:lane3-dm-run-visibilityandlane3-toolcall-outside-runstay NOT TESTED until a staging run and an independent reviewer record them.
Surface parity
| Surface | Evidence |
|---|---|
| Gateway API/RPC | The Gateway compiles from the same pinned catalog definition and serves the composition key over the authenticated session (wave 1) |
| CLI | Catalog denylist entries follow the wave-1 operator command (proposal). Catalog content itself has no CLI surface, because it ships in the client build |
| MCP | N/A: the catalog is a client build artifact; agents author compositions in their run |
| CCP / RGD / ACP | N/A for the catalog itself; refusals show in the wave-1 traces |
| Dewee client | Web/PWA and desktop render the same catalog; the newer-Dewee state on an unknown pin |
| Conversation | The agent's composition in a personal DM uses only catalog widgets; a refused composition is repaired by the agent from the structured error |
| Docs | Catalog reference for composition authors when the flag first ships; the gate-6 docs PR (#167) for the signing-key split |
| Traces | N/A: no runtime action of its own; compile refusals are the wave-1 composition.refusal span |
Blocked by
- An upstream item (tracked privately) (wave 1, the Gateway contract) and #175 (wave 2, the host surface runtime).
- #111 and #135: the lane-3 capability id and the capability map.
- The owner's approval for the production catalog-signing key and its custody.
- Open question: PRD pre-build gate 2 (#158) is still open. The lane-3 appendix §B says lane 3 waits on it only for lane-4 participation, while the PRD gate list still names it for lanes 2 and 3. Whether this wave waits on it is the coordinator's call.
- The gate-6 docs PR (#167), which the round-6 QA names as a lane-3 shipping dependency.
Rules
- Opened on 2026-12-02 on the coordinator's authorization, after gates 4 and 5 closed. Not claimed or assigned. One lane at a time: this wave starts after wave 2.
- Done means wired. This issue closes only when the signed catalog is pinned by real compositions through the wave-1 routes, behind the dark capability id, and verified on staging.
- An independent review runs before the PR leaves draft. No auto-merge.
- Dominant language
- No language data
- Stars
- 1
- Forks
- 2
- Avg merge
- 1h 51m
- Merged PRs (30d)
- 103
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from nextlevelbuilder/dewee-desktop-app
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
nextlevelbuilder/dewee-desktop-app#277 · 1 comment ·
Maintainers usually reply within 1 day
-
bug in progress
Difficulty 3/5 1-2 days Newbie friendliness 72/100
nextlevelbuilder/dewee-desktop-app#271 · 1 comment ·
Maintainers usually reply within 1 day
-
PWA update: navigations and precached files can still hold activation after SKIP_WAITINGPossibly taken @mrgoonie claimed this today. Open
nextlevelbuilder/dewee-desktop-app#270 · 2 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
PWA update: ordinary fetches during SKIP_WAITING can still delay activation past the fallbackPossibly taken @mrgoonie claimed this today. Open
nextlevelbuilder/dewee-desktop-app#261 · 3 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 39/100
nextlevelbuilder/dewee-desktop-app#256 ·
Maintainers usually reply within 1 day
All issues in nextlevelbuilder/dewee-desktop-app
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
storytold/photocraft#20048 ·
Maintainers usually reply within 1 day
-
lane:collections todo:ticket
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 3 days
-
good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
omarelshamy25x/shamy-arabic-nlp#110 ·
Maintainers usually reply within 1 day