Long Task Continuation
Overview
Use this skill to keep long tasks checkpointed, resumable, drift-aware, and evidence-gated.
This is a protocol skill. It does not execute plans, dispatch subagents, run tests, or grant completion authority.
Authority Boundary
Current owner:
- Method Pack protocol discipline
Not owned here:
- plan execution
- subagent dispatch
- host daemon / watchdog / automatic retry
- authoritative
GateDecision
- evidence sufficiency final judgment
- completion authority
When To Use
Use this skill when any of these are true:
- the task has multiple phases or more than one meaningful work slice
- the task may be interrupted, compacted, resumed, or handed off
- the task uses subagents
- the user explicitly asks for long-task continuity, resume safety, or avoiding drift
- the task changes architecture, contracts, shared workflows, or verification gates
For short direct answers or one-command checks, do not force this protocol.
Required Artifacts
Maintain artifacts under docs/aegis/work/YYYY-MM-DD-<slug>/:
| Artifact |
File |
When |
| TaskIntentDraft |
10-intent.md and optional task-intent-draft.json |
Start protocol |
| BaselineReadSetHint |
10-intent.md (inline) |
Start protocol |
| BaselineUsageDraft |
10-intent.md (inline) and optional baseline-usage-draft.json |
Start protocol and when baseline usage changes |
| ImpactStatementDraft |
10-intent.md (inline) |
Start protocol |
| TodoCheckpointDraft |
20-checkpoint.md and optional todo-checkpoint-draft.json |
Each checkpoint |
| ResumeStateHint |
20-checkpoint.md (inline) |
Each pause/handoff |
| DriftCheckDraft |
20-checkpoint.md (inline) and optional drift-check-draft.json |
Per-slice protocol |
| EvidenceBundleDraft |
90-evidence.md and optional evidence-bundle-draft.json |
Per-slice protocol |
| Reflection |
99-reflection.md |
Completion candidate |
For medium+ complexity tasks only. Low-complexity tasks skip work/.
Execution Readiness View may be included inline in 10-intent.md or the
active checkpoint when the workstream is medium/high, subagent-driven,
handoff-prone, long-running, architecture / contract sensitive, or
compatibility / retirement sensitive. It is a human-readable rendering of
existing drafts and the parent plan, not a new JSON artifact type and not
completion authority.
Planless Slice Lane:
Use this lane when a parent plan or parent spec already owns the long-task
workstream and the current micro-slice only executes or refines one bounded
parent task.
Record a compact Slice Card instead of creating another durable plan/spec:
Slice Card:
- Goal:
- Parent plan/spec:
- Files:
- Boundary:
- Verification:
- Stop:
Slice Card Goal anchors slice-level completeness only.
It does not by itself grant whole-task completion.
Final completion still requires verification-before-completion Goal Closure
against the parent plan/spec and any active goal frame, rendered through the
unified Aegis impact/safety receipt unless audit detail is requested.
Do not create new plan/spec files for micro-slices that stay inside the
parent plan, existing compatibility boundary, and known verification path.
Update the existing checkpoint, evidence, and drift records when persistent
state is needed.
Escalate out of this lane only when a new owner, contract, schema, public API,
architecture boundary, migration, persistence, security/permission,
distribution/release surface, or unclear verification boundary appears.
When durable architecture decisions are in scope, these work records are the
preferred ADR Auto Backfill source. Preserve ADR signals, source refs,
alternatives, compatibility boundaries, drift checks, retirement notes, and
baseline-sync questions in the work record instead of relying on memory at
completion time.
These are draft / hint / projection inputs. They are not authoritative runtime records.
Workspace Helper Protocol
When configured Aegis workspace support or installed Aegis workspace support is
available, use it for the target project workspace and lifecycle records:
Initialize before writing work records:
python <aegis-workspace-helper> init --root <target-project-root>
For a new medium+ task process trail, prefer helper-backed lifecycle
creation over hand-created files:
python <aegis-workspace-helper> new-work --root <target-project-root> --date YYYY-MM-DD --slug <slug> --title "<title>" --requested-outcome "<outcome>" --scope "<scope>" --change-kind <kind>
After each slice, update checkpoint, evidence, and drift through the helper:
python <aegis-workspace-helper> add-checkpoint --root <target-project-root> --work YYYY-MM-DD-<slug> ...
python <aegis-workspace-helper> add-baseline-usage --root <target-project-root> --work YYYY-MM-DD-<slug> ...
python <aegis-workspace-helper> add-evidence --root <target-project-root> --work YYYY-MM-DD-<slug> ...
python <aegis-workspace-helper> add-drift-check --root <target-project-root> --work YYYY-MM-DD-<slug> ...
Before pause, handoff, or completion candidate, assemble a structural proof
bundle and check the workspace:
python <aegis-workspace-helper> bundle --root <target-project-root> --work YYYY-MM-DD-<slug>
python <aegis-workspace-helper> check --root <target-project-root>
These helper checks validate workspace structure, index coverage, and JSON
sidecar shape only. They do not determine evidence sufficiency, do not produce
authoritative GateDecision, and do not grant completion authority.
Start Protocol
Before long-task execution:
- State the requested outcome, scope, non-goals, and risk hints.
- If goal framing exists, restate goal, success evidence, stop condition, and
non-goals. Stop condition must allow done, blocked, needs-verification, and
scope-exceeded outcomes.
- Identify baseline refs that must be read before changing files.
- Record baseline usage state:
- required baseline refs
- optionally delivered context refs when the host can project them
- acknowledged before plan refs
- cited in plan refs
- missing refs
- Create or update the todo map.
- If the parent plan or workstream needs an execution handoff, render or link
an
Execution Readiness View:
- intent lock
- scope fence
- baseline lock
- owner / contract constraints
- compatibility boundary
- retirement boundary
- task batches
- test obligations
- review gates
- drift / rewind rules
- evidence required before completion
- advisory boundary
- Create the first checkpoint:
- current todo
- active slice
- completed todos
- evidence refs
- blocked-on items
- next step
- If baseline refs are missing, pause in
needs-baseline-readback.
- If the workspace helper is available, use
aegis-workspace.py new-work to
create/index the first docs/aegis/work/ files and run check --root <target-project-root> before continuing.
Per-Slice Protocol
Before each work slice, restate:
- current goal
- current todo
- intended edits
- explicit non-edits
- verification command or manual check
Execution Readiness View alignment when one exists
For micro-slices under an existing parent plan, use the Planless Slice Lane and
state the Slice Card instead of opening a new planning/specification artifact.
After each work slice, update:
- completed todos
- evidence refs
- baseline usage if newly required refs were acknowledged, cited, or found missing
- blockers
- next step
- drift check
- helper-backed JSON sidecars through
aegis-workspace.py add-checkpoint,
aegis-workspace.py add-baseline-usage, aegis-workspace.py add-evidence, and aegis-workspace.py add-drift-check
when available
When patch-shape/ripple triage, an H-class finding, or a bounded compatibility
mitigation fired, a locally green result does not clear that direction. Reuse
checkpoint prose and evidence refs to retain PatchShape, CanonicalOwner,
UpwardDrillSignal, decision, latest outcome, and one bounded evidence ref;
do not copy raw logs or full diffs.
If no fresh evidence exists, the state is needs-verification or partial.
Resume Protocol
When resuming:
- Read latest checkpoint.
- Read latest resume hint if present.
- Re-read original task intent.
- Re-read required baseline refs.
- Passively re-read relevant active
CONTEXT.md language for non-trivial work.
- Re-read the
Execution Readiness View if present.
- Compare current worktree state with checkpoint claims.
- Compare the slice with the view's intent, scope, baseline, compatibility,
retirement, test, and review locks.
- If checkpoint, baseline, context, view, and worktree disagree, compose
establishing-project-context for semantic conflict; otherwise pause or
return to planning.
- Before an unplanned repair, read retained invariant, owner seam, patch shape,
and causal topology and route comparison to
systematic-debugging; a new
carrier name alone does not prove a new direction.
Never resume from memory alone.
Drift Check
Answer these after each slice:
- Does the current work still serve the original task intent?
- Does the current work still serve the goal and stop condition?
- Did the slice stay inside the compatibility boundary?
- Did any new owner, fallback, adapter, or branch appear?
- Is the retirement track still explicit?
- Did the evidence bundle grow enough to support the next claim?
- If an
Execution Readiness View exists, does the active slice still match
its intent lock, scope fence, baseline lock, compatibility boundary,
retirement boundary, test obligations, and review gates?
Allowed decisions:
continue
pause-for-user
needs-baseline-readback
needs-verification
blocked
Forbidden decisions:
gate-passed
completion-granted
authoritatively-safe
Completion Candidate Protocol
Before saying work is complete:
- Use aegis:verification-before-completion.
- Confirm every todo has a status.
- Confirm blockers are resolved or externalized.
- Confirm evidence refs cover the acceptance criteria.
- Confirm drift check has no blocking state.
- Run
python <aegis-workspace-helper> bundle --root <target-project-root> --work YYYY-MM-DD-<slug> if the helper is available and a work record
exists.
- Run
python <aegis-workspace-helper> check --root <target-project-root>
if the helper is available and the task wrote docs/aegis/ records.
- Treat the generated
GateInputPack as future-runtime input only.
- If durable architecture decisions were in scope, pass the work record,
proof bundle, drift checks, evidence refs, and ADR signals into
aegis:verification-before-completion for ADR Backfill Check.
Method Pack output is verified evidence and advisory judgment only. It is not authoritative completion.
Minimal Reporting Shape
Use this shape for long-task updates:
Aegis Visibility: why checkpoint, resume, drift, handoff, or parent-plan
discipline is shaping the next step
TodoCheckpointDraft: current todo, completed todos, active slice, next step
BaselineUsageDraft: required refs, acknowledged refs, cited refs, missing refs, decision
Execution Readiness View: present | absent | refreshed | stale, and the
alignment signal when present
Evidence: commands, files, logs, or manual checks
DriftCheckDraft: scope, compatibility, retirement, decision
Risk / Unknown: unresolved blockers or missing evidence
Next: the next smallest safe action
Source: hashgraph-online/awesome-codex-plugins → plugins/GanyuanRan/Aegis/skills/long-task-continuation/SKILL.md
1---2name: long-task-continuation3description: Use when a task is multi-step, may span context resets or sessions, uses subagents, or risks losing state before completion.4---567# Long Task Continuation89## Overview1011Use this skill to keep long tasks checkpointed, resumable, drift-aware, and evidence-gated.1213This is a protocol skill. It does not execute plans, dispatch subagents, run tests, or grant completion authority.1415## Authority Boundary1617Current owner:1819- Method Pack protocol discipline2021Not owned here:2223- plan execution24- subagent dispatch25- host daemon / watchdog / automatic retry26- authoritative `GateDecision`27- evidence sufficiency final judgment28- completion authority2930## When To Use3132Use this skill when any of these are true:3334- the task has multiple phases or more than one meaningful work slice35- the task may be interrupted, compacted, resumed, or handed off36- the task uses subagents37- the user explicitly asks for long-task continuity, resume safety, or avoiding drift38- the task changes architecture, contracts, shared workflows, or verification gates3940For short direct answers or one-command checks, do not force this protocol.4142## Required Artifacts4344Maintain artifacts under `docs/aegis/work/YYYY-MM-DD-<slug>/`:4546| Artifact | File | When |47|----------|------|------|48| TaskIntentDraft | `10-intent.md` and optional `task-intent-draft.json` | Start protocol |49| BaselineReadSetHint | `10-intent.md` (inline) | Start protocol |50| BaselineUsageDraft | `10-intent.md` (inline) and optional `baseline-usage-draft.json` | Start protocol and when baseline usage changes |51| ImpactStatementDraft | `10-intent.md` (inline) | Start protocol |52| TodoCheckpointDraft | `20-checkpoint.md` and optional `todo-checkpoint-draft.json` | Each checkpoint |53| ResumeStateHint | `20-checkpoint.md` (inline) | Each pause/handoff |54| DriftCheckDraft | `20-checkpoint.md` (inline) and optional `drift-check-draft.json` | Per-slice protocol |55| EvidenceBundleDraft | `90-evidence.md` and optional `evidence-bundle-draft.json` | Per-slice protocol |56| Reflection | `99-reflection.md` | Completion candidate |5758For medium+ complexity tasks only. Low-complexity tasks skip work/.5960`Execution Readiness View` may be included inline in `10-intent.md` or the61active checkpoint when the workstream is medium/high, subagent-driven,62handoff-prone, long-running, architecture / contract sensitive, or63compatibility / retirement sensitive. It is a human-readable rendering of64existing drafts and the parent plan, not a new JSON artifact type and not65completion authority.6667Planless Slice Lane:6869- Use this lane when a parent plan or parent spec already owns the long-task70 workstream and the current micro-slice only executes or refines one bounded71 parent task.72- Record a compact Slice Card instead of creating another durable plan/spec:7374 ```text75 Slice Card:76 - Goal:77 - Parent plan/spec:78 - Files:79 - Boundary:80 - Verification:81 - Stop:82 ```8384- Slice Card `Goal` anchors slice-level completeness only.85- It does not by itself grant whole-task completion.86- Final completion still requires `verification-before-completion` Goal Closure87 against the parent plan/spec and any active goal frame, rendered through the88 unified Aegis impact/safety receipt unless audit detail is requested.8990- Do not create new plan/spec files for micro-slices that stay inside the91 parent plan, existing compatibility boundary, and known verification path.92- Update the existing checkpoint, evidence, and drift records when persistent93 state is needed.94- Escalate out of this lane only when a new owner, contract, schema, public API,95 architecture boundary, migration, persistence, security/permission,96 distribution/release surface, or unclear verification boundary appears.9798When durable architecture decisions are in scope, these work records are the99preferred ADR Auto Backfill source. Preserve ADR signals, source refs,100alternatives, compatibility boundaries, drift checks, retirement notes, and101baseline-sync questions in the work record instead of relying on memory at102completion time.103104These are draft / hint / projection inputs. They are not authoritative runtime records.105106## Workspace Helper Protocol107108When configured Aegis workspace support or installed Aegis workspace support is109available, use it for the target project workspace and lifecycle records:1101111. Initialize before writing work records:112113 ```bash114 python <aegis-workspace-helper> init --root <target-project-root>115 ```1161172. For a new medium+ task process trail, prefer helper-backed lifecycle118 creation over hand-created files:119120 ```bash121 python <aegis-workspace-helper> new-work --root <target-project-root> --date YYYY-MM-DD --slug <slug> --title "<title>" --requested-outcome "<outcome>" --scope "<scope>" --change-kind <kind>122 ```1231243. After each slice, update checkpoint, evidence, and drift through the helper:125126 ```bash127 python <aegis-workspace-helper> add-checkpoint --root <target-project-root> --work YYYY-MM-DD-<slug> ...128 python <aegis-workspace-helper> add-baseline-usage --root <target-project-root> --work YYYY-MM-DD-<slug> ...129 python <aegis-workspace-helper> add-evidence --root <target-project-root> --work YYYY-MM-DD-<slug> ...130 python <aegis-workspace-helper> add-drift-check --root <target-project-root> --work YYYY-MM-DD-<slug> ...131 ```1321334. Before pause, handoff, or completion candidate, assemble a structural proof134 bundle and check the workspace:135136 ```bash137 python <aegis-workspace-helper> bundle --root <target-project-root> --work YYYY-MM-DD-<slug>138 python <aegis-workspace-helper> check --root <target-project-root>139 ```140141These helper checks validate workspace structure, index coverage, and JSON142sidecar shape only. They do not determine evidence sufficiency, do not produce143authoritative `GateDecision`, and do not grant completion authority.144145## Start Protocol146147Before long-task execution:1481491. State the requested outcome, scope, non-goals, and risk hints.1502. If goal framing exists, restate goal, success evidence, stop condition, and151 non-goals. Stop condition must allow done, blocked, needs-verification, and152 scope-exceeded outcomes.1533. Identify baseline refs that must be read before changing files.1544. Record baseline usage state:155 - required baseline refs156 - optionally delivered context refs when the host can project them157 - acknowledged before plan refs158 - cited in plan refs159 - missing refs1605. Create or update the todo map.1616. If the parent plan or workstream needs an execution handoff, render or link162 an `Execution Readiness View`:163 - intent lock164 - scope fence165 - baseline lock166 - owner / contract constraints167 - compatibility boundary168 - retirement boundary169 - task batches170 - test obligations171 - review gates172 - drift / rewind rules173 - evidence required before completion174 - advisory boundary1757. Create the first checkpoint:176 - current todo177 - active slice178 - completed todos179 - evidence refs180 - blocked-on items181 - next step1828. If baseline refs are missing, pause in `needs-baseline-readback`.1839. If the workspace helper is available, use `aegis-workspace.py new-work` to184 create/index the first `docs/aegis/work/` files and run `check --root185 <target-project-root>` before continuing.186187## Per-Slice Protocol188189Before each work slice, restate:1901911. current goal1922. current todo1933. intended edits1944. explicit non-edits1955. verification command or manual check1966. `Execution Readiness View` alignment when one exists197198For micro-slices under an existing parent plan, use the Planless Slice Lane and199state the Slice Card instead of opening a new planning/specification artifact.200201After each work slice, update:2022031. completed todos2042. evidence refs2053. baseline usage if newly required refs were acknowledged, cited, or found missing2064. blockers2075. next step2086. drift check2097. helper-backed JSON sidecars through `aegis-workspace.py add-checkpoint`,210 `aegis-workspace.py add-baseline-usage`, `aegis-workspace.py add-evidence`, and `aegis-workspace.py add-drift-check`211 when available212213When patch-shape/ripple triage, an H-class finding, or a bounded compatibility214mitigation fired, a locally green result does not clear that direction. Reuse215checkpoint prose and evidence refs to retain `PatchShape`, `CanonicalOwner`,216`UpwardDrillSignal`, decision, latest outcome, and one bounded evidence ref;217do not copy raw logs or full diffs.218219If no fresh evidence exists, the state is `needs-verification` or `partial`.220221## Resume Protocol222223When resuming:2242251. Read latest checkpoint.2262. Read latest resume hint if present.2273. Re-read original task intent.2284. Re-read required baseline refs.2295. Passively re-read relevant active `CONTEXT.md` language for non-trivial work.2306. Re-read the `Execution Readiness View` if present.2317. Compare current worktree state with checkpoint claims.2328. Compare the slice with the view's intent, scope, baseline, compatibility,233 retirement, test, and review locks.2349. If checkpoint, baseline, context, view, and worktree disagree, compose235 `establishing-project-context` for semantic conflict; otherwise pause or236 return to planning.23710. Before an unplanned repair, read retained invariant, owner seam, patch shape,238 and causal topology and route comparison to `systematic-debugging`; a new239 carrier name alone does not prove a new direction.240241Never resume from memory alone.242243## Drift Check244245Answer these after each slice:246247- Does the current work still serve the original task intent?248- Does the current work still serve the goal and stop condition?249- Did the slice stay inside the compatibility boundary?250- Did any new owner, fallback, adapter, or branch appear?251- Is the retirement track still explicit?252- Did the evidence bundle grow enough to support the next claim?253- If an `Execution Readiness View` exists, does the active slice still match254 its intent lock, scope fence, baseline lock, compatibility boundary,255 retirement boundary, test obligations, and review gates?256257Allowed decisions:258259- `continue`260- `pause-for-user`261- `needs-baseline-readback`262- `needs-verification`263- `blocked`264265Forbidden decisions:266267- `gate-passed`268- `completion-granted`269- `authoritatively-safe`270271## Completion Candidate Protocol272273Before saying work is complete:2742751. Use aegis:verification-before-completion.2762. Confirm every todo has a status.2773. Confirm blockers are resolved or externalized.2784. Confirm evidence refs cover the acceptance criteria.2795. Confirm drift check has no blocking state.2806. Run `python <aegis-workspace-helper> bundle --root <target-project-root>281 --work YYYY-MM-DD-<slug>` if the helper is available and a work record282 exists.2837. Run `python <aegis-workspace-helper> check --root <target-project-root>`284 if the helper is available and the task wrote `docs/aegis/` records.2858. Treat the generated `GateInputPack` as future-runtime input only.2869. If durable architecture decisions were in scope, pass the work record,287 proof bundle, drift checks, evidence refs, and ADR signals into288 aegis:verification-before-completion for ADR Backfill Check.289290Method Pack output is verified evidence and advisory judgment only. It is not authoritative completion.291292## Minimal Reporting Shape293294Use this shape for long-task updates:295296- `Aegis Visibility`: why checkpoint, resume, drift, handoff, or parent-plan297 discipline is shaping the next step298- `TodoCheckpointDraft`: current todo, completed todos, active slice, next step299- `BaselineUsageDraft`: required refs, acknowledged refs, cited refs, missing refs, decision300- `Execution Readiness View`: present | absent | refreshed | stale, and the301 alignment signal when present302- `Evidence`: commands, files, logs, or manual checks303- `DriftCheckDraft`: scope, compatibility, retirement, decision304- `Risk / Unknown`: unresolved blockers or missing evidence305- `Next`: the next smallest safe action306307---308309**Source:** [`hashgraph-online/awesome-codex-plugins`](https://github.com/hashgraph-online/awesome-codex-plugins) → `plugins/GanyuanRan/Aegis/skills/long-task-continuation/SKILL.md`