Skip to content
Edit this page

005: Quality Factors

  • Type: Architecture
  • Status: Accepted
  • Date: 2026-12-02
  • Author(s) / Deciders: João V. Farias
  • Question: Which software quality attributes take priority when making architectural and implementation trade-offs?

Context

Software designs cannot maximize every quality attribute simultaneously. Downloading a pinned portable Wine archive consumes extra initial bandwidth compared to calling host Wine directly, yet prevents subtle build failures across Linux distributions. Ordering the primary quality factors sets objective tie-breakers for architecture and code reviews.

Candidate quality attributes

Ten software engineering quality factors were reviewed when establishing project priorities:

  • Effectiveness measures plan compliance and reliable command completion.
  • Evolvability measures the complexity required to add runner backends or toolchain recipes.
  • Human engineering covers CLI readability, Nushell discovery, and concise configuration syntax.
  • Productivity tracks startup latency, cache reuse, and Wine execution speed.
  • Safety enforces checksum validation, prefix locking, and host process guards.
  • Satisfaction reflects developer confidence across local machines and CI runners.
  • Supportability captures distro independence, zero 32-bit multilib setup, and diagnostic clarity.
  • Survivability measures deterministic Wine initialization and recovery from partial runs or configuration drift.
  • Understandability evaluates clear module separation and actionable diagnostic spans.
  • Verifiability measures offline testability without requiring live Wine binaries for core logic.

Requirements and restrictions

Design reviews select five ranked attributes backed by concrete operational rules:

  • Pinned runner and toolchain archives MUST pass SHA-256 verification before extraction.
  • Default setups MUST run on pure 64-bit Linux hosts with no 32-bit multilib packages installed by using Kron4ek staging-amd64-wow64.
  • Prefix creation and updates MUST hold an exclusive advisory flock lock and persist state in winesmith-state.json so interrupted setups recover cleanly.
  • Local __complete queries MUST return without network requests or Wine launches within 50 ms on warm caches.

Alternatives

Prioritizing raw startup speed above verification and portability would avoid initial Wine downloads and lockfile hashing. However, unpinned system Wine packages break without warning when Linux distributions ship incompatible Wine builds or drop 32-bit runtime libraries. Treating all quality attributes as equal priority leaves reviewers without an objective rule when safety and convenience conflict.

Decision

Rank the top five quality factors for winesmith from highest (1) to lowest (5):

  1. Survivability governs deterministic prefix boots, headless default execution, unique per-invocation .cmd wrappers, and idempotent drift reconciliation.
  2. Supportability prioritizes a single Linux binary and pinned WoW64 Wine defaults running across Arch, Debian, Ubuntu, Fedora, and CI containers without multilib setup.
  3. Safety mandates SHA-256 verification under --locked, exclusive prefix file locks, and forbid_running host process checks.
  4. Human engineering shapes layered winesmith.toml files, progressive CLI flags from ad-hoc exec to --all-targets matrices, and structured Nushell integration.
  5. Evolvability isolates runner acquisition and toolchain recipes into focused modules so new backends require small localized edits.

Minimal binary size and graphical desktop launcher features are intentionally deprioritized relative to pure-Rust TLS, pure-Rust archive extractors, and headless build automation.

Consequences

Positives

Reviewers apply a consistent tie-breaker whenever execution speed competes with determinism or integrity. Pinned WoW64 runners and winesmith.lock prevent the most frequent Wine drift issues between developer laptops and CI runners.

Negatives

Projects using the default kron4ek backend download a portable Wine archive on the first setup run unless the user selects system or proton. Advisory locks and temporary batch wrappers add modest code complexity over bare subprocess calls.