Phase 11, part 3: approvals for what agents send out
Agents can now ask to publish or schedule a post, send an email, add someone to a mailing list, or apply an SEO change. Each waits on the Approvals page (with a count in the sidebar) for an admin or a member with edit on its module, who can edit it first, approve or refuse it, and let the agent take that class of action on its own with a cap per day. A rotation after a leak revokes the old keys and withdraws everything allowed. All of it is in the audit log. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -53,8 +53,9 @@ branch `phase10` (2026-11-25), not yet merged: schema 36, a new
|
||||
the visible changes are posting accounts, Connections, Activity, and a
|
||||
CSRF token in every form.
|
||||
|
||||
**Next: Phase 11, agents.** Parts 1 (agent users and keys) and 2 (module
|
||||
tools over MCP) are built on branch `phase11`; part 3 (approvals) is next. Phase 12 still needs who adds Supermarket's client to
|
||||
**Next: Phase 11, agents.** Parts 1–3 (agent users and keys, module tools
|
||||
over MCP, approvals) are built on branch `phase11`; part 4 (limits and
|
||||
visibility) is next. Phase 12 still needs who adds Supermarket's client to
|
||||
Authelia.
|
||||
|
||||
**Coming back to it (for the agent working on it):**
|
||||
@@ -2581,6 +2582,44 @@ single `mcp-token`. A commit after each part.
|
||||
pushing a page or opening a pull request). Those need part 3's
|
||||
approvals, so an agent can't do them at all yet.
|
||||
|
||||
**Part 3 built 2026-11-26** on `phase11`.
|
||||
- Schema 38: `approvals` (what an agent asked: its class, module, target,
|
||||
parameters, summary; waiting, done, refused or failed; who decided, and
|
||||
the result) and `agent_autonomy` (an agent's classes allowed on their
|
||||
own, with a cap per day, who allowed them, when). `internal/approvals`.
|
||||
- The classes: `post:<account>` (publish or schedule to that posting
|
||||
account), `email-first`, `email-reply` (a reply when the person was
|
||||
already sent one), `list:<id>` (a double opt-in Listmonk list: an agent
|
||||
can't vouch that someone agreed), `seo-change:<site>`. *Push a page to a
|
||||
site* waits for Sites to have tools that push; it has none yet.
|
||||
- The tools that ask: `content_publish` (now, or at a time; the agent must
|
||||
be allowed the account on Settings → Posting accounts, where agents now
|
||||
have rows), `outreach_send` (queues it, within the sending hours),
|
||||
`mailing_list_add`, `seo_apply_change`; `posting_accounts` lists where
|
||||
it may post; `approvals_status` tells it what was decided. Each answers
|
||||
*waiting for approval (request N)*, or, allowed on its own and within its
|
||||
cap (the last 24 hours), does it and says what happened. Asking twice
|
||||
for the same thing doesn't make two requests.
|
||||
- Approvals (the sidebar, with a count of what waits for you): each request
|
||||
with what it would send, editable first (a post's text, title and
|
||||
account; an email's subject and text; a change's wording), *Approve* or
|
||||
*Refuse*, and *let it do this on its own, up to N a day*. Only admins and
|
||||
members with edit on its module see and decide it; two people deciding
|
||||
at once can't both. It's carried out as the person who approved it (their
|
||||
right to the posting account is checked). Below: what agents may do on
|
||||
their own (withdraw), and the last decisions.
|
||||
- An agent's page lists what it may do on its own (withdraw) and what it
|
||||
asked lately. *Rotate* with *it leaked* revokes every old key at once
|
||||
and withdraws everything it was allowed: it starts again from nothing,
|
||||
as a new agent does.
|
||||
- All of it is in the audit log: asked, approved, refused, allowed,
|
||||
withdrawn, done on its own.
|
||||
- Checked, as *done when* says: an agent with Content (read and act) and
|
||||
SEO (read) reads the morning check and What to write next, writes a
|
||||
draft and schedules it; it waits on Approvals, isn't offered the SEO
|
||||
tools that change things, and once allowed once a day, posts on its own
|
||||
once, then asks again. Revoking its key stops it at once.
|
||||
|
||||
1. **Agent users and their keys.**
|
||||
- An admin creates an agent on Settings → Users → *New agent*. It has a
|
||||
name, a description, and the modules it's given, each *read* or
|
||||
|
||||
Reference in New Issue
Block a user