Skip to content

v4.169.43 - daemon-driven terminal relay hardening

Choose a tag to compare

@IvanSkainet IvanSkainet released this 13 Aug 12:44
· 163 commits to master since this release

v4.169.43 — daemon-driven terminal relay hardening

This release is the first Book of Eternity stress run that preserves the real application architecture end to end: C# client request → daemon → ConPTY CLI transport → generic relay mailbox → active agent → ordinary host file writes → client validation → daemon-delivered repair → bounded agent repair. No game rules or state machine were added to Skainet Bridge.

Core fixes

  • Added generic persistent arena-relay terminal ingress for ordinary lines, multiline bracketed paste, and observed Windows ConPTY raw dispatch.
  • Removed the Windows Console 510-character truncation failure with temporary raw VT input and incremental non-greedy chunk decoding.
  • Added Ctrl+U/delayed-Enter framing, embedded newline preservation, bounded visibility echo, and per-dispatch rearming when ConPTY strips ESC paste markers.
  • Changed atomic relay temp files from .tmp-*.json to .partial, preventing concurrent Windows mailbox readers from causing WinError 32 during os.replace.
  • Corrected the default local coverage floor so documented bare python -m pytest -q is runnable while CI keeps its stricter Linux override.
  • Hardened release packaging: ignored workspace artifacts are inspected and coverage.xml can no longer leak into a clean-tag archive.
  • Made the pyrefly quality gate fail closed when the analyzer is absent or returns malformed/empty output; fixed the Windows-only WinDLL typing path.

Live acceptance

  • Turn 2 arrived as one exact 33,937-character daemon prompt and was accepted by the client.
  • Turn 3 intentionally introduced narrative_response_unknown_field; the daemon delivered the exact repair packet; the bounded repair was accepted and rendered.
  • Two sequential four-line dispatches in one terminal process preserved exact bodies and sequence 1 → 2.
  • Concurrent reply long-poll + atomic write returned HTTP 200 with exactly one correlated reply; final inbox and reply depths were zero.

Validation

  • 8,307 tests collected; bare full suite passed.
  • preflight.py --full passed after final changes.
  • Coverage: 63.07% lines / 51.61% branches (60.40% combined).
  • Bandit: 0 high/medium; Semgrep: 0 findings; pip-audit: 0 known vulnerabilities across 18 runtime dependencies.
  • Release ZIP: 1,148 files; extracted version and arena-relay terminal CLI verified; generated coverage/test artifacts absent.

Full engineering journal: docs/scenarios/BOOK_OF_ETERNITY_DAEMON_E2E.md.