AI Agent Execution Frameworks: Four Tasks Ordinary Users Can Actually Delegate
This article explains the two-layer structure behind a usable AI agent — the model that decides, and the execution framework (Harness or Agent Runtime) that actually runs tools inside a workspace and permission boundary. It walks through a minimal verifiable example with two file-operation rounds and SHA-256 comparison, then lists four task categories non-developers can hand off, along with what counts as done for each. It also covers why checkability beats sounding smart, plus preparation steps and common pitfalls before you start.
1. Two Layers, Not One Chat Box
Many people picture an “agent” as a chat window that is simply better at conversation. The form you can actually use has two layers. One is the model, which interprets intent and decides which tool to call next. The other is the execution framework (often called a Harness or Agent Runtime), which performs the call inside a workspace and a permission boundary, then hands results, errors, and exit codes back to the model.
That split changes something important: a task no longer stops at “generate a block of text.” It produces results on disk and a replayable call record. Whether a file path went out of bounds, whether a command failed, which files were modified — all of it is verifiable fact. When you judge whether an answer is trustworthy, you now have two independent sources of evidence: the execution process and the final artifacts.
2. A Minimal Verifiable Example: Two File Rounds Plus Hash Comparison
Imagine running the command-line entry point that ships with the installation package in headless mode on a desktop operating system, executing two rounds of tasks within the same session:
- Round one: read
notes.mdandrules.md, then writeoutput/guide.md. - Round two: modify the existing file with an editing tool, then read it back with a reading tool to confirm.
Between the two rounds, only one sentence in the “Acceptance” section differs; the SHA-256 of every other original file stays the same. This demonstrates two things: the edit is a targeted change, not a full rewrite; and verification can be quantified rather than eyeballed.
A sketch of the task description (pseudo-config, structure only):
workspace: ./demopermission:read: ["notes.md", "rules.md", "src/**"]write: ["output/**"]session: singlesteps:- read: ["notes.md", "rules.md"]- write: "output/guide.md"- edit: "output/guide.md" # acceptance section only- read: "output/guide.md"verify:- sha256("notes.md") == before- diff(guide.md) contains one line only
3. Four Task Categories Ordinary Users Can Really Hand Off
| Task type | How to brief it | What counts as done |
|---|---|---|
| Documents and reference material | Read the instructions and requirements under 资料/, write an editable handover note in output/, and flag missing information |
Open the specified file; every piece of material has a source; gaps are explicitly marked |
| Spreadsheets and batch processing | Read the CSV files in the same directory, list missing entries separately, export a checklist, keep the input files | Cross-check total row counts against an independent output sheet; sampled errors trace back to the original records |
| Code and web pages | Find the login button, change only the button text, run the project’s existing tests, list the modified files | Open the diff and test results; confirm links and other copy are unaffected |
| Recurring tasks | In a configuration that supports automation, read the update directory on a weekly schedule and write the digest to an agreed path | Check the session and output file at the scheduled time; the scheduling record only shows the instruction was dispatched |
The first three categories usually rely only on file read/write, terminal execution, or the corresponding document-processing capability. The fourth additionally requires the program running the framework to stay online — otherwise the schedule never actually fires.
4. Why “Checkable” Matters More Than “Looks Smart”
- Permissions are the boundary: narrow the writable scope to
output/**and list the readable paths explicitly; out-of-bounds calls are rejected and logged. - Failures leave a record: a failed tool call returns an error instead of being silently swallowed, and the model retries or changes route based on it.
- Artifacts can be re-checked: hashes, line counts, and diff line counts are objective metrics, so acceptance does not depend on subjective impressions.
- Replays are possible: the session record lets you review why it changed things this way — a prerequisite for putting an agent into a daily workflow.
5. Before You Start: Preparation and Common Pitfalls
- Back up before you authorize: copy the input directory before any bulk rewrite, or use version control.
- Unify paths and encoding: non-ASCII file names, line-ending differences, and inconsistent CSV encodings are the most frequent causes of failure.
- Ask for idempotence: running the same task repeatedly should produce the same result; avoid append-style writes.
- Accept in small steps: change one target at a time and read it back immediately, instead of saving all verification for the end.
- Distinguish the form factors: continuing to ask questions about a web page or document on your computer suits looking and editing at the same time; voice and quickly taken photos on a phone suit fast questions and notes. Both share conversational capabilities such as search, link reading, and file input, but tasks that must actually land on disk still belong to the execution framework.
6. Closing
For ordinary users, the value of an agent is not how much it can say, but that it turns “saying” into “doing, with a record.” First decide what you want handed back, then constrain the workspace and permissions, and finally accept the result with hashes, line counts, tests, and a diff list. This workflow applies to any AI coding tool or common industry solution built on the “model + execution framework” architecture, and it is the lowest-cost path to wiring automation into everyday work.
