Skip to content

Block unsupported applications in Yukimi's catalog - #129

Merged
bitemyapp merged 4 commits into
mainfrom
codex/yukimi-platform-catalog
Nov 8, 2026
Merged

bitemyapp merged 4 commits into
mainfrom
codex/yukimi-platform-catalog

Conversation

@bitemyapp

@bitemyapp bitemyapp commented Oct 28, 2026 •

Copy link
Copy Markdown
Owner

Yukimi's curated app cards offered Discord on ARM Linux even though its pinned package supports only x86 Linux and ARM macOS. Installing it made the system rebuild fail. Package search already checked platform metadata, but catalog cards did not.

Resolve Yukimi's own catalog and Genkan's catalog against the target platform. For Nixpkgs packages, systems check platform metadata, broken or missing packages and required applications. They follow the policy of the Nixpkgs the packages come from: where it sets allowBroken or allowUnsupportedSystem, those packages are offered, as that Nixpkgs would install them. Yukimi's own catalog follows the system's Nixpkgs; Genkan's follows applicationPkgs, which installed systems configure apart from nixpkgs.config. This does not build catalog applications or relax Nixpkgs policy.

Genkan's entries with a source (the AI assistants, oh-my-pi, Superluminal, Tracy, Uta and Kakehashi) now list the systems they install on as platforms. Systems decide those entries from the list alone and never read their packages. All but Kakehashi, Sekka's own, come from other repositories. Reading their packages made every installation and rebuild fetch and evaluate the ai-apps, omp, Superluminal and Tracy flakes, plus two more Nixpkgs revisions, even for Aizome with Firefox alone: from a fresh store, ten more flake sources, 0.8 GB more store data (which a live session keeps in memory) and 7 s more evaluation. On that reference evaluation the system now fetches exactly the sources main does, and its peak memory (2.4 GB) and allocations are within 1% of main's. Genkan's unit tests require a platforms list on every entry with a source. The lists name aarch64-linux wherever the source instantiates there today, which is every entry but Superluminal, although Sekka itself ships only x86 systems.

Systems read metadata only. Instantiating every catalog package on each rebuild took a reference Aizome system's evaluation from 8.6 to 15.9 s of CPU and its peak memory from 2.1 to 3.7 GB. It also met Nixpkgs' policy, so a system refusing unfree packages labelled them "cannot be evaluated" instead of saying unfree software isn't allowed.

Some wrappers' metadata claims more than their dependencies support; these list their platforms in the catalog. Steam and Heroic bring 32-bit x86 libraries, and Lutris brings the x86-only libstrangle. Lutris is now marked unfree, since Nixpkgs' lutris includes Steam's runtime.

checks.x86_64-linux.application-platforms resolves both catalogs for x86 and ARM the way systems do, with the packages of entries with a source set to abort the evaluation if read. It then resolves them again with every package read and instantiated, through an internal programs.yukimi.instantiateCatalogs option. It fails when:

  • a system would offer something that doesn't instantiate, which includes a wrong platforms list;
  • an app needs unfree packages without being marked unfree;
  • a catalog follows the wrong Nixpkgs configuration. Two ARM variants each allow unsupported packages in only the system's Nixpkgs or only applicationPkgs; in each, exactly the catalog that follows it offers Discord, and neither offers Steam, whose own list says x86 only.

The check takes Sekka's packages from catalog.packagesFor in nix/components.nix, the definition that also gives systems theirs, and requires the catalog's Sekka-source entries to match it.

Yukimi displays unavailable apps with a reason and disables installation, including in package details that route through a catalog program. The helper independently rejects new unavailable catalog selections before writing configuration, while still allowing existing selections to be removed. Older system metadata remains compatible; resolved availability takes effect after a successful system update.

Integration with current main

Rebased onto main at 462dd31f on November 8, 2026, preserving the four PR commits. The resolution keeps Uta's preload: false policy and T3 Code's catalog entry, gives both entries their x86 and ARM platform lists, and includes Uta in the shared catalog.packagesFor definition. The platform check explicitly verifies that both entries are offered without reading their packages and that Uta remains excluded from preloading. The lockfile, release workflows and Uta package definition are unchanged.

Changes from review

  • Resolving Genkan's catalog read every entry's packages, so every installation fetched the other flakes (major). Entries with a source are now decided by static platforms lists, and the check aborts if a system evaluation reads their packages.
  • The resolver ignored allowBroken and allowUnsupportedSystem. It now follows the configuration of the Nixpkgs each catalog's packages come from.
  • The check kept its own copy of Sekka's packages, which would have missed Offer Uta in Genkan and Yukimi without preloading the ISO #123's Uta. It now uses catalog.packagesFor and checks the names.
  • The check couldn't tell which Nixpkgs configuration Genkan's resolver follows: it set both at once, so a resolver following the system's configuration passed. Each ARM variant now sets only one.
  • Comments no longer say every entry with a source comes from another flake, or that the check's ARM Sekka packages are the ones systems get (systems get the x86 set today).

Rebase validation — November 8, 2026

Rebased head: d02c454d, based on main 462dd31f. These are component checks:

  • nix build .#checks.x86_64-linux.application-platforms --no-link --no-update-lock-file passed, including the added Uta and T3 Code assertions on x86 and ARM.
  • checks.x86_64-linux.applications.drvPath and checks.x86_64-linux.uta-installation.drvPath evaluated successfully. Their Nix assertions passed; application packages were not built for these two checks.
  • nix develop -c cargo test --locked --manifest-path apps/yukimi/Cargo.toml: 136 passed, one existing network test ignored.
  • nix develop .#aizome -c cargo test --locked --manifest-path desktop/aizome/Cargo.toml -p aizome-yukimi: 89 passed, one existing timing test ignored, including the headless unavailable-card and package-details tests and golden tests.
  • nix develop -c cargo test --locked --manifest-path installer/genkan/rust/Cargo.toml --lib applications::: four passed. No storage or disk tests ran on the host.
  • Nixfmt and rustfmt passed on the changed code files; git diff --check passed. The working tree is clean.

No ISO build, VM installation, hardware validation, full flake check, or helper rejection end-to-end test was performed for this rebase. Earlier VM/build/performance results below describe their original revisions.

Earlier validation — before the rebase

All on wx-workstation, on the branch merged with main d717500 (#131 removed the GTK interface, so this PR's changes to it are dropped). These are component checks.

Final tree:

  • Yukimi workspace: cargo metadata --locked passes. 127 tests passed and one existing network test was ignored. Clippy with -D warnings is clean.
  • Genkan: cargo metadata --locked passes. The application tests pass (3, including the new platforms requirement), run alone with --lib applications:: so that no storage or disk tests run on the host. rustfmt is clean on applications.rs.
  • checks.x86_64-linux.application-platforms and checks.x86_64-linux.applications build.
  • The check fails as intended under each of six mutations of the final tree:
    • a system evaluation reads another flake's packages (aborts: "read the catalog's ai-apps packages");
    • Superluminal claims ARM;
    • a Sekka-source entry has no package in nix/components.nix;
    • Yukimi's module stops passing its Nixpkgs configuration;
    • Genkan's resolver drops its configuration;
    • Genkan's resolver follows the system's configuration instead of applicationPkgs'.
  • The check's added ARM variant costs no measurable evaluator memory. In four alternating warm runs, evaluating the check peaked at 5.06–5.09 GB against the previous revision's 5.07–5.08 GB. Wall time was 6.8–9.5 s against 7.1–8.5 s, which is noise on the shared host (load average 75–140).
  • nixfmt is clean on the changed Nix files, and git diff --check passes.

From earlier revisions of this branch (this round changes only Nix files, docs and one Genkan test message). The Aizome package, #yukimi.helper and checks.x86_64-linux.yukimi-tatami have the same derivations on the final tree as on 6b0bee6, so their results carry over; the final run rebuilt nothing for them.

  • Aizome Yukimi (6b0bee6): 76 tests passed and one existing timing test was ignored; clippy is clean. They cover disabled cards, visible reasons, direct install messages and package details.
  • #yukimi.helper builds; its check phase runs the Yukimi tests.
  • checks.x86_64-linux.yukimi-tatami (Discover in a VM) passes. It cancels authentication, so it doesn't reach the helper's new validation.
  • Reference evaluation (6b0bee6): a probe evaluating an Aizome + Firefox system with the specialArgs and modules of Genkan's flake template. It doesn't generate a template flake. From a fresh store and fetcher cache, it fetched the same URLs as main, with 1.5 GB of store each, and took 13.3 s and 2.44 GB against main's 13.6 s and 2.45 GB. Warm, peak memory was 2.38–2.41 GB against main's 2.37–2.39 GB, with allocations within 1%. An independent cold rerun matched.
  • On 6b0bee6, 24 outputs these changes reach evaluate without building, including packages.x86_64-linux.iso.
  • Before the catalog data changes, the check failed on exactly Steam, Lutris and Heroic on ARM (Steam in both catalogs), and on Lutris's missing unfree flag.

Not tested

  • No hardware validation: nothing ran on the X1 Carbon or any other physical machine.
  • No ISO build or qualification, no VM installation, and no activation of a running system.
  • The full nix flake check hasn't run on this branch's final tree. Nightly CI runs it after merge.
  • No ARM system was built or booted. The ARM results are evaluation only.
  • The helper's new validation has no end-to-end test, only yukimi-system unit tests.

Follow-ups

  • Add an end-to-end test that reaches the helper's validation (the Discover VM test cancels authentication).

🤖 Generated with Claude Code

@bitemyapp

Copy link
Copy Markdown
Owner Author

Re-pinned Sidestep to aizome-combined (bitemyapp/sidestep#8, 853fbb3) in 0b4f5be. That commit changes only the flake input, its lock and vendor/sidestep, which agree. The combined branch is aizome plus bitemyapp/sidestep#6 (Utsushi's video layer) and bitemyapp/sidestep#7 (Omperor's clipboard reading and text attachments); every open Aizome PR now pins it, ahead of Sidestep moving into Sekka's tree.

Revalidated on wx-workstation against that Sidestep:

  • cargo build --locked --workspace passes.
  • aizome-yukimi tests pass.
  • application-platforms only evaluates the catalog, which doesn't involve Sidestep, so it wasn't rerun.

🤖 Generated with Claude Code

bitemyapp and others added 4 commits November 8, 2026 13:10
Instantiating every catalog package on each rebuild took a reference
Aizome system's evaluation from 8.6 to 15.9 s of CPU and its peak memory
from 2.1 to 3.7 GB. It also met Nixpkgs' policy, so systems refusing
unfree packages called Chrome, Discord, Steam and the rest "cannot be
evaluated" instead of saying unfree software isn't allowed.

Systems now read metadata only, which costs about 0.2 GB. Wrappers whose
metadata claims more than their dependencies support list their
platforms in the catalog: Steam and Heroic bring 32-bit x86 libraries,
Lutris the x86-only libstrangle. Lutris is marked unfree, as Nixpkgs'
lutris includes Steam's runtime.

The application-platforms check resolves both catalogs from metadata,
as systems do, and again with every package instantiated, for x86 and
ARM. It fails when metadata offers something that doesn't instantiate,
or when an application needs unfree packages without being marked
unfree.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resolving Genkan's catalog read the packages of every entry, so each
installation and rebuild fetched and evaluated the ai-apps, omp,
Superluminal and Tracy flakes and two more Nixpkgs revisions, even for
Aizome with Firefox alone. From a fresh store that was ten more flake
sources, 0.8 GB more in the live session's memory and 7 s more
evaluation, and a GitHub outage could fail an installation over apps it
never chose.

Entries from other flakes now list the systems they install on, and
systems decide them from that list alone. On that reference evaluation
the system fetches exactly the sources main does, with peak memory and
allocations within 1% of main's. Genkan's tests require the list on
every entry with a source. Only checks read their packages: the
application-platforms check makes the other flakes' packages abort a
system's evaluation if read, and still instantiates everything to catch
a list that offers what can't install.

The resolver now follows the Nixpkgs the packages come from: where it
allows broken or unsupported packages, systems are offered them, as it
would install them. The catalog's own platforms lists still apply.

The check takes Sekka's packages from the per-system definition in
nix/components.nix that systems use, and requires the catalog's
Sekka-source entries to match it, so new ones are covered.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
checks.application-platforms allowed unsupported packages in the
system's Nixpkgs and in applicationPkgs at once, so it passed whether
Genkan's catalog followed applicationPkgs' configuration or the
system's. On installed systems the two differ: the flake template builds
applicationPkgs with allowUnfree alone, whatever configuration.nix sets
in nixpkgs.config, so a catalog following the system's would offer
packages that applicationPkgs refuses to install.

Two ARM variants now each allow unsupported packages in only one of
them, and Discord must be offered by exactly the catalog that follows
it: Yukimi's own catalog the system's Nixpkgs, Genkan's applicationPkgs.

The comments no longer say that every entry with a source comes from
another flake, since Kakehashi is Sekka's own, or that the check's ARM
Sekka packages are the ones systems get.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bitemyapp
bitemyapp force-pushed the codex/yukimi-platform-catalog branch from 07c431d to d02c454 Compare November 8, 2026 19:19
@bitemyapp
bitemyapp merged commit 20d2c56 into main Nov 8, 2026
7 checks passed
@bitemyapp
bitemyapp deleted the codex/yukimi-platform-catalog branch November 8, 2026 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant