Skip to content

security: Keep local receipts inside the managed worktree #1027

Done

Description

@eowca

A checkout can redirect loop-zero's local handoff and receipt paths outside the worktree. This can cause check and review commands to write local evidence or change permissions elsewhere on the host. Review can also read externally resolved handoff content.

The affected paths are handoff reads, check receipt reads and writes, and review receipt reads and writes. Enforce the local-state directory boundary consistently before reading a file, creating temporary files, or changing permissions.

  • Refuse repository-tracked local state and symbolic links at the directory or artifact level.
  • Check, review, repost, and readiness reject an invalid state path before reading or changing the target.
  • Tests verify that external sentinel files and their directory permissions are unaffected and that a regular local state directory continues to work.

Activity

  1. eowca commented on Nov 26, 2026

    @eowca
    ContributorAuthor

    #1793 replaces #1408. It retains the delta-reviewed state confinement and updates the readiness test to expect the Git index read that rejects tracked local state.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions