Skip to content

Phase 14: coverage ratchet — 14.2/14.3/14.4/14.5 #28

Done

Description

@aliasfoxkde

Objective. Raise the measured coverage floors over four named gaps, then re-bless the floor values from the new measurement.

Why. The measured floors are 81.1% lines / 78.7% functions, rising-only from there, with a 99% target. A rising-only ratchet only rises if something raises it — the four items below are the named work that converts a coverage number into coverage the number is measuring. The gap is not random: it is concentrated in error paths, which is exactly where a raster editor hides bugs (a malformed PSD, a refused catalog command, a degenerate radius).

Current state. The floors are rising-only, so nothing here can be undone by landing more code — but each item must also land its own raised floor, or the ratchet records no progress.

Work

  • 14.2 — catalog refusal branches. mask (~319) and object (~317) are the big ones; then path, text, bitmap, web. Each command's error rows are mechanical: wrong payload shape, missing target, out-of-range params. Write a table-driven helper (payload → expect refusal) and cover every Err arm. Accept: each listed file ≥ 95%.
  • 14.3 — compose/effects.rs edge parameters. Zero-size inputs, degenerate radii, boundary pixels. These are the cases that produce panics or garbage pixels in a raster pipeline, so the coverage is load-bearing for correctness, not for the number.
  • 14.4 — io/psd.rs malformed headers. Truncated chunks, bad version, impossible dimensions. Malformed-input handling is a correctness property of the decoder; an untested decoder is a decoder whose failure mode is unknown.
  • 14.5 — re-measure and re-bless. After each of the above lands, re-measure the workspace coverage and re-bless the floors from that measurement. The floors must never be set above the measured value, and the measurement that produced each new floor is recorded alongside it.

Acceptance

  • Each item's floor is raised, and the raised floor is recorded with the measurement that produced it — in the session log (docs/SESSIONS.md) and in the re-blessed floor configuration.
  • Each of the six listed catalog files (mask, object, path, text, bitmap, web) is at or above 95% line coverage.
  • crates/compose/effects.rs and crates/io/psd.rs have the named edge/malformed cases covered by tests that assert behavior (not merely that a line executed).
  • The re-bless command (cargo run -p xtask -- aegis-adjacent coverage tooling, or the project's coverage gate) is green with the new floors.

Verification. The project's own gate: cargo run -p xtask -- ci, plus the coverage job's own floor comparison — read from the job's status row in the authoritative store, not from a watcher's output.

Tracking: tasks #154, #155, #156, #184.

Next action (owner: coverage). Start with 14.2's table-driven helper — one helper serves all six files, and the refusal arms are the bulk of the missing lines. Land the helper plus the mask and object tables, then re-measure.

Activity

  1. added this to the v0.2.6 milestone on Nov 10, 2026
  2. added
    enhancement
    milestone
    on Nov 10, 2026
  3. aliasfoxkde commented on Nov 10, 2026

    @aliasfoxkde
    OwnerAuthor

    Status: IN PROGRESS

    Landed: crates/color and crates/geom now carry #![deny(missing_docs)] on main (see #29 for the measured count). The measured floors remain 81.1% lines / 78.7% functions against the 99% target.
    Still outstanding: 14.2 (catalog refusal branches across mask/object/path/text/bitmap/web), 14.3 (compose/effects.rs edge parameters), 14.4 (io/psd.rs malformed headers), and the 14.5 re-measure and re-bless.
    Next: land the table-driven refusal-branch helper, then re-measure and record the new floors with the measurement that produced them. Owner: crate owners for each file; re-bless by the xtask owner.

  4. aliasfoxkde commented on Nov 24, 2026

    @aliasfoxkde
    OwnerAuthor

    Resolved: coverage gates implemented in PR #186

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementmilestone

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions