-
Notifications
You must be signed in to change notification settings - Fork 2
Explore mediated Agent Spec Resource binding mutations #231
Copy link
Copy link
Closed
Labels
area:agent-specAgent Spec format, parsing, and the agent-spec crate · Set: manualAgent Spec format, parsing, and the agent-spec crate · Set: manualarea:catalogCatalog structure, declarations, transactions, and admission · Set: manualCatalog structure, declarations, transactions, and admission · Set: manualarea:resourceTyped Resource bindings and linked records · Set: manualTyped Resource bindings and linked records · Set: manualorigin:agentFiled or primarily produced by an AI agent · Set: manualFiled or primarily produced by an AI agent · Set: manualstate:open-design-questionUnresolved design choice requiring explicit alignment before implementation · Set: manualUnresolved design choice requiring explicit alignment before implementation · Set: manualtype:featureNew user-visible or system capability · Set: manualNew user-visible or system capability · Set: manual
Description
Metadata
Metadata
Assignees
Labels
area:agent-specAgent Spec format, parsing, and the agent-spec crate · Set: manualAgent Spec format, parsing, and the agent-spec crate · Set: manualarea:catalogCatalog structure, declarations, transactions, and admission · Set: manualCatalog structure, declarations, transactions, and admission · Set: manualarea:resourceTyped Resource bindings and linked records · Set: manualTyped Resource bindings and linked records · Set: manualorigin:agentFiled or primarily produced by an AI agent · Set: manualFiled or primarily produced by an AI agent · Set: manualstate:open-design-questionUnresolved design choice requiring explicit alignment before implementation · Set: manualUnresolved design choice requiring explicit alignment before implementation · Set: manualtype:featureNew user-visible or system capability · Set: manualNew user-visible or system capability · Set: manual
Problem
Changing one declared Resource binding on an existing Agent Spec currently requires callers to perform the full exact-byte publication protocol: render a complete candidate
agent.kdl, validate it, compute its digest, publish it with compare-and-swap, then read it back.st2 resource add|removemanages linked-reference records instead, andst2 agent publish --bundleis oriented toward creating a complete declaration rather than making a small binding change.This ceremony is safe but makes simple operations such as attaching one existing resource disproportionately difficult. Coordinating creation of resource material with the binding also lacks one mediated operation.
Design direction to explore
Provide a binding-specific command or API for one exact Agent Spec, for example:
The surface should:
A generic motivating flow should be one command that creates or verifies resource material and binds its URI to an existing agent, while retaining the same safety properties as manual Agent Spec publication.
Relationship to existing work
st2 resourcemanages linked references, not agent state #62 distinguishes link records from declared bindings.This issue is specifically about reducing authoring ceremony for small declared-binding mutations; it should not collapse bindings into linked records or weaken publication fencing.