Offline Robotic Process Automation

AUTOMATION
SHOULD KNOW
WHEN IT WORKED.

Most automation works until something changes. This one plans before anything changes.

Automation can run even when it's doing the wrong thing. An action is successful only when it gives the right result.

ACTIVITY IS NOT SUCCESS.

THE RESULT MUST BE RIGHT.

01 / A RELATABLE FAILURE

SAME REPORT.
BETTER DECISIONS.

Both versions click Download. Only one knows whether the report arrived.

ACT FIRST. HOPE AFTER.

THE HARD-CODED VERSION

click(920, 640)
sleep(10)
open_next_step()
THE PLAN1. Click one spot.2. Wait ten seconds.3. Continue.
CLICK A SPOT→WAIT 10 SECONDS→CONTINUE
BUTTON MOVED
WRONG CLICK
PAGE WAS SLOW
TOO EARLY
DOWNLOAD FAILED
SILENT MISTAKE

WHAT IT DOES NOT KNOW

  • The button moved.
  • The page is slow.
  • The page is already fast.
  • A warning appeared.
  • The download failed.
  • The file is incomplete.
  • The wrong file arrived.
  • The user moved the mouse.

3 LINES. 8 HIDDEN ASSUMPTIONS.

OBSERVE. DECIDE. ACT. VERIFY.

THE RELIABLE VERSION

target = Target(
  name="download",
  uia={"auto_id": "DownloadBtn"},
)
runner.do(CLICK, target)
wait_until(download_finished(downloads))
runner.assert_final(file_exists(report))
1LOOK AT THE SCREENFind the real button.→ 2CHOOSE A METHODControl, text or image.→ 3ACT WHEN READYNo guessed timer.→ 4CHECK THE FILERight file. Fully complete.

WHAT THE FRAMEWORK TRACKS

  1. Find the Download control.
  2. Try another locator if needed.
  3. Check that it is ready.
  4. Click safely.
  5. Detect download progress.
  6. Wait until the file is stable.
  7. Confirm the expected file exists.
  8. Verify its name and location.
  9. Save proof when something fails.
  10. Retry, pause or stop by policy.

LESS WORKFLOW CODE. 10 CASES HANDLED.

HARD-CODED MINDSET

“What steps should the computer repeat?”

“How long should I sleep?”

“Did the click function run?”

“Retry everything.”

RELIABLE MINDSET

“What result must be true?”

“What fact says it is ready?”

“Did the correct report arrive?”

“What response fits this failure?”

YOU WRITE THE INTENT.THE FRAMEWORK HANDLES THE UNCERTAINTY.
02 / THE DECISION MODEL

THINK BEFORE
YOU MOVE.

01

OBSERVE

What is happening?

02

DECIDE

What is the fastest reliable path?

03

ACT

What is the smallest safe action?

04

VERIFY

Did the right result happen?

05

RESPOND

Continue, recover, ask or stop?

DO NOT WAIT LONGER.
WAIT SMARTER.

A fixed timer always guesses. A condition waits only as long as needed.

Fast system? Move now. Slow system? Wait safely.

SEE SMART WAITS →
03 / FAILURE WITHOUT NOISE

EVERY FAILURE
SHOULD BE VISIBLE.

Not every failure needs a person.

1

TRY ANOTHER SIGNAL

Cannot find the control? Try text or an image.

2

RETRY SAFELY

Still loading? Wait and check again.

3

RECOVER

Close a warning or return to a known state.

4

ASK FOR HELP

Pause when the safe answer is unclear.

5

STOP

Abort when continuing could cause harm.

AUTOMATE THE CLEAR CASES.ESCALATE THE UNCERTAIN CASES.

Catch real problems. Double-check before raising an alarm. Ask a person only when the answer is still unclear.

04 / ENGINEERING PROOF

DO NOT TAKE
THE CLAIMS ON TRUST.

Inspect how every promise is implemented.

PERCEPTION

HOW IT KNOWS WHAT IS THERE

  • Application controls
  • Images
  • Text
  • Colour and pixels
  • Screen changes

Use more than one clue.

EXPLORE FINDING TOOLS →
EXECUTION

HOW IT ACTS SAFELY

  • Real mode
  • Simulated mode
  • Shadow mode
  • Intervention detection
  • Global abort

Test before real input creates risk.

EXPLORE SAFE EXECUTION →
ASSURANCE

HOW IT KNOWS WHAT HAPPENED

  • Post-condition validation
  • Event records
  • Screenshots and crops
  • Configuration snapshots
  • Recovery outcomes

Check the result. Keep the proof.

EXPLORE ASSURANCE →
ORCHESTRATION

HOW IT CHOOSES WHAT HAPPENS NEXT

  • Waits
  • Retries
  • Recovery policies
  • Checkpoints
  • Operator pauses

Continue, recover, ask or stop.

EXPLORE WORKFLOW CONTROL →
05 / START WITH YOUR JOB

WHAT DO YOU WANT
TO AUTOMATE?

Start with a goal, not hundreds of functions.

CLICK RELIABLY

I WANT TO CLICK SOMETHING.

  • Find a control, text or image
  • Click only when ready
  • Confirm the next screen
BUILD A RELIABLE CLICK →
FILL SAFELY

I WANT TO FILL A FORM.

  • Identify and verify fields
  • Protect sensitive inputs
  • Confirm submission
BUILD A FORM WORKFLOW →
DOWNLOAD AND VERIFY

I WANT TO DOWNLOAD A FILE.

  • Detect progress
  • Wait for completion
  • Verify name and location
BUILD A DOWNLOAD WORKFLOW →
WAIT SMARTER

I WANT TO WAIT FOR A SCREEN.

  • Wait for text, images or state
  • Detect when motion stops
  • Wait for things to disappear
BUILD A SMART WAIT →
HANDLE FAILURE

I WANT TO RECOVER.

  • Retry or use another locator
  • Run a recovery action
  • Pause and save evidence
BUILD A RECOVERY WORKFLOW →
RESOLVE RELIABLY

I WANT ONE LOCATOR THAT SURVIVES UI CHANGES.

  • Try UI Automation first
  • Fall back to a template image
  • Fall back to OCR text last
BUILD A RESILIENT LOCATOR →
AUTHENTICATE

I WANT TO LOG INTO AN APPLICATION.

  • Type credentials without leaking them
  • Pause for a human on MFA if needed
  • Confirm the session actually started
BUILD A LOGIN WORKFLOW →
READ, DON'T CLICK

I WANT TO PULL DATA OFF THE SCREEN.

  • Read fields via UIA or OCR
  • Change nothing on screen
  • Write the result to a file
BUILD AN EXTRACTION WORKFLOW →
SCALE UP

I WANT TO PROCESS HUNDREDS OF RECORDS.

  • Checkpoint after every record
  • Skip what a prior run finished
  • Keep going if one record fails
BUILD A BATCH WORKFLOW →
STAY SAFE

I WANT TO RUN THIS WITH A HUMAN NEARBY.

  • Pause the instant a human interferes
  • Resume on a hotkey or after idle time
  • Stop everything on a kill switch
BUILD A SUPERVISED RUN →
EXPECT THE UNEXPECTED

I WANT TO HANDLE A POPUP THAT CAN APPEAR ANYTIME.

  • Detect the interrupting dialog
  • Dismiss it automatically
  • Get back to the original step
BUILD AN INTERRUPTION HANDLER →
GO LEGACY

I WANT TO WORK ACROSS SEVERAL WINDOWS.

  • Wait for the right window to exist
  • Act inside the correct instance
  • Confirm the next window or a close
BUILD A MULTI-WINDOW WORKFLOW →

NOT SURE WHERE TO BEGIN?

Choose a ready workflow. Change the options. Copy the code.

06 / ENGINEERING JUDGEMENT

THE QUESTIONS
BEHIND THE CODE.

What is the fastest reliable signal?

How will we know the action worked?

What happens when the target moves?

What evidence remains after failure?

When should the system retry?

When should a person take over?

How can we test without real input?

THE REPOSITORY IS MY ANSWER TO THOSE QUESTIONS.
07 / AFTER DEPLOYMENT

DESIGNED FOR THE PEOPLE
WHO RUN IT.

DEVELOPERS

Extend clear parts without rebuilding the safety layer.

OPERATORS

Understand failures and where the workflow stopped.

REVIEWERS

Trace actions, settings and outcomes.

USERS

Stay protected from silent mistakes.

TEAMS

Test before taking real action.

RELIABLE AUTOMATION IS EASIER TO RUN, TRUST, REVIEW AND IMPROVE.

START WITH A REAL JOB.

CHOOSE A WORKFLOW.
INSPECT THE CODE.
BUILD WHAT YOU CAN TRUST.