Skip to content

Proposal: Review-gated automation definition changes #578

Open

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.operations lists what a client may currently do (update, remove, run), and a host can withhold update, 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 running until someone happens to look.

Proposal

  1. Proposed changes on the entry. AutomationEntry gains proposedChanges, oldest first. Each has a client- or host-chosen id, the proposed changes (an AutomationDefinitionPatch), an optional description (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.
  2. Operations and enforcement. AutomationOperation, which is @nonexhaustive, gains propose (may submit proposed changes) and review (may approve or reject them). Which principals need review is host policy, surfaced through operations as permissions already are, and the host enforces it on every path: a principal whose changes need review doesn't get update, the host rejects automation/updateRequested from that principal, and host tools that change definitions apply the same policy.
  3. 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 as automation/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 having review.
  4. 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 with rejectionReason, and the proposal stays on the entry, where clients can show it as stale by comparing base with the current definition. The proposer can then propose again against the current definition.
  5. 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-entry operations already 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 propose or review see the same operations they see today, minus update where the host requires review. That is already a valid state.
  • AutomationOperation is @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

  1. 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?
  2. Should an entry allow several open proposals that touch the same field, or only one open proposal at a time?
  3. Should every subscriber see proposed changes, or only reviewers?
  4. Should a reviewer be able to approve with modifications, or should they reject and propose again?

Related proposals (none required)

Activity

  1. added
    feature-request
    on Nov 6, 2026
  2. connor4312 commented on Nov 13, 2026

    @connor4312
    Member

    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.

  3. added
    info-needed
    under-discussion
    on Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requestinfo-neededunder-discussion

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions