Skip to content

feat(workflows): owner-reviewed agent draft-create (mirror agents draft-create) #5129

Description

@serenelion

Problem

Agents can buzz workflows create, but the resulting kind:30620 is agent-signed. That breaks the human ownership model:

Same class of problem as agent creation (solved) and repository creation (#5052).

Proposed solution

Mirror buzz agents draft-create / #5052:

  1. buzz workflows draft-create --channel <uuid> --yaml <definition|-> (requires BUZZ_AUTH_TAG)
  2. Optional: buzz workflows draft-update --channel <uuid> --workflow <uuid> --yaml ...
  3. Owner-encrypted observer frame workflow_management_request → Desktop opens Create/Edit Workflow dialog
  4. Owner Save signs kind:30620 with the human key; Cancel = no event

Do not reuse workflows approve (that is run-step request_approval).

Keep raw workflows create for power users; teach ACP to prefer draft-create for agent-proposed defs.

Acceptance criteria

  • Agent with BUZZ_AUTH_TAG can open an owner-reviewed workflow draft; missing tag → clear auth error
  • Save produces kind:30620 whose pubkey is the reviewing human (test asserts), not the proposing agent
  • Cancel produces no workflow event
  • Invalid YAML / channel UUID rejected with a clear error
  • ACP base prompt + sprout-cli skills document workflows draft-create
  • Raw workflows create still works (no break)

Related

Context

Requested from ECN nest / Buzz Desktop 0.5.5 on hosted community relay while setting up a nightly LinkedIn content workflow.

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