Skip to content

Implement scoped emergency pause recovery #349

Description

@edehvictor

Summary

Add an emergency pause flow that can stop only selected payroll actions while allowing safe recovery actions to continue.

Why This Matters

A global pause can trap funds or block cleanup, so maintainers need more precise safety controls during incidents.

Suggested Files

  • contracts/src/pause.rs
  • contracts/src/access.rs
  • contracts/src/payroll.rs
  • contracts/tests/scoped_pause.rs

Tasks

  • Define pause scopes for funding, approval, execution, audit, and archival actions.
  • Allow authorized emergency roles to activate and clear scoped pauses.
  • Permit safe recovery actions while risky scopes are paused.
  • Add tests for each pause scope.

Acceptance Criteria

  • Paused scopes block only their intended actions.
  • Recovery actions remain available when safe.
  • Unauthorized pause changes are rejected.
  • Tests cover activation, clearance, and scoped behavior.

Coordination

Join the Telegram channel for proper coordination: https://t.me/zkpayroll

Activity

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