Data backfill run in checked chunks
The agent plans the backfill in chunks, runs each with a dry run first, checks row counts and pauses on errors, then reports. An engineer approves the start.
What the agent does
- 1
Plan the chunks.
- 2
Run the job.
- 3
Check row counts.
- 4
Pause on errors.
- 5
Report. → engineer approves start
Enough to decide?
Proposed pattern- Required input
- No example input written yet
- Example output
- No example output written yet
- Stop condition
- corrupting data; dry run and counts
- Reviewer
- Not yet independently reviewed
- Last run
- Not run by us yet
What it costs to run
A rough range per run, from the cheapest to the dearest of the paid models we checked. Your real cost depends on how much text you send.
Checked 2026-11-25 source
$0.001 to $0.30 per run · $0.016 per run with a mid-priced model
- Small, cheap model
- $0.001 per runPer 100 runs: $0.11
- Typical
- $0.016 per runPer 100 runs: $1.63
- Large model
- $0.30 per runPer 100 runs: $30.00
Free tiers and local models can bring this to zero while you test.
How we worked this out
- 5 model calls, one per step (at least 2)
- 4,000 input tokens per call (it reads documents or data)
- 500 output tokens per call
- each call re-reads the earlier outputs
- no retries, no loops, no cached-input discount
- Longer inputs cost more; agents that retry or loop use more calls.
- Free tiers may cover small volumes: see free AI tokens.
- Local models have no per-token price but need your own hardware.
Works with
Tags
Before you start
- Access the agent needs
- database, cloud-console
- Who approves
- engineer approves start
- What to log
- every action it proposes and the decision taken
- When to stop
- corrupting data; dry run and counts
Why it is worth it
Backfills that fail halfway are painful to recover.
Start this week
- Let the agent plan the backfill in chunks.
- Have it dry-run each and check row counts.
- Approve before the real run.
Watch out for
A bad backfill overwrites good data, so every chunk runs as a dry run first.
Measure this
Backfills without rework.
About this entry
Proposed pattern Checked 2026-11-27 Next check 2026-12-25 v2026-11-27.1
What we checked
| Item | Result | Date | By | Source and note |
|---|---|---|---|---|
| Text and steps | Checked | 2026-11-25 | — | — |
| Human checkpoint and risks | Checked | 2026-11-25 | Reviewer to be named | — |
| Workflow run | Not checked yet | — | — | — |
| Cost estimate | Checked | 2026-11-25 | — | source · mid-priced model assumed |
| Tool links | Not checked yet | — | — | — |
| Outside evidence | Not checked yet | — | — | — |
Limitations
- This is a pattern written from how the job is usually done. We have not run it.
- Steps, tools and risks are general. Your systems and rules will differ.
- Test it with made-up or public data before using real data.
- Not checked yet: workflow run, tool links, outside evidence.
Change history
- Watch-out line rewritten spec v2026-11-27.1
- Long text added: why it is worth it, how to start, what to watch out for, how to measure it spec v2026-11-26.1
- Added to the catalogue spec v2026-11-25.1
Evidence
- No outside evidence yet; this is our own analysis.
Spec versions
- v2026-11-27.1 · Watch-out line rewritten
- v2026-11-26.1 · Long text added: why it is worth it, how to start, what to watch out for, how to measure it
- v2026-11-25.1 · Added to the catalogue
Run it with AI
Pick the AI you already use.
You are helping developer. Goal: Data backfill run in checked chunks. The agent plans the backfill in chunks, runs each with a dry run first, checks row counts and pauses on errors, then reports. An engineer approves the start. Work through these steps and show your result for each: 1. Plan the chunks. 2. Run the job. 3. Check row counts. 4. Pause on errors. 5. Report. Tools or data I can give you: database, cloud-console. Ask me for anything missing before you start. Do not take any action yourself; stop for my decision where: engineer approves start. Watch for: corrupting data; dry run and counts.
Opens the tool with your prompt already filled in. Review it there before you send.
Copies the prompt, then opens the tool. Paste it in to start.
Nothing happened? The Claude Desktop app (Mac, Windows, or Linux, where it is still in beta) may not be installed. Use the copy button instead.
ROLE: Assistant for developer. TASK: Data backfill run in checked chunks. SUMMARY: The agent plans the backfill in chunks, runs each with a dry run first, checks row counts and pauses on errors, then reports. An engineer approves the start. PROCEDURE: 1. Plan the chunks. 2. Run the job. 3. Check row counts. 4. Pause on errors. 5. Report. HUMAN CHECKPOINT: engineer approves start GUARDRAILS: corrupting data; dry run and counts RULES: ask when inputs are missing; never invent facts; cite where each fact came from.
Copies the prompt, then opens the tool. Paste it in to start.
{
"name": "data-pipeline-backfill-runner-0099",
"goal": "Data backfill run in checked chunks",
"persona": [
"developer"
],
"autonomy": "supervised",
"tools": [
"database",
"cloud-console"
],
"plan": [
"Plan the chunks.",
"Run the job.",
"Check row counts.",
"Pause on errors.",
"Report."
],
"human_in_the_loop": "engineer approves start",
"guardrails": "corrupting data; dry run and counts",
"output": "a draft for human review"
}Copies the prompt, then opens the tool. Paste it in to start.
{
"trigger": "On demand (manual start)",
"steps": [
{
"n": 1,
"do": "Plan the chunks."
},
{
"n": 2,
"do": "Run the job."
},
{
"n": 3,
"do": "Check row counts."
},
{
"n": 4,
"do": "Pause on errors."
},
{
"n": 5,
"do": "Report."
}
],
"connects": [
"database",
"cloud-console"
],
"approval": "engineer approves start",
"stop_on": "corrupting data; dry run and counts"
}Copies the prompt, then opens the tool. Paste it in to start.
{
"name": "data-pipeline-backfill-runner-0099",
"goal": "Data backfill run in checked chunks",
"persona": [
"developer"
],
"autonomy": "supervised",
"tools": [
"database",
"cloud-console"
],
"plan": [
"Plan the chunks.",
"Run the job.",
"Check row counts.",
"Pause on errors.",
"Report."
],
"human_in_the_loop": "engineer approves start",
"guardrails": "corrupting data; dry run and counts",
"output": "a draft for human review"
}Opens the tool with your prompt already filled in. Review it there before you send.
Copies the prompt, then opens the tool. Paste it in to start.
You are helping developer. Goal: Data backfill run in checked chunks. The agent plans the backfill in chunks, runs each with a dry run first, checks row counts and pauses on errors, then reports. An engineer approves the start. Work through these steps and show your result for each: 1. Plan the chunks. 2. Run the job. 3. Check row counts. 4. Pause on errors. 5. Report. Tools or data I can give you: database, cloud-console. Ask me for anything missing before you start. Do not take any action yourself; stop for my decision where: engineer approves start. Watch for: corrupting data; dry run and counts.
Copies the prompt, then opens the tool. Paste it in to start.
You are helping developer. Goal: Data backfill run in checked chunks. The agent plans the backfill in chunks, runs each with a dry run first, checks row counts and pauses on errors, then reports. An engineer approves the start. Work through these steps and show your result for each: 1. Plan the chunks. 2. Run the job. 3. Check row counts. 4. Pause on errors. 5. Report. Tools or data I can give you: database, cloud-console. Ask me for anything missing before you start. Do not take any action yourself; stop for my decision where: engineer approves start. Watch for: corrupting data; dry run and counts.
Copies the prompt, then opens the tool. Paste it in to start.
{
"name": "data-pipeline-backfill-runner-0099",
"goal": "Data backfill run in checked chunks",
"persona": [
"developer"
],
"autonomy": "supervised",
"tools": [
"database",
"cloud-console"
],
"plan": [
"Plan the chunks.",
"Run the job.",
"Check row counts.",
"Pause on errors.",
"Report."
],
"human_in_the_loop": "engineer approves start",
"guardrails": "corrupting data; dry run and counts",
"output": "a draft for human review"
}Copies the prompt, then opens the tool. Paste it in to start.
{
"name": "data-pipeline-backfill-runner-0099",
"goal": "Data backfill run in checked chunks",
"persona": [
"developer"
],
"autonomy": "supervised",
"tools": [
"database",
"cloud-console"
],
"plan": [
"Plan the chunks.",
"Run the job.",
"Check row counts.",
"Pause on errors.",
"Report."
],
"human_in_the_loop": "engineer approves start",
"guardrails": "corrupting data; dry run and counts",
"output": "a draft for human review"
}Copies the prompt, then opens the tool. Paste it in to start.
At a glance
- For
- developer
- Industry
- software
- Autonomy
- supervised
- Difficulty
- Works with
- Steps
- 5 · 1 human checkpoint
- Runs as
- on demand
- Needs approval
- engineer approves start
- What it costs to run
- $0.016 per run with a mid-priced model
- Evidence
- ID
UC-0099
Where to go from here
All developer use casesSimilar work
These use cases do the same kinds of work as this one. Each card shows what they have in common.
Cloud config drift against infrastructure code
The agent compares live cloud configuration with your infrastructure code, classifies the drift and opens a pull request or ticket. It only plans, never applies destructive changes, and an engineer approves any apply.
Failed data job repair
The agent reads the job error, checks for source changes, patches the mapping and reruns a small slice. A full rerun needs an engineer's approval, and loads are idempotent to avoid duplicates.
Repricer that stays within your floor and ceiling
The agent compares your prices with competitors', computes a target price and applies it within the floor and ceiling you set. Every change is logged, and you get an alert when a floor is hit. The floor margin stops a price war, and you review the daily log.
Same kinds of tools, a different job
These use cases connect to the same kinds of tools as this one, so part of your setup carries over.
Expensive queries rewritten
The agent ranks queries by cost from the logs, suggests rewrites and tests that results stay equal before proposing the change. The owner approves.
Data warehouse spend by team
The agent groups warehouse billing by team tags, flags spikes and notifies the team. The team owner acts.
Scheduled backup restore tests
On a schedule, the agent restores backups to an isolated scratch system, runs integrity checks and reports time and success before cleaning up. It never writes to production, and an admin reviews failures.