Skip to content

Add workflow and schedule commands to lbctl - #79

Merged
RockChinQ merged 1 commit into
mainfrom
agent/sg-codex/5eaa3dac8f0d
Dec 2, 2026
Merged

RockChinQ merged 1 commit into
mainfrom
agent/sg-codex/5eaa3dac8f0d

Conversation

@RockChinQ

Copy link
Copy Markdown
Member

Adds 22 workflow and 12 schedule commands, workflow route binding, processor filters, and workflow parsing in monitoring watch/trace. Unknown execution sources no longer invalidate mixed pages. Updates all nine READMEs.

Live Core verification

Core feat/workflow at 79ed0d5d3, isolated loopback SQLite instance, in-tree SDK, plugins disabled. Output below is projected from JSON. $w, $t, $b, and $r are the created workflow, table, disabled bot and its private-chat route.

lbctl workflow create --file - --yes <<< '{"workflow_data":{"name":"LANG791"}}'  # workflow.uuid=$w, issues=[]
lbctl workflow list                           # workflows: 1
lbctl workflow get "$w"                       # ok: true
lbctl workflow test "$w" --file - --yes <<< '{"text":"hello"}'  # status: completed
lbctl workflow executions list "$w"           # total: 1, status: completed, trigger: test
lbctl workflow versions list "$w"             # versions: 1
lbctl workflow versions get "$w" 1            # ok: true
lbctl workflow table create --file - --yes <<< '{"name":"items","columns":[{"key":"label","type":"text"}]}' # table.uuid=$t
lbctl workflow table rows add "$t" --file - --yes <<< '{"values":{"label":"verified"}}' # ok: true
lbctl workflow table rows list "$t"           # total: 1, values.label: verified
lbctl schedule list                           # []
lbctl bot routes bind "$b" --binding "$r" --workflow "$w" --yes # binding.target_type: workflow, binding.target_uuid=$w
lbctl monitoring watch --bot "$b" --workflow "$w" --since 10m --timeout 2s --poll-interval 1s # 2 rounds, 0 retained

Outstanding integration check: Core's monitoring.executions only queries agent, pipeline and event sources at this revision (monitoring.py:1702). An unfiltered query returned total 0; monitoring.execution.detail with the workflow run ID and source: workflow returned HTTP 400. The successful simulated run is present in workflow.execution.list but is not associated with a bot. Repeat watch with a bot-triggered run once Core exposes workflow execution rows/details. The CLI watch regression exercises a workflow row mixed with an unknown source and verifies its filter and ledger state.

Co-authored-by: multica-agent <github@multica.ai>
@RockChinQ
RockChinQ merged commit b50e941 into main Dec 2, 2026
21 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant