Skip to content

Replace temporal Hopper cleanup with explicit process ownership #56

Closed

Description

@morluto

Problem

Verifier cleanup based on processes appearing after a snapshot can terminate an unrelated Hopper instance launched concurrently.

Outcome

Own and clean up Hopper through explicit run IDs, PIDs, parentage, and process groups.

Scope

  • Generate a verifier/session run ID.
  • Record the exact launched PID and descendant lineage in an owned manifest.
  • Verify command identity and parentage before signaling.
  • Ask normal runtime shutdown to clean up first.
  • Escalate only within the owned process group.
  • Verify socket, process, and temporary-root cleanup.
  • Preserve bounded sanitized diagnostics.

Acceptance criteria

An unrelated concurrently launched Hopper process survives success, cancellation, timeout, verifier failure, and forced cleanup tests. Missing or stale ownership metadata fails closed. Cleanup is idempotent and cannot target PID reuse without identity validation.

Dependencies

Parent: #48. Blocks trustworthy semantic conformance.

Non-goals

General system-wide process management.

Activity

  1. added
    bug
    P0: critical
    area: bridge
    area: tests
    roadmap
    on Jul 12, 2026
  2. added
    area: runtime
    provider: hopper
    on Nov 23, 2026
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

    P0: criticalarea: bridgearea: runtimearea: testsbugprovider: hopperroadmap

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions