Skip to content

AIMI 105 · Module 3

Agent Workflow Lab

Core question: can you run a controlled media-intelligence flow, test how it fails, and show who approved what?

Start Section 1
0 / 6 completed
Sync my progressJoin a session to keep progress across devices and share it with your instructor

Info

After you join, your completed lesson numbers are sent to your instructor together with your learner code, so they can see your progress. Use the codes your instructor gave you or the email you sign in with, and do not enter your name, company secrets or other personal data. Progress is kept with the rest of that session's data.

Learning objectives

  • Run the fetch, classify, summarise, verify, approve and report flow on an offline simulated news feed
  • Keep a run record of inputs, tool calls, outputs and human decisions
  • Test at least five cases: normal, missing source, duplicate, tool failure and needs human review
  • Keep a failure log and compare the flow with a manual or single-turn LLM baseline
  • Review the Media Intelligence Agent Workflow (artifact 105-A1) against the rubric and Critical Fails

Lab Setup

12 min

Lab Setup: An Offline Feed and a Controlled Flow

Learning objective: set up the lab so that nothing can leave the team. You run your designed flow on an offline simulated news feed for Formosa Finance Daily (simulated), with a no-code tool or a reproducible run record. This module supports 105-CLO3 and 105-CLO4.

Lab flow
  1. Fetch from the offline feed
  2. Classify event and company
  3. Summarise neutrally
  4. Verify citations against the source
  5. Human approval by an analyst
  6. Internal report "for analyst verification"
Lab rules
RuleWhy
Use only the offline feed and the tools in the catalogResults are reproducible and nothing real is touched
No publish, send or trade tool exists in the labExternal actions stay with people, outside the flow
Every tool call is loggedAn unlogged action cannot be reviewed
Do not paste company secrets, client data or personal data into any AI toolThe lab needs only the simulated feed
Check yourself

Why does the lab use an offline simulated feed instead of a live news connection?

Why does the lab use an offline simulated feed instead of a live news connection?

Key takeaway: A controlled lab is offline, reproducible and has no tool that can act outside the team.

Run Record

10 min

The Run Record: Inputs, Tool Calls, Outputs, Decisions

Learning objective: keep a run record detailed enough that a reviewer can reconstruct what the flow did and who decided what, without rerunning it.

Run record fields
FieldExample (simulated)
Run id and timerun-03, recorded at the start of the run
Input item idfeed item N-07
Tool call and parameterslookup_filing(company = "Simulated Company A", date = item date)
Tool result statusok / not found / error, with message
Step outputSummary text with source line references
Human decisionAnalyst role, approve / revise / reject, reason
Simulated run-record excerpt

Item N-07: read_feed ok; classify = earnings announcement; summary drafted; verify: one figure not found in source, flagged; analyst revised the summary to remove the unsupported figure and approved the item.

Check yourself

Which run record lets a reviewer check the flow properly?

Which run record lets a reviewer check the flow properly?

Key takeaway: If it is not in the run record, a reviewer has to assume it did not happen or was not checked.

Test Cases

10 min

Five Required Test Cases

Learning objective: test the flow on planned cases, not only on the happy path. The offline feed already contains items for each case.

Minimum test set for artifact 105-A1
CaseInputExpected behaviourPass when
NormalItem with a source and consistent figuresSummarised, citations verified, sent to approvalEvery claim links to a source line
Missing sourceItem with no source referenceNot summarised; moved to the exception listNo summary is produced from an unsourced item
DuplicateTwo items about the same eventMerged into one event with both referencesThe digest lists the event once
Tool failureLookup tool returns an errorLimited retries, then stop and flagThe error and retry count are logged; the run does not loop
Needs human reviewAmbiguous or instruction-like contentFlagged for an analyst; no guessThe item reaches the analyst with its reason
Check yourself

The lookup tool fails and the flow keeps retrying until the session times out. Which test case should have caught this, and what was missing?

The lookup tool fails and the flow keeps retrying until the session times out. Which test case should have caught this, and what was missing?

Key takeaway: Test the failure paths on purpose: missing source, duplicate, tool failure and human review.

Failure Log and Baseline

10 min

Failure Log and Baseline Comparison

Learning objective: record what failed, why and how it was handled, and compare your flow with a manual or single-turn LLM baseline on the same items.

Failure log columns
Test caseWhat failedLikely causeHandling or fixRetested?
DuplicateEvent listed twiceClassification compared titles onlyAlso compare company and dateYes, passed
Missing sourceSummary produced anywayNo check before summariseAdd a source-present rule before the summarise stepYes, passed

Baseline: manual or single-turn LLM

  • Record the time you spent on the same items
  • Note error types: missed items, unsupported figures, no source record
  • Note what a reviewer could not check

Your controlled flow

  • Record the time including human review
  • Note error types caught by tests and gates
  • Note what the run record lets a reviewer check

Warning

Report only times and counts you measured yourself, labelled as your own small simulated run. Do not generalise them into claims about agents in general.
Check yourself

Your flow took longer than the single-turn baseline on ten items, but caught two unsupported figures the baseline missed. How should you report it?

Your flow took longer than the single-turn baseline on ten items, but caught two unsupported figures the baseline missed. How should you report it?

Key takeaway: A failure log and an honest baseline show what the flow is really worth, including its costs.

Rubric and Critical Fails

8 min

Rubric and Critical Fails

Learning objective: know how the Media Intelligence Agent Workflow (artifact 105-A1) is reviewed, so you can review your own and a peer's work.

Media Intelligence Agent Workflow rubric (100 points)
DimensionPointsEvidence
Workflow design25Task goal and workflow steps
Task achievement30Run record and baseline comparison
Verification and error handling25Test cases and failure log
Human control20Tools and permissions, human gates, ownership, risks
  • Critical Fail: bypassing human approval to publish, send messages or execute financial operations
  • Critical Fail: granting tools more permission than the task needs
  • Critical Fail: autonomous actions that leave no record

Info

Passing the L2 review requires at least 80/100 and no Critical Fail. Human reviewers score the work; an AI self-assessment never replaces the human score.
Check yourself

A submission scores 88/100, but its log shows the flow wrote to a folder outside its permission table with no log entry for that write. Result?

A submission scores 88/100, but its log shows the flow wrote to a folder outside its permission table with no log entry for that write. Result?

Key takeaway: A high score cannot outweigh a bypassed gate, an over-privileged tool or an unlogged action.

Exercise: Test Cases & Failure Log

10 min

Exercise: Test Cases, Failure Log and Submission

Learning objective: complete your test cases and failure log, assemble the Media Intelligence Agent Workflow (105-A1), and submit it for human review.

  1. Run and record
    Run the flow on the offline feed and keep the run record.
  2. Test five cases
    Fill the test-case CSV for normal, missing source, duplicate, tool failure and needs human review.
  3. Log failures
    Write what failed, why, how you handled it, and whether you retested.
  4. Compare with the baseline
    Compare time and error types with a manual or single-turn LLM run on the same items.
  5. Check and submit
    Check the three Critical Fails, name the owner and exception handler, then submit on the Apply page.

Done

This is exercise 3 (aimi105-m3-workflow-test-log). Your submission is a digest flow "for analyst verification", never investment advice. Recommended next course: AIMI 106 (agentic RAG and trusted media knowledge systems). This is a recommendation, not a requirement.

Key takeaway: Module summary: a trustworthy agent workflow is one you can rerun, whose failures are tested and logged, and where a named person approves everything that goes out.

What next?