action

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2026 License: MIT Imports: 31 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package action exposes graph-native, independently rewritable authority and tool-execution elements over the repository's proven action, computer-use, and trajectory contracts.

Model output enters this package only as a proposal. A proposal must join canonical provenance, resolve against a deployment-owned declaration, satisfy confirmation, pass a target fence, and enter the irreversibility ledger before the sole external-effect element can dispatch it. No one node owns all of those decisions.

Index

Constants

View Source
const (
	ToolRegistryService         = "action.tool.registries"
	ConfirmationRegistryService = "action.confirmation.providers"
	TargetRegistryService       = "action.target.registries"
	LedgerRegistryService       = "action.ledger.registries"
	TrajectoryStoreService      = "action.trajectory.store"
)
View Source
const (
	ClientToolResultRendezvousService = "action.client-tool-result.rendezvous"
)

Variables

View Source
var ErrClientToolResultNotAccepted = errors.New("client tool result not accepted")

ErrClientToolResultNotAccepted certifies that Submit did not deliver any result bytes, so a corrected request may retry the same scoped call.

Functions

func ActionArbiterDescriptor

func ActionArbiterDescriptor() element.Descriptor

ActionArbiterDescriptor selects the first completely admitted action for one canonical observation across two or more independently activated cognition lanes. Candidate evidence lets it cancel a slower lane even before that lane emits a proposal; only the selected admitted action can reach tool lookup.

func AdmittedType

func AdmittedType() element.Type

func AuditType

func AuditType() element.Type

func AuthorizedCallCommitDescriptor

func AuthorizedCallCommitDescriptor() element.Descriptor

AuthorizedCallCommitDescriptor is the mandatory canonical promotion between target authorization and irreversibility-ledger admission.

func AuthorizedType

func AuthorizedType() element.Type

func CandidateType

func CandidateType() element.Type

func CanonicalActionType

func CanonicalActionType() element.Type

func CanonicalResultType

func CanonicalResultType() element.Type

func ClientToolResultAcceptedType

func ClientToolResultAcceptedType() element.Type

func ClientToolResultDescriptor

func ClientToolResultDescriptor() element.Descriptor

func ClientToolResultDigest

func ClientToolResultDigest(result trajectory.ToolResult) string

ClientToolResultDigest binds exact bytes with a domain separator and length-prefixed fields, including the output-vs-error distinction.

func ClientToolResultJoinDescriptor

func ClientToolResultJoinDescriptor() element.Descriptor

func ClientToolResultType

func ClientToolResultType() element.Type

func CommittedType

func CommittedType() element.Type

func ConfirmationDescriptor

func ConfirmationDescriptor() element.Descriptor

func ConfirmedType

func ConfirmedType() element.Type

func DeclaredType

func DeclaredType() element.Type

func Descriptors

func Descriptors() []element.Descriptor

func DispatchDescriptor

func DispatchDescriptor() element.Descriptor

func ExecutableType

func ExecutableType() element.Type

func FactoryRegistrations

func FactoryRegistrations() ([]graphruntime.FactoryRegistration, error)

func InterruptType

func InterruptType() element.Type

func LedgerCommitDescriptor

func LedgerCommitDescriptor() element.Descriptor

func NormalizeArgumentsDescriptor

func NormalizeArgumentsDescriptor() element.Descriptor

NormalizeArgumentsDescriptor is deliberately a separate graph element from lookup, admission, and dispatch. A composition opts into schema-directed normalization by inserting it; omitting it preserves the provider's exact proposal. It cannot grant action authority or dispatch an effect.

func OutcomeType

func OutcomeType() element.Type

func PreEffectTerminalType

func PreEffectTerminalType() element.Type

func ProposalAdmissionDescriptor

func ProposalAdmissionDescriptor() element.Descriptor

func ProposalType

func ProposalType() element.Type

func ProvenanceJoinDescriptor

func ProvenanceJoinDescriptor() element.Descriptor

ProvenanceJoinDescriptor derives authority provenance from an exact model proposal/result join. It never accepts a caller-authored authority claim.

func ProvenanceType

func ProvenanceType() element.Type

func RegisterDescriptors

func RegisterDescriptors(catalog *resolve.Catalog) error

func RegisterFactories

func RegisterFactories(registry *graphruntime.Registry) error

func RepetitionAdmissionDescriptor

func RepetitionAdmissionDescriptor() element.Descriptor

RepetitionAdmission is an optional graph policy boundary between argument normalization and confirmation. In protected mode it suppresses a semantic effect only after the same effect has a successful canonical result under the same durable user intent. The result is recorded before being forwarded, serializing replay memory ahead of downstream consequence handling.

func ResolutionType

func ResolutionType() element.Type

func ResultType

func ResultType() element.Type

func TargetFenceDescriptor

func TargetFenceDescriptor() element.Descriptor

func ToolAdmissionDescriptor

func ToolAdmissionDescriptor() element.Descriptor

ToolAdmission is an optional, explicit policy boundary over exact declared tool names. A suppressed proposal terminates before Dispatch and emits a typed terminal so an upstream activation policy can release or replay newer observations without fabricating a ToolResult for an effect that never ran.

func ToolLookupDescriptor

func ToolLookupDescriptor() element.Descriptor

func ToolResultCommitDescriptor

func ToolResultCommitDescriptor() element.Descriptor

ToolResultCommitDescriptor closes the canonical call/result lifecycle after dispatch. External completion is not model context until this commit lands.

func TransitionType

func TransitionType() element.Type

Types

type ActionArbiterConfig

type ActionArbiterConfig struct {
	MaxPending     int `json:"max_pending,omitempty"`
	TerminalMemory int `json:"terminal_memory,omitempty"`
}

ActionArbiterConfig bounds the observation-scoped race between independently admitted action lanes. MaxPending counts observation groups that have not yet produced a complete admitted action; TerminalMemory retains completed group identities so delayed loser output cannot reopen an effect path.

type AdmittedProposal

type AdmittedProposal struct {
	Proposal                 cognitionelements.ToolProposal `json:"proposal"`
	ProposalItemID           string                         `json:"proposal_item_id"`
	CandidateItemID          string                         `json:"candidate_item_id"`
	ResultItemID             string                         `json:"result_item_id"`
	ModelRunID               string                         `json:"model_run_id"`
	SessionID                string                         `json:"session_id"`
	ActivationItemID         string                         `json:"activation_item_id"`
	ActivationCauseItemID    string                         `json:"activation_cause_item_id"`
	Authority                trajectory.Authority           `json:"authority"`
	AuthorityItemID          string                         `json:"authority_item_id"`
	ObservationTriggerItemID string                         `json:"observation_trigger_item_id"`
	SourceRevision           uint64                         `json:"source_revision"`
	ContextVersion           uint64                         `json:"context_version"`
	ContextEnvelopeItemID    string                         `json:"context_envelope_item_id"`
	ContextTailItem          string                         `json:"context_tail_item"`
	ContextExtended          bool                           `json:"context_extended,omitempty"`
	ProviderReference        string                         `json:"provider_reference"`
	ModelResultDigest        string                         `json:"model_result_digest"`
	ModelProducer            trajectory.Producer            `json:"model_producer"`
}

type ArgumentNormalization

type ArgumentNormalization struct {
	Rewrites                 []ArgumentRewrite `json:"rewrites"`
	OriginalArgumentsDigest  string            `json:"original_arguments_digest"`
	EffectiveArgumentsDigest string            `json:"effective_arguments_digest"`
	RegistryReference        string            `json:"registry_reference"`
	RegistryDigest           string            `json:"registry_digest"`
	DeclarationDigest        string            `json:"declaration_digest"`
}

ArgumentNormalization is evidence that an explicit graph element derived EffectiveCall from the exact admitted model proposal under the immutable tool declaration. Omission means the model proposal is used byte-for-byte.

type ArgumentRewrite

type ArgumentRewrite struct {
	Argument   string `json:"argument"`
	Normalizer string `json:"normalizer"`
}

ArgumentRewrite records one schema-authorized deterministic transformation. The value itself is not duplicated in audit evidence; the before/after argument digests bind it without exposing potentially sensitive identifiers.

type AuditRecord

type AuditRecord struct {
	CallID             string               `json:"call_id"`
	Name               string               `json:"name"`
	ProposalItemID     string               `json:"proposal_item_id"`
	ModelRunID         string               `json:"model_run_id"`
	SessionID          string               `json:"session_id,omitempty"`
	CommitmentID       string               `json:"commitment_id"`
	Authority          trajectory.Authority `json:"authority"`
	AuthorityItemID    string               `json:"authority_item_id"`
	Confirmation       legacyaction.Confirm `json:"confirmation"`
	Target             string               `json:"target,omitempty"`
	RegistryReference  string               `json:"registry_reference"`
	DeclarationDigest  string               `json:"declaration_digest"`
	DispatcherIdentity string               `json:"dispatcher_identity"`
	ProviderReference  string               `json:"provider_reference"`
	ModelResultDigest  string               `json:"model_result_digest"`
	ModelProducer      trajectory.Producer  `json:"model_producer"`
	Crossed            bool                 `json:"crossed"`
	Executed           bool                 `json:"executed"`
	ResultError        string               `json:"result_error,omitempty"`
	StartedNS          uint64               `json:"started_ns"`
	FinishedNS         uint64               `json:"finished_ns"`
}

type AuthorizedAction

type AuthorizedAction struct {
	Confirmed       ConfirmedAction `json:"confirmed"`
	TargetReference string          `json:"target_reference"`
	TargetDigest    string          `json:"target_digest"`
}

type CanonicalAction

type CanonicalAction struct {
	Authorized       AuthorizedAction `json:"authorized"`
	ProposalItemID   string           `json:"proposal_item_id"`
	TrajectoryItemID string           `json:"trajectory_item_id"`
	StoreVersion     uint64           `json:"store_version"`
}

CanonicalAction proves that an authorized action was promoted from the exact canonical model proposal into a trajectory tool_call safe point. The distinct port type prevents TargetFence output from bypassing this commit.

type CanonicalResult

type CanonicalResult struct {
	Execution        ExecutionResult `json:"execution"`
	TrajectoryItemID string          `json:"trajectory_item_id"`
	StoreVersion     uint64          `json:"store_version"`
}

CanonicalResult attests the trajectory safe point containing a dispatch result. Consumers can sample the matching snapshot without racing a merely completed external call that has not entered canonical state yet.

type ClientToolResultAccepted

type ClientToolResultAccepted struct {
	Receipt       ClientToolResultReceipt `json:"receipt"`
	IngressItemID string                  `json:"ingress_item_id"`
}

ClientToolResultAccepted is graph-visible evidence for the exact stable API ingress item. A later Join must match it before CompletionReturned can reach ToolResultCommit.

type ClientToolResultCanonical

type ClientToolResultCanonical struct {
	Receipt                   ClientToolResultReceipt `json:"receipt"`
	CanonicalEnvelopeItemID   string                  `json:"canonical_envelope_item_id"`
	CanonicalTrajectoryItemID string                  `json:"canonical_trajectory_item_id"`
	StoreVersion              uint64                  `json:"store_version"`
}

ClientToolResultCanonical is the later durable safe-point evidence. Submit success is not reported to the stable API as durable completion.

type ClientToolResultReceipt

type ClientToolResultReceipt struct {
	ID                  string `json:"id"`
	SessionID           string `json:"session_id"`
	RunID               string `json:"run_id"`
	CallID              string `json:"call_id"`
	Name                string `json:"name"`
	CommitmentID        string `json:"commitment_id"`
	CanonicalCallItemID string `json:"canonical_call_item_id"`
	ResultDigest        string `json:"result_digest"`
}

ClientToolResultReceipt is deployment-owned admission evidence returned by a session-scoped rendezvous. CommitmentID and CanonicalCallItemID bind the client bytes to the exact ledger-authorized call later presented to Join.

type ClientToolResultRendezvous

type ClientToolResultRendezvous interface {
	SubmitToolResult(context.Context, string, string, trajectory.ToolResult) (ClientToolResultReceipt, error)
	WaitToolResultCanonical(context.Context, ClientToolResultReceipt) (ClientToolResultCanonical, error)
}

ClientToolResultRendezvous is supplied by a session-scoped transport plugin. Submit is the atomic linearization point: it either returns NotAccepted without delivery, or returns an exact receipt even if its caller context races after acceptance. Wait must honor mount-owned context cancellation.

type CommittedAction

type CommittedAction struct {
	Executable ExecutableAction `json:"executable"`
	CrossedNS  uint64           `json:"crossed_ns"`
}

type CompletionOrigin

type CompletionOrigin string

CompletionOrigin is ledger-authenticated dispatch evidence. Returned means the selected dispatcher supplied the terminal ToolResult; DispatcherError means Dispatch synthesized the ToolResult from the dispatcher's returned error (including cancellation after the external boundary was crossed). Profiles that accept client tool results can therefore require an explicit graph ingress attestation only for bytes claimed to have been returned.

const (
	CompletionReturned        CompletionOrigin = "returned"
	CompletionDispatcherError CompletionOrigin = "dispatcher_error"
)

type ConfirmationConfig

type ConfirmationConfig struct {
	Provider   string `json:"provider"`
	MaxPending int    `json:"max_pending,omitempty"`
}

type ConfirmationProvider

type ConfirmationProvider interface {
	legacyaction.Confirmer
	Name() string
}

ConfirmationProvider extends the existing confirmer behavior with one stable live identity. io.Closer is honored when implemented.

type ConfirmationProviderFactory

type ConfirmationProviderFactory func() (ConfirmationProvider, error)

type ConfirmationProviderFunc

type ConfirmationProviderFunc struct {
	Identity string
	Function func(context.Context, legacyaction.ConfirmationRequest) (bool, error)
}

func (ConfirmationProviderFunc) Confirm

func (ConfirmationProviderFunc) Name

func (provider ConfirmationProviderFunc) Name() string

type ConfirmationProviders

type ConfirmationProviders struct {
	// contains filtered or unexported fields
}

func NewConfirmationProviders

func NewConfirmationProviders() *ConfirmationProviders

func (*ConfirmationProviders) Register

func (providers *ConfirmationProviders) Register(
	reference, identity string, factory ConfirmationProviderFactory,
) error

type ConfirmedAction

type ConfirmedAction struct {
	Declared               DeclaredAction `json:"declared"`
	ConfirmationNeeded     bool           `json:"confirmation_needed"`
	ProviderReference      string         `json:"provider_reference,omitempty"`
	ProviderIdentity       string         `json:"provider_identity,omitempty"`
	ConfirmationCapability string         `json:"confirmation_capability,omitempty"`
}

type DeclaredAction

type DeclaredAction struct {
	Admitted           AdmittedProposal       `json:"admitted"`
	EffectiveCall      *trajectory.ToolCall   `json:"effective_call,omitempty"`
	Normalization      *ArgumentNormalization `json:"argument_normalization,omitempty"`
	Confirmation       legacyaction.Confirm   `json:"confirmation"`
	Target             string                 `json:"target,omitempty"`
	Background         bool                   `json:"background,omitempty"`
	RegistryReference  string                 `json:"registry_reference"`
	RegistryDigest     string                 `json:"registry_digest"`
	DeclarationDigest  string                 `json:"declaration_digest"`
	DispatcherIdentity string                 `json:"dispatcher_identity,omitempty"`
}

type DispatchConfig

type DispatchConfig struct {
	Registry     string `json:"registry"`
	Ledger       string `json:"ledger"`
	MaxPending   int    `json:"max_pending,omitempty"`
	MaxCompleted int    `json:"max_completed,omitempty"`
}

type DispatchContext

type DispatchContext struct {
	SessionID           string
	RunID               string
	CommitmentID        string
	CanonicalCallItemID string
}

DispatchContext is immutable graph authority attached by action.Dispatch to the context passed to every deployment-selected Dispatcher. It lets a dispatcher correlate provider-local call IDs without falling back to a process- or session-global CallID namespace.

func DispatchContextFromContext

func DispatchContextFromContext(ctx context.Context) (DispatchContext, bool)

DispatchContextFromContext returns the exact graph authority attached at the irreversible dispatch boundary. A false result means the caller did not come through action.Dispatch and must not be treated as graph-authorized.

type ExecutableAction

type ExecutableAction struct {
	Canonical       CanonicalAction `json:"canonical"`
	LedgerReference string          `json:"ledger_reference"`
	LedgerIdentity  string          `json:"ledger_identity"`
	CommitmentID    string          `json:"commitment_id"`
	Capability      string          `json:"capability"`
}

ExecutableAction is the typed authority accepted by Dispatch. Capability is an HMAC minted by LedgerCommit from deployment-owned state; runtime payload forgery therefore cannot bypass the graph's nominal type boundary.

type ExecutionResult

type ExecutionResult struct {
	Executable       ExecutableAction      `json:"executable"`
	ResultCapability string                `json:"result_capability"`
	CompletionOrigin CompletionOrigin      `json:"completion_origin"`
	CallID           string                `json:"call_id"`
	Name             string                `json:"name"`
	CommitmentID     string                `json:"commitment_id"`
	Result           trajectory.ToolResult `json:"result"`
	CrossedNS        uint64                `json:"crossed_ns"`
	FinishedNS       uint64                `json:"finished_ns"`
}

type Interrupt

type Interrupt struct {
	CallID string `json:"call_id,omitempty"`
	Reason string `json:"reason,omitempty"`
}

Interrupt is addressed by an explicit call ID and the containing envelope's non-empty session and cognition-run identities. Cancel and timeout use distinct graph ports even though they share this payload, keeping their policy paths independently inspectable and preventing a provider-local call ID from canceling another session or invocation.

type LedgerCommitConfig

type LedgerCommitConfig struct {
	Ledger     string `json:"ledger"`
	MaxPending int    `json:"max_pending,omitempty"`
}

type LedgerRegistries

type LedgerRegistries struct {
	// contains filtered or unexported fields
}

func NewLedgerRegistries

func NewLedgerRegistries() *LedgerRegistries

func (*LedgerRegistries) Register

func (registries *LedgerRegistries) Register(reference string, ledger *legacyaction.Ledger) error

type LedgerTransition

type LedgerTransition struct {
	CallID       string             `json:"call_id"`
	CommitmentID string             `json:"commitment_id"`
	State        legacyaction.State `json:"state"`
	Crossed      bool               `json:"crossed"`
	Reason       string             `json:"reason,omitempty"`
	AtNS         uint64             `json:"at_ns"`
}

type NormalizeArgumentsConfig

type NormalizeArgumentsConfig struct{}

type Outcome

type Outcome struct {
	Kind                      OutcomeKind `json:"kind"`
	Stage                     string      `json:"stage"`
	Operation                 string      `json:"operation"`
	CallID                    string      `json:"call_id,omitempty"`
	Code                      string      `json:"code,omitempty"`
	Message                   string      `json:"message,omitempty"`
	Crossed                   bool        `json:"crossed,omitempty"`
	StartedNS                 uint64      `json:"started_ns,omitempty"`
	FinishedNS                uint64      `json:"finished_ns,omitempty"`
	ResultDigest              string      `json:"result_digest,omitempty"`
	IngressItemID             string      `json:"ingress_item_id,omitempty"`
	AcceptedItemID            string      `json:"accepted_item_id,omitempty"`
	CanonicalEnvelopeItemID   string      `json:"canonical_envelope_item_id,omitempty"`
	CanonicalTrajectoryItemID string      `json:"canonical_trajectory_item_id,omitempty"`
	CanonicalStoreVersion     uint64      `json:"canonical_store_version,omitempty"`
}

func (Outcome) InspectionCause

func (Outcome) InspectionCause() element.InspectionCauseKind

func (Outcome) InspectionDecision

func (outcome Outcome) InspectionDecision() element.InspectionDecision

InspectionDecision deliberately projects only closed categorical outcome evidence. Call/session/run identities, codes, messages, digests, provider values, and payload-derived timestamps never enter live inspection.

type OutcomeKind

type OutcomeKind string
const (
	OutcomeSucceeded OutcomeKind = "succeeded"
	OutcomeRejected  OutcomeKind = "rejected"
	OutcomeDenied    OutcomeKind = "denied"
	OutcomeCanceled  OutcomeKind = "canceled"
	OutcomeTimedOut  OutcomeKind = "timed_out"
	OutcomeFailed    OutcomeKind = "failed"
	OutcomeIgnored   OutcomeKind = "ignored"
)

type PreEffectTerminal

type PreEffectTerminal struct {
	Kind   PreEffectTerminalKind `json:"kind"`
	CallID string                `json:"call_id"`
}

PreEffectTerminal is a typed, non-result terminal decision made before an external effect crosses the dispatch boundary. Consumers must not fabricate a ToolResult for this decision: no tool ran and no visual consequence will arrive. The containing envelope supplies the session and cognition-run identities; CallID addresses the exact proposal within that run.

type PreEffectTerminalKind

type PreEffectTerminalKind string
const (
	PreEffectRepetitionSuppressed PreEffectTerminalKind = "repetition_suppressed"
	PreEffectToolPolicySuppressed PreEffectTerminalKind = "tool_policy_suppressed"
)

type ProposalAdmissionConfig

type ProposalAdmissionConfig struct {
	MaxPending  int  `json:"max_pending,omitempty"`
	AllowSystem bool `json:"allow_system,omitempty"`
}

type Provenance

type Provenance struct {
	CallID                   string              `json:"call_id"`
	ProposalItemID           string              `json:"proposal_item_id"`
	CandidateItemID          string              `json:"candidate_item_id"`
	ResultItemID             string              `json:"result_item_id"`
	ModelRunID               string              `json:"model_run_id"`
	SessionID                string              `json:"session_id"`
	ActivationItemID         string              `json:"activation_item_id"`
	ActivationCauseItemID    string              `json:"activation_cause_item_id"`
	ObservationItemID        string              `json:"observation_item_id"`
	ObservationTriggerItemID string              `json:"observation_trigger_item_id"`
	SourceRevision           uint64              `json:"source_revision"`
	ContextVersion           uint64              `json:"context_version"`
	ContextEnvelopeItemID    string              `json:"context_envelope_item_id"`
	ContextTailItem          string              `json:"context_tail_item"`
	ContextExtended          bool                `json:"context_extended,omitempty"`
	ProviderReference        string              `json:"provider_reference"`
	ModelResultDigest        string              `json:"model_result_digest"`
	ModelProducer            trajectory.Producer `json:"model_producer"`
}

Provenance identifies canonical trajectory evidence for one proposal. The authority is deliberately not supplied here: ProposalAdmission derives it from the deployment-owned trajectory, so observed screen text cannot label itself as user-authoritative.

type ProvenanceJoinConfig

type ProvenanceJoinConfig struct {
	MaxPending     int `json:"max_pending,omitempty"`
	TerminalMemory int `json:"terminal_memory,omitempty"`
}

type RepetitionAdmissionConfig

type RepetitionAdmissionConfig struct {
	Mode              RepetitionAdmissionMode `json:"mode,omitempty"`
	RepeatableTools   []string                `json:"repeatable_tools,omitempty"`
	MaxTrackedEffects int                     `json:"max_tracked_effects,omitempty"`
}

RepetitionAdmissionConfig selects whether semantically identical successful effects remain admissible under one durable user-authority observation. Compatibility defaults to allow. RepeatableTools are explicit exceptions; MaxTrackedEffects bounds retained successful-effect identities.

type RepetitionAdmissionMode

type RepetitionAdmissionMode string
const (
	RepetitionAdmissionAllow                               RepetitionAdmissionMode = "allow"
	RepetitionAdmissionAtMostOnceAfterSuccessPerUserIntent RepetitionAdmissionMode = "at_most_once_after_success_per_user_intent"
)

type Resolution

type Resolution struct {
	Stage           string `json:"stage"`
	Reference       string `json:"reference"`
	Identity        string `json:"identity"`
	Digest          string `json:"digest,omitempty"`
	ServiceRevision uint64 `json:"service_revision"`
}

Resolution is live startup evidence. Digest binds immutable selected deployment data; ServiceRevision binds the deployment service generation.

type TargetFenceConfig

type TargetFenceConfig struct {
	Target string `json:"target"`
}

type TargetRegistries

type TargetRegistries struct {
	// contains filtered or unexported fields
}

func NewTargetRegistries

func NewTargetRegistries() *TargetRegistries

func (*TargetRegistries) Register

func (registries *TargetRegistries) Register(reference string, target computeruse.Target) error

type ToolAdmissionConfig

type ToolAdmissionConfig struct {
	AllowedTools []string `json:"allowed_tools,omitempty"`
	DeniedTools  []string `json:"denied_tools,omitempty"`
}

ToolAdmissionConfig is a static, graph-authored action-surface policy over deployment-declared tool names. An empty allow list admits every name not in DeniedTools; a non-empty allow list admits only its members, still subject to the deny list. This boundary controls which proposals may become effects; it does not mutate the deployment registry or the provider-facing declaration.

type ToolLookupConfig

type ToolLookupConfig struct {
	Registry string `json:"registry"`
}

type ToolRegistries

type ToolRegistries struct {
	// contains filtered or unexported fields
}

ToolRegistries is deployment-owned immutable action surface selection. A registration snapshots the existing action.ToolSpec contract; later mutation of a legacy Registry cannot silently change a mounted graph.

func NewToolRegistries

func NewToolRegistries() *ToolRegistries

func (*ToolRegistries) Register

func (registries *ToolRegistries) Register(reference string, specs []legacyaction.ToolSpec) error

func (*ToolRegistries) RegisterLegacy

func (registries *ToolRegistries) RegisterLegacy(reference string, registry *legacyaction.Registry) error

type TrajectoryCommitConfig

type TrajectoryCommitConfig struct {
	MaxPending     int `json:"max_pending,omitempty"`
	TerminalMemory int `json:"terminal_memory,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL