Skip to content

Task, Context, and Verification

“Optimize this page,” “fix the login,” “migrate the project to a new framework” — these only convey direction, not decision boundaries for the agent. The agent has to guess the entry point, the definition of done, what it’s allowed to change, and how to verify it. The more it has to guess, the less reviewable the result.

An executable task needs to freeze at least four boxes:

BoxQuestion it answersMinimum evidence
ContextWhat’s the current state, and where are the entry points and existing evidence?Repo, branch, key files, a reproduction or baseline
TaskWhat change will someone be able to observe once it’s done?A user-visible or system-testable result
BoundariesWhat can change, what can’t, and when must you stop and ask?Allowed paths, off-limits areas, high-risk actions
VerificationWhat proves it’s done, beyond “looks fine”?Commands, exit codes, diffs, pages, or manual checks

Step 1: Give only the context that’s needed

Section titled “Step 1: Give only the context that’s needed”

Context isn’t every chat log and document dumped in at once. Prioritize:

  1. The real repo, current branch, and working-tree state.
  2. Entry-point files, run commands, and existing tests directly relevant to the task.
  3. Raw output of known failures, not a paraphrased “it errored.”
  4. What’s already been tried, and why it wasn’t adopted.

If the agent can confirm something with a read-only search, let it investigate and list the evidence first — don’t write possibly-stale directories or APIs into the task from guesswork.

Step 2: Write the task as an observable change

Section titled “Step 2: Write the task as an observable change”

Weak task: “Improve the onboarding experience.”

Executable task: “A reader visiting /start-here/ for the first time can reach the right tutorial for one of three task types; every entry link exists after a static build; the page adds no new external scripts.”

The second version still doesn’t dictate specific layout or components, so implementation room remains — but it tells the reviewer exactly what to check.

Step 3: Write permission boundaries before execution

Section titled “Step 3: Write permission boundaries before execution”

Boundaries fall into at least three categories:

  • File boundaries: which paths may be modified, and which user changes must be preserved.
  • Action boundaries: whether installing dependencies, network access, deletion, committing, pushing, or deploying is allowed.
  • Escalation boundaries: must stop and ask when secrets, paid calls, production data, or ambiguous product decisions come up.

“Be careful” is not a boundary. “You may edit two MDX files and your own research directory, but not config, and don’t push” is.

Step 4: Make verification cover both the task and the boundaries

Section titled “Step 4: Make verification cover both the task and the boundaries”

A passing build only proves the project can be built — it doesn’t automatically prove the links are correct, the page matches the reader’s task, or nothing out of scope was touched. Split verification into three layers:

LayerExamplesWhat it proves
Deterministic checksTests, lint, typecheck, validators, link scansThe contract wasn’t broken by a mechanical counter-example
Change checksgit diff --check, file list, sensitive-data scanThe scope and basic hygiene of the change match requirements
Manual checksBrowser walkthrough, visuals, copy, risk judgmentExperience and meaning a machine can’t judge

Verification commands should be copyable, and manual checks should state exactly what to observe. Don’t just write “please confirm yourself.”

Vague version:

Clean up LearnPrompt a bit and make it feel higher quality.

Frozen version:

# Goal
Upgrade the two start-here entry pages so that newcomers, existing
Claude Code/Codex users, and people building long-term agent workflows
can all reach their first in-depth tutorial within two clicks.
# Context
- Repo and branch: confirm with git status, don't guess from chat.
- In-depth tutorials: 41 already verified; nav pages must not pose as
in-depth tutorials.
- Existing sections: AI Coding, Claude Code, Codex, Agent Engineering,
Skills, Loop, Obsidian AI, Hermes/OpenClaw.
# Boundaries
- Only edit the two specified start-here MDX files.
- Don't touch in-depth tutorials, components, dependencies, or site config.
- No push, no deploy, no publish.
# Verification
- All internal links resolve to existing routes.
- git diff --check passes.
- The 49-page Starlight build passes.
- A reviewer walks all three reader paths with no dead ends or broken promises.
# Delivery
- Two local commits, check results, and any open risks.

This contract doesn’t decide every sentence for the writer, but it turns both “done” and “out of scope” into judgeable questions.

Have the executor answer these first:

  1. What do you think the target deliverable is, and what’s explicitly out of scope?
  2. Which entry points will you read, and why is that enough information?
  3. Which files do you plan to change? Are there uncommitted user changes?
  4. What’s the fastest relevant check, and what’s the full check?
  5. Under what conditions would you stop and ask for authorization?

If the answers are still vague, the task isn’t frozen yet — don’t move to auto-execution.

FailureWhy it’s dangerousFix
Giving only a technical approach, no reader or product outcomeThe agent might perfectly implement the wrong goalWrite the observable change first, then discuss the approach
Treating the whole repo as default scopeOpportunistic refactors and overwritten user changes go unnoticedWrite allowed paths and explicit non-goals
Verification is just “the build passes”Semantic, link, and visual gaps go undetectedAdd change checks and a manual pass
”Use your judgment” when information is insufficientHigh-risk choices get silently assumedWrite escalation conditions and default-safe actions
Giving paths or commands that no longer existThe contract is fake from the startConfirm current state with read-only checks first
# Goal
What change will someone be able to observe once this is done?
# Context
- Current state:
- Key entry points:
- Known evidence or errors:
# Scope and off-limits
- Allowed to read:
- Allowed to modify:
- Forbidden actions:
- Must request authorization:
# Verification
- Fastest relevant check:
- Full mechanical check:
- Manual checkpoints:
- What to keep on failure:
# Delivery
What are the changes, evidence, open risks, and next steps?