返回 DeepSeek-Reasonix
TASK_CONTRACT.md
根目录 / docs / TASK_CONTRACT.md
1 # Task Contracts and Pause Policy
2
3 <a href="./GUIDE.md">Guide</a>
4 &nbsp;·&nbsp;
5 <a href="./TASK_CONTRACT.zh-CN.md">Simplified Chinese</a>
6
7 Reasonix works best when nontrivial work is described as a **task contract**:
8 what the work is for, what action is requested, how the result should be
9 delivered, what boundaries must be preserved, and when the agent should pause.
10 Some prompt templates call the last section "Checkpoint"; Reasonix documents it
11 as "Pause policy" to avoid confusion with Checkpoints/Rewind snapshots.
12
13 This is intentionally not a larger role prompt. Strong coding agents usually do
14 not need step-by-step thinking instructions. They need clear boundaries and
15 acceptance criteria.
16
17 ## Template
18
19 ```text
20 Context:
21 I am working on [larger task].
22 The target audience/user is [who].
23 This result should help them [achieve what outcome].
24
25 Request:
26 Please complete [one clear action].
27
28 Output format:
29 Return the result as [specific structure].
30 It must include [required sections].
31 Keep it within [length or scope].
32
33 Constraints:
34 Do not [bad assumption].
35 Do not [out-of-scope content].
36 Do not [low-quality output shape].
37 If information is missing, mark uncertainty explicitly.
38
39 Pause policy:
40 Unless the next step involves an irreversible or externally visible operation,
41 a scope change, or information only I can provide, keep working and report back
42 after the task is complete.
43 ```
44
45 ## How Reasonix Uses It
46
47 - **Normal chat** can use the template directly for one-off work.
48 - **Goal mode** treats the goal as a task contract and keeps working until the
49 model explicitly reports complete or blocked, subject to user controls and resource limits.
50 - **Plan mode** is the right choice when you want the model to draft and confirm
51 a plan before implementation. The host enforces a read-only boundary until approval.
52 - **Tool approval** remains separate: file writes, shell commands, publishing,
53 credentials, and external effects still follow the configured approval policy.
54 - **Checkpoints/Rewind** are file and conversation snapshots. The task contract's
55 pause policy is about when the agent should ask the user before continuing.
56
57 The Goal-mode task contract rides the provider-visible user turn. It does not
58 rewrite the cache-stable system prompt, memory prefix, or tool schemas.
59
60 The model interprets requested checks and acceptance criteria as task instructions.
61 The host does not derive quality obligations from file count, paths, plans, or
62 verification wording. It retains permissions, Plan preapproval write protection,
63 cancellation, explicit budgets, and reliable execution. Results show actual
64 commands and outcomes alongside model declarations; no overall host quality
65 verdict is assigned. See [execution semantics and migration](EXECUTION_MODEL_SIMPLIFICATION.md).
66
67 ## Example
68
69 ```text
70 /goal Context:
71 I am improving the desktop composer.
72 The target user is someone doing repeated code review sessions.
73 This should help them avoid accidental interruptions.
74
75 Request:
76 Make the slash-command menu keep keyboard focus while suggestions are open.
77
78 Output format:
79 After implementation, summarize changed files and verification results.
80
81 Constraints:
82 Do not change the desktop host JSON contract.
83 Do not refactor unrelated composer state.
84 If browser verification cannot run, say why.
85
86 Pause policy:
87 Unless the next step requires a product decision, a public push, or credentials,
88 continue through implementation and verification before reporting back.
89 ```
90
90 lines MARKDOWN