Tianyi Cui 70e50cd9be Merge commit 'refs/codex/unblock/master-current' into HEAD 2 місяців тому
..
tasks 1145ee5fc3 fix(invariants): assert runtime relationships, not API shapes 2 місяців тому
tool-tasks 70e50cd9be Merge commit 'refs/codex/unblock/master-current' into HEAD 2 місяців тому
README.md e8eddc7ef8 Rename RFCs to Agent Notes 2 місяців тому

README.md

tasks/ — background task capability family

The shared home for background-task ids, owner isolation, reads, cancellation, waiting, and completion notices. Bash, subagents, and future long-running tools use one model-facing protocol. See the background-task runtime Agent Note.

Package ctx key Role
tasks (@deepseek-ai/dsh-tasks) ctx.tasks The registry service: branded <kind>-N ids, owner-fenced read/kill/wait/list, settlement bookkeeping, the awaited owner-cleanup path, and the attachSurface misconfiguration fence
tool-tasks (@deepseek-ai/dsh-tool-tasks) — The model-facing control surface: task_output, task_list, task_kill, the completion-notice injection, and the background-habit prompt section

The registry owns state across producer or surface reloads; the tool package owns presentation. Producers register execution hooks through ctx.tasks.start and own whether their config exposes run_in_background.