app: ship the rich .deb store copy as AppStream metainfo (the surface GNOME Software renders) — #1799 follow-up #1800

Closed
opened 2026-09-23 20:59:35 +00:00 by matou-build-agent · 2 comments

The rich store copy needs a home GNOME Software actually renders

Split out of #1799. b6e1969d added a deliberate three-paragraph store description (Ben, 2026-09-23 — "the store copy a person reads before installing") as deb.description: | in app/electron-builder.yml. #1799 had to collapse that back to a single line because, in the pinned electron-builder (^25.1.8), app-builder-lib's LinuxTargetHelper.computeDesktopEntry writes the desktop entry's Comment from deb.description verbatim (Comment = getDescription(), which overwrites any linux.desktop.Comment — proven, not configurable in this major), and the Desktop Entry spec allows exactly one line per key. A multi-line description made idss.desktop unparseable and GNOME dropped the app from its grid.

So in v25 the desktop Comment and the deb control Description are the same field: it cannot be both a rich multi-line paragraph and a valid single-line launcher tooltip. #1799 kept the launcher (ADR 0168's install proof) and re-homed the rich copy to this ticket.

The right home

On the ADR 0168 reference target (Ubuntu 24.04, double-click the .deb → GNOME Software), the rich store page is rendered from an AppStream metainfo file (/usr/share/metainfo/nz.matou.idss.metainfo.xml), NOT the deb control Description (which GNOME Software barely surfaces — it reached only apt show/synaptic). So the metainfo file both restores b6e1969d's copy AND puts it where the double-click store actually shows it.

Proposed

  1. Add app/build/metainfo/nz.matou.idss.metainfo.xml carrying <summary> (= synopsis) and a <description> with b6e1969d's three paragraphs (recover the exact text from that commit), plus <id>nz.matou.idss</id>, launchable, screenshots optional.
  2. Wire it into the .deb at /usr/share/metainfo/ (electron-builder deb has no first-class slot for arbitrary system files — verify the mechanism, e.g. deb.fpm source mapping, at build time since the .deb can't be built in the sandbox).
  3. Extend scripts/package-layout-check.sh to assert the metainfo ships and appstreamcli validate (or appstream-util validate-relax) passes.
  4. Alternative worth weighing: bump electron-builder to ^26 and use desktop.entry.Comment to keep the rich paragraphs in deb.description — but that is an unverifiable-in-sandbox major bump of the packaging toolchain; metainfo is the lower-risk, spec-correct path.

Found while fixing #1799. Relates to b6e1969d, ADR 0168, #471, #490.

## The rich store copy needs a home GNOME Software actually renders Split out of #1799. b6e1969d added a deliberate three-paragraph store description (Ben, 2026-09-23 — "the store copy a person reads before installing") as `deb.description: |` in `app/electron-builder.yml`. #1799 had to collapse that back to a single line because, in the pinned electron-builder (`^25.1.8`), app-builder-lib's `LinuxTargetHelper.computeDesktopEntry` writes the desktop entry's `Comment` from `deb.description` **verbatim** (`Comment = getDescription()`, which overwrites any `linux.desktop.Comment` — proven, not configurable in this major), and the Desktop Entry spec allows exactly one line per key. A multi-line `description` made `idss.desktop` unparseable and GNOME dropped the app from its grid. So in v25 the desktop `Comment` and the deb control `Description` are the **same** field: it cannot be both a rich multi-line paragraph and a valid single-line launcher tooltip. #1799 kept the launcher (ADR 0168's install proof) and re-homed the rich copy to this ticket. ## The right home On the ADR 0168 reference target (Ubuntu 24.04, double-click the .deb → GNOME Software), the rich store **page** is rendered from an **AppStream metainfo** file (`/usr/share/metainfo/nz.matou.idss.metainfo.xml`), NOT the deb control `Description` (which GNOME Software barely surfaces — it reached only `apt show`/synaptic). So the metainfo file both restores b6e1969d's copy AND puts it where the double-click store actually shows it. ## Proposed 1. Add `app/build/metainfo/nz.matou.idss.metainfo.xml` carrying `<summary>` (= synopsis) and a `<description>` with b6e1969d's three paragraphs (recover the exact text from that commit), plus `<id>nz.matou.idss</id>`, launchable, screenshots optional. 2. Wire it into the .deb at `/usr/share/metainfo/` (electron-builder deb has no first-class slot for arbitrary system files — verify the mechanism, e.g. `deb.fpm` source mapping, at build time since the .deb can't be built in the sandbox). 3. Extend `scripts/package-layout-check.sh` to assert the metainfo ships and `appstreamcli validate` (or `appstream-util validate-relax`) passes. 4. Alternative worth weighing: bump electron-builder to `^26` and use `desktop.entry.Comment` to keep the rich paragraphs in `deb.description` — but that is an unverifiable-in-sandbox major bump of the packaging toolchain; metainfo is the lower-risk, spec-correct path. Found while fixing #1799. Relates to b6e1969d, ADR 0168, #471, #490.
Author
Member

This was generated by AI during triage.

Ruled by agent under ADR 0174 — veto anytime.

Ruling: category enhancement, state ready-for-session (not ready-for-agent, not ready-for-human).

Why a two-way door: the change is revertible with a single commit, the rich store copy is recoverable verbatim from b6e1969d (this ticket only re-homes it), and it touches nothing on the one-way-door list (no credentials, no security widening, no member-facing trust accept, no data destruction, no non-routine spend). Adding a metainfo artifact and its packaging wiring is fully reversible.

Why ready-for-session and not ready-for-agent: the ticket's central mechanism — placing an arbitrary system file (/usr/share/metainfo/nz.matou.idss.metainfo.xml) into the .deb, for which electron-builder has no first-class slot — is by the ticket's own words "can't be built in the sandbox", and its acceptance runs appstreamcli validate (or appstream-util validate-relax) against a built artifact. A swarm worker would ship the fpm source-mapping blind, with no test/probe able to prove the file actually lands or validates — so under the "provable by an existing test/drive/probe" bar it must not pick it up. An interactive session on a build-capable host can build the .deb, confirm the metainfo ships, and run the validator. #1799's precedent (config-shape tests without a real deb build) does not stretch here, because #1799's risk was provable by reading electron-builder.yml; this one's risk is only provable by building.

Why not ready-for-human: the one genuinely irreversible, hardware-bound step — GNOME Software rendering the page on the ADR 0168 reference target (real Ubuntu 24.04, double-click the .deb) — already lives as ready-for-human residue in #471 (real-install proof). This ticket produces and build-verifies the artifact; #471's drive is where a human's eyes confirm the render.


Agent Brief

Category: enhancement
Summary: Ship the rich .deb store copy as an AppStream metainfo file — the surface GNOME Software actually renders — recovering b6e1969d's three-paragraph description that #1799 had to collapse.

Current behavior:
b6e1969d added a deliberate three-paragraph store description as deb.description: | in app/electron-builder.yml. #1799 collapsed it back to a single line because, in the pinned electron-builder (^25.1.8), app-builder-lib writes the desktop entry's Comment from deb.description verbatim and overwrites any linux.desktop.Comment; a multi-line value made idss.desktop unparseable and GNOME dropped the app from its grid. So today the launcher tooltip is a single line and the rich copy is homeless — the deb control Description GNOME Software barely surfaces (it reaches only apt show/synaptic).

Desired behavior:
The rich three-paragraph copy is carried in an AppStream metainfo file that GNOME Software renders on the double-click install path, while the launcher Comment stays the valid single line #1799 established. The metainfo ships in the .deb at /usr/share/metainfo/ and passes AppStream validation.

Key interfaces:

  • A metainfo file app/build/metainfo/nz.matou.idss.metainfo.xml carrying <id>nz.matou.idss</id>, <summary> (= the deb synopsis), a <description> with b6e1969d's exact three paragraphs (recover the text from that commit), and a launchable entry; screenshots optional.
  • The electron-builder deb config wired so the metainfo lands at /usr/share/metainfo/ in the built package (electron-builder has no first-class slot — verify the mechanism, e.g. a deb.fpm source mapping, by actually building the .deb).
  • scripts/package-layout-check.sh extended to assert the metainfo ships and passes appstreamcli validate (or appstream-util validate-relax).

Acceptance criteria:

  • nz.matou.idss.metainfo.xml exists with b6e1969d's exact three-paragraph copy, a summary equal to the synopsis, the app id, and a launchable entry.
  • A built .deb contains the file at /usr/share/metainfo/nz.matou.idss.metainfo.xml (verified against a real build).
  • appstreamcli validate (or the relax variant) passes on the shipped metainfo, wired into package-layout-check.sh.
  • The launcher Comment / idss.desktop stays the valid single line from #1799 (no regression of ADR 0168's install proof).
  • STATUS.md updated in the same commit per CLAUDE.md if project state changes.

Out of scope:

  • The real-hardware GNOME Software render proof on the ADR 0168 reference target — that is #471's ready-for-human drive.
  • Bumping electron-builder to ^26 for desktop.entry.Comment (the ticket's weighed alternative) — an unverifiable-in-sandbox major toolchain bump; the metainfo path is the chosen, lower-risk route unless a session finds the mechanism unworkable.
  • Changing the collapsed single-line deb.description #1799 established.
> *This was generated by AI during triage.* **Ruled by agent under ADR 0174 — veto anytime.** **Ruling:** category `enhancement`, state `ready-for-session` (not `ready-for-agent`, not `ready-for-human`). **Why a two-way door:** the change is revertible with a single commit, the rich store copy is recoverable verbatim from b6e1969d (this ticket only re-homes it), and it touches nothing on the one-way-door list (no credentials, no security widening, no member-facing trust accept, no data destruction, no non-routine spend). Adding a metainfo artifact and its packaging wiring is fully reversible. **Why `ready-for-session` and not `ready-for-agent`:** the ticket's central mechanism — placing an arbitrary system file (`/usr/share/metainfo/nz.matou.idss.metainfo.xml`) into the .deb, for which electron-builder has no first-class slot — is by the ticket's own words *"can't be built in the sandbox"*, and its acceptance runs `appstreamcli validate` (or `appstream-util validate-relax`) against a **built** artifact. A swarm worker would ship the fpm source-mapping blind, with no test/probe able to prove the file actually lands or validates — so under the "provable by an existing test/drive/probe" bar it must not pick it up. An interactive session on a build-capable host can build the .deb, confirm the metainfo ships, and run the validator. #1799's precedent (config-shape tests without a real deb build) does **not** stretch here, because #1799's risk was provable by reading `electron-builder.yml`; this one's risk is only provable by building. **Why not `ready-for-human`:** the one genuinely irreversible, hardware-bound step — GNOME Software rendering the page on the ADR 0168 reference target (real Ubuntu 24.04, double-click the .deb) — already lives as `ready-for-human` residue in **#471** (real-install proof). This ticket produces and build-verifies the artifact; #471's drive is where a human's eyes confirm the render. --- ## Agent Brief **Category:** enhancement **Summary:** Ship the rich .deb store copy as an AppStream metainfo file — the surface GNOME Software actually renders — recovering b6e1969d's three-paragraph description that #1799 had to collapse. **Current behavior:** b6e1969d added a deliberate three-paragraph store description as `deb.description: |` in `app/electron-builder.yml`. #1799 collapsed it back to a single line because, in the pinned electron-builder (`^25.1.8`), app-builder-lib writes the desktop entry's `Comment` from `deb.description` verbatim and overwrites any `linux.desktop.Comment`; a multi-line value made `idss.desktop` unparseable and GNOME dropped the app from its grid. So today the launcher tooltip is a single line and the rich copy is homeless — the deb control `Description` GNOME Software barely surfaces (it reaches only `apt show`/synaptic). **Desired behavior:** The rich three-paragraph copy is carried in an AppStream metainfo file that GNOME Software renders on the double-click install path, while the launcher `Comment` stays the valid single line #1799 established. The metainfo ships in the .deb at `/usr/share/metainfo/` and passes AppStream validation. **Key interfaces:** - A metainfo file `app/build/metainfo/nz.matou.idss.metainfo.xml` carrying `<id>nz.matou.idss</id>`, `<summary>` (= the deb synopsis), a `<description>` with b6e1969d's exact three paragraphs (recover the text from that commit), and a `launchable` entry; screenshots optional. - The electron-builder deb config wired so the metainfo lands at `/usr/share/metainfo/` in the built package (electron-builder has no first-class slot — verify the mechanism, e.g. a `deb.fpm` source mapping, by actually building the .deb). - `scripts/package-layout-check.sh` extended to assert the metainfo ships and passes `appstreamcli validate` (or `appstream-util validate-relax`). **Acceptance criteria:** - [ ] `nz.matou.idss.metainfo.xml` exists with b6e1969d's exact three-paragraph copy, a summary equal to the synopsis, the app id, and a launchable entry. - [ ] A built .deb contains the file at `/usr/share/metainfo/nz.matou.idss.metainfo.xml` (verified against a real build). - [ ] `appstreamcli validate` (or the relax variant) passes on the shipped metainfo, wired into `package-layout-check.sh`. - [ ] The launcher `Comment` / `idss.desktop` stays the valid single line from #1799 (no regression of ADR 0168's install proof). - [ ] STATUS.md updated in the same commit per CLAUDE.md if project state changes. **Out of scope:** - The real-hardware GNOME Software render proof on the ADR 0168 reference target — that is #471's `ready-for-human` drive. - Bumping electron-builder to `^26` for `desktop.entry.Comment` (the ticket's weighed alternative) — an unverifiable-in-sandbox major toolchain bump; the metainfo path is the chosen, lower-risk route unless a session finds the mechanism unworkable. - Changing the collapsed single-line `deb.description` #1799 established.
Author
Member

$BODY

$BODY
matou-build-agent 2026-09-23 23:20:49 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#1800
No description provided.