Skip to content

Harden upstream checkout evidence #73

Closed

Description

@mowind

Part of #70.

Goal

Establish the internal managed/provided upstream checkout port and migrate the four approved upstream golden suites behind it.

Scope

  • Managed adapter: fetch the approved repository/revision into owned temporary storage, verify detached HEAD, and clean up on success, failure, or interruption.
  • Provided adapter: require HASHKEY_OPTIMISM_DIR to resolve to the checkout root at the approved revision with no staged, unstaged, untracked, ignored, .gitmodules, or submodule drift.
  • Never checkout, reset, clean, mutate, or delete the provided path.
  • Place golden Cargo output/cache in managed temporary storage so running evidence does not dirty the provided checkout.
  • Migrate asset, stablecoin, factory, and policy golden suites into four atomic source evidence items.

Acceptance Criteria

  • Managed and provided adapters pass the same immutable-source contract tests.
  • Wrong revision, non-root path, every dirty-state class, and submodule material fail closed.
  • Acquisition failure blocks only the four golden items; independent source evidence still runs.
  • Each golden produces an independent result and cannot be masked by another golden's success.

Activity

  1. mowind commented on Aug 4, 2026

    @mowind
    OwnerAuthor

    Implemented in commit 803c965. Managed checkout acquisition is temporary and cleaned through a context manager; provided checkouts must be the approved clean root/revision with approved remote, no ignored/untracked/staged changes, .gitmodules, or submodule entries. Golden evidence uses a managed CARGO_TARGET_DIR and remains atomic.

  2. mowind commented on Aug 4, 2026

    @mowind
    OwnerAuthor

    Closed by 803c965.

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

    ready-for-agentFully specified and ready for an AFK agent

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions