@hassangameryt/freeflow 0.7.1 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/.cursor-plugin/plugin.json +1 -1
- package/README.md +28 -23
- package/capabilities/cognitive-routing/SKILL.md +94 -311
- package/command-surface.json +7 -1
- package/gemini-extension.json +1 -1
- package/package.json +4 -4
- package/pi-extension/dist/cognitive-routing-v2/budget.js +42 -0
- package/pi-extension/dist/cognitive-routing-v2/config.js +120 -0
- package/pi-extension/dist/cognitive-routing-v2/projection.js +321 -0
- package/pi-extension/dist/cognitive-routing-v2/render.js +231 -0
- package/pi-extension/dist/cognitive-routing-v2/runtime.js +1585 -0
- package/pi-extension/dist/cognitive-routing-v2/schemas.js +107 -0
- package/pi-extension/dist/cognitive-routing-v2/state.js +612 -0
- package/pi-extension/dist/cognitive-routing-v2/tools.js +91 -0
- package/pi-extension/dist/cognitive-routing-v2/types.js +44 -0
- package/pi-extension/dist/freeflow-context/tool.js +5 -0
- package/pi-extension/dist/index.js +279 -624
- package/pi-extension/dist/runtime/runtime-context.js +63 -13
- package/pi-extension/dist/session-sources/events.js +195 -0
- package/pi-extension/dist/session-sources/read-only-session.js +148 -0
- package/pi-extension/dist/session-sources/sources.js +233 -0
- package/pi-extension/dist/settings/settings-ui.js +44 -117
- package/pi-extension/src/cognitive-routing-v2/budget.ts +42 -0
- package/pi-extension/src/cognitive-routing-v2/config.ts +143 -0
- package/pi-extension/src/cognitive-routing-v2/projection.ts +365 -0
- package/pi-extension/src/cognitive-routing-v2/render.ts +256 -0
- package/pi-extension/src/cognitive-routing-v2/runtime.ts +1634 -0
- package/pi-extension/src/cognitive-routing-v2/schemas.ts +109 -0
- package/pi-extension/src/cognitive-routing-v2/state.ts +622 -0
- package/pi-extension/src/cognitive-routing-v2/tools.ts +93 -0
- package/pi-extension/src/cognitive-routing-v2/types.ts +222 -0
- package/pi-extension/src/freeflow-context/tool.ts +5 -0
- package/pi-extension/src/index.ts +285 -674
- package/pi-extension/src/runtime/runtime-context.ts +75 -14
- package/pi-extension/src/session-sources/events.ts +208 -0
- package/pi-extension/src/session-sources/read-only-session.ts +170 -0
- package/pi-extension/src/session-sources/sources.ts +263 -0
- package/pi-extension/src/settings/settings-ui.ts +54 -131
- package/pi-extension/tests/cognitive-routing-v2/communication.test.js +484 -0
- package/pi-extension/tests/cognitive-routing-v2/compaction-input.test.js +183 -0
- package/pi-extension/tests/cognitive-routing-v2/native.test.js +441 -0
- package/pi-extension/tests/cognitive-routing-v2/performance.test.js +87 -0
- package/pi-extension/tests/cognitive-routing-v2/persistence.test.js +245 -0
- package/pi-extension/tests/cognitive-routing-v2/projection.test.js +241 -0
- package/pi-extension/tests/cognitive-routing-v2/recovery.test.js +236 -0
- package/pi-extension/tests/cognitive-routing-v2/render.test.js +230 -0
- package/pi-extension/tests/cognitive-routing-v2/runtime.test.js +153 -0
- package/pi-extension/tests/cognitive-routing-v2/stabilization.test.js +521 -0
- package/pi-extension/tests/cognitive-routing-v2/state.test.js +275 -0
- package/pi-extension/tests/context-virtualization/extension.test.js +16 -0
- package/pi-extension/tests/fixtures/routing-native.js +188 -0
- package/pi-extension/tests/integration/mode-free-core.test.js +3 -2
- package/pi-extension/tests/integration/pi-extension.test.js +154 -37
- package/pi-extension/tests/integration/prompt-architecture.test.js +87 -6
- package/pi-extension/tests/integration/unaffected-regressions.test.js +77 -10
- package/plugin.json +1 -1
- package/runtime/prompts/cognitive-routing.md +4 -5
- package/runtime/prompts/core.md +51 -45
- package/runtime/prompts/interaction-contract.md +5 -5
- package/skills/action-selection/SKILL.md +57 -97
- package/skills/design-for-depth/SKILL.md +58 -193
- package/skills/design-for-depth/references/implementation-decisions.md +76 -0
- package/skills/diagnose-failure/SKILL.md +64 -196
- package/skills/discuss/SKILL.md +64 -123
- package/skills/discuss/references/discussion-continuity.md +7 -3
- package/skills/execute-work/SKILL.md +69 -88
- package/skills/execute-work/references/execute-work-edges.md +9 -3
- package/skills/handoff/SKILL.md +44 -54
- package/skills/handoff/references/handoff-templates.md +15 -6
- package/skills/review-artifact/SKILL.md +80 -127
- package/skills/review-artifact/references/independent-artifact-reviewer-contract.md +1 -1
- package/skills/review-work/SKILL.md +65 -115
- package/skills/review-work/references/independent-work-reviewer-contract.md +1 -1
- package/skills/simplify-code/SKILL.md +47 -100
- package/skills/track-work/SKILL.md +128 -119
- package/skills/track-work/references/working-record-format.md +14 -2
- package/skills/verify-work/SKILL.md +58 -62
- package/skills/verify-work/references/integration-evidence.md +4 -2
- package/skills/verify-work/references/test-design.md +89 -0
- package/skills/workflow/SKILL.md +73 -119
- package/skills/write-plan/SKILL.md +46 -77
- package/skills/write-plan/references/plan-shapes.md +5 -5
- package/skills/write-spec/SKILL.md +51 -63
- package/skills/write-spec/references/artifact-standards.md +2 -2
- package/skills/write-spec/references/decision-records.md +3 -2
- package/skills/write-spec/references/spec-shapes.md +15 -0
- package/pi-extension/dist/cognitive-routing/commands.js +0 -96
- package/pi-extension/dist/cognitive-routing/config.js +0 -232
- package/pi-extension/dist/cognitive-routing/controller.js +0 -1292
- package/pi-extension/dist/cognitive-routing/history.js +0 -451
- package/pi-extension/dist/cognitive-routing/host.js +0 -188
- package/pi-extension/dist/cognitive-routing/pi-routing-session.js +0 -414
- package/pi-extension/dist/cognitive-routing/pi-session-control.js +0 -320
- package/pi-extension/dist/cognitive-routing/runtime.js +0 -43
- package/pi-extension/dist/cognitive-routing/tool.js +0 -212
- package/pi-extension/dist/cognitive-routing/types.js +0 -6
- package/pi-extension/src/cognitive-routing/commands.ts +0 -129
- package/pi-extension/src/cognitive-routing/config.ts +0 -303
- package/pi-extension/src/cognitive-routing/controller.ts +0 -1628
- package/pi-extension/src/cognitive-routing/history.ts +0 -650
- package/pi-extension/src/cognitive-routing/host.ts +0 -266
- package/pi-extension/src/cognitive-routing/pi-routing-session.ts +0 -538
- package/pi-extension/src/cognitive-routing/pi-session-control.ts +0 -444
- package/pi-extension/src/cognitive-routing/runtime.ts +0 -57
- package/pi-extension/src/cognitive-routing/tool.ts +0 -273
- package/pi-extension/src/cognitive-routing/types.ts +0 -89
- package/pi-extension/tests/cognitive-routing/commands.test.js +0 -134
- package/pi-extension/tests/cognitive-routing/controller.test.js +0 -1128
- package/pi-extension/tests/cognitive-routing/extension-lifecycle.test.js +0 -1142
- package/pi-extension/tests/cognitive-routing/history.test.js +0 -274
- package/pi-extension/tests/cognitive-routing/host-identity.test.js +0 -63
- package/pi-extension/tests/cognitive-routing/pi-normal-lifecycle.test.js +0 -434
- package/pi-extension/tests/cognitive-routing/pi-session-control.test.js +0 -174
- package/pi-extension/tests/cognitive-routing/pi-session-history.test.js +0 -91
- package/pi-extension/tests/cognitive-routing/profile-resolution.test.js +0 -279
- package/pi-extension/tests/cognitive-routing/tool.test.js +0 -230
- package/skills/tdd/SKILL.md +0 -143
- package/skills/tdd/references/test-design.md +0 -96
- /package/pi-extension/tests/{cognitive-routing/host-fixture.js → fixtures/pi-host.js} +0 -0
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: track-work
|
|
3
|
-
description: Use when ongoing work needs durable task memory, or when creating, recovering, maintaining, transitioning, or closing a Working Record.
|
|
3
|
+
description: "Use when ongoing work needs durable task memory, or when creating, recovering, maintaining, transitioning, or closing a Working Record."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Track Work
|
|
7
7
|
|
|
8
|
-
Maintain one compact Working Record
|
|
8
|
+
Maintain one compact Working Record so the next context can reconstruct the intended outcome, current understanding, actual work, and remaining route. Preserve what still governs the task, not merely the path the agent happened to follow.
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
The record is memory, not authority, source truth, a Spec, a Plan, or a transcript. Reconcile it with current user direction, accepted artifacts, live evidence, and repository instructions before consequential action.
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
## Track When Continuity Matters
|
|
13
|
+
|
|
14
|
+
Use a record when losing decisions, dependencies, uncertainty, partial work, evidence, or the next useful action could misalign continuation. A multi-slice task or work likely to cross context boundaries normally needs this memory. A short self-contained result does not need a record merely because work occurred. Respect an explicit user choice not to create one; do not claim unpreserved state will survive context loss.
|
|
13
15
|
|
|
14
16
|
Use one ignored record per task:
|
|
15
17
|
|
|
@@ -17,115 +19,124 @@ Use one ignored record per task:
|
|
|
17
19
|
.freeflow/tasks/task-NNN-<short-name>/record.md
|
|
18
20
|
```
|
|
19
21
|
|
|
20
|
-
[Workflow](../workflow/SKILL.md) establishes record need, authority, ownership, and the route that receives
|
|
22
|
+
[Workflow](../workflow/SKILL.md) establishes record need, authority, current ownership, and the route that receives maintenance results. [Discuss](../discuss/SKILL.md) resolves open intent, alternatives, or task ownership. Track Work preserves supported meaning without taking over those judgments.
|
|
21
23
|
|
|
22
|
-
Only the user changes task state.
|
|
24
|
+
Only the user changes task state. An agreement may cover record maintenance and several Slices, but a proposal, recorded next action, or successful lifecycle command never authorizes implementation, active evidence generation, commit, publication, or another controlled effect.
|
|
23
25
|
|
|
24
|
-
## Keep
|
|
26
|
+
## Keep The Existing Record Shape
|
|
25
27
|
|
|
26
|
-
|
|
28
|
+
Use the five Schema 4 sections in order:
|
|
27
29
|
|
|
28
30
|
1. **Current Context** — concise present understanding.
|
|
29
|
-
2. **Current Work** — one Current Slice or none,
|
|
30
|
-
3. **Future Work** —
|
|
31
|
-
4. **History** — Decisions, Checkpoints, and settled Slices, in that order.
|
|
32
|
-
5. **Notes** — inert
|
|
31
|
+
2. **Current Work** — one Current Slice or none, and one Next useful action.
|
|
32
|
+
3. **Future Work** — an ordered sequence of proposed Slices and non-terminal Checkpoints.
|
|
33
|
+
4. **History** — Decisions, terminal Checkpoints, and settled Slices, in that order.
|
|
34
|
+
5. **Notes** — inert task-local context.
|
|
35
|
+
|
|
36
|
+
Current Context and Notes are ordinary Markdown. Structured entities use compact field-list rows: `- Field: value` for one value, with two-space-indented nested bullets for multiple values. Expanded Schema 4 fields remain supported; do not mix layouts within an entity.
|
|
37
|
+
|
|
38
|
+
Read [Working Record Format](references/working-record-format.md) before editing structured content or preparing a lifecycle fragment. It owns the exact headings, fields, states, omission rules, and mechanical invariants. Do not add phase, context-cycle, delegation, global Evidence, or global Blocker sections.
|
|
39
|
+
|
|
40
|
+
Initialization creates every canonical heading. Supply a supported Goal, any known defining source or material Open question, task State, `Current Slice: None`, and one next action or honest wait condition. Preserve the material understanding that justified initialization; do not create an empty shell and lose it. If even the Goal and next action are unclear, return to discussion first.
|
|
33
41
|
|
|
34
|
-
|
|
42
|
+
`Last updated` is advisory: `init` and successful lifecycle commands maintain it; direct Markdown edits may leave it stale. It is not evidence that the record is semantically current.
|
|
35
43
|
|
|
36
|
-
|
|
44
|
+
## Recover The Whole Record After Context Loss
|
|
37
45
|
|
|
38
|
-
|
|
46
|
+
After compaction, summarization that replaces prior context, clear, session resume or navigation, a transfer into another context, or uncertain continuity, read `view full` before continuing task work. Read the complete canonical record, including History and Notes—not only the `resume` projection or a summary of it.
|
|
39
47
|
|
|
40
|
-
|
|
48
|
+
Use core recovery guidance and the active capability route for the read. Load this skill's current body when absent; an earlier reference to the skill is not its method.
|
|
41
49
|
|
|
42
|
-
|
|
43
|
-
- a supported Goal;
|
|
44
|
-
- any defining source or material Open question already known;
|
|
45
|
-
- `Current Slice: None`;
|
|
46
|
-
- one next useful action or an honest wait condition.
|
|
50
|
+
If the tool truncates the record, continue bounded reads of the same canonical source until complete. If full recovery cannot be completed within the available context or access boundary, report the limitation and stop affected work. Do not silently substitute `resume`, summarize unseen History, or claim complete recovery from a pointer.
|
|
47
51
|
|
|
48
|
-
|
|
52
|
+
With intact context, use `view resume` when active-state readback is needed, or read the exact entity or changed section. Do not reread the whole record after every user turn, tool call, or Slice. A pause without context loss may need a freshness check, not full reconstruction.
|
|
49
53
|
|
|
50
|
-
The
|
|
54
|
+
The views do not change:
|
|
51
55
|
|
|
52
|
-
|
|
56
|
+
- `full` returns the complete canonical Markdown exactly as stored.
|
|
57
|
+
- `resume` shows the header, all Current Context, active Decisions derived from History, Current Work, Future Work, and Notes; it omits terminal History.
|
|
58
|
+
|
|
59
|
+
Both are Markdown text, not JSON. Neither follows external pointers nor mutates state. The name `resume` does not make that view sufficient after context loss. Once full recovery is complete, use bounded reads for later in-session questions.
|
|
53
60
|
|
|
54
|
-
##
|
|
61
|
+
## Reconcile Before Acting
|
|
55
62
|
|
|
56
|
-
|
|
63
|
+
From the record and applicable current sources, establish:
|
|
57
64
|
|
|
58
|
-
- task State;
|
|
59
|
-
-
|
|
60
|
-
- active Decisions;
|
|
65
|
+
- the task State and Current Slice state;
|
|
66
|
+
- the agreed outcome, scope, and user-facing return condition;
|
|
67
|
+
- active Decisions, amendments, and relevant supersession;
|
|
61
68
|
- pending or deferred Checkpoints;
|
|
62
|
-
-
|
|
63
|
-
-
|
|
64
|
-
-
|
|
69
|
+
- actual completed and partial effects, evidence limits, and contradictions;
|
|
70
|
+
- prerequisites for the next work and whether they actually hold;
|
|
71
|
+
- the Next useful action and authority covering it.
|
|
65
72
|
|
|
66
|
-
|
|
73
|
+
Compare Current Context, Current Work, Future Work, and relevant History. A closed Slice and a present-state summary saying it never started cannot both govern continuation. Resolve the discrepancy from source evidence; do not choose whichever statement permits progress. Distinguish the current assignment from superseded instructions: an earlier correction plan must not replace a later read-only inspection. Retrieve the exact direction when its wording matters; a record cannot settle compute-routing state.
|
|
67
74
|
|
|
68
|
-
A record
|
|
75
|
+
A full record read reconstructs recorded memory, not the live environment or every linked source. Reopen defining artifacts and relevant code, configuration, worktree, process, or evidence state only where freshness or exact meaning affects the next action. Reuse still-supported evidence instead of repeating the whole investigation.
|
|
69
76
|
|
|
70
|
-
|
|
77
|
+
A record from another conversation branch remains memory and does not transfer branch-local authority. Current user direction may supersede a recorded decision; record presence cannot settle a conflict or grant permission.
|
|
71
78
|
|
|
72
|
-
|
|
79
|
+
If the schema is unsupported or the record is malformed, inspect it read-only through `full` and stop before edits or transitions. Migration or repair is a separate authorized operation, not an inferred recovery step.
|
|
73
80
|
|
|
74
|
-
|
|
81
|
+
## Keep Intent And Approach Distinct
|
|
75
82
|
|
|
76
|
-
|
|
77
|
-
- What defines this task
|
|
78
|
-
- Settled
|
|
79
|
-
- Tentative
|
|
80
|
-
- Open
|
|
81
|
-
- Current direction
|
|
82
|
-
- Boundaries
|
|
83
|
+
Use exactly the seven Current Context headings:
|
|
83
84
|
|
|
84
|
-
|
|
85
|
+
- **Goal:** the intended outcome or central question, not the current mechanism.
|
|
86
|
+
- **What defines this task:** accepted artifacts, user decisions, constraints, and governing source pointers.
|
|
87
|
+
- **Settled:** supported present facts and accepted understanding.
|
|
88
|
+
- **Tentative:** hypotheses and provisional approaches.
|
|
89
|
+
- **Open:** unresolved questions capable of changing the work.
|
|
90
|
+
- **Current direction:** the remaining approach and why it is currently useful, not a completed-work narrative.
|
|
91
|
+
- **Boundaries:** scope exclusions, evidence limits, user-facing return conditions, and separately controlled effects.
|
|
85
92
|
|
|
86
|
-
|
|
93
|
+
Preserve the execution agreement in these existing fields and the Current Slice declaration where applicable. Do not invent a second contract entity. Keep Decision rationale in History and completed-event detail with its Slice rather than duplicating both in Settled.
|
|
87
94
|
|
|
88
|
-
|
|
95
|
+
Update only meaning that changed. Before recording a new prerequisite as required, check whether it follows from accepted behavior, a supported local approach, or an unaccepted stronger guarantee. Keep proposals and hypotheses tentative; authorization to investigate an option is not acceptance of its production consequences.
|
|
89
96
|
|
|
90
|
-
|
|
97
|
+
When an accepted amendment or new evidence changes the route, reconcile affected Current Context, Current Work, Future Work, and the Next useful action. Identify any defining Spec or Plan that now conflicts and return it to its owner before dependent use. Do not silently rewrite that artifact or let the record override it.
|
|
91
98
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
- the defined clerical correction block in terminal History.
|
|
99
|
+
## Preserve A Provisional Remaining Route
|
|
100
|
+
|
|
101
|
+
When a useful rough strategy emerges and record maintenance is covered, propose Slices and record material dependencies. Do not wait for an exhaustive Plan, and do not invent distant steps merely to fill Future Work.
|
|
102
|
+
|
|
103
|
+
A proposed Slice needs a unique title, `State: proposed`, and Intended result. Use optional Type, Expected evidence, and Dependencies when useful. It has no durable ID or execution authority. Keep near-term work concrete and later work directional; proposed order recommends a route and may change as evidence arrives.
|
|
104
|
+
|
|
105
|
+
Size Slices by coherent outcomes, dependencies, uncertainty, and manageable working context for implementation, checking, and correction. Seven bugs do not imply seven Slices or one Slice solely because all are bugs. Do not split by tool call, file, test, review, or context-cycle count.
|
|
100
106
|
|
|
101
|
-
|
|
107
|
+
Before selecting later work, compare its dependencies with the actual preceding result and current agreement. Mark unresolved assumptions honestly rather than implying they were proved by closing a Slice. Preserve or revise the proposed route; do not quietly adopt new obligations because they appear next in the record.
|
|
102
108
|
|
|
103
|
-
|
|
109
|
+
A whole-task agreement may cover several Slices. Workflow can select covered work without another user confirmation, but Track Work must still perform the appropriate start transition. Ending an internal activity or context cycle does not select the next Slice.
|
|
104
110
|
|
|
105
|
-
|
|
111
|
+
## Edit Meaning Directly; Use Commands For Lifecycles
|
|
112
|
+
|
|
113
|
+
Use ordinary Markdown edits for allowed semantic content:
|
|
114
|
+
|
|
115
|
+
- Current Context bullets;
|
|
116
|
+
- allowed wording and optional fields in active or proposed blocks;
|
|
117
|
+
- proposed-item order or removal;
|
|
118
|
+
- the Next useful action;
|
|
119
|
+
- Material updates and Notes;
|
|
120
|
+
- clerical clarification of active prose;
|
|
121
|
+
- the format's linked clerical correction block in terminal History.
|
|
106
122
|
|
|
107
|
-
-
|
|
108
|
-
- propose a Slice or Checkpoint;
|
|
109
|
-
- start, pause, resume, close, or reopen a Slice;
|
|
110
|
-
- activate, defer, resume, or close a Checkpoint;
|
|
111
|
-
- add, supersede, or retire a Decision;
|
|
112
|
-
- change task state.
|
|
123
|
+
Never directly change an entity's durable ID, lifecycle state, kind, or owning top-level section. Do not delete, reactivate, or erase terminal History. A correction preserves the old value rather than pretending it never existed.
|
|
113
124
|
|
|
114
|
-
|
|
125
|
+
Prose-only bullet edits need no extra validation. After editing headings, fields, references, or other structured blocks, run `validate --record` before consequential work. Lifecycle commands validate their source and candidate.
|
|
115
126
|
|
|
116
|
-
|
|
127
|
+
Use [working-record.mjs](scripts/working-record.mjs) for initialization, proposals, ID allocation, Slice/Checkpoint transitions, Decision addition/supersession/retirement, and user-directed task-state changes. Commands own placement, identity, legal transitions, complete multi-block movement, and atomic publication; the agent supplies the meaning.
|
|
117
128
|
|
|
118
|
-
|
|
129
|
+
Read the format reference, then complete operation help as `working-record.mjs <group> <operation> --help` before preparing a fragment. Use `--input -` for agent-authored Markdown through stdin. Slice and task-state transitions require an agent-supplied Next useful action; Checkpoint operations may update it when supplied. Do not inspect `scripts/lib/` unless diagnosing a concrete defect.
|
|
119
130
|
|
|
120
|
-
A
|
|
131
|
+
A command must publish one complete valid transition or none. If its result is uncertain, stop and inspect `full` before retrying or editing related state. Do not duplicate an entity to recover from an unknown result.
|
|
121
132
|
|
|
122
|
-
|
|
133
|
+
## Start And Maintain One Current Slice
|
|
123
134
|
|
|
124
|
-
|
|
135
|
+
Keep implementation, learning, verification, review, and accepted correction in the same Slice while the intended result, authority, evidence boundary, and independently useful outcome remain coherent. Use a new Slice when those boundaries materially change.
|
|
125
136
|
|
|
126
|
-
|
|
137
|
+
For selected Future Work, start its proposal. For an immediately authorized outcome that needs no proposal ordering, use `slice start-direct`; it does not consume or change Future Work. Never disguise proposal selection as a direct start.
|
|
127
138
|
|
|
128
|
-
Starting
|
|
139
|
+
Starting assigns a new `S-NNN` and persists the detailed Current Slice before execution. Include authority source, scope, expected evidence, stop condition, and starting state. Do not begin Slice work until the transition has successfully persisted and validated both Current Slice and Next useful action. Return successful start or reopen to [Execute Work](../execute-work/SKILL.md); persistence is not implementation authority.
|
|
129
140
|
|
|
130
141
|
```text
|
|
131
142
|
Future proposed
|
|
@@ -134,64 +145,71 @@ Future proposed
|
|
|
134
145
|
-> History completed | blocked | abandoned
|
|
135
146
|
```
|
|
136
147
|
|
|
137
|
-
- `in_progress
|
|
138
|
-
- `paused
|
|
139
|
-
- Historical `blocked
|
|
140
|
-
- Historical `completed
|
|
141
|
-
- Historical `abandoned
|
|
142
|
-
|
|
148
|
+
- `in_progress`: the selected outcome is being pursued.
|
|
149
|
+
- `paused`: it remains current, but safe continuation is suspended; an ordinary turn or feedback is not a pause.
|
|
150
|
+
- Historical `blocked`: an unresolved paused attempt deliberately left Current Work; close this way only from paused.
|
|
151
|
+
- Historical `completed`: the intended result and required evidence are settled.
|
|
152
|
+
- Historical `abandoned`: explicit authority ends pursuit; preserve the reason.
|
|
153
|
+
|
|
154
|
+
Append Material updates only when losing the change would impair safe continuation or truthful closure. Preserve material evidence, failed approaches, contradictions, accepted extensions, pauses/resumptions, review outcomes, and residual effects. Routine commands and test counts are not events to record.
|
|
155
|
+
|
|
156
|
+
Before expanded work, record the accepted extension's authority, scope, evidence boundary, and changed stop condition where applicable. A finding or suggestion does not authorize the extension.
|
|
143
157
|
|
|
144
|
-
|
|
158
|
+
A material evidence entry names the claim, observing boundary, result, what it proves and does not prove, and a real pointer when available. Preserve enough existing code/artifact, check, or output identity to distinguish it from a later candidate. Record separately that a check ran and whether its result still applies after relevant edits. A missing output is unavailable evidence, not proof the earlier run never occurred.
|
|
145
159
|
|
|
146
|
-
|
|
160
|
+
Do not record a requested correction as performed or a producer's unsupported report as observed acceptance. Keep implemented work, exercised assertions, and unresolved claims distinguishable. Append later counterevidence rather than rewriting the earlier observation. Keep evidence and blockers with their Slice, not global sections.
|
|
147
161
|
|
|
148
|
-
|
|
162
|
+
For learning, preserve the question, observed result, limits, and consequence for the remaining route. Do not record a working prototype as accepted production behavior. A failed hypothesis may complete a learning Slice when its question and evidence boundary are settled.
|
|
149
163
|
|
|
150
|
-
|
|
164
|
+
## Settle Without Losing Continuation
|
|
151
165
|
|
|
152
|
-
|
|
166
|
+
Before closing as completed, ensure every material claim has supporting evidence at its required boundary, live state agrees, no authority conflict or material contradiction remains, and every applicable Checkpoint is terminal. A `pending` or `deferred` Checkpoint prevents Slice closure.
|
|
153
167
|
|
|
154
|
-
|
|
168
|
+
Closure distills the declaration and Material updates into historical Intended result, Result, Evidence and limits, and Task effect, with other fields required by the format. Preserve an unresolved block, relevant failed attempt, or residual effect rather than copying the full active log or hiding it. A blocked Slice records what permits resumption; an abandoned Slice records its reason.
|
|
155
169
|
|
|
156
|
-
|
|
170
|
+
Closing leaves Current Slice `None` and does not select another Future Work item. Reconcile the next useful action with the actual result and agreement.
|
|
157
171
|
|
|
158
|
-
|
|
172
|
+
Resuming returns a Current paused Slice to `in_progress` with a resolution source. Reopening historical completed or blocked work creates a new Current Slice and fresh ID with `Reopened from: S-old`, current authority, scope, expected evidence, stop condition, and starting state. Do not reactivate the historical entry.
|
|
173
|
+
|
|
174
|
+
## Preserve Checkpoints And Decisions
|
|
175
|
+
|
|
176
|
+
Every Checkpoint belongs to one Slice, with a unique title across Future Work:
|
|
159
177
|
|
|
160
178
|
```text
|
|
161
179
|
proposed -> pending <-> deferred
|
|
162
180
|
pending | deferred -> completed | cancelled | replaced
|
|
163
181
|
```
|
|
164
182
|
|
|
165
|
-
|
|
166
|
-
- `pending` is an accepted unresolved boundary that dependent work must not cross.
|
|
167
|
-
- `deferred` remains accepted but dormant until its recorded condition.
|
|
168
|
-
- `completed` means the boundary occurred; its result may still be adverse or blocking.
|
|
169
|
-
- `cancelled` means it is no longer required.
|
|
170
|
-
- `replaced` names the pending Checkpoint that takes its place.
|
|
183
|
+
A proposed Checkpoint has no durable ID or authority and may be removed without History. Activate only an explicitly selected or authorized boundary; activation assigns `C-NNN`. A proposed-Slice title in Applies to becomes its `S-NNN` in the Slice-start transition.
|
|
171
184
|
|
|
172
|
-
|
|
185
|
+
Accepted pending or deferred Checkpoints remain in Future Work until a lifecycle command makes them terminal. Deferred means accepted but dormant until its condition, not cancelled. Completed means the boundary occurred; its judgment can still be adverse. Cancelled means no longer required; replaced identifies the pending replacement. Do not silently drop an accepted Checkpoint.
|
|
173
186
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
Decisions live under History and receive `D-NNN` when added:
|
|
187
|
+
Decisions live in History and receive `D-NNN`:
|
|
177
188
|
|
|
178
189
|
```text
|
|
179
190
|
active -> superseded | retired
|
|
180
191
|
```
|
|
181
192
|
|
|
182
|
-
A clerical clarification may edit an active Decision
|
|
193
|
+
Record the choice and acceptance actually supported by the source, with rationale, consequences, and revisit condition. Preserve source references when needed to distinguish a proposal from what the user accepted. A clerical clarification may edit an active Decision without changing meaning. A material change creates a new Decision and supersedes the old one; retirement records why the choice no longer governs. Terminal Decisions stay terminal. Adopting an old choice again creates a new active Decision.
|
|
194
|
+
|
|
195
|
+
## Prepare For A Context Boundary
|
|
183
196
|
|
|
184
|
-
|
|
197
|
+
Before expected compaction, clear, pause, or transfer, reconcile the record when material state changed. Preserve what a fresh continuation needs:
|
|
185
198
|
|
|
186
|
-
|
|
199
|
+
- the agreed outcome and return boundary;
|
|
200
|
+
- actual completed and partial work, evidence limits, and residual effects;
|
|
201
|
+
- active assumptions, important rejected approaches, and contradictory findings;
|
|
202
|
+
- the current assignment's scope and source, including superseded stopping instructions that could misdirect continuation;
|
|
203
|
+
- existing evidence pointers, the state examined, and any subsequent changes leaving applicability unresolved;
|
|
204
|
+
- remaining dependencies and one next useful action, including the sources it needs.
|
|
187
205
|
|
|
188
|
-
|
|
206
|
+
Use the existing sections, not a new handoff embedded in the record. Do not rush to complete a Slice before compaction, claim an unfinished check passed, or infer the outcome of a running operation. Preserve uncertainty and use the host's safe boundary.
|
|
189
207
|
|
|
190
|
-
|
|
208
|
+
A context boundary is not itself a History event, Evidence item, Checkpoint, or Slice transition. Pause the Slice only when safe continuation is actually suspended. Full recovery afterward reconstructs persisted meaning; it cannot recover understanding never written down.
|
|
191
209
|
|
|
192
|
-
##
|
|
210
|
+
## Keep Task State User-Controlled And Notes Inert
|
|
193
211
|
|
|
194
|
-
Task states
|
|
212
|
+
Task states remain:
|
|
195
213
|
|
|
196
214
|
```text
|
|
197
215
|
active <-> paused
|
|
@@ -199,23 +217,14 @@ active | paused -> completed | abandoned
|
|
|
199
217
|
completed | abandoned -> active only by explicit user reopening
|
|
200
218
|
```
|
|
201
219
|
|
|
202
|
-
Pausing a task pauses its Current Slice first
|
|
220
|
+
Only the user changes task state; closing a Slice does not complete the task. Pausing a task pauses its Current Slice first. Reactivating the task does not automatically resume the Slice. Completed or abandoned tasks require Current Slice `None` and no pending or deferred Checkpoint. Retain proposed Future Work only when clearly non-obligating; otherwise reconcile it before a terminal transition. Task reopening does not select work.
|
|
203
221
|
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
Notes have no field schema. Add or edit them directly as ordinary Markdown. Remove a user-authored Note only when the user requests it; remove other Notes only when current maintenance authority clearly covers that correction.
|
|
207
|
-
|
|
208
|
-
Notes do not authorize, prioritize, schedule, block, unblock, prove, or require follow-up.
|
|
209
|
-
|
|
210
|
-
## Read Through Two Views
|
|
211
|
-
|
|
212
|
-
- `resume` shows the record header, complete Current Context, active Decisions derived from History, complete Current Work, complete Future Work, and Notes. It omits terminal History.
|
|
213
|
-
- `full` returns the complete canonical Markdown exactly as stored.
|
|
214
|
-
|
|
215
|
-
Both views are direct Markdown text, not JSON. A host may render that Markdown visually. Neither view follows external pointers or mutates the record. When one historical entity is needed, search and read its bounded `S-NNN`, `C-NNN`, or `D-NNN` block instead of loading all History.
|
|
222
|
+
Notes are ordinary inert Markdown. They do not authorize, prioritize, schedule, block, prove, or require follow-up. Remove a user-authored Note only at the user's request; remove other Notes only when current maintenance authority covers the correction. Do not use Notes to hide operative scope, evidence, or blockers.
|
|
216
223
|
|
|
217
224
|
## Return To The Requesting Activity
|
|
218
225
|
|
|
219
|
-
After maintenance, return to the activity that requested
|
|
226
|
+
After maintenance, return to the activity that requested it. Discussion returns to Discuss; authorized Slice work returns to Execute Work. [Handoff](../handoff/SKILL.md) owns point-in-time transfer. [Write Spec](../write-spec/SKILL.md) and [Write Plan](../write-plan/SKILL.md) own durable content and strategy artifacts.
|
|
227
|
+
|
|
228
|
+
End Track Work when the record accurately preserves supported current meaning, actual work, the provisional remaining route, and one next useful action. A record update does not complete implementation, verification, review, delivery, or the task.
|
|
220
229
|
|
|
221
|
-
Stop
|
|
230
|
+
Stop rather than invent missing authority, scope, evidence, record structure, or transition meaning. Report discrepancies and return their resolution to the owning activity; memory must not make an unsupported trajectory look settled.
|
|
@@ -121,6 +121,8 @@ Current Context is present understanding, not an event stream. Keep it concise a
|
|
|
121
121
|
|
|
122
122
|
Change Context only when its present meaning changes. A Slice or Checkpoint transition alone does not require a Context rewrite. Concise does not mean lossy: retain detail when removing it could change the next valid action.
|
|
123
123
|
|
|
124
|
+
Preserve the agreed outcome separately from the current approach. Use the existing Goal, defining-source pointers, Current direction, and Boundaries to retain the execution scope and user-facing return condition; do not add a contract or phase section. An accepted amendment or new finding may require reconciling affected Current Work and Future Work as well as Context. Record unresolved dependencies as unresolved rather than converting the current mechanism into a requirement.
|
|
125
|
+
|
|
124
126
|
## Current Work
|
|
125
127
|
|
|
126
128
|
Current Work contains only one Current Slice and one next useful action:
|
|
@@ -185,6 +187,10 @@ Optional active Slice fields:
|
|
|
185
187
|
|
|
186
188
|
These prefixes make important information recoverable without creating global Blocker or Evidence entities. They are compact conventions; the whole update remains ordinary Markdown prose. If an attempt fails, is rolled back, or leaves residual effects that change the next decision, preserve the attempt, reason, Evidence, and residual state here or in the historical Slice summary.
|
|
187
189
|
|
|
190
|
+
Before context loss, retain any unverified edits, unresolved process outcome, relevant rejected approach, and prerequisite for the next action that would otherwise be lost. Preserve the current assignment's source and consequences separately from superseded instructions. Evidence prose should distinguish an observed result for an identified state from its unresolved applicability after later edits; keep real output pointers when available, and label unsupported reports as reports. Do not turn requested corrections into completed facts.
|
|
191
|
+
|
|
192
|
+
A learning result records its question, evidence limits, and consequence for later work; it does not silently establish production acceptance. These are semantic contents of existing fields, not new lifecycle states, contract entities, or event types.
|
|
193
|
+
|
|
188
194
|
When there is no active Slice:
|
|
189
195
|
|
|
190
196
|
```markdown
|
|
@@ -222,6 +228,8 @@ Direct start requires the same authority and write-ahead contract as proposal st
|
|
|
222
228
|
|
|
223
229
|
Future Work is one ordered mixed sequence of proposed Slices and non-terminal Checkpoints. Order recommends a sequence; it is not fixed execution order or authority.
|
|
224
230
|
|
|
231
|
+
Preserve a useful provisional route when one emerges rather than waiting for every implementation detail. Keep the immediate outcome concrete and later outcomes directional. Use the existing Dependencies field for prerequisites or ordering constraints, including uncertainty when material. Reconcile affected proposals after learning or accepted changes; neither their order nor a preceding Slice's completion proves their prerequisites.
|
|
232
|
+
|
|
225
233
|
All Future Work titles are unique across both kinds of item. A proposed item may be edited, reordered, or removed. A proposed item has no authority and cannot be selected merely because it exists.
|
|
226
234
|
|
|
227
235
|
### Proposed Slice
|
|
@@ -495,7 +503,7 @@ The canonical file is Markdown. Both public views render its content as human-re
|
|
|
495
503
|
5. all Future Work in stored order, including proposed, pending, and deferred items;
|
|
496
504
|
6. all Notes.
|
|
497
505
|
|
|
498
|
-
It omits terminal History entries. Use it for
|
|
506
|
+
It omits terminal History entries. Use it for active-state readback during intact-session continuation. A new conversational turn or ordinary pause does not require a reread by itself. Use a bounded entity or section read when that is sufficient. Do not substitute `resume` for the complete record after context loss.
|
|
499
507
|
|
|
500
508
|
### `full`
|
|
501
509
|
|
|
@@ -508,7 +516,11 @@ It omits terminal History entries. Use it for normal continuation and recovery a
|
|
|
508
516
|
5. History with Decisions, Checkpoints, and Slices in that order;
|
|
509
517
|
6. Notes.
|
|
510
518
|
|
|
511
|
-
|
|
519
|
+
Read it completely after context loss, including compaction, context-replacing summarization, clear, session resume or navigation, transfer into another context, or uncertain continuity. It is also the view for audit, dispute, migration, malformed-record inspection, and uncertain mutation results.
|
|
520
|
+
|
|
521
|
+
If output is truncated, continue bounded reads of the same canonical source until the whole record has been read. If full recovery cannot be completed within available context or access, report the limitation and stop affected work; do not silently replace it with `resume` or claim unseen History was recovered.
|
|
522
|
+
|
|
523
|
+
A full read does not follow defining-source pointers or establish live correctness. Reconcile current direction, source evidence, task state, and authorization before acting. Once recovery is complete, use bounded in-session reads rather than repeatedly loading all History.
|
|
512
524
|
|
|
513
525
|
## Legacy Records
|
|
514
526
|
|