Repository navigation
feat(mcp): add sub-step update, delete and reorder tools - #54
Merged
Merged
Conversation
Both tool surfaces could create sub-steps but never change them: an agent that named one wrong, or ordered a checklist badly, had to delete the whole step and rebuild it. Personal MCP gains update/delete/reorder_sub_step, the Aixle Builder gains meta_update_sub_step / meta_delete_sub_step. Deletion goes through SubStep#destroy, which soft-deletes once the sub-step has runs, so past run history stays readable. Reordering takes every sub-step id of the step and rejects a partial list — a silent partial reorder would leave positions the caller never chose. Existing environments need `rails db:seed` for the Builder workflow to pick up the two new meta tools; its tool_ids are seeded, not resolved per run. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Signed-off-by: Artem Petrov <[email protected]>
alex-astafyev
pushed a commit
to alex-astafyev/flow
that referenced
this pull request
Aug 19, 2026
* origin/develop: feat(personal-mcp): add connector catalog and registry-read tools (AixleHQ#55) fix(workflows): offer company assets in the workflow asset pickers (AixleHQ#56) feat(mcp): add sub-step update, delete and reorder tools (AixleHQ#54) feat(workflows): pick repositories and assets on a workflow step (AixleHQ#53)
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.
Why
Both tool surfaces could create sub-steps but never change them. An agent that named a sub-step wrong, or laid a checklist out in the wrong order, had to delete the whole step and rebuild it.
What
Personal MCP (
PersonalTools)update_sub_step— name / instructions / position / required. Empty field set is an error, matchingupdate_workflow_step.delete_sub_step— reportssoft_deletedso the caller knows whether history was kept.reorder_sub_steps— takes every sub-step id of the step; a partial list is rejected and names the missing ids, because a partial reorder would leave positions the caller never chose. No two-phase position parking here:sub_stepshas no unique index on(step_id, position), unlikesteps.find_sub_step!inPersonalTools::Basescopes the lookup to the step and to.active, so asub_step_idfrom another step returnsnot foundinstead of silently editing it.Aixle Builder (
InternalTools)meta_update_sub_step,meta_delete_sub_step, both broadcasting builder activity; the two new action labels are added to the session timeline inSessionPage.tsx.db/seeds/aixle_builder.rbattaches them to the Builder workflow.Deletion goes through
SubStep#destroy, which soft-deletes once the sub-step has runs, so past run history stays readable.Guides updated so the agents actually reach for the new tools: the personal-MCP workflow guide +
author_stepprompt, anddocs/design/meta-workflow.md.Deploy note
Existing environments need
rails db:seed— the Builder workflow'stool_idsare seeded, not resolved per run, so without it the Builder won't see the two new meta tools.Tests
personal_mcp_workflows_test.rb: create → update → read-back → delete round-trip, reorder incl. the partial-list rejection, soft-delete with an existing run, foreignsub_step_idrejection, empty update.meta_workflow_tools_test.rb: update (only named fields change), empty update, missing sub-step, hard vs soft delete.registry_test.rb,meta_tools_seed_test.rb,aixle_builder_controller_test.rb).make check_allgreen on this branch (backend 90.82%, frontend 78.31%).🤖 Generated with Claude Code