Skip to content

Fix Windows quota snapshot recovery - #263

Merged
BunsDev merged 6 commits into
mainfrom
fix/windows-quota-readable-snapshot
Sep 13, 2026
Merged

Fix Windows quota snapshot recovery#263
BunsDev merged 6 commits into
mainfrom
fix/windows-quota-readable-snapshot

Conversation

@BunsDev

@BunsDev BunsDev commented Sep 13, 2026

Copy link
Copy Markdown
Member

Summary

  • accept a second directory snapshot only after an initial access denial when the same bounded traversal completes fully
  • preserve isolated-user identity, entry limits, reparse checks, byte quotas, and fail-closed missing or persistent outcomes
  • add portable and native regression coverage, regenerate the embedded supervisor, and freeze the exact harness authority

Test plan

  • corepack pnpm@10.34.0 test (normal suite passed; isolated rerun confirmed the one transient heavy deadline failure, then the full heavy suite passed)
  • corepack pnpm@10.34.0 typecheck
  • corepack pnpm@10.34.0 lint
  • corepack pnpm@10.34.0 cargo:fmt
  • corepack pnpm@10.34.0 cargo:check
  • pwsh -NoLogo -NoProfile -NonInteractive -File scripts/windows-quota-diagnostics.test.ps1
  • native Windows supervisor suite in GitHub Actions

Tracks #219.

BunsDev and others added 2 commits September 13, 2026 14:07
Accept only a fresh, complete bounded directory snapshot after an initial access denial while preserving isolated identity, entry limits, and fail-closed outcomes.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Bind the immutable harness revision, tree, workflow, and Windows supervisor bytes to the reviewed quota recovery commit.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings September 13, 2026 19:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Windows supervisor, quota behavior, and conformance authority changes require final human review.

Pull request overview

Fixes Windows quota snapshot recovery by allowing a complete, bounded retry after transient access denial while preserving fail-closed safeguards.

Changes:

  • Adds bounded readable-snapshot retry handling.
  • Expands Windows quota, identity, ACL, and limit regression coverage.
  • Regenerates supervisor authority pins and updates documentation.
File summaries
File Description
src/phase1-conformance-lock.test.ts Validates authority pins.
src/client-v1-conformance-workflow.test.ts Verifies embedded supervisor contracts.
scripts/windows-quota-isolated-reader.test.ps1 Tests isolated-user snapshot behavior.
scripts/windows-quota-diagnostics.test.ps1 Covers quota recovery diagnostics.
scripts/windows-owner-directory-quota.test.ps1 Tests owner-directory quotas and limits.
scripts/windows-job-supervisor.cs Implements bounded readable-snapshot recovery.
phase1-conformance.lock.json Pins updated harness authority.
docs/windows-quota-reproduction.md Documents recovery behavior and controls.
docs/windows-quota-repeat-outcome.md Documents repeat outcomes.
docs/phase1-conformance.md Updates conformance metadata and evidence.
Review details
  • Files reviewed: 10/11 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@BunsDev BunsDev added the ci:full Run the macOS and Windows CI jobs on this pull request label Sep 13, 2026
BunsDev and others added 4 commits September 13, 2026 14:21
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Unwrap only PowerShell and reflection invocation wrappers so the native fixture inspects the bounded quota context instead of discarding it for the deepest access exception.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Unwrap the production wrapper invocation inside the compiled Windows fixture so persistent denial assertions retain the bounded context exception.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Temporarily revert only for test-fixture ACL restoration, then require the retry enumeration to resume under the validated isolated identity.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@BunsDev
BunsDev merged commit 5be5775 into main Sep 13, 2026
10 checks passed
@BunsDev
BunsDev deleted the fix/windows-quota-readable-snapshot branch September 14, 2026 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:full Run the macOS and Windows CI jobs on this pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants