Skip to content

Harden terminal progress and generated storage recovery - #31

Merged
joecklau merged 2 commits into
developfrom
feature/cross_platform_progress_poc
Aug 11, 2026
Merged

Harden terminal progress and generated storage recovery#31
joecklau merged 2 commits into
developfrom
feature/cross_platform_progress_poc

Conversation

@joecklau

Copy link
Copy Markdown
Contributor

Summary

  • Render continuous terminal progress within the visible console width so wrapped PowerShell lines no longer accumulate while preserving non-interactive log output.
  • Recover from manually deleted Docker Sandboxes receipt/evidence state by treating it as an untrusted cache miss while keeping corrupt or mismatched evidence fail-closed.
  • Separate large disposable content under .local/cache from compact state and migrate legacy prebuilt archives.
  • Add a previewed, hash-approved, config-scoped storage reset that preserves user configuration, shared resources, and exact ownership protections.
  • Document generated files, safe deletion, external resource ownership, recovery, and the repository rule for agent scratch data under .local/tmp.

Validation

  • Focused normal and race tests passed for terminal progress, image lifecycle, storage, catalog, configuration, provider registry, and CLI packages.
  • Relevant go vet checks passed.
  • Windows native-controller contract and PowerShell parsing passed.
  • git diff --check passed.
  • Local Bash execution was unavailable because the host WSL service returned E_ACCESSDENIED; repository CI remains the platform validation gate for the shell wrapper change.

Safety

Storage reset is preview-only until the operator supplies the exact generated plan hash. It does not issue broad Docker, BuildKit, Sandbox, WSL, or filesystem wildcard deletion.

Bound live progress updates to the detected console width, retain the last valid width during transient resize-query failures, and fall back to newline logging when cursor-safe rendering is unavailable. Reuse the renderer for Docker pulls, Buildx, Sandbox creation, and prebuilt archive acquisition.
Treat missing Docker Sandboxes receipts as untrusted cache misses, separate disposable cache from compact state, and add exact config-scoped reset with ownership protections. Document the generated layout and require agent scratch files to remain under .local/tmp.
@joecklau
joecklau deployed to epar-live-ci August 11, 2026 18:09 — with GitHub Actions Active
@joecklau
joecklau marked this pull request as ready for review August 11, 2026 18:38
@joecklau
joecklau merged commit b89cfb8 into develop Aug 11, 2026
12 checks passed
@joecklau joecklau mentioned this pull request Aug 11, 2026
@joecklau
joecklau deleted the feature/cross_platform_progress_poc branch August 11, 2026 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant