Story 3: Migrate 6 built-in flows + library search #13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Delete the 6 DAG-flavored built-in flows and re-seed as Python. Wire up the flow library so Service Agent v3 consults it before generating fresh code.
Parent epic: #10
Depends on: Story 1 (#11) for the Python executor; can run in parallel with Story 2
Scope
Migrate the 6 built-ins to Python
Each becomes a
.pyfile bundled in the hero_logic crate (asinclude_str!("../templates/<name>.py")) and seeded at startup the same way today's JSON templates are.Service Agent v3— ~60 lines, was 7-node DAG (run_agent, fetch_catalog, select_services, etc)Optimize Flow— ~150 lines, was 6-node DAGBenchmark Flow— ~80 lines, was 4-node DAG (usesasyncio.gatherfor parallel N-runs)Visual QA— ~30 lines, was 2-node DAGE2E UX Test— ~50 lines, was 4-node DAGWhiteboard Smoke Test— ~60 lines, was 4-node DAGAll use
@flow(...)+with flow.step(...)+ the generated clients (no hand-rolled JSON-RPC).Delete the old
.jsonfiles +seed.rs's JSON-reading path.Flow library search
LogicService.flow_library_search(query: str, limit: u32) -> [str]— returns sidsAgent integration
flow_library_search(task_description)play_run_asyncDelete
templates/*.json(all 6 files)include_str!lines inseed.rsfor JSON templatesworkflow_from_template/template_listmethods (already deprecated but confirm removal)Done when
flow_library_search("screenshot a page")returns Visual QA as top hitEstimate: ~1 week
Can run in parallel with Story 2.