{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "primorlee-agent-workflow-platform--add-durable-task-ledger-to-any-repo",
 "repo": "primorLee/agent-workflow-platform",
 "repo_url": "https://github.com/primorLee/agent-workflow-platform",
 "repo_slug": "primorlee-agent-workflow-platform",
 "title": "Add a durable task ledger with resume instructions",
 "page_title": "How to add a durable task ledger with resume instructions with Agent Workflow Platform",
 "summary": "Track tasks, heartbeats, and checkpoints in a file-backed ledger that a new session can resume from.",
 "who": "A developer or agent running long multi-step work in a repository who loses progress when a chat or process stops.",
 "problem": "Work stopped mid-task has no durable record, so the next session must rebuild context from memory.",
 "outcome": "A ledger in the ignored .agent-workflow/ directory holds the task, its checkpoint, and a rebuilt resume instruction that a new session can follow.",
 "steps": [
  "Clone the repository with `git clone https://github.com/primorLee/agent-workflow-platform.git` and enter it with `cd agent-workflow-platform`.",
  "Add a task with `python workflows/runtime/scheduler.py add \"Create a deterministic smoke test\" 2 --group reliability`.",
  "Record progress with `python workflows/runtime/scheduler.py heartbeat`.",
  "Save a checkpoint with `python workflows/runtime/scheduler.py checkpoint \"Run the regression and attach its output\"`.",
  "Stop the process, then in a new terminal or agent session run `python workflows/runtime/guardian.py resume`."
 ],
 "agent_prompt": "In the agent-workflow-platform repository, add a task to the scheduler, send a heartbeat, and save a checkpoint with the status of <your-task>. Then run guardian.py resume in a new session and report the rebuilt resume instruction, confirming it comes from the durable state under .agent-workflow/.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "15 minutes",
 "basis": "readme",
 "caveat": "The README says the scheduler does not spawn Agents or execute tasks, and Guardian does not restart a process, so you must run the work yourself and only use the ledger to record and resume it.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "typescript",
 "requirements": [
  "Docker Engine or Docker Desktop with Compose, and Python 3.12, for the local round trip",
  "Node.js 22.12 or newer, for the desktop workbench",
  "A compatible Agent CLI or model endpoint, such as a local Ollama-compatible endpoint, for real model responses",
  "Python 3.10 or newer, for the standalone workflow runtime"
 ],
 "risk": "dual-use",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.7,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/primorlee-agent-workflow-platform/add-durable-task-ledger-to-any-repo/",
 "md": "https://dedupedai.com/use-cases/primorlee-agent-workflow-platform/add-durable-task-ledger-to-any-repo/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/primorlee-agent-workflow-platform--add-durable-task-ledger-to-any-repo.json",
 "api_version": "v1"
}
