MCPcopy Create free account
hub / github.com/compozy/agh / nativeAutonomyForeignRunTaskError

Function nativeAutonomyForeignRunTaskError

internal/daemon/native_tools.go:4533–4542  ·  view source on GitHub ↗
(id toolspkg.ToolID, taskID string, runID string)

Source from the content-addressed store, hash-verified

4531}
4532
4533func nativeAutonomyForeignRunTaskError(id toolspkg.ToolID, taskID string, runID string) error {
4534 message := fmt.Sprintf("run %q is not leased for task %q", strings.TrimSpace(runID), strings.TrimSpace(taskID))
4535 return toolspkg.NewToolError(
4536 toolspkg.ErrorCodeDenied,
4537 id,
4538 message,
4539 fmt.Errorf("%w: %s", toolspkg.ErrToolDenied, message),
4540 toolspkg.ReasonAutonomyForeignRun,
4541 )
4542}
4543
4544func nativeSessionTaskRecoverDenied(id toolspkg.ToolID) error {
4545 return toolspkg.NewToolError(

Callers 1

nativeTaskLeaseActorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected