Skip to content

v0.3.3 — the review wave lands, and the unwired modules go

Choose a tag to compare

@github-actions github-actions released this 30 Sep 20:49
· 9 commits to refs/heads/main since this release

Fixed

  • The Windows DACL privacy check failed open on a granting ACE type. tui.py classified 0x09 as inert; 0x09 is ACCESS_ALLOWED_CALLBACK_ACE_TYPE, a granting type, so a foreign trustee's grant was parsed past and the directory was declared private. Reproduced on Windows: icacls reported BUILTIN\Users holding WRITE_DAC, WRITE_OWNER and DELETE while the check passed — and a stranger who can rewrite the DACL can then read the capability token. The rule is now inverted rather than patched: granting types are enumerated (0x00, 0x04, 0x05, 0x09, 0x0B) and the walk is deny-by-default, so an ACE shape nobody enumerated is refused rather than waved through.
  • The "identity-aware" liveness check could not change any outcome. After if not _pid_is_alive(pid): return False, every remaining branch returned True, so the verdict was exactly _pid_is_alive(pid) — unchanged from before the patch. An exhaustive 72-case cross-product flipped it zero times, and overwriting only pid in a live registry entry orphaned the running daemon: the v0.2.2 defect the change claimed to fix. The recorded creation time is now consulted where it is authoritative, with two fail-closed rules so an unfinished search is never read as evidence. This is a consistency check on an entry, not an authorisation one — anything able to write the registry can write a self-consistent pair, omit it, or delete the file, and deleting it is the strictly stronger attack. SECURITY.md now says exactly that and no more.
  • payloads="none" did not govern error_message. The session log's docstring named error messages as governed by the payload policy, but that field was merged in unconditionally. A spawn failure — which quotes the command line it was handed, password included — landed verbatim in a log the module says "outlives the session by years".
  • Mouse encoding modes swallowed delete-line. Tracking modes (9/1000/1002/1003) and encoding modes (1005/1015/1016/1006) shared one set, and the union gated the X10 branch, so ?1006h alone made ESC[M — byte-identical to delete-line — get consumed as a mouse report: three content bytes eaten, wrong grid, no error signal. The realistic trigger is a program that enables ?1000h ?1006h and later disables only the tracking mode. The encoding stays reported, so a consumer can refuse rather than guess.
  • The wrapper parity test could not see a dropped argument. It compared signatures and defaults but never the forwarding body, so a keyword accepted and silently not forwarded passed it.
  • _PYTE_CSI_PARAM_BYTES claimed to be what pyte can carry and omitted seven bytes it does. The test now derives the set by driving pyte instead of restating the constant — a test restating the constant cannot detect a wrong-but-self-consistent alphabet.
  • An invariant asserted in three places had no gate that could fail it. "The anchor gates success only, never the deadline" is claimed in readiness.py's module docstring, at the anchor, and in wait_ready's docstring. Mutating the line it is about left the suite green — including the gate literally titled respected max_wait ceiling, which supplies no changed_since. The check needed a wall-clock budget as well as a virtual clock, because the failure mode of a missing deadline is a hang, and a hang cannot fail a gate.
  • workflow_dispatch reached production with neither release gate running. Both gate steps were push-only and the verify job had no job-level if. The version-agreement half now runs on both paths; the tag-ancestry half is genuinely unanswerable without a tag and is marked as such rather than implied.
  • The capability token's file DACL was set but never verified. The directory was applied and verified both ways; the file holding the token only had it applied. The capability got the weaker of the two treatments.
  • Three documents told readers to run a command that exits 1 (python skills/tui-ui/ui/box_junction.py fails on a relative import; the module needs -m).
  • A dev-box path gate banned one literal, so a document could name the developer's home directory and pass — which a new archive pointer did. It now bans the class and is derived from the checkout, so it cannot go stale.

Removed

  • ui/color_model.py and ui/box_junction.py (413 lines). Both shipped through 0.3.2 with zero importers, and tui-ui has no pkgutil auto-discovery over ui/ (that is fx.registry and patterns.registry, neither of which scans ui/), so no caller could ever have reached them. Canvas.to_ansi() emits truecolor 38;2 unconditionally and 38;5 appears nowhere in the skill, so the ladder's middle tier was never emitted; the live border path is BOX_STYLES/draw_border in core.py. They were correct and self-tested, which is not the argument against them — the argument is that a capability with no consumer is weight, and nineteen documents had been describing them as if they were on the render path. raster.py and field.py are imported and survive.
  • The verification/ evidence tree (346 tracked files, 4.6 MB). It held eight full copies of smartcli_core/screen_model.py taken before three separate bug fixes, so a repo-wide search returned pre-fix code. Moved byte-for-byte, nothing deleted; the sha256 pins inside it still resolve, because they name files that stayed in the repository.

Notes

  • Every fix carries a red-proof. Re-classifying 0x09, deleting the identity branch, deleting the file-level verify, re-introducing a forwarded-kwarg drop, and forcing the liveness search to report "nothing alive" each turn the corresponding gate red. The liveness gates are red-proven in both directions, so a blanket refusal is caught too.
  • Verified with: 21 deterministic gates, ruff check --select E9,F63,F7,F82 ., mypy --platform linux, the full tests/run_all.py run on the released tree (62/62, exit 0, 3m34s, with real PTYs, run with explicit owner consent — and again 63/63 before the cut removed the box_junction self-test), and a four-leg CI matrix (Windows/Linux/macOS × py3.10/py3.14) — all green.
  • Installed and re-verified from a clean-room venv against the published wheel, outside the repository: smartcli_core 0.3.3 loads from site-packages, all three console scripts resolve, and the encoding-only ESC[M case returns unknown = 0 on the installed artifact.
  • Suite is 62 entries. Version 0.3.3 across all ten version sites, tools/sync_vendor.py run, test_version_sync agreeing.

Erratum (2026-10-01, after publication)

A 58-minute review of the 0.3.3 delta, run after this release was published,
corrected three numbers in the notes above. They are corrected in place rather
than rewritten, so a reader sees both the claim and the correction:

  • "nineteen documents" (above, in Documentation) is not derivable —
    9 documents mention color_model, 22 contain "degrade", 26 the union, and
    no sweep of the patterns yields 19. What the delta actually touched is
    10 documents with a degrade-family line and 11 with a box_junction line.
    The "ten" above was right; the "nineteen" was not.
  • "Three documents" (above, in Fixed) is two — HANDOFF.md (twice) and
    docs/MACOS-VERIFY.md:65: four occurrences across two files. The underlying
    defect was real and all three lines were removed; only the count was wrong.
  • The suite-inventory figures were also re-derived: the gated count is
    47 of 62 (not 46) and 15 are local-only (not 16) — the entry removed
    in 0.3.3 was itself ungated, so only the denominator should have moved.

All of these, plus four further defects, ship as 0.3.4.