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:
Effectivenessmeasures plan compliance and reliable command completion.Evolvabilitymeasures the complexity required to add runner backends or toolchain recipes.Human engineeringcovers CLI readability, Nushell discovery, and concise configuration syntax.Productivitytracks startup latency, cache reuse, and Wine execution speed.Safetyenforces checksum validation, prefix locking, and host process guards.Satisfactionreflects developer confidence across local machines and CI runners.Supportabilitycaptures distro independence, zero 32-bit multilib setup, and diagnostic clarity.Survivabilitymeasures deterministic Wine initialization and recovery from partial runs or configuration drift.Understandabilityevaluates clear module separation and actionable diagnostic spans.Verifiabilitymeasures 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
flocklock and persist state inwinesmith-state.jsonso interrupted setups recover cleanly. - Local
__completequeries 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):
- Survivability governs deterministic prefix boots, headless default execution, unique per-invocation
.cmdwrappers, and idempotent drift reconciliation. - Supportability prioritizes a single Linux binary and pinned WoW64 Wine defaults running across Arch, Debian, Ubuntu, Fedora, and CI containers without multilib setup.
- Safety mandates SHA-256 verification under
--locked, exclusive prefix file locks, andforbid_runninghost process checks. - Human engineering shapes layered
winesmith.tomlfiles, progressive CLI flags from ad-hocexecto--all-targetsmatrices, and structured Nushell integration. - 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.