Reconcile the session task list with its task store (log finished tasks, merge duplicates, re-rank, fill free window slots, rewrite the backlog line). Use at resume, when a guard says a window slot is free, or when the list holds legacy or unsorted tasks.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Tasks Reconcile?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/talas9-tasks-reconcile)
---
name: tasks-reconcile
description: Reconcile the session task list with its task store (log finished tasks, merge duplicates, re-rank, fill free window slots, rewrite the backlog line). Use at resume, when a guard says a window slot is free, or when the list holds legacy or unsorted tasks.
---
# tasks-reconcile
Task list rules (enforced at TaskCreate/TaskUpdate by tasklist-hygiene on Claude, maintained manually on Codex): rank eligible tasks by priority then stable task number when `guards.taskWindowPriority` is on, targeting `guards.taskWindowSize` (default 5) active tasks plus one `T-∞ Backlog: …` index. Subjects use `T-<n> [P<0-3>] title` and in-progress tasks name an owner. Ranking may displace only pending, unowned native tasks whose creation is confirmed for this session. Preserve every other session's tasks and every owned or in-progress task in place. Save displaced tasks in the project task store before archiving their full native records, and keep them recoverable by their creator. Restore only confirmed native IDs with archived records. Empty-ID reservations expire under `task_window.reserve_ttl_ms`. Blocked updates save the blocked state and keep the complete native task visible. `guards.taskWindowBlockedKeep` (default 2) is an advisory threshold. Exceeding it allows the requested update and preserves the native record. Shared native lists use one project-scoped store and lock, merge joining sessions' legacy rows without deleting their files, and disable session-local live-agent slot exemptions. Refuse cross-project native projection. A projection failure preserves native records, reports a reconciliation notice, and may leave the live list over the configured window target. Codex and OMX apply the same ownership and preservation rules through the task plan and store.
Changing these limits: `ah-engine settings set guards.taskWindowSize <n>` and `ah-engine settings set guards.taskWindowBlockedKeep <n>` (read back with `settings get <key>`, undo with `settings reset <key>`); the environment variables `ANTIHALL_TASK_WINDOW_SIZE` / `ANTIHALL_TASK_WINDOW_BLOCKED_KEEP` override the stored value. `guards.taskWindowPriority` switches priority ranking on or off.
## The store
`.anti-hall/tasks/store/<session>.json` in the project root:
`{"format": 1, "session", "from", "resumed", "tasks": [{"n", "p", "title", "state", "id", "owner", "blockedOn", "at"}]}`.
States: `window` (live), `backlog`, `blocked` (backlog, waiting on something or the owner), `done`, `dropped`.
The Claude guard (tasklist-hygiene) updates it on every TaskCreate/TaskUpdate and adopts the predecessor's store at resume.
The native projection runs after a successful task call. It ranks pending, unowned tasks with confirmed creation
provenance for this session. Owned tasks, in-progress tasks and tasks created by another session stay visible.
An unsuccessful projection preserves native records and reports a reconciliation notice. The native list can
therefore exceed `guards.taskWindowSize` while protected tasks or a projection failure prevent displacement.
Full native records live under the project's `task_window.native_archive_dir` (default
`.anti-hall/tasks/native/<store-key>/<native-id>/`), preserving descriptions, metadata and dependency links.
Legacy native-list archives are eligible for automatic restore only with an active archive marker.
Unmarked legacy records remain preserved for explicit owner recovery. Only confirmed native IDs with active full
archived records can return to the window. Expired empty-ID reservations
and native tasks deleted without an archived record stay out of automatic restore.
Within one project, sessions using the same explicit named native list or `.session-list` pointer share a store
named `<list-id>.json` and its lock. Each joining session's legacy store is merged once, preserving its source
file and renumbering colliding task numbers. Imported rows keep a `recoveryStore` pointer to their original store
and require reconciliation by their original owner. Imported legacy rows carry no native mutation authority
when the original list identity is unknown. Shared lists disable session-local live-agent slot exemptions.
Cross-project projection is refused even before a backlog index exists. Codex and OMX keep the equivalent
plan and store manually, following the same ownership and preservation rules as Claude and OMC.
Edit it yourself (Write/Edit tool) only in the steps below. Never delete the file or an item: finished or dropped work keeps its state.
## Steps
1. Read the live list (TaskList) and the store.
2. Import (only when the guard says the resumed list is not imported): read the `## Task list snapshot` table of the
handover's `state.md` and write this session's store, one item per row: `n` from the row's `T-<n>` or the next free
number, `p` from its priority (P2 when none), state `window` for open rows, `blocked` for rows with a blocker, `done`
for finished ones.
3. Finished: for each completed task created by this session, write its Cause/Fix/Verified entry in the history ledger
(`.anti-hall/history/<date>/<session>.md`), then `TaskUpdate status=deleted`.
4. Duplicates belonging to this session: keep the lower number and note the merge in the ledger.
Preserve every task created by another session.
5. Re-rank eligible pending, unowned items by `p`, then `n` when `guards.taskWindowPriority` is on. Preserve
every owned or in-progress task and every native task whose creation belongs to another session. Protected
tasks can leave the visible list above the window target. With priority ranking off, retain eligible window order.
6. Let the guard project eligible displaced tasks after the successful task call. Verify each displaced task's store
row and full archive before considering it recoverable. Restore only an existing confirmed ID from its archive.
For manual reconciliation, preserve the full native record and store ownership before moving it to the backlog.
A deleted task without an archive and a refused create's reservation must stay out of restore.
7. Backlog line, last slot: `TaskCreate` (or `TaskUpdate` its subject)
`T-∞ Backlog: <k> more (<a> P0, <b> P1) · next: T-<n> [P<p>] <title> · run /anti-hall:tasks-reconcile`.
Remove an empty index only after verifying this project owns it.
8. Every in-progress task names its owner (`TaskUpdate owner=<agent name, or main>`).