Skip to content

Support protected stateless C1 reads on Windows - #8757

Merged
huangruiteng merged 3 commits into
codex/c1-work-contract-review-20261107from
codex/c1-windows-private-capture-20261114
Nov 14, 2026
Merged

huangruiteng merged 3 commits into
codex/c1-work-contract-review-20261107from
codex/c1-windows-private-capture-20261114

Conversation

@loopx-agent

@loopx-agent loopx-agent commented Nov 14, 2026 •

Copy link
Copy Markdown
Collaborator

On Windows, C1 could return inline context because its stateless capture and reader required POSIX ownership. Even a valid saved first read could lead to a replan command with POSIX quoting when LoopX ran through its installed Python entry point. Both paths now use the Windows host contracts.

The capture and settlement presentation use the existing native private-file permission owner. Readers verify the protected ACL, physical path, opened file and original digest. Digest-bound replan commands use PowerShell syntax for Python and script launchers. The byte and Turn identities remain bound to the original source. Historical command rendering remains compatible with stored signatures, and the native Delta journal and legacy bounded quota spend-slot option retain their POSIX requirements.

  • The existing Windows job exercises first read, review and writeback through the PowerShell launcher and installed Python route. It also reads the saved settlement receipt and verifies that replay spends once. Negative cases cover widened ACLs and a junction in an ancestor path.
  • macOS source regressions cover capture, reader, replan and settlement. Both PowerShell launcher journeys and all 69 Turn-envelope tests passed locally.
  • Two installed wheel comparisons used the same immutable source per backend. For File and SQLite, the old rendered command exited 1 in PowerShell, the corrected command reached the original writeback stage with the same context and obligation, and a changed source digest was rejected. These comparisons ran on macOS with Windows command selection simulated. The native Windows CI result is required for Windows qualification.

This pull request stacks on #8266.

The branch includes the current #8266 parent at b5dc37fad5. The identical integrated source tree passed 26 focused Python cases, including the new short-budget recovery cleanup, and 223 TypeScript cases. In a macOS installed-wheel rehearsal, both File and SQLite recovered the original replan and settled once after rolling back between durable writeback and quota spend. Replaying the settlement did not spend again. The native Windows Python route and ACL cases still require Windows CI.

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
@huangruiteng
huangruiteng merged commit f5ceab5 into codex/c1-work-contract-review-20261107 Nov 14, 2026
18 of 22 checks passed
@huangruiteng
huangruiteng deleted the codex/c1-windows-private-capture-20261114 branch November 14, 2026 11:59
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.

2 participants