Run-scoped control API after lifecycle v1 #120
stainlu
started this conversation in
Feature Request
Replies: 1 comment
-
|
after catching up with 0.6.x / #130, i think this can be narrower now. run listing / lookup / admin inspection exists. the missing bridge is basically: does an active run have a live abort controller? i’d probably split active abort into two layers:
then endpoint semantics can stay honest:
one question: does abort introduce i still would not put pause/resume/signal-state-machine in this first slice. just make “stop this run” real. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
opening the follow-up from #91 now that the v1 run lifecycle shipped.
imo the next control surface should stay run-scoped, not agent-scoped.
what exists now:
runIdrun_start/run_end+ monotonic eventsCallHandleabort viaAbortSignalflue logscan replay/tail a known runmissing bridge: once a webhook run is accepted, external code can observe it, but cannot ask the active run to stop.
rough v1 shape i would consider:
runId -> AbortControllerctx.signaloptions.signalPOST /agents/:name/:id/runs/:runId/abortwith optional{ reason }what i would not include yet:
SIGTERM/ pause / resume / agent state machinethat keeps the model pretty clean:
Session= durable conversation stateRun= observable execution recordAbortSignal= stop this active executionthis also seems like the right substrate for external managed-agent layers: they do not need Flue to become the managed-agent control plane, but they do need a reliable way to target and stop an active run.
question: does this feel like the right next v1 slice? or should the first PR only add
ctx.signal+ active run registry, and leave the HTTP abort endpoint for a second PR?Beta Was this translation helpful? Give feedback.
All reactions