@rt-tools/agent-kit 0.37.1 → 0.38.0
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/README.md +5 -5
- package/assets/checks/action-of.mjs +154 -0
- package/assets/checks/board-runs.github.mjs +40 -5
- package/assets/checks/check-board.github.mjs +38 -7
- package/assets/checks/check-state-next.mjs +22 -10
- package/assets/checks/check-turn-map.mjs +26 -6
- package/assets/checks/check-work-steps.mjs +4 -173
- package/assets/checks/decide.mjs +285 -0
- package/assets/checks/decision-table.json +21365 -0
- package/assets/checks/decision-table.mjs +495 -0
- package/assets/checks/epic-window.mjs +98 -0
- package/assets/checks/flow-condition.mjs +64 -0
- package/assets/checks/flow-data.mjs +136 -0
- package/assets/checks/flow-forecast.mjs +330 -0
- package/assets/checks/flow-guard-run.mjs +90 -0
- package/assets/checks/flow-guard.mjs +294 -0
- package/assets/checks/flow-model.mjs +271 -0
- package/assets/checks/flow-override.mjs +130 -0
- package/assets/checks/flow-plan.mjs +206 -0
- package/assets/checks/flow-scaffold.mjs +224 -0
- package/assets/checks/flow-step.mjs +365 -0
- package/assets/checks/flow-sync.mjs +296 -0
- package/assets/checks/flow-syntax.mjs +292 -0
- package/assets/checks/flow-verdict.mjs +112 -0
- package/assets/checks/merge-read.mjs +239 -0
- package/assets/checks/owner-nudges.mjs +389 -0
- package/assets/checks/push-inputs.mjs +59 -16
- package/assets/checks/record-count.mjs +410 -0
- package/assets/checks/record-recount.mjs +187 -0
- package/assets/checks/record-turn.mjs +155 -0
- package/assets/checks/task-flow-script.mjs +292 -0
- package/assets/checks/tree-assignment.mjs +26 -7
- package/assets/checks/work-result.mjs +281 -0
- package/assets/checks/work-steps-lib.mjs +205 -0
- package/assets/commands/night.md +6 -6
- package/assets/defaults/gate-map.sh +39 -12
- package/assets/defaults/merges.sh +48 -0
- package/assets/defaults/project.sh +6 -5
- package/assets/defaults/turn-map.md +21 -22
- package/assets/docs/GLOSSARY.md +5 -1
- package/assets/hooks/ask-judge.md +65 -0
- package/assets/hooks/browser-guard-device-id.sh +11 -9
- package/assets/hooks/browser-guard-no-asking.sh +12 -6
- package/assets/hooks/browser-guard-no-listing.sh +13 -7
- package/assets/hooks/browser-guard-no-other-drivers.sh +25 -17
- package/assets/hooks/browser-guard-require-select.sh +15 -15
- package/assets/hooks/commit-msg.sh +13 -3
- package/assets/hooks/conscience-guard.sh +9 -25
- package/assets/hooks/decide.sh +141 -0
- package/assets/hooks/deny-tail.sh +16 -11
- package/assets/hooks/dev-server-guard.sh +27 -20
- package/assets/hooks/dispatch.sh +47 -4
- package/assets/hooks/docs-guard.sh +31 -200
- package/assets/hooks/end-conversation-guard.sh +12 -21
- package/assets/hooks/epic-stop-guard.sh +54 -152
- package/assets/hooks/exam-guard.sh +32 -65
- package/assets/hooks/facts-docs.sh +221 -0
- package/assets/hooks/facts-flow.sh +173 -0
- package/assets/hooks/facts.sh +308 -0
- package/assets/hooks/flow-step-guard.sh +93 -0
- package/assets/hooks/git-guard-delivery-body.sh +4 -4
- package/assets/hooks/git-guard-delivery-conflict.sh +16 -10
- package/assets/hooks/git-guard-delivery-draft.sh +3 -3
- package/assets/hooks/git-guard-delivery-epic.sh +18 -9
- package/assets/hooks/git-guard-delivery-folder.sh +32 -7
- package/assets/hooks/git-guard-delivery-merge.sh +2 -2
- package/assets/hooks/git-guard-delivery-merged.sh +12 -1
- package/assets/hooks/git-guard-delivery-pipeline.sh +1 -1
- package/assets/hooks/git-guard-delivery-rerun.sh +32 -0
- package/assets/hooks/git-guard-delivery-signature.sh +82 -45
- package/assets/hooks/git-guard-delivery-task.sh +47 -0
- package/assets/hooks/git-guard-delivery.sh +112 -101
- package/assets/hooks/git-guard-discard.sh +8 -18
- package/assets/hooks/git-guard-main.sh +13 -19
- package/assets/hooks/git-guard-no-verify.sh +56 -16
- package/assets/hooks/git-guard-push-ahead.sh +15 -4
- package/assets/hooks/git-guard-push-marks.sh +53 -1
- package/assets/hooks/git-guard-push-tests.sh +30 -51
- package/assets/hooks/git-guard-tree-assignment.sh +7 -4
- package/assets/hooks/guard-note.sh +8 -6
- package/assets/hooks/handoff-entry-guard.sh +19 -38
- package/assets/hooks/handoff-write.sh +3 -1
- package/assets/hooks/hook-input.sh +0 -41
- package/assets/hooks/metric-marks.sh +19 -7
- package/assets/hooks/observe.sh +1 -1
- package/assets/hooks/override-write-guard.sh +27 -9
- package/assets/hooks/pre-push.sh +14 -10
- package/assets/hooks/prose-style-guard.sh +6 -19
- package/assets/hooks/pull-merges.sh +76 -0
- package/assets/hooks/push-set.sh +11 -4
- package/assets/hooks/qa-dataid-guard.sh +7 -17
- package/assets/hooks/record-turn.sh +52 -0
- package/assets/hooks/rerun-guard.sh +11 -16
- package/assets/hooks/reuse-first-guard.sh +7 -21
- package/assets/hooks/role-calls.sh +25 -3
- package/assets/hooks/rule-source-guard.sh +54 -21
- package/assets/hooks/skill-gate-rearm.sh +18 -5
- package/assets/hooks/skill-gate.sh +156 -20
- package/assets/hooks/skill-loaded.sh +18 -3
- package/assets/hooks/sql-guard-target.sh +2 -2
- package/assets/hooks/sql-guard-write.sh +12 -12
- package/assets/hooks/sql-guard.sh +58 -16
- package/assets/hooks/task-context-load.sh +3 -1
- package/assets/hooks/task-flow-context.sh +5 -18
- package/assets/hooks/task-flow-draft-guard.sh +25 -74
- package/assets/hooks/task-flow-guard.sh +28 -130
- package/assets/hooks/tree-assignment-guard.sh +25 -14
- package/assets/hooks/turn-entry-load.sh +3 -1
- package/assets/hooks/turn-exit-guard.sh +92 -452
- package/assets/hooks/turn-exit-role.sh +3 -1
- package/assets/hooks/turn-judge.md +103 -0
- package/assets/hooks/window-fill-guard.sh +22 -41
- package/assets/patterns/git-workflow-commit.azure.md +9 -155
- package/assets/patterns/git-workflow-commit.github.md +11 -269
- package/assets/patterns/git-workflow-commit.gitlab.md +9 -161
- package/assets/patterns/git-workflow-docker.md +8 -231
- package/assets/patterns/git-workflow-freshness.md +8 -56
- package/assets/patterns/git-workflow-merge.md +6 -176
- package/assets/patterns/git-workflow-migration.md +5 -75
- package/assets/patterns/git-workflow-pr-body.github.md +6 -159
- package/assets/patterns/git-workflow-pr-ready.md +9 -70
- package/assets/patterns/git-workflow-pr.azure.md +13 -285
- package/assets/patterns/git-workflow-pr.github.md +13 -251
- package/assets/patterns/git-workflow-pr.gitlab.md +13 -286
- package/assets/patterns/git-workflow-restart.md +5 -42
- package/assets/patterns/git-workflow-secrets.md +10 -76
- package/assets/patterns/git-workflow-stack.md +7 -207
- package/assets/patterns/status-report-table.github.md +1 -1
- package/assets/patterns/task-flow-archive.md +12 -233
- package/assets/patterns/task-flow-close.md +16 -292
- package/assets/patterns/task-flow-cycle.md +13 -39
- package/assets/patterns/task-flow-graph.needs-graph.md +8 -62
- package/assets/patterns/task-flow-handoff.md +13 -161
- package/assets/patterns/task-flow-resume.md +18 -218
- package/assets/patterns/task-flow-start.md +9 -247
- package/assets/patterns/turn-entry-map.md +2 -2
- package/assets/pitfalls/agent-kit-extend.md +200 -0
- package/assets/pitfalls/agent-kit.2.md +323 -0
- package/assets/pitfalls/angular-patterns.md +98 -0
- package/assets/pitfalls/browser-verification.md +265 -0
- package/assets/pitfalls/component-structure.md +98 -0
- package/assets/pitfalls/dependencies.md +92 -0
- package/assets/pitfalls/deploy-flow.azure.md +171 -0
- package/assets/pitfalls/deploy-flow.github.md +211 -0
- package/assets/pitfalls/deploy-flow.gitlab.md +173 -0
- package/assets/pitfalls/doc-style.2.md +286 -0
- package/assets/pitfalls/entity-conventions.needs-admin.md +96 -0
- package/assets/pitfalls/entity-models.md +89 -0
- package/assets/pitfalls/git-workflow-commit.azure.md +190 -0
- package/assets/pitfalls/git-workflow-commit.github.md +307 -0
- package/assets/pitfalls/git-workflow-commit.gitlab.md +196 -0
- package/assets/pitfalls/git-workflow-docker.md +275 -0
- package/assets/pitfalls/git-workflow-freshness.md +88 -0
- package/assets/pitfalls/git-workflow-hosting.azure.md +31 -0
- package/assets/pitfalls/git-workflow-hosting.github.md +32 -0
- package/assets/pitfalls/git-workflow-hosting.gitlab.md +31 -0
- package/assets/pitfalls/git-workflow-merge.md +220 -0
- package/assets/pitfalls/git-workflow-migration.md +103 -0
- package/assets/pitfalls/git-workflow-pr-body.github.md +185 -0
- package/assets/pitfalls/git-workflow-pr-ready.md +104 -0
- package/assets/pitfalls/git-workflow-pr.2.azure.md +172 -0
- package/assets/pitfalls/git-workflow-pr.2.github.md +184 -0
- package/assets/pitfalls/git-workflow-pr.2.gitlab.md +180 -0
- package/assets/pitfalls/git-workflow-pr.azure.md +159 -0
- package/assets/pitfalls/git-workflow-pr.github.md +107 -0
- package/assets/pitfalls/git-workflow-pr.gitlab.md +151 -0
- package/assets/pitfalls/git-workflow-push.azure.md +30 -0
- package/assets/pitfalls/git-workflow-push.github.md +30 -0
- package/assets/pitfalls/git-workflow-push.gitlab.md +30 -0
- package/assets/pitfalls/git-workflow-queue.azure.md +30 -0
- package/assets/pitfalls/git-workflow-queue.github.md +30 -0
- package/assets/pitfalls/git-workflow-queue.gitlab.md +30 -0
- package/assets/pitfalls/git-workflow-restart.md +72 -0
- package/assets/pitfalls/git-workflow-secrets.md +114 -0
- package/assets/pitfalls/git-workflow-stack.md +254 -0
- package/assets/pitfalls/git-workflow.2.azure.md +291 -0
- package/assets/pitfalls/git-workflow.2.github.md +294 -0
- package/assets/pitfalls/git-workflow.2.gitlab.md +278 -0
- package/assets/pitfalls/lib-layers.md +114 -0
- package/assets/pitfalls/lists.md +117 -0
- package/assets/pitfalls/navigation.md +94 -0
- package/assets/pitfalls/reuse-first.md +201 -0
- package/assets/pitfalls/spec-driven.2.md +318 -0
- package/assets/pitfalls/styling-bem.2.md +125 -0
- package/assets/pitfalls/task-flow-archive.md +264 -0
- package/assets/pitfalls/task-flow-close.2.md +165 -0
- package/assets/pitfalls/task-flow-close.md +167 -0
- package/assets/pitfalls/task-flow-cycle.md +73 -0
- package/assets/pitfalls/task-flow-graph.needs-graph.md +98 -0
- package/assets/pitfalls/task-flow-handoff.md +200 -0
- package/assets/pitfalls/task-flow-handover.md +30 -0
- package/assets/pitfalls/task-flow-owner.md +29 -0
- package/assets/pitfalls/task-flow-plan.md +29 -0
- package/assets/pitfalls/task-flow-resume.md +257 -0
- package/assets/pitfalls/task-flow-start.md +287 -0
- package/assets/pitfalls/task-flow.2.md +303 -0
- package/assets/pitfalls/task-flow.md +4 -4
- package/assets/pitfalls/testing.2.md +279 -0
- package/assets/pitfalls/turn-conduct.md +16 -17
- package/assets/pitfalls/typescript-conventions.md +161 -0
- package/assets/pitfalls/write-a-skill.md +128 -0
- package/assets/rules/angular-patterns.md +21 -86
- package/assets/rules/autonomous-work.md +2 -2
- package/assets/rules/browser-verification.md +28 -256
- package/assets/rules/component-structure.md +25 -87
- package/assets/rules/dependencies.md +20 -78
- package/assets/rules/deploy-flow.azure.md +26 -156
- package/assets/rules/deploy-flow.github.md +34 -200
- package/assets/rules/deploy-flow.gitlab.md +27 -159
- package/assets/rules/doc-style.md +32 -286
- package/assets/rules/entity-conventions.needs-admin.md +26 -82
- package/assets/rules/entity-models.md +14 -63
- package/assets/rules/git-workflow-hosting.azure.md +26 -0
- package/assets/rules/git-workflow-hosting.github.md +38 -0
- package/assets/rules/git-workflow-hosting.gitlab.md +27 -0
- package/assets/rules/git-workflow-push.azure.md +28 -0
- package/assets/rules/git-workflow-push.github.md +28 -0
- package/assets/rules/git-workflow-push.gitlab.md +28 -0
- package/assets/rules/git-workflow-queue.azure.md +23 -0
- package/assets/rules/git-workflow-queue.github.md +30 -0
- package/assets/rules/git-workflow-queue.gitlab.md +23 -0
- package/assets/rules/git-workflow.azure.md +21 -282
- package/assets/rules/git-workflow.github.md +24 -284
- package/assets/rules/git-workflow.gitlab.md +21 -269
- package/assets/rules/lib-layers.md +30 -103
- package/assets/rules/lists.md +21 -105
- package/assets/rules/navigation.md +10 -69
- package/assets/rules/reuse-first.md +20 -195
- package/assets/rules/spec-driven.md +35 -308
- package/assets/rules/styling-bem.md +20 -117
- package/assets/rules/task-flow-handover.md +24 -0
- package/assets/rules/task-flow-owner.md +34 -0
- package/assets/rules/task-flow-plan.md +38 -0
- package/assets/rules/task-flow.md +22 -300
- package/assets/rules/testing.md +32 -273
- package/assets/rules/turn-conduct.md +100 -104
- package/assets/rules/turn-entry.md +2 -2
- package/assets/rules/typescript-conventions.md +41 -147
- package/assets/samples/tasks/_template/plan.md +30 -6
- package/assets/samples/tasks/_template/progress.md +0 -1
- package/assets/skills/agent-kit-extend.md +25 -168
- package/assets/skills/agent-kit.md +27 -299
- package/assets/skills/write-a-skill.md +20 -106
- package/assets/task-flow/flow.js +188 -0
- package/assets/task-flow/flow.md +102 -0
- package/assets/task-flow/measure/agreement.mjs +24 -0
- package/assets/task-flow/measure/copy.mjs +22 -0
- package/assets/task-flow/measure/epic-of.mjs +50 -0
- package/assets/task-flow/measure/epic-text.mjs +35 -0
- package/assets/task-flow/measure/epic.mjs +114 -0
- package/assets/task-flow/measure/folder.mjs +16 -0
- package/assets/task-flow/measure/footprint.mjs +28 -0
- package/assets/task-flow/measure/grill.mjs +21 -0
- package/assets/task-flow/measure/host.mjs +8 -0
- package/assets/task-flow/measure/owner.mjs +20 -0
- package/assets/task-flow/measure/plan.mjs +27 -0
- package/assets/task-flow/measure/pr.mjs +20 -0
- package/assets/task-flow/measure/progress.mjs +50 -0
- package/assets/task-flow/measure/session.mjs +175 -0
- package/assets/task-flow/measure/task.mjs +23 -0
- package/assets/task-flow/measure/text.mjs +77 -0
- package/assets/task-flow/source/git.mjs +86 -0
- package/assets/task-flow/source/host.mjs +172 -0
- package/assets/task-flow/source/marks.mjs +56 -0
- package/assets/task-flow/source/owner.mjs +74 -0
- package/assets/task-flow/source/records.mjs +116 -0
- package/assets/task-flow/source/session.mjs +232 -0
- package/assets/task-flow/source/steps.mjs +28 -0
- package/assets/task-flow/source/tree.mjs +42 -0
- package/bin/agent-kit.d.ts.map +1 -1
- package/bin/agent-kit.js +30 -0
- package/bin/agent-kit.js.map +1 -1
- package/lib/agent-checks.d.ts +55 -0
- package/lib/agent-checks.d.ts.map +1 -0
- package/lib/agent-checks.js +209 -0
- package/lib/agent-checks.js.map +1 -0
- package/lib/assets.d.ts.map +1 -1
- package/lib/assets.js +7 -2
- package/lib/assets.js.map +1 -1
- package/lib/cargo.d.ts +29 -0
- package/lib/cargo.d.ts.map +1 -1
- package/lib/cargo.js +27 -1
- package/lib/cargo.js.map +1 -1
- package/lib/cascade.d.ts.map +1 -1
- package/lib/cascade.js +3 -1
- package/lib/cascade.js.map +1 -1
- package/lib/commands.d.ts.map +1 -1
- package/lib/commands.js +78 -2
- package/lib/commands.js.map +1 -1
- package/lib/config.d.ts +18 -0
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +18 -1
- package/lib/config.js.map +1 -1
- package/lib/epic-window-send.d.ts +74 -0
- package/lib/epic-window-send.d.ts.map +1 -0
- package/lib/epic-window-send.js +166 -0
- package/lib/epic-window-send.js.map +1 -0
- package/lib/hooks-map.d.ts +4 -0
- package/lib/hooks-map.d.ts.map +1 -1
- package/lib/hooks-map.js +2 -2
- package/lib/hooks-map.js.map +1 -1
- package/lib/integrity.d.ts +3 -0
- package/lib/integrity.d.ts.map +1 -1
- package/lib/integrity.js +7 -0
- package/lib/integrity.js.map +1 -1
- package/lib/metric-lines.d.ts +2 -1
- package/lib/metric-lines.d.ts.map +1 -1
- package/lib/metric-lines.js +49 -1
- package/lib/metric-lines.js.map +1 -1
- package/lib/metric-send-mark.d.ts +6 -3
- package/lib/metric-send-mark.d.ts.map +1 -1
- package/lib/metric-send-mark.js +15 -5
- package/lib/metric-send-mark.js.map +1 -1
- package/lib/metric-send.d.ts +6 -2
- package/lib/metric-send.d.ts.map +1 -1
- package/lib/metric-send.js +47 -13
- package/lib/metric-send.js.map +1 -1
- package/lib/metrics.d.ts +17 -0
- package/lib/metrics.d.ts.map +1 -1
- package/lib/metrics.js +26 -15
- package/lib/metrics.js.map +1 -1
- package/lib/observations.js +3 -3
- package/lib/observations.js.map +1 -1
- package/lib/outcomes.d.ts +5 -2
- package/lib/outcomes.d.ts.map +1 -1
- package/lib/outcomes.js +5 -4
- package/lib/outcomes.js.map +1 -1
- package/lib/push-gate.d.ts +13 -0
- package/lib/push-gate.d.ts.map +1 -1
- package/lib/push-gate.js +11 -7
- package/lib/push-gate.js.map +1 -1
- package/lib/push-set-usefulness.d.ts +78 -0
- package/lib/push-set-usefulness.d.ts.map +1 -0
- package/lib/push-set-usefulness.js +225 -0
- package/lib/push-set-usefulness.js.map +1 -0
- package/lib/sync.d.ts +10 -0
- package/lib/sync.d.ts.map +1 -1
- package/lib/sync.js +14 -1
- package/lib/sync.js.map +1 -1
- package/lib/work-result.d.ts +43 -0
- package/lib/work-result.d.ts.map +1 -0
- package/lib/work-result.js +39 -0
- package/lib/work-result.js.map +1 -0
- package/package.json +1 -1
- package/assets/hooks/claim-guard.sh +0 -212
- package/assets/hooks/grill-gate-ask.sh +0 -26
- package/assets/hooks/grill-gate-bypass.sh +0 -61
- package/assets/hooks/grill-gate-options.sh +0 -50
- package/assets/hooks/grill-gate.sh +0 -482
- package/assets/hooks/postmortem-guard.sh +0 -124
- package/assets/hooks/proposal-guard.sh +0 -154
- package/assets/hooks/stand-login-guard.sh +0 -107
- package/assets/hooks/turn-exit-epic.sh +0 -173
- package/assets/hooks/turn-exit-patterns.sh +0 -123
- package/assets/hooks/turn-exit-verdict.sh +0 -149
- package/assets/hooks/waiting-turn-guard.sh +0 -320
- package/assets/hooks/work-start-guard.sh +0 -175
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
# Returning to unfinished work — cold part
|
|
2
|
+
|
|
3
|
+
The pattern `task-flow-resume` whole: every section with its code and its reasons. Its hot part names the sections and the opening of each.
|
|
4
|
+
|
|
5
|
+
## Pitfalls
|
|
6
|
+
|
|
7
|
+
The misses of this pattern stand where they happen: in its sections below and in its list of
|
|
8
|
+
common misses, when it has one.
|
|
9
|
+
|
|
10
|
+
Pattern of the rule `task-flow`. What must be true meanwhile — the law
|
|
11
|
+
`docs/constitution/work-conduct.md`.
|
|
12
|
+
|
|
13
|
+
**Requires:** `hooks/task-context-load.sh`
|
|
14
|
+
|
|
15
|
+
## When to use
|
|
16
|
+
|
|
17
|
+
- A session is begun on a branch `<КЛЮЧ>-*`, and work in it was already going.
|
|
18
|
+
- The work is interrupted — it has to be left so that the next session picks it up without the
|
|
19
|
+
owner.
|
|
20
|
+
|
|
21
|
+
## What has already come into the context
|
|
22
|
+
|
|
23
|
+
The hook `task-context-load.sh` gave the plan and the progress whole at session start, and the grill
|
|
24
|
+
of the request — by path. They need not be re-read as files; `grill.md` is read when a decision
|
|
25
|
+
whose reason is unclear surfaces in the progress.
|
|
26
|
+
|
|
27
|
+
The warning `РАБОТА БЕЗ ПАПКИ ЗАДАЧИ` came — the work went past the folder. The folder is assembled
|
|
28
|
+
from the template, and `progress.md` is filled by what is seen in the tree and in the branch
|
|
29
|
+
history, not by questioning the owner.
|
|
30
|
+
|
|
31
|
+
`РАБОТА ЗАКРЫВАЕТСЯ` came — the branch itself took the folder apart before the PR, and it is not
|
|
32
|
+
assembled again: the work state is read at the PR and in the session handover. A code edit after
|
|
33
|
+
review remarks became needed — the folder is restored for the time of the edit, and the taking-apart
|
|
34
|
+
is repeated by the same commit.
|
|
35
|
+
|
|
36
|
+
## A stage sign is checked by a run, not by a list made by reading
|
|
37
|
+
|
|
38
|
+
What is counted by eye diverges from what is there. Reading the check, the executor counted four
|
|
39
|
+
exits by skip, and there were five — the fifth lay behind a separate function inside the database
|
|
40
|
+
client wrapper and did not get into the list. It was found by a run, and what saved the work was
|
|
41
|
+
exactly the plan line that demanded checking every case by a command.
|
|
42
|
+
|
|
43
|
+
Hence the form of the sign: it names a command and what in its output means "matches" — not a list
|
|
44
|
+
gathered by reading. A list is good for knowing where to look; a stage is closed by command output.
|
|
45
|
+
|
|
46
|
+
## What not to do
|
|
47
|
+
|
|
48
|
+
- **Do not ask the owner about what is recorded.** That is what all of this is for.
|
|
49
|
+
- **Do not start over what is marked done.** The mark stands in the progress; doubt about it is
|
|
50
|
+
checked by the tree — a build, tests, reading the file — not by a question.
|
|
51
|
+
- **Do not re-derive the recorded from the code.** The ban on questions does not cover this: a
|
|
52
|
+
decision derived from the code and served as a finding costs more than a spare question. The owner
|
|
53
|
+
is offered to accept anew what they already accepted, and a list of options sounds more convincing
|
|
54
|
+
than a record they do not see. Before deriving, the grill, the progress and the plan are searched.
|
|
55
|
+
- **Do not edit the plan.** The result is checked against it; a revision goes as an entry in the
|
|
56
|
+
progress.
|
|
57
|
+
|
|
58
|
+
## Entry from a session handover
|
|
59
|
+
|
|
60
|
+
The handover was written by a past session, and no check reads it. It is read as an assignment —
|
|
61
|
+
and the work is taken up past the rule: the state is not checked, the rule is not loaded, the
|
|
62
|
+
numbers are taken on trust. The entry from a handover differs from an ordinary session in one thing:
|
|
63
|
+
everything written in it is checked against the tree, because it was written yesterday.
|
|
64
|
+
|
|
65
|
+
The order is short, four steps:
|
|
66
|
+
|
|
67
|
+
1. **The work-conduct rule and this pattern — as the first move**, before the first line to the
|
|
68
|
+
owner.
|
|
69
|
+
2. **The branch and the work state are read in the tree**, not in the handover: `git branch
|
|
70
|
+
--show-current` and the state line in the progress. Diverged from the handover — the tree is
|
|
71
|
+
right.
|
|
72
|
+
3. **The numbers from the handover are recounted** on the current commit. The estimate "twice as
|
|
73
|
+
much work" was never confirmed by a recount.
|
|
74
|
+
4. **The next step is taken from the progress**, not from the handover's section about it: the
|
|
75
|
+
handover retells the progress as it stood at its minute, and the two diverge within one session.
|
|
76
|
+
|
|
77
|
+
What is not in the handover and never will be: the owner's words — they are in the grill; decisions
|
|
78
|
+
with reasons — they are in the progress; the plan — it is on disk. The handover retells, it does not
|
|
79
|
+
replace.
|
|
80
|
+
|
|
81
|
+
## Entering the session: the state line is checked against the tree
|
|
82
|
+
|
|
83
|
+
Check "Where we stand" against the tree. The record describes the day it was made:
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
git status --short
|
|
87
|
+
git log --oneline origin/main..HEAD
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
Diverged — "Where we stand" is fixed at once, before the work: the next session will trust the
|
|
91
|
+
record, not the tree. The state line is fixed together with it: the guard reads it, and left over
|
|
92
|
+
from the past session it either refuses a lawful edit or lets through work that has not yet reached
|
|
93
|
+
the code edit.
|
|
94
|
+
|
|
95
|
+
## State `этап-идёт`: the stage is done and marked in the progress
|
|
96
|
+
|
|
97
|
+
A large edit that crosses several layers — the contract, the storage, the applications — may be led
|
|
98
|
+
by the role pipeline:
|
|
99
|
+
|
|
100
|
+
```
|
|
101
|
+
Workflow(name: "feature", args: { task: "<the plan stage>", grill: "docs/tasks/<ветка>/grill.md" })
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
The pipeline makes a plan of its own, up to six steps: its points role reads the task and epic plans,
|
|
105
|
+
but its own steps do not come from `plan.md`. So it is given one stage of the plan, not the task,
|
|
106
|
+
and its steps are not new stages: the progress marks the steps of the plan as before, and the
|
|
107
|
+
pipeline's acceptance is the readiness sign of that stage. Its goal phase compares the result with
|
|
108
|
+
the whole request of the grill, so for one stage its verdict "goal not met" is expected and is not
|
|
109
|
+
the readiness sign.
|
|
110
|
+
|
|
111
|
+
The "Where we stand" section is **rewritten**, not appended — it is the first thing the next session
|
|
112
|
+
reads, and the only thing that survives trimming by size:
|
|
113
|
+
|
|
114
|
+
```markdown
|
|
115
|
+
## Where we stand
|
|
116
|
+
|
|
117
|
+
- **State:** `этап-идёт`
|
|
118
|
+
- **Stage:** 3 of 6 — the guard and the startup hook
|
|
119
|
+
- **Done:** the law is created, the task folder and the sample are written
|
|
120
|
+
- **Next step:** the scenarios of both hooks, then wiring them into the settings
|
|
121
|
+
- **Uncommitted:** everything, the branch has no commits yet
|
|
122
|
+
- **PR:** not opened yet
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
The PR line is mandatory from the minute the stages are over and lives while the folder does. The
|
|
126
|
+
folder leaves by the commit before the PR opens, so the line names what the closing still has to do;
|
|
127
|
+
after the opening the PR state is read from the host by its number, and the number is asked of the
|
|
128
|
+
host by the branch. A PR reopened for remarks after the folder left keeps its state in the PR itself:
|
|
129
|
+
|
|
130
|
+
```markdown
|
|
131
|
+
- **PR:** не открыт · осталось: разбор папки, сверка очереди
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
The progress carries no line about a stop. The exit guard reads the owner's stop word from their
|
|
135
|
+
last message in the record of the session, and a stop written on disk would only retell it. A task
|
|
136
|
+
the owner put off gets the mark «отложено» in the epic plan, set by their word naming it, and the
|
|
137
|
+
work goes on with the next task.
|
|
138
|
+
|
|
139
|
+
With the PR opened the state becomes `работа-отдана`, and its mandatory action is different — the
|
|
140
|
+
next task, not waiting for review. By that minute there is nothing left to declare it with on disk:
|
|
141
|
+
the progress left with the folder, and the tail of the work is led by pattern `task-flow-close`.
|
|
142
|
+
|
|
143
|
+
A decision taken along the way — with the reason and with what the alternative was:
|
|
144
|
+
|
|
145
|
+
```markdown
|
|
146
|
+
- **2026-08-07. Гард судит по путям правки, а не по замыслу задачи.** Оценку «меняет ли
|
|
147
|
+
поведение» назначал бы тот, кому она мешает. Альтернатива — строка в замысле — отвергнута.
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
A stage revision — to the same place, not by editing the plan:
|
|
151
|
+
|
|
152
|
+
```markdown
|
|
153
|
+
- **2026-08-07. Этап 4 заменён: роли заводятся обе, а не одна.** Владелец решил при разборе;
|
|
154
|
+
прежний этап в замысле оставлен видимым.
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
A new request of the owner inside the same task goes into the grill, not only into the progress.
|
|
158
|
+
The grill leaves for the archive, the progress only when it holds decisions. The request is quoted
|
|
159
|
+
verbatim under "The owner request"; under "Decisions" goes the answer, or the line "closed by
|
|
160
|
+
assumption: <what is taken>" when the question was not put. Otherwise the archive keeps the first
|
|
161
|
+
answer while the code carries the second.
|
|
162
|
+
|
|
163
|
+
The session entry marks what was done and what confirms it:
|
|
164
|
+
|
|
165
|
+
```markdown
|
|
166
|
+
### 2026-08-07
|
|
167
|
+
|
|
168
|
+
- 28 сценариев в наборе, `bash .claude/hooks/tests/run.sh` — все наборы зелёные.
|
|
169
|
+
- Доэтапное, не этой работы: сверка очереди перечисляет шесть закрытых задач вне борды.
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
**Next move:** the marked stage gives way to the next in the same turn. The stages are over — the
|
|
173
|
+
same turn runs the suite, merges the agreement, brings the texts up to date and takes the task
|
|
174
|
+
folder apart; the PR opens behind work already cleaned up.
|
|
175
|
+
|
|
176
|
+
## State `работа-отдана`: the next task is taken by the same move
|
|
177
|
+
|
|
178
|
+
The task is closed, the PR is open and waits for the owner — the session does not end on it. What is
|
|
179
|
+
handed in for review waits for a person, not a machine: while the epic is not over, its next task is
|
|
180
|
+
taken at once, by the same move with which the previous one went to review.
|
|
181
|
+
|
|
182
|
+
Taken, not chosen: the order was assigned at planning and lies in the epic plan. A choice offered to
|
|
183
|
+
the owner under an assigned order is a request to assign it anew.
|
|
184
|
+
|
|
185
|
+
Work outside an epic has no plan with an order, and the next work after it is named by the owner:
|
|
186
|
+
the turn asks them, it does not take a card. The queue is asked by a command, not by memory of what
|
|
187
|
+
the executor created themselves, and what it holds goes into the question. An empty queue is a
|
|
188
|
+
statement about the tree, and it is backed by command output.
|
|
189
|
+
|
|
190
|
+
```bash
|
|
191
|
+
# what is assigned next — read in the epic plan, not asked
|
|
192
|
+
# the state of the tasks — in the work queue: the plan does not know what is closed
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
Two things stop the session. The window fill limit — then comes the handover, pattern
|
|
196
|
+
`task-flow-handoff`. And the end of the epic: the turn shows the table of its tasks and waits for
|
|
197
|
+
the owner's word, rule `turn-conduct`. A card of the work queue outside the epic is not an order.
|
|
198
|
+
While the epic is assigned and open, no check refuses taking such a card — this article holds it;
|
|
199
|
+
after the epic's end the epic-end guard refuses it until the owner names the work.
|
|
200
|
+
|
|
201
|
+
**Next move:** an action is done on the next task — a task, a branch or a folder is created. The
|
|
202
|
+
turn ends after it, not after words about it.
|
|
203
|
+
|
|
204
|
+
## State `влито`: the epic plan learns of the merge
|
|
205
|
+
|
|
206
|
+
A person merged the PR, and the epic plan still names the task as in work. The row moves to merged
|
|
207
|
+
in the branch of the next task, by its first commit: the epic branch carries no edits of its own. A
|
|
208
|
+
lesson the task left for the following ones goes into the section of the plan about what was learned
|
|
209
|
+
along the way, in the same commit. The last task of the epic has no next branch, and the epic branch
|
|
210
|
+
takes no edit of its own: its row stays "handed over", and the body of the epic PR into the main
|
|
211
|
+
branch names its merge.
|
|
212
|
+
|
|
213
|
+
Work begun from cargo that arrived moves its records to "done" in the turn that learns of the merge,
|
|
214
|
+
not at the folder's taking-apart: before the merge the edit is not in the tree, and the mark would
|
|
215
|
+
claim what does not yet lie in main. The keys are taken from the archive and passed whole, as the
|
|
216
|
+
intake read prints them:
|
|
217
|
+
|
|
218
|
+
```bash
|
|
219
|
+
npm run cargo:mark -- --state fixed \
|
|
220
|
+
--proposal <полный ключ> --proposal <полный ключ> \
|
|
221
|
+
--fix '<чем исправлено: статья правила, гард, проверка, правка кода>'
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
One fix per call, so the records go in batches by what closed them. The reply is read: "moved 0"
|
|
225
|
+
means nothing moved.
|
|
226
|
+
|
|
227
|
+
**Next move:** the work of the next task goes on — the merge needs no turn of its own.
|
|
228
|
+
|
|
229
|
+
## Common misses
|
|
230
|
+
|
|
231
|
+
- **Confirmation is command output or a measurement, not a retelling.** "Checked, it works" a
|
|
232
|
+
session later cannot be told from "it seemed to work".
|
|
233
|
+
- **A number from the handover and from "Where we stand" is recounted before it gets into any new
|
|
234
|
+
text.** Not only before splitting the work. Carried into the grill or the progress, it is read by
|
|
235
|
+
the next sessions as a measurement and checked by nobody else. The handover describes the day it
|
|
236
|
+
was written, and no check reads it. A count taken unrecounted diverged from
|
|
237
|
+
the tree by eight and was found by a counting script, not by reading. The estimate "twice as much
|
|
238
|
+
work as the previous" costs the same — on the current commit the volumes were almost equal. A
|
|
239
|
+
recount costs one command, and the text gets its own number.
|
|
240
|
+
- **Pre-existing red is kept apart from one's own.** Red found along the way and not made by this
|
|
241
|
+
work is marked as such at once: otherwise the next session takes it for its own breakage.
|
|
242
|
+
- **An analysis written by this session does not become a requirement for it.** The record explains
|
|
243
|
+
the mechanism, and it is carried out by the same thing as the previous one — the attention of
|
|
244
|
+
whoever leads the turn. One turn after the record the mechanism repeated in the same form. So an
|
|
245
|
+
analysis ends not with text but with what came out of it: an edit of a resource, a guard or a
|
|
246
|
+
proposal with an address. A session that appended an analysis and returned to work unchanged pays
|
|
247
|
+
for it twice.
|
|
248
|
+
- **A findings count written as a word goes stale by the next paragraph.** The count grows by
|
|
249
|
+
sessions, and the word stays put. "Seven" stood over eight listed ones up to the summary itself
|
|
250
|
+
and would have gone further — into the report and into the epic plan. Either a list without a
|
|
251
|
+
number is written, or a number counted in the same turn as the summary.
|
|
252
|
+
- **A red suite on a branch that touched not one line of code is asked of the neighbouring sessions
|
|
253
|
+
before one's own edit.** The stand for the runs is one per machine. A neighbouring session that
|
|
254
|
+
raised it for itself drops someone else's suite, and the failure looks like a broken environment.
|
|
255
|
+
Read so, it sends a second session to the same place — to fix what never broke. The order is the
|
|
256
|
+
reverse: first the neighbouring sessions and the busy ports are read, and only then one's own
|
|
257
|
+
edit.
|
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
# Starting the work — cold part
|
|
2
|
+
|
|
3
|
+
The pattern `task-flow-start` whole: every section with its code and its reasons. Its hot part names the sections and the opening of each.
|
|
4
|
+
|
|
5
|
+
## Pitfalls
|
|
6
|
+
|
|
7
|
+
The misses of this pattern stand where they happen: in its sections below and in its list of
|
|
8
|
+
common misses, when it has one.
|
|
9
|
+
|
|
10
|
+
Pattern of the rule `task-flow`. What must be true meanwhile — the law
|
|
11
|
+
`docs/constitution/work-conduct.md`.
|
|
12
|
+
|
|
13
|
+
## When to use
|
|
14
|
+
|
|
15
|
+
- The owner asks for something to be done; the size of the request does not matter — a folder is
|
|
16
|
+
created for any work.
|
|
17
|
+
- A defect noticed along the way becomes a task.
|
|
18
|
+
|
|
19
|
+
## Order
|
|
20
|
+
|
|
21
|
+
The steps below open one continuous count: a step number is one for the whole course of the work and
|
|
22
|
+
does not start over in the next pattern. The whole list is in the rule `task-flow`; it is also shown
|
|
23
|
+
to the owner at the start of work, so that after six questions what lies ahead is visible.
|
|
24
|
+
|
|
25
|
+
### State `просьба-не-разобрана`: exploration — before the first question
|
|
26
|
+
|
|
27
|
+
A question whose answer lies in the code is not put to the owner: it devalues the rest.
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
Agent(subagent_type: "Explore", prompt: "<тема просьбы>: что по ней уже есть в дереве —
|
|
31
|
+
какие спеки описывают, какие законы и правила задевает, какие либы затронуты,
|
|
32
|
+
есть ли готовый образец рядом. Верни находки, а не пересказ файлов.")
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
The findings go into the grill section "What is already in the tree".
|
|
36
|
+
|
|
37
|
+
The tree is not the only place where the answer lies. A decision of a past session, written nowhere,
|
|
38
|
+
lives only in that session's record: a search over them by the theme's word costs one command. What
|
|
39
|
+
is found is written into the tree in the same turn — into the epic plan if it links tasks, into the
|
|
40
|
+
progress if it concerns one.
|
|
41
|
+
|
|
42
|
+
Exploration that found nothing is no permission to ask: the epic plan, the archive and past sessions
|
|
43
|
+
are reached first, and the question names where the search went. Exploration ends with command output, not with a feeling: the root memo, `ls` of the directory at
|
|
44
|
+
hand, a search over the documentation and the rules.
|
|
45
|
+
|
|
46
|
+
A member added beside a list, not into it, is named at every reader of that list: each place that
|
|
47
|
+
walks the list knows only its members. The readers are found by a search of the list's symbol and go
|
|
48
|
+
into the agreement as places to touch; one the search did not return is found after the code.
|
|
49
|
+
|
|
50
|
+
Exploration over a created task ends with a reproduced symptom, not a found file: the body describes
|
|
51
|
+
the tree on the day of creation. Before the first edit the exploration repeats what the task
|
|
52
|
+
complains about; a symptom that did not reproduce closes the task as lapsed, and that is lawful.
|
|
53
|
+
|
|
54
|
+
A tree named as a sample is read as a layout whole — walking the directories two levels deep —
|
|
55
|
+
before questions about techniques: one folder generalised into a map leaves out its neighbours.
|
|
56
|
+
|
|
57
|
+
What was inferred is marked right in the list, together with what confirms it.
|
|
58
|
+
|
|
59
|
+
Removing an identifier that lives outside the code starts with a search for its value: a client of
|
|
60
|
+
the authorization server, a key, an environment variable — over the code, the environment samples
|
|
61
|
+
and the composition files. The plan names what uses the identifier now, not what it was created for.
|
|
62
|
+
|
|
63
|
+
**A ready-made module of the same kind is looked for before the first question** — in this tree and
|
|
64
|
+
in the trees recorded as samples of its layout. The one found is read whole: it closes the questions
|
|
65
|
+
about the structure — the source of the numbers, the rows, the screen, the storage.
|
|
66
|
+
|
|
67
|
+
The six questions are asked minus those the exploration answered; the grill gets the line "taking
|
|
68
|
+
such-and-such answer, here is where from". The sign is whether the answer is in the tree.
|
|
69
|
+
|
|
70
|
+
**Next move:** the findings land in the grill, and in the same turn the first of the six questions
|
|
71
|
+
goes to the owner. The exploration ended — the state stayed the same, so did the turn.
|
|
72
|
+
|
|
73
|
+
### State `просьба-не-разобрана`: the grill with the owner
|
|
74
|
+
|
|
75
|
+
Led by the main agent: a subagent cannot reach the owner. The command is `/grill-me`, one question
|
|
76
|
+
at a time, each with its recommended answer and the reason.
|
|
77
|
+
|
|
78
|
+
All six questions are closed, and those the exploration did not answer are asked:
|
|
79
|
+
|
|
80
|
+
| Question | Why |
|
|
81
|
+
| --- | --- |
|
|
82
|
+
| Does the task change the application's behaviour | the product agreement depends on it |
|
|
83
|
+
| Does it need an edit of a law or a rule | a law is not edited without the owner's knowledge |
|
|
84
|
+
| One task or several | what rolls back apart is split, and split BEFORE the branch |
|
|
85
|
+
| What is not part of the task | a boundary not named aloud does not exist |
|
|
86
|
+
| What will show that the task is closed | "it works" is no sign |
|
|
87
|
+
| Is there a sample the approach is taken from | exploration finds something similar, not the thing itself |
|
|
88
|
+
|
|
89
|
+
The list of six is the set of what is closed by the start of work, not a set of lines to be said. A
|
|
90
|
+
question the owner has already answered is marked closed together with what closed it: the answer is
|
|
91
|
+
sought in the documentation and in this session, the original request included. An obvious answer
|
|
92
|
+
closes by the line "question closed by assumption: <what is taken>": a wrong assumption costs an
|
|
93
|
+
edit, a question about the obvious costs a session.
|
|
94
|
+
|
|
95
|
+
**Two answers «recommended» in a row close the remaining questions by assumption.** An owner who took
|
|
96
|
+
the recommended option twice running has shown that the decisions are not theirs. From the second
|
|
97
|
+
such answer the remaining questions go into the grill as decisions — what is taken and where from —
|
|
98
|
+
and the owner gets the list in one line, not a menu. No check counts the menus; a menu goes out
|
|
99
|
+
again only for a question no assumption closes, and says so first.
|
|
100
|
+
|
|
101
|
+
**The streak is counted over the session record, not per task.** After two «recommended» answers at
|
|
102
|
+
the end of one task, the next task's questions go into its grill as decisions from the start.
|
|
103
|
+
|
|
104
|
+
The size of the work is never a ground for a question about boundaries: the owner decided it before
|
|
105
|
+
the work began.
|
|
106
|
+
|
|
107
|
+
The form of a question is set by the owner's settings: where a menu is required, a menu is asked,
|
|
108
|
+
and a free option is added to every question — a closed set has no line "wrong question".
|
|
109
|
+
|
|
110
|
+
**The framing of a handed-over text is not carried onto the current tree.** A handover, a proposals
|
|
111
|
+
file and a spec describe the tree they were written in; a statement about the layout is checked by a
|
|
112
|
+
command here — the signs of a tree that only installs the package stand on the one that writes it too.
|
|
113
|
+
|
|
114
|
+
The message with which the executor stops begins with what they wait for:
|
|
115
|
+
|
|
116
|
+
```
|
|
117
|
+
Стою на выборе <что решается>. Без ответа <что будет: пойду допущением таким-то / работа стоит>.
|
|
118
|
+
<Вопрос>
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
Under the question goes the table of the epic's position — the same as in the handover; work outside
|
|
122
|
+
an epic carries no table. Measurements, role findings and the list of decisions are already in the
|
|
123
|
+
progress and are left out of the message: a report with a question at its end drowns the question.
|
|
124
|
+
|
|
125
|
+
The answers are written into `docs/tasks/_draft-<slug>/grill.md` — the folder is still a draft,
|
|
126
|
+
there is no number.
|
|
127
|
+
|
|
128
|
+
```bash
|
|
129
|
+
mkdir -p docs/tasks/_draft-<slug>
|
|
130
|
+
cp docs/tasks/_template/grill.md docs/tasks/_draft-<slug>/grill.md
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
An answer chosen from a menu is written with the options it was chosen from: the label alone does
|
|
134
|
+
not show whether the owner took a ready option or wrote their own. A task that stands only on a
|
|
135
|
+
chosen option says so in its body.
|
|
136
|
+
|
|
137
|
+
**Next move:** the owner's answer is appended to the grill, and the next question follows. The
|
|
138
|
+
answers are over — in the same turn the work goes into the roles pipeline.
|
|
139
|
+
|
|
140
|
+
### State `разбор-закрыт`: the pipeline after the grill
|
|
141
|
+
|
|
142
|
+
There will be no more questions — from here on, the roles:
|
|
143
|
+
|
|
144
|
+
```
|
|
145
|
+
Workflow(name: "plan", args: "docs/tasks/_draft-<slug>")
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
Need → the points (`product-strategist`) → the product agreement (`spec-writer`) → its adversarial
|
|
149
|
+
review (`spec-critic`) → the plan and the breakdown (`project-manager`) → `goal-critic`. Gaps the
|
|
150
|
+
roles could not close return to the owner — the main agent carries them, and the route's misses.
|
|
151
|
+
|
|
152
|
+
The agreement that came out of the pipeline is checked against `grill.md` line by line before work
|
|
153
|
+
by it. The role writes the text without seeing the owner and can turn their answer into its
|
|
154
|
+
opposite: the order of stages came out reversed, and included items moved to "not included". A
|
|
155
|
+
critic's finding that diverges from the owner's answer is carried to the owner, not carried out in
|
|
156
|
+
silence. The same check holds for the executor's own decision on an open question of the agreement:
|
|
157
|
+
it is compared with the grill before it goes to the writer — an open question lists the owner's
|
|
158
|
+
answer among its variants without a mark, and is decided anew.
|
|
159
|
+
|
|
160
|
+
The turn does not end on this boundary. A closed grill looks like a finished piece — the answers are
|
|
161
|
+
on disk, the file is committed, there is something to report — and the report takes the place of the
|
|
162
|
+
agreement. It is written in the same turn, by the roles pipeline or by the executor's hand.
|
|
163
|
+
|
|
164
|
+
**Next move:** the agreement checked against the grill is committed, and in the same turn the task,
|
|
165
|
+
the branch and the folder are created — and if the grill produced a series, the epic is declared
|
|
166
|
+
first.
|
|
167
|
+
|
|
168
|
+
### State `договорённость-записана`: a series of tasks is declared an epic
|
|
169
|
+
|
|
170
|
+
The grill ended with one task — no epic is declared for it: it goes into the epic in work, or, by the
|
|
171
|
+
owner's word, outside any epic with `--outside-epic`. Several came out, and the order between them
|
|
172
|
+
matters — the epic is declared and its branch is taken by the pattern `epic-flow-declare`, and the
|
|
173
|
+
work comes back here with its first task.
|
|
174
|
+
|
|
175
|
+
**Next move:** one task — the task, the branch and the folder below; a series — the pattern
|
|
176
|
+
`epic-flow-declare`, in the same turn.
|
|
177
|
+
|
|
178
|
+
### State `договорённость-записана`: the task, the branch, the folder
|
|
179
|
+
|
|
180
|
+
```bash
|
|
181
|
+
npm run task:new -- --epic-of <номер эпика> --title '<Что не так>' --slug <slug> --label area:tooling < тело.md
|
|
182
|
+
git checkout -b <КЛЮЧ>-<номер>-<slug> <ветка эпика>
|
|
183
|
+
npm run task:move -- <номер> in-progress
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
The body comes as a file and is never empty: an empty task tells nothing to the executor or the
|
|
187
|
+
owner, and it can be filled in later only on the owner's word.
|
|
188
|
+
|
|
189
|
+
The call writes the line about the epic into the body itself and prints the branch line with the
|
|
190
|
+
branch of the epic as its base: the shape of that line is read by a machine from both sides, and by
|
|
191
|
+
hand it comes out in a shape of its own once out of three. Work outside an epic goes by the same
|
|
192
|
+
call with `--outside-epic '<слово владельца>'` — a refusal without that second way out is read as
|
|
193
|
+
"there is no way" and gets bypassed by a call to the hosting past this command.
|
|
194
|
+
|
|
195
|
+
`task:new` renames `_draft-<slug>` to `<КЛЮЧ>-<номер>-<slug>` and fills in the plan header. The
|
|
196
|
+
branch is created by a second call: a compound "create and commit at once" is refused by the
|
|
197
|
+
main-branch guard whole.
|
|
198
|
+
|
|
199
|
+
The number is already issued — there is no draft: the folder opens straight under the branch name.
|
|
200
|
+
Half of all work starts this way (a past session, a noticed defect, a neighbouring task). The pitfall
|
|
201
|
+
"the number never comes first" does not apply: it is about not creating the task before the grill.
|
|
202
|
+
|
|
203
|
+
The other two files are written, not laid down as templates for later: an empty `plan.md` cannot be
|
|
204
|
+
told from a plan without stages, and the next session trusts the task folder. The template is opened
|
|
205
|
+
by the same move that fills it, and the layout header is stripped from the copy right there —
|
|
206
|
+
otherwise the guard refuses the edit, and the pitfall next to the rule explains why:
|
|
207
|
+
|
|
208
|
+
```bash
|
|
209
|
+
cp docs/tasks/_template/plan.md docs/tasks/<КЛЮЧ>-<номер>-<slug>/plan.md # and written at once
|
|
210
|
+
cp docs/tasks/_template/progress.md docs/tasks/<КЛЮЧ>-<номер>-<slug>/progress.md
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
In the progress the first line declares the state — from this minute the guard reads it:
|
|
214
|
+
|
|
215
|
+
```markdown
|
|
216
|
+
- **State:** `задача-взята`
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
Until a state in which code is edited is declared, the guard refuses the edit and names the
|
|
220
|
+
mandatory action of the state that stands in the line.
|
|
221
|
+
|
|
222
|
+
**Next move:** having declared the state, the same turn takes up the plan starting with its header.
|
|
223
|
+
A created folder does not end the turn: not one written file is in it yet.
|
|
224
|
+
|
|
225
|
+
### State `задача-взята`: the plan header
|
|
226
|
+
|
|
227
|
+
The guard reads it:
|
|
228
|
+
|
|
229
|
+
```markdown
|
|
230
|
+
**Task:** <КЛЮЧ>-282 · **Branch:** <КЛЮЧ>-282-task-flow
|
|
231
|
+
**Draft:** `docs/specs/bookings/proposed/aside-header/`
|
|
232
|
+
**Behaviour:** changes
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
A tree with no "proposed" directory names the agreement by the domain spec itself — there it is
|
|
236
|
+
written straight into it, and nothing has to move at the closing of the work:
|
|
237
|
+
|
|
238
|
+
```markdown
|
|
239
|
+
**Spec:** `docs/specs/bookings/spec.md`
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
Work that does not touch `apps/**` and `libs/**` needs no agreement:
|
|
243
|
+
|
|
244
|
+
```markdown
|
|
245
|
+
**Behaviour:** unchanged — a move of the layer, invisible from outside. Подтверждено владельцем.
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
An empty reason is not accepted.
|
|
249
|
+
|
|
250
|
+
The Specs line of the footprint is filled by the command that names the spec of a resource, run on
|
|
251
|
+
the files of the Code line, not from memory.
|
|
252
|
+
|
|
253
|
+
**Next move:** under the header the task footprint and the stages are written, the plan is
|
|
254
|
+
committed, and in the same turn the first stage begins.
|
|
255
|
+
|
|
256
|
+
### State `замысел-записан`: the first stage begins in the same turn
|
|
257
|
+
|
|
258
|
+
The plan is committed — the work moves into the first stage at once, without giving up the turn. The
|
|
259
|
+
state line is rewritten to `этап-идёт`, and from there the work is led by the resume pattern.
|
|
260
|
+
|
|
261
|
+
```markdown
|
|
262
|
+
- **State:** `этап-идёт`
|
|
263
|
+
- **Stage:** 1 из 3 — <название первого этапа из замысла>
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
The turn does not end on this boundary. A written plan looks like a finished piece — the file is
|
|
267
|
+
committed, there is something to report — and the report takes the place of the work: a session
|
|
268
|
+
ended with "next step — such-and-such" at a window fill of about two percent. A turn ends with the
|
|
269
|
+
scenario or with the owner's stop word; a pattern read to the end is neither.
|
|
270
|
+
|
|
271
|
+
**Next move:** the first stage is done in the same turn. `task-flow-script.mjs step` runs the check
|
|
272
|
+
of each of its steps and marks the step done itself; a hand mark is refused.
|
|
273
|
+
|
|
274
|
+
## Common misses
|
|
275
|
+
|
|
276
|
+
- **The number never comes first.** Until the grill ends it is not even known how many tasks come
|
|
277
|
+
out of it: a task created in advance is closed after the breakdown and stays as litter in the work
|
|
278
|
+
queue.
|
|
279
|
+
- **The grill is written to disk at once, not stored up in the conversation.** The session breaks
|
|
280
|
+
off, and a grill lived through in conversation is recovered only by the owner's retelling.
|
|
281
|
+
- **One grill produced several tasks — the common part leaves for the epic plan.** The task folder
|
|
282
|
+
dies with the merge, and the task order outlives it; the directory is named by the rule's
|
|
283
|
+
companion.
|
|
284
|
+
- **The branch slug is taken from the terminology of the agreement, not from the words of the
|
|
285
|
+
request.** The agreement is written before the branch, and that is exactly where it drops the
|
|
286
|
+
owner's word. The task title and the PR title can be fixed; the branch name after the PR opens —
|
|
287
|
+
no longer.
|