Skip to content

feat(cron): unattended approvals park in /approvals; agent-created jobs start paused #581

Closed

Description

@ajianaz

What problem does this solve?

Unattended must not mean unapproved (OpenClaw's "don't ask permission" default led to exposed instances and runaway actions). A scheduled run that hits a non-allowlisted Write must neither fail silently nor auto-approve, and an agent must not be able to create work for itself with more power than the owner gave it.

Proposed solution

Per docs/automation-design.md §5:

  • A job's allow[] is its only pre-authorization (AllowlistApprover); Destructive stays unregistrable.
  • A non-allowlisted Write parks as a pending approval in the existing /approvals queue (15-min expiry → denied); the run ends awaiting_approval; allow resumes it through the shipped remote-approval path.
  • Jobs created by an agent are created paused, record created_by, and their allow[] must be a subset of the creator's; enabling is a human action.
  • Config-sourced jobs follow the existing trust rules for config-sourced hooks/skills/MCP.

Alternatives considered

Fail the run on any non-allowlisted Write (loses work); auto-approve in unattended mode (rejected).

Are you willing to contribute the implementation?

Yes, I can do it

Before submitting

  • I searched existing issues and didn't find a duplicate

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions