ARMARA Course 04

Course 04 / Module 08

TRACK B: chain steps into a repeatable recipe

Read a real workflow shape, connect its step fields, and stop honestly when the controlled create path rejects valid-looking files.

Level
Intermediate
Time
18 minutes
Commands
6
Finish
A preserved workflow boundary

Video / coming soon

The written lesson is complete now.

Use a uniquely named JSON file

The existing Email King workflow is user state and remains untouched. The course files live under reference and are the recovery copies.

Use Windows paths in PowerShell.
01

Choose the Track B file fork

Track A may skip this module.

Missions remain the file-free multi-agent route.

02

Separate recipe, goal, and clock

MechanismMeaning
WorkflowFixed ordered recipe.
MissionGoal the agent plans.
CronClock that can start work.
03

Read existing state without changing it

Run in your terminal
armaraos workflow list
armaraos workflow get <EXISTING_ID>
Real existing Email King workflow row with two steps
Fresh live output / existing user state preserved / 24 August 2026
04

Understand the stored step fields

FieldRole
prompt_templateText sent to the step; {{input}} is workflow input.
output_varName for a result that a later step can reference.
modeSequential in the verified file.
error_modeFail in the verified file.
timeout_secsPer-step time ceiling.
collect_aggregationNull in the verified file.

Keep the source file because workflow has no export.

05

Test only the disposable file

Run in your terminal
armaraos workflow create <COURSE_FILE>
Real invalid-workflow-step failures for two controlled course files
Fresh live output / existing workflow unchanged

Both two-step and minimal stored-shape files were rejected. Do not rewrite existing state to investigate.

06

Keep later actions conditional

Run in your terminal
armaraos workflow run <WORKFLOW_ID> "<INPUT>"
armaraos workflow update <WORKFLOW_ID> <FILE>
armaraos workflow delete <WORKFLOW_ID>

These become valid only after your own create returns an ID. This build did not.

07

Preserve evidence for a fix

Keep both rejected files, the error output, the version number, and the unchanged workflow list.

Check it / preserve existing state

Explain why no run followed.

List workflows, confirm Email King is unchanged, and point to the rejected course files.

Safety note

Never experiment on an existing workflow you did not create for the lesson. Update and delete require an exact ID, and deletion has no undo.

Troubleshooting for this sitting
What you seeLikely causeWhat to do
Invalid workflow stepVerified 0.8.3 create defect.Preserve file and error; stop.
An existing workflow appearsIt belongs to current state.Do not repurpose or delete it.
JSON flag errorsWorkflow has no JSON options.Use its normal output.
Run needs an IDCourse create never succeeded.Do not use another workflow's ID.

Back to Module 4.7

Next / Module 4.9

CAPSTONE: the containment drill, timed and rehearsed

Lesson ready