Agentic AI · Module 4Hands-on

Hands-on · seven stations in order

Lina’s weekly workflow

The Module 4 hands-on input: Lina’s source pack, her written standards, the inherited audit gate and an output contract listing every file the workflow must produce. Build it once, so the week’s review runs without you as the wiring.

Listen to this lesson

Hear the lesson read aloud, with each sentence highlighted as you go.

Narrated by an AI voice.

Step 1 · Open the source pack

Five files hold the week’s evidence. Lina’s Module 3 workbook already gives each one a source ID and a reliability rating, so the workflow starts from named sources, not from a loose folder.

The evidence · hands-on input files and the Module 3 workbook’s Source Registry
Source IDFileWhat it holdsReliability
TXN-001TXN-export.csvSeven posted transactions, June 22 to 27, 2026, including one payroll creditHigh
REC-001receipts.txtA Trader Joe’s receipt, and a faded CVS receipt with its date and total unreadableHigh
DOC-001internet-bill.txtSkyline Fiber, $72.40 due June 28, a $9 late fee, autopay not enrolledHigh
NOTE-001todo-note.txtLina’s own reminders: the checklist, the bill, and the office lease renewal dateLow
EMAIL-001henderson-email.txtSara asks for a 30-minute sync on Thursday, June 25 at 2:00 PM, and for the onboarding checklistHigh

Read with careThe note is rated low because it records what Lina intends, not proof that anything was done.

Step 2 · Read the written standards

The goals file is the loop’s written standard. It is read on every run, so the checks never depend on someone remembering them.

  • Spending means posted debits only; a credit is reported separately and never subtracted.
  • A receipt that matches a bank row corroborates it; it is not a second expense.
  • Unreadable amounts stay out of confirmed totals and go under Needs human review.
  • Any bill due within seven days joins the action queue with its due date and the cost of missing it.
  • Drafts and action records only: nothing is sent, booked, paid or changed without a person’s approval.
  • Weekly spending Confirmed spending for the week stays at or below $200.00.
  • Dining Spending on dining stays at or below $30.00.
  • Subscriptions Spending on subscriptions stays at or below $15.00.
  • Review flag Every confirmed expense of $50.00 or more is flagged for Lina, which is not automatically a violation.

Step 3 · Describe the workflow, then check the plan

The contract asks the builder for four workflow files before any output is produced. They are this module’s blueprint, in the form a machine can run.

Workflow design files · output-contract.md
FileWhat it holds
workflow/WORKFLOW.mdA Mermaid workflow diagram, and a short explanation of each pattern used
workflow/workflow-table.csvThe documentation table: station ID, station, trigger, inputs, outputs, depends on, owner or tool, failure point, and route on failure
workflow/assembly-checklist.mdNumbered stations, named handoffs, pass and fail paths, the merge point, an owner or tool per station, and the three-round stop condition
workflow/run_workflow.pyOne local command that reruns the whole workflow

A description built from the notes’ five ingredients · this site’s sketchTask: turn Lina’s weekly evidence into a reviewed weekly brief and action queue. Inputs: the five source files, budget-goals.md and audit-rubric.md. Steps I know: prepare the evidence, draft the brief, run the audit gate, and on a fail revise and re-audit. Good and bad output: example-good-weekly-report.md and example-bad-weekly-report.md. Done means: every file in output-contract.md exists, and the audit log ends with a final route.

Step 4 · Build the evidence layer

The first stations rebuild what Module 3 did by hand. Every source gets an ID, and every transaction becomes one ledger row with its source attached.

Evidence files · output-contract.md
FileColumns
outputs/source-registry.csvSource ID, file name, type, reliability, privacy, and what it can answer
outputs/clean-ledger.csvDate, merchant, raw description, amount, transaction type, category, source IDs, confidence, needs review, and reason

Step 5 · Draft the weekly brief

The brief has four sections and must be skimmable in about a minute. Every factual statement names a source ID or file name. The figures below are this site’s own arithmetic from the supplied files, using the categories in Lina’s Module 3 workbook, so you can check a run against them.

What the evidence settles · this site’s check, from TXN-export.csv, receipts.txt and budget-goals.md
CheckResult
Confirmed debit spending$220.66, which is over the $200.00 weekly goal
Dining$34.20 at Uber Eats, which is over the $30.00 cap
Subscriptions$10.99 for Spotify, which is within the $15.00 cap
Review flags at $50 or moreAmazon at $63.77 and Shell at $51.02, flagged for Lina but not violations
Payroll credit$2,415.00, shown separately and never netted against spending
Trader Joe’s receiptCorroborates the $42.18 bank row and is counted once
CVS receiptUnreadable, so it is excluded from totals and listed under Needs human review

Step 6 · Run the audit gate, with a stop rule

The audit is Module 2’s gate, inherited unchanged. The rubric says the workflow may automate it, but must not replace it with a smaller rubric. It is the routing pattern and the evaluator loop at once.

  • All eight categories are checked: factuality, source support, completeness, tone, audience fit, formatting, risk and privacy.
  • Each category records a verdict, evidence from the draft, evidence from the sources, why it matters and the required fix.
  • If the source pack is missing, the audit returns blocked and asks for it.
  • After a fail, the maker fixes only the failed items, and all eight categories are audited again.
  • Three specialist judges follow in order: evidence and factuality, completeness and priority, then risk, privacy and executive fit.

The safety cap · audit-rubric.mdStop early when all eight categories and all required judges pass, or stop after three maker and checker attempts. If the third attempt does not pass, return REVIEWED - BLOCKED. Never invent evidence to force a pass.

Step 7 · Deliver, as drafts only

The last station prepares the delivery and stops short of sending it. The real connections stay with a person, who makes the final decision.

Delivery package and simulated outbox · output-contract.md
FileWhat it holds
outputs/weekly-brief.mdThe four sections required by the goals file, with source references
outputs/action-queue.csvEach action with its owner, due time, source IDs, whether approval is required, status and notes
outputs/audit-log.mdEvery maker and checker round, each gate verdict, the feedback, the corrections, the final route and the stop reason
outputs/run-log.jsonA start and end record for each station, with inputs, outputs, status, iteration count and errors
outbox/henderson-email-draft.mdThe reply to Sara, a draft only, clearly marked NOT SENT
outbox/calendar-actions.icsProposed meeting and reminder events only, documented as simulated and not imported

The audit log’s last line must be exactly one of these two · output-contract.mdFINAL ROUTE: PASS, or FINAL ROUTE: BLOCKED - HUMAN REVIEW

The prompts that drive the build

The Module 4 prompt library gives the exact chain from the hands-on recording, in eight prompts: a deliberately vague request, the Workflow Build Brief in design mode, a frozen blueprint, an independent workflow audit, one bounded run, the evidence branch, the revise loop and a scoped delivery approval. It assumes a local folder named Lina — Finance Close, opened in Codex.

A bad report and a good one

The input includes two example reports. The bad one lists its own seven faults, and each is something the standards and the audit gate exist to catch.

A bad weekly report and a good one · example-bad-weekly-report.md and example-good-weekly-report.md
What went wrong in the bad exampleWhat the good example does instead
No sources are namedEvery claim carries a source ID
An unreadable amount is guessed as $18The unreadable receipt is excluded until a person supplies the amount
The receipt and the bank charge are counted twiceCalculations come from the clean ledger, once per purchase
Payroll is used to offset spendingThe payroll credit is shown separately and not netted
The written goals are not checkedEach goal is checked, and a review flag is called informational
It claims the email was sent, the meeting booked and the bill paidExternal actions stay as proposals that need a person’s approval
There is no unresolved-items section and no audit verdictA Needs human review section keeps uncertainty visible

Read with careThe good example says its sample values are not Lina’s real results; it shows format and behavior only.

Check what you built

The output contract lists twelve files in four groups. None of them should exist before the build, and each has something specific to check.

Everything the output contract expects · output-contract.md
GroupFilesWhat to check
Workflow designWORKFLOW.md, workflow-table.csv, assembly-checklist.md, run_workflow.pyA diagram, its twin table, numbered stations with fail paths and a three-round stop, and one rerun command
Evidence layersource-registry.csv, clean-ledger.csvEvery source has an ID; every row keeps its source; the CVS receipt is flagged
Reviewed deliveryweekly-brief.md, action-queue.csv, audit-log.md, run-log.jsonFour sourced sections, approval-required actions, every round logged, and a final route
Simulated outboxhenderson-email-draft.md, calendar-actions.icsMarked NOT SENT and simulated; nothing is sent or imported

Built from the eleven supplied hands-on input files. The recording was not supplied; its prompt chain arrived later as the Module 4 prompt library. The station order follows the documentation table in Lesson 2, and the figures in Step 5 are this site’s own arithmetic.

Your study checkpoint

Check what stuck

The practice page puts the workflow under pressure: a skipped audit, a plan with a missing gate, a loop that never stops and a draft that graded itself.