Repository navigation
Open
Labels
feature-requestRequest for new features or functionalityinfo-neededIssue requires more information from posterunder-discussionIssue is under discussion for relevance, priority, approach
Description
Tracked in #568. This proposal stands on its own and doesn't depend on the others tracked there.
Summary
Every authorized automation/updateRequested takes effect immediately. Some changes should wait for a person first: an agent improving its own automation, or a change to an automation that can write to a repository in an organization that requires review.
This proposal lets a definition change exist as a proposed change on the catalogue entry until someone allowed to review approves or rejects it. Proposed changes are visible to every client, and approving one applies it exactly as an update would.
Scenarios
- Agents that improve themselves under supervision. After a run, an agent decides its automation's prompt should be sharper, or that it needs another trigger. A person approves the change before it takes effect, and the run doesn't sit blocked waiting for that approval.
- Governed automations. An organization requires review before anyone changes an automation that can push to a repository.
- Suggestions. A teammate proposes a fix to an automation they can see but don't own.
AHP today
AutomationEntry.operationslists what a client may currently do (update,remove,run), and a host can withholdupdate, for example for policy-managed automations. There's nothing in between: a client either changes the definition immediately or can't change it at all.- An agent that changes its own automation through a host tool either applies the change immediately, or asks for a tool confirmation in its run session. A confirmation keeps an unattended run
runninguntil someone happens to look.
Proposal
- Proposed changes on the entry.
AutomationEntrygainsproposedChanges, oldest first. Each has a client- or host-chosenid, the proposedchanges(anAutomationDefinitionPatch), an optionaldescription(for example, an agent's rationale),proposedAt, and an optional display identity for the proposer. A proposed change is immutable: to revise one, propose a new change. - Operations and enforcement.
AutomationOperation, which is@nonexhaustive, gainspropose(may submit proposed changes) andreview(may approve or reject them). Which principals need review is host policy, surfaced throughoperationsas permissions already are, and the host enforces it on every path: a principal whose changes need review doesn't getupdate, the host rejectsautomation/updateRequestedfrom that principal, and host tools that change definitions apply the same policy. - Actions. Two client-dispatchable side-effect requests. Like the existing create and update requests, they leave state unchanged until the host publishes the result with
automation/set:- propose:
{ resource, id, changes, description? }. The host validates the change as it would an update, and captures any new or changed customizations from the proposing client at this point, so approval never depends on a reviewer being able to serve the proposer's plugins. - review:
{ resource, id, approve: boolean }. Approving applies exactly the reviewed change, using the copies captured when it was proposed, with the same validation and normalization asautomation/updateRequested. The host then removes the proposed change. Rejecting removes it without applying it. The proposer can also reject its own proposal, to withdraw it, without havingreview.
- propose:
- Stale proposals. Patches replace whole fields, so approving an old proposal could overwrite a newer edit to the same field. When it accepts a proposal, the host records the values of the fields the change replaces (its
base). If any of those fields has changed since, approval is rejected withrejectionReason, and the proposal stays on the entry, where clients can show it as stale by comparingbasewith the current definition. The proposer can then propose again against the current definition. - Host-originated proposals. Hosts may add proposed changes on behalf of agents, for example when a run's agent calls a host-provided tool to suggest a better prompt. The run finishes normally, and the change waits on the entry for review.
Sketch
Names and shapes are illustrative. The implementation PR settles them.
interface AutomationEntry {
// ...existing fields
/** Changes awaiting review, oldest first. */
proposedChanges?: AutomationProposedChange[];
}
interface AutomationProposedChange {
id: string;
changes: AutomationDefinitionPatch;
description?: string;
proposedAt: string;
proposedBy?: { id: string; displayName?: string };
/** Values, when proposed, of the fields `changes` replaces. Set by the host. */
base: AutomationDefinitionPatch;
}
/** @nonexhaustive — new members */
const enum AutomationOperation {
// ...existing members
Propose = 'propose',
Review = 'review',
}
/** @clientDispatchable */
interface AutomationChangeProposeRequestedAction {
type: 'automation/changeProposeRequested';
resource: URI;
id: string;
changes: AutomationDefinitionPatch;
description?: string;
}
/** @clientDispatchable */
interface AutomationChangeReviewRequestedAction {
type: 'automation/changeReviewRequested';
resource: URI;
id: string;
approve: boolean;
}Why this shape
- It follows the catalogue's existing authoring model. State lives on the entry, requests are side-effect actions, and the host publishes results with
automation/set. Per-entryoperationsalready exist to express permissions that vary by automation. - It's a familiar AHP pattern. A pending decision that lives in state and is resolved by a client action is how tool confirmations and input requests already work. The difference is that this one lives on the catalogue entry, so it doesn't block a run.
- Policy stays with the host. The protocol doesn't define who must be reviewed. It only carries the result: who may propose, who may review, and what is pending.
Compatibility
- Additive. Clients that don't know
proposeorreviewsee the sameoperationsthey see today, minusupdatewhere the host requires review. That is already a valid state. AutomationOperationis@nonexhaustive.
Out of scope
- Approval workflows with several approvers or quorums.
- How agents decide to propose changes, and the host tools they use.
Open questions
- Should a definition be able to opt in, for example "changes by anyone other than the owner need review"? Or is this always host policy?
- Should an entry allow several open proposals that touch the same field, or only one open proposal at a time?
- Should every subscriber see proposed changes, or only reviewers?
- Should a reviewer be able to approve with modifications, or should they reject and propose again?
Related proposals (none required)
- Definition revisions (Proposal: Automation definition revisions and run pinning #571): with revisions, a proposed change can also record the revision it was based on, and a host can reject stale approvals with the same precondition.
- Validate before saving (Proposal: Validate automation definitions before saving #577): reviewers can validate a proposed definition before approving it.
Metadata
Metadata
Labels
feature-requestRequest for new features or functionalityinfo-neededIssue requires more information from posterunder-discussionIssue is under discussion for relevance, priority, approach
Activity
connor4312 commentedon Nov 13, 2026
I don't think this lives in AHP. This and #571 start to reinvent version control and PR reviews. You say this proposal implements governance, but it doesn't really--anyone can self-propose and self-approve an action under this proposal. If you want a robust automations-to-cloud pipeline, you need a way to represent external approvals, review comments, CI checks, all sorts of things, the scope is limitless.
I think the way to do this is have an agent host which sources its automations from a git repo to which the necessary access control, versioning, review, and governance can be applied. I think it would be reasonable to have an agent host express that a certain repo/local or remote file is where things come from and that editing should happen by iterating on those files, but I think we should take a step back from trying to implement that whole flow in AHP.