Add agent job execution via invoke_agent_step and ticker-echo test agent#114
Merged
nicnocquee merged 3 commits intomainfrom Mar 20, 2026
Merged
Add agent job execution via invoke_agent_step and ticker-echo test agent#114nicnocquee merged 3 commits intomainfrom
nicnocquee merged 3 commits intomainfrom
Conversation
…or controlled agent invocations and status updates. Update README and documentation to reflect changes. Add Prisma migrations for new scheduleExecutionId and enqueuing status in AgentJobExecution model.
…nfiguration and TypeScript support. Include README, tests, and Turbo configuration for build tasks.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements execution of scheduled agent steps by enqueuing one
invoke_agent_stepjob per expanded input set fromcheck_schedules, and adds a minimalticker-echoagent for local scheduler testing. The worker runs each job, calls the agent HTTP endpoint, and updatesAgentJobExecutionstatus (running / failed). Schedule executions get anenqueuingstatus and are linked to job executions viascheduleExecutionId.Important changes
invoke_agent_stepjob handler; invokes agent via HTTP, updatesAgentJobExecution(running on start, failed on error).check_schedulesnow enqueues oneinvoke_agent_stepper expanded input set viaenqueueAgentJobcallback.executeScheduleacceptsenqueueAgentJob; createsAgentJobExecutionrows and enqueues payloads (jobId, executionId, scheduleExecutionId, endpoint, body, timeoutMs). Schedule execution status set toenqueuingwhile jobs are enqueued; final status (success/partial/failed) still derived from job outcomes.AgentJobExecutiongainsscheduleExecutionIdand relation toScheduleExecution.ScheduleExecutionStatusgainsenqueuing. Migration adds column and relation.apps/agents/ticker-echo; acceptstickerIdinput, logs it, returns success. Used for local testing with hermes-worker (env via@workspace/envagents-ticker-echo, README and tests included).Other changes
JobPayloadMapand job-payload-map includeinvoke_agent_steppayload type.env.agents.ticker-echo.example).How to test
pnpm db:migrate:dev(or equivalent) soschedule_execution_idandenqueuingexist.pnpm --filter ticker-echo-agent dev. Use.env.localwithALLOW_ANY_BEARER_FOR_LOCAL=trueand same bearer in hermes-worker’sAGENT_API_KEY.ticker-echo@1.0.0with endpointhttp://localhost:4010, create a pipeline with one step (ticker-echo, input e.g.{ "tickerId": "{{tickerId}}" }), and create a schedule (or run pipeline once).check_schedulesruns, confirminvoke_agent_stepjobs are enqueued and processed, ticker-echo logs show receivedtickerId, andAgentJobExecutionrows move to running then completed (or failed on error).pnpm code-quality(including hermes-worker and hermes-scheduler and ticker-echo tests).