#148 DSL prompt flag for CLI

closed critical Created 2025-11-28 08:57 · Updated 2025-12-02 08:05

Description

Edit
we need `hwe dsl-prompt` command to stdout a proper comprehensive prompt how to generate valid highway workflow engine capable DSLs. an example is already in ~/develop/highway_dsl/app/AGENT_PROMPT.txt, however it has many flaws. many stuff like wait operator, branches, complex stuff is not covered. this must be done with a goal that it will give ALL a coding agent or a user needs to build a proper DSL with complex features. the output must be just python file, directly consumable by `hwe submit`, so this should be clear. look at the example, read the demos/ and api/dsl_templates/ and other areas, write a comprehensive text for the prompt and add it to command line. (check what we have now with `hwe dsl-prompt` how to test it: the follwoing should work without any issues feed the prompt to ollama (model: deepseek-v3.1:671b-cloud) , ask it to write a parallel operator with 10 second durable sleep, and submit it. it should run successfuly. any attemp to fix the output is not acceptable. this is the acceptance criteria for this issue second things that you MUST do is this: - read demo/v2.py - understand what it does - using the prompt, ask ollama to generate a similar workflow (at least the same complexity) - submit it - wait for results - confirm all is expected - if not, fix/update the prompt and go back to step 3 ULTIMATE TEST (MUST PASS): 1- submit and check correctness of all workflows located in workflows/ directory 2 Ask ollama to generate workflows like that for each one of those 3-submit the generate workflow 4- check if it's correct. if any issues, update prompt with more information and then go back to step 2. iterate until all is good. final test: ok, let's test it. ask the ollama to use the prompt and generate the following workflow: - a task will cleanup /tmp/final-output.txt, /tmp/branch-1/ and /tmp/branch-2 (if exists) - a parallel workflow with 50 parallel tasks, in two branches: -first branch has 25 concurrent tasks: each task generate a uuid, then write taskid (b1-1 or b1-2 or b1-3 .. or b1-25) to /tmp/branch-1/<uuid>.txt - second branch has 25 concurrent tasks: each task generate a uuid, then write taskid (b2-1 or b2-2 or b2-3 .. or b2-25) to /tmp/branch-2/<uuid>.txt - a task will wait for all of those to finsih - another task after this will go to sleep for 10 seconds. (durable sleep) - anotehr task will read all the txt files from /tmp/branch-1 and /tmp/branch-2 and cat it into a single output (/tmp/final-output.txt) - a final task will read /tmp/fiinal-output.txt and will email it to "farsheed.ashouri@gmail.com" with subject: prompt test workflow result - workflow will finish it the prompt should powerful enough to get this task done, it should be familar with the branching, waiting, durable sleep, email tool, etc. if it fails, you need to fix the prompt and try it again. these must be pass before closing this issue. DO NOT CLOSE IT until all is done.

Comments

Loading comments...

Context

Loading context...

Audit History

View All
Loading audit history...