@rt-tools/agent-kit 0.24.0 → 0.26.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/assets/agents/business-analyst.md +51 -50
- package/assets/agents/conscience.md +37 -35
- package/assets/agents/project-manager.md +49 -48
- package/assets/agents/prose-editor.md +31 -29
- package/assets/agents/qa-engineer.md +50 -48
- package/assets/agents/rules-reviewer.md +63 -58
- package/assets/agents/skill-curator.md +83 -78
- package/assets/agents/spec-critic.md +34 -29
- package/assets/agents/spec-writer.md +35 -32
- package/assets/agents/strict-teacher.md +39 -37
- package/assets/checks/archive-age.mjs +48 -28
- package/assets/checks/archive-prune.mjs +16 -14
- package/assets/checks/board-epics.github.mjs +75 -41
- package/assets/checks/board-folders.mjs +61 -0
- package/assets/checks/board-gh.github.mjs +35 -26
- package/assets/checks/board-long-work.github.mjs +24 -24
- package/assets/checks/board-paths.github.mjs +21 -16
- package/assets/checks/board-runs.github.mjs +45 -43
- package/assets/checks/board-titles.github.mjs +19 -17
- package/assets/checks/board.github.mjs +149 -127
- package/assets/checks/check-archive-age.mjs +23 -19
- package/assets/checks/check-board.github.mjs +172 -164
- package/assets/checks/check-descriptions.mjs +30 -29
- package/assets/checks/check-doc-paths.mjs +91 -88
- package/assets/checks/check-dupes.mjs +84 -80
- package/assets/checks/check-file-size.mjs +74 -71
- package/assets/checks/check-glossary.mjs +47 -37
- package/assets/checks/check-hook-scope.mjs +30 -27
- package/assets/checks/check-lib-layers.mjs +22 -21
- package/assets/checks/check-profile-drift.mjs +48 -43
- package/assets/checks/check-prose-style.mjs +120 -37
- package/assets/checks/check-push-gate.mjs +53 -50
- package/assets/checks/check-reuse.mjs +50 -40
- package/assets/checks/check-schema-drift.mjs +87 -83
- package/assets/checks/check-specs.mjs +155 -134
- package/assets/checks/check-state-next.mjs +66 -52
- package/assets/checks/check-states.mjs +32 -30
- package/assets/checks/check-styles.mjs +52 -51
- package/assets/checks/check-turn-map.mjs +54 -46
- package/assets/checks/lib-boundaries.mjs +32 -30
- package/assets/checks/lib-common.mjs +30 -29
- package/assets/checks/lib-domains.mjs +34 -34
- package/assets/checks/lib-manifests.mjs +17 -15
- package/assets/checks/lib-reexports.mjs +18 -18
- package/assets/checks/rt-kit-checks.config.mjs +174 -142
- package/assets/checks/signals.mjs +43 -39
- package/assets/checks/spec-anchors.mjs +114 -87
- package/assets/checks/spec-common.mjs +128 -84
- package/assets/checks/spec-contract.mjs +30 -30
- package/assets/checks/spec-proposed.mjs +27 -24
- package/assets/checks/spec-scenarios.mjs +51 -28
- package/assets/checks/task-new.github.mjs +85 -56
- package/assets/commands/feedback.md +65 -59
- package/assets/commands/next-session.md +64 -57
- package/assets/commands/skill-curator.md +83 -79
- package/assets/defaults/gate-map.sh +108 -97
- package/assets/defaults/project.sh +225 -185
- package/assets/defaults/shell.sh +73 -68
- package/assets/defaults/turn-map.md +45 -44
- package/assets/docs/GLOSSARY.md +142 -65
- package/assets/hooks/browser-device-id.sh +12 -12
- package/assets/hooks/browser-guard-device-id.sh +30 -28
- package/assets/hooks/browser-guard-no-asking.sh +5 -4
- package/assets/hooks/browser-guard-no-listing.sh +12 -11
- package/assets/hooks/browser-guard-no-other-drivers.sh +48 -42
- package/assets/hooks/browser-guard-require-select.sh +34 -23
- package/assets/hooks/claim-guard.sh +62 -56
- package/assets/hooks/commit-msg.sh +11 -10
- package/assets/hooks/conscience-guard.sh +91 -45
- package/assets/hooks/constitution-index.sh +16 -16
- package/assets/hooks/deny-tail.sh +28 -26
- package/assets/hooks/dev-server-guard.sh +46 -43
- package/assets/hooks/dispatch.sh +60 -46
- package/assets/hooks/docs-guard.sh +100 -91
- package/assets/hooks/exam-guard.sh +105 -93
- package/assets/hooks/git-guard-delivery-conflict.sh +38 -36
- package/assets/hooks/git-guard-delivery-draft.sh +45 -38
- package/assets/hooks/git-guard-delivery-folder.sh +50 -43
- package/assets/hooks/git-guard-delivery-signature.sh +88 -52
- package/assets/hooks/git-guard-delivery.sh +196 -180
- package/assets/hooks/git-guard-main.sh +38 -34
- package/assets/hooks/git-guard-push-tests.sh +99 -87
- package/assets/hooks/glossary-load.sh +23 -22
- package/assets/hooks/grill-gate-ask.sh +12 -11
- package/assets/hooks/grill-gate.sh +94 -87
- package/assets/hooks/guard-note.sh +20 -19
- package/assets/hooks/handoff-entry-guard.sh +26 -24
- package/assets/hooks/handoff-write.sh +74 -67
- package/assets/hooks/hook-input.sh +67 -58
- package/assets/hooks/lint-after-edit.sh +95 -61
- package/assets/hooks/observe.sh +28 -26
- package/assets/hooks/override-write-guard.sh +23 -21
- package/assets/hooks/postmortem-guard.sh +42 -39
- package/assets/hooks/profile-check.sh +22 -20
- package/assets/hooks/proposal-guard.sh +57 -49
- package/assets/hooks/prose-style-guard.sh +19 -17
- package/assets/hooks/qa-dataid-guard.sh +52 -49
- package/assets/hooks/rerun-guard.sh +31 -30
- package/assets/hooks/reuse-first-guard.sh +108 -87
- package/assets/hooks/roles.sh +14 -14
- package/assets/hooks/rule-article.sh +36 -34
- package/assets/hooks/rule-source-guard.sh +47 -42
- package/assets/hooks/skill-gate-layers.sh +59 -57
- package/assets/hooks/skill-gate-rearm.sh +15 -8
- package/assets/hooks/skill-gate.sh +89 -81
- package/assets/hooks/skill-loaded.sh +6 -6
- package/assets/hooks/sql-guard-parse.sh +68 -66
- package/assets/hooks/sql-guard-request.sh +48 -46
- package/assets/hooks/sql-guard-target.sh +57 -51
- package/assets/hooks/sql-guard-write.sh +84 -79
- package/assets/hooks/sql-guard.sh +52 -47
- package/assets/hooks/stand-login-guard.sh +40 -37
- package/assets/hooks/task-context-load.sh +60 -55
- package/assets/hooks/task-flow-context.sh +87 -69
- package/assets/hooks/task-flow-draft-guard.sh +55 -48
- package/assets/hooks/task-flow-guard.sh +67 -64
- package/assets/hooks/turn-entry-load.sh +39 -32
- package/assets/hooks/turn-exit-guard.sh +256 -204
- package/assets/hooks/turn-exit-patterns.sh +53 -0
- package/assets/hooks/utf8.sh +11 -11
- package/assets/hooks/waiting-turn-guard.sh +94 -94
- package/assets/hooks/window-fill-guard.sh +70 -62
- package/assets/hooks/work-start-guard.sh +52 -49
- package/assets/hooks/write-targets.sh +96 -44
- package/assets/laws/autonomous-work.md +29 -27
- package/assets/laws/code-structure.md +31 -30
- package/assets/laws/delivery.md +148 -137
- package/assets/laws/entity-editing.md +52 -50
- package/assets/laws/entity-models.md +14 -13
- package/assets/laws/frontend-application.md +39 -38
- package/assets/laws/lib-imports.md +27 -27
- package/assets/laws/lists.md +31 -29
- package/assets/laws/navigation.md +37 -37
- package/assets/laws/observability.md +41 -40
- package/assets/laws/project-documentation.md +106 -99
- package/assets/laws/reuse-first.md +31 -29
- package/assets/laws/shared-code.md +27 -27
- package/assets/laws/verifiability.md +131 -124
- package/assets/laws/work-conduct.md +250 -244
- package/assets/patterns/admin-lists-screen.md +72 -69
- package/assets/patterns/admin-nav-item.md +51 -46
- package/assets/patterns/angular-patterns-state.md +32 -31
- package/assets/patterns/api-layer-pair.md +33 -31
- package/assets/patterns/autonomous-work-run.md +50 -49
- package/assets/patterns/browser-verification-measure.md +124 -88
- package/assets/patterns/browser-verification-stand.md +169 -157
- package/assets/patterns/component-structure-new.md +51 -42
- package/assets/patterns/dependencies-upgrade.md +55 -39
- package/assets/patterns/doc-style-human.md +55 -37
- package/assets/patterns/doc-style-sweep.md +82 -79
- package/assets/patterns/doc-style-trace.md +87 -81
- package/assets/patterns/doc-style-write.md +130 -122
- package/assets/patterns/entity-aside.md +77 -63
- package/assets/patterns/entity-models-new.md +37 -37
- package/assets/patterns/entity-store.md +33 -33
- package/assets/patterns/git-workflow-commit.azure.md +93 -86
- package/assets/patterns/git-workflow-commit.github.md +152 -141
- package/assets/patterns/git-workflow-commit.gitlab.md +95 -89
- package/assets/patterns/git-workflow-docker.md +165 -147
- package/assets/patterns/git-workflow-freshness.md +45 -45
- package/assets/patterns/git-workflow-merge.md +98 -93
- package/assets/patterns/git-workflow-migration.md +54 -52
- package/assets/patterns/git-workflow-pr-ready.md +57 -56
- package/assets/patterns/git-workflow-pr.azure.md +126 -121
- package/assets/patterns/git-workflow-pr.github.md +179 -175
- package/assets/patterns/git-workflow-pr.gitlab.md +138 -131
- package/assets/patterns/git-workflow-restart.md +35 -31
- package/assets/patterns/git-workflow-secrets.md +80 -73
- package/assets/patterns/git-workflow-stack.md +131 -106
- package/assets/patterns/lib-layers-move.md +62 -53
- package/assets/patterns/lib-layers-new.md +59 -45
- package/assets/patterns/observability-record.md +72 -67
- package/assets/patterns/platform-access-di.md +31 -29
- package/assets/patterns/reuse-first-extend.md +66 -61
- package/assets/patterns/shared-code-new.md +39 -38
- package/assets/patterns/spec-driven-domain.md +161 -151
- package/assets/patterns/spec-driven-rule.md +179 -168
- package/assets/patterns/spec-driven-sweep.md +41 -39
- package/assets/patterns/status-report-table.github.md +37 -36
- package/assets/patterns/styling-bem-component.md +42 -42
- package/assets/patterns/styling-bem-layout.md +39 -34
- package/assets/patterns/styling-bem-sheet.md +59 -58
- package/assets/patterns/task-flow-archive.md +222 -215
- package/assets/patterns/task-flow-close.md +215 -203
- package/assets/patterns/task-flow-handoff.md +154 -145
- package/assets/patterns/task-flow-resume.md +138 -133
- package/assets/patterns/task-flow-start.md +204 -192
- package/assets/patterns/testing-e2e.md +102 -101
- package/assets/patterns/testing-unit.md +77 -70
- package/assets/patterns/ts-procedure.md +32 -29
- package/assets/patterns/turn-entry-map.md +50 -48
- package/assets/pitfalls/agent-kit.md +152 -141
- package/assets/pitfalls/doc-style.md +96 -91
- package/assets/pitfalls/git-workflow.azure.md +49 -46
- package/assets/pitfalls/git-workflow.github.md +264 -234
- package/assets/pitfalls/git-workflow.gitlab.md +49 -45
- package/assets/pitfalls/spec-driven.md +73 -71
- package/assets/pitfalls/styling-bem.md +46 -40
- package/assets/pitfalls/task-flow.md +262 -246
- package/assets/pitfalls/testing.md +99 -92
- package/assets/pitfalls/turn-conduct.md +96 -81
- package/assets/rules/angular-patterns.md +81 -80
- package/assets/rules/api-layer.md +77 -74
- package/assets/rules/autonomous-work.md +75 -74
- package/assets/rules/browser-verification.md +223 -214
- package/assets/rules/component-structure.md +72 -69
- package/assets/rules/dependencies.md +74 -67
- package/assets/rules/deploy-flow.azure.md +118 -108
- package/assets/rules/deploy-flow.github.md +145 -135
- package/assets/rules/deploy-flow.gitlab.md +120 -110
- package/assets/rules/doc-style.md +198 -173
- package/assets/rules/entity-conventions.needs-admin.md +81 -79
- package/assets/rules/entity-models.md +73 -70
- package/assets/rules/git-workflow.azure.md +224 -228
- package/assets/rules/git-workflow.github.md +250 -239
- package/assets/rules/git-workflow.gitlab.md +218 -217
- package/assets/rules/lib-layers.md +85 -86
- package/assets/rules/lists.md +101 -97
- package/assets/rules/navigation.md +78 -78
- package/assets/rules/observability.needs-app.md +165 -153
- package/assets/rules/platform-access.md +76 -75
- package/assets/rules/reuse-first.md +153 -143
- package/assets/rules/shared-code.md +82 -79
- package/assets/rules/spec-driven.md +272 -260
- package/assets/rules/status-report.md +55 -58
- package/assets/rules/styling-bem.md +81 -77
- package/assets/rules/task-flow.md +282 -270
- package/assets/rules/testing.md +224 -209
- package/assets/rules/turn-conduct.md +255 -258
- package/assets/rules/turn-entry.md +92 -87
- package/assets/rules/typescript-conventions.md +94 -88
- package/assets/samples/specs/_template/spec.md +47 -47
- package/assets/samples/tasks/_template/grill.md +20 -20
- package/assets/samples/tasks/_template/plan.md +32 -30
- package/assets/samples/tasks/_template/progress.md +16 -16
- package/assets/skills/agent-kit-extend.md +129 -113
- package/assets/skills/agent-kit.md +235 -211
- package/assets/skills/write-a-skill.md +76 -71
- package/assets/templates/findings.md +19 -19
- package/assets/templates/gate-map.sh +16 -14
- package/assets/templates/implementation.md +28 -27
- package/assets/templates/pattern.md +17 -17
- package/assets/templates/pitfalls.md +6 -6
- package/assets/templates/postmortem.md +24 -23
- package/assets/templates/project.sh +24 -24
- package/assets/templates/proposal.md +62 -60
- package/assets/templates/rule.md +38 -38
- package/assets/workflows/feature.js +46 -46
- package/assets/workflows/plan.js +54 -54
- package/lib/catalog.d.ts +2 -0
- package/lib/catalog.d.ts.map +1 -1
- package/lib/catalog.js +4 -3
- package/lib/catalog.js.map +1 -1
- package/lib/commands.d.ts.map +1 -1
- package/lib/commands.js +5 -2
- package/lib/commands.js.map +1 -1
- package/lib/companion.js +3 -2
- package/lib/companion.js.map +1 -1
- package/lib/enroll.d.ts +7 -1
- package/lib/enroll.d.ts.map +1 -1
- package/lib/enroll.js +12 -3
- package/lib/enroll.js.map +1 -1
- package/lib/plan.d.ts +11 -0
- package/lib/plan.d.ts.map +1 -1
- package/lib/plan.js +10 -1
- package/lib/plan.js.map +1 -1
- package/lib/ship.d.ts +0 -7
- package/lib/ship.d.ts.map +1 -1
- package/lib/ship.js +10 -2
- package/lib/ship.js.map +1 -1
- package/lib/shipment.d.ts.map +1 -1
- package/lib/shipment.js +6 -2
- package/lib/shipment.js.map +1 -1
- package/lib/sync.d.ts.map +1 -1
- package/lib/sync.js +45 -11
- package/lib/sync.js.map +1 -1
- package/package.json +1 -1
- package/rt-tools-agent-kit-0.26.0.tgz +0 -0
- package/rt-tools-agent-kit-0.24.0.tgz +0 -0
|
@@ -2,284 +2,296 @@
|
|
|
2
2
|
name: task-flow
|
|
3
3
|
kind: rule
|
|
4
4
|
law: work-conduct
|
|
5
|
-
description:
|
|
5
|
+
description: Rule under the work-conduct law — the course of work from the owner's request to the merge. Load at the start of any work, when editing task folders and product agreements, and when returning to an unfinished task. Patterns task-flow-start, -resume, -close, -archive. End of a turn — turn-conduct.
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
#
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
|
24
|
-
|
|
|
25
|
-
|
|
|
26
|
-
|
|
|
27
|
-
|
|
|
28
|
-
|
|
|
29
|
-
|
|
|
30
|
-
|
|
|
31
|
-
|
|
|
32
|
-
|
|
|
33
|
-
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
|
51
|
-
|
|
|
52
|
-
|
|
|
53
|
-
|
|
|
54
|
-
|
|
|
55
|
-
|
|
|
56
|
-
|
|
|
57
|
-
|
|
|
58
|
-
|
|
|
59
|
-
|
|
|
60
|
-
|
|
|
61
|
-
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
8
|
+
# Work conduct — how it works here
|
|
9
|
+
|
|
10
|
+
Rule under the law `docs/constitution/work-conduct.md`. The law says what must be true about the
|
|
11
|
+
course of work; here — what it is called in this tree, where it lives and what is not checked here.
|
|
12
|
+
|
|
13
|
+
**Cold part:** `pitfalls.md` next to it — traps and conduct from incident analyses. Loaded on
|
|
14
|
+
demand, not with the rule: an ordinary decision does not need it — whoever analyses a miss or argues
|
|
15
|
+
with a guard does.
|
|
16
|
+
|
|
17
|
+
**Requires:** `hooks/task-flow-guard.sh`, `hooks/task-flow-draft-guard.sh`,
|
|
18
|
+
`hooks/task-context-load.sh`, `hooks/grill-gate.sh`, `hooks/window-fill-guard.sh`,
|
|
19
|
+
`hooks/turn-exit-guard.sh`, `hooks/work-start-guard.sh`
|
|
20
|
+
|
|
21
|
+
## What it is called here
|
|
22
|
+
|
|
23
|
+
| In the law | Here |
|
|
24
|
+
| --- | --- |
|
|
25
|
+
| the owner's request | what work begins with; grilled by the `/grill-me` command before the first edit |
|
|
26
|
+
| understanding written where the work goes | `docs/tasks/<ветка>/grill.md` — the request verbatim, the owner's answers in their words, decisions with reasons |
|
|
27
|
+
| the plan | `docs/tasks/<ветка>/plan.md` — the task footprint and stages with readiness signs; not edited after it is written |
|
|
28
|
+
| the progress | `docs/tasks/<ветка>/progress.md` — "Where we stand", decisions along the way, session entries; the only place where done work is marked |
|
|
29
|
+
| the product agreement written before the code | `docs/specs/<домен>/proposed/<фича>/` — the feature spec; survives the merge and merges into the domain spec |
|
|
30
|
+
| an epic — work wider than one branch | a card in the work queue with the epic label and a plan next to it: the opportunity, the tasks, their order |
|
|
31
|
+
| the epic plan | a record outside the task folder: the folder dies with the merge, the epic outlives it; the directory — in the rule's companion |
|
|
32
|
+
| the task folder before the task is created | `docs/tasks/_draft-<slug>/` — outside history while there is no number |
|
|
33
|
+
| exploration | an `Explore` or `general-purpose` session before the first question to the owner |
|
|
34
|
+
| the plan review by roles | `.claude/workflows/plan.js` — need, agreement, critique, plan |
|
|
35
|
+
|
|
36
|
+
## Where it lives
|
|
37
|
+
|
|
38
|
+
In this tree — the table in `implementation.md` next to it. Paths live there, not here: the rule
|
|
39
|
+
travels between repositories, the layout does not, and a path named in the rule lies in the first
|
|
40
|
+
tree that keeps its code differently.
|
|
41
|
+
|
|
42
|
+
## Work states
|
|
43
|
+
|
|
44
|
+
The unit of work is a state, not a step. A state has an entry, a mandatory action and an exit, and
|
|
45
|
+
until the action is done the work stays in the same state.
|
|
46
|
+
|
|
47
|
+
The state is declared in the "Where we stand" section of the progress by the machine-readable line
|
|
48
|
+
``- **State:** `этап-идёт` `` and is rewritten with it.
|
|
49
|
+
|
|
50
|
+
| State | Entry | Mandatory action | Pattern |
|
|
51
|
+
| --- | --- | --- | --- |
|
|
52
|
+
| `просьба-не-разобрана` | the owner's message about new work | exploration over the tree, then questions | `task-flow-start` |
|
|
53
|
+
| `разбор-закрыт` | the owner's answers lie on disk | a product agreement, or the reason there is none | `task-flow-start` |
|
|
54
|
+
| `договорённость-записана` | the draft lies, or the reason is named | create the task, the branch and the folder | `task-flow-start` |
|
|
55
|
+
| `задача-взята` | task in the work column, branch by number, folder | write the plan | `task-flow-start` |
|
|
56
|
+
| `замысел-записан` | the plan lies and is not edited after writing | do the first stage | `task-flow-start` |
|
|
57
|
+
| `этап-идёт` | a stage is begun | finish the stage and mark it in the progress | `task-flow-resume` |
|
|
58
|
+
| `этапы-кончились` | all stages are marked | merge the agreement, bring texts up to date, run the suite | `task-flow-close` |
|
|
59
|
+
| `разбор-кончился` | the suite is green, texts are up to date | take the folder apart by the last commit | `task-flow-archive` |
|
|
60
|
+
| `папка-разобрана` | no folder in the branch, a record in the archive | open the PR as a draft | `task-flow-close` |
|
|
61
|
+
| `работа-отдана` | the PR is open as a draft | take the next task | `task-flow-resume` |
|
|
62
|
+
| `влито` | the PR merged by a person | rules review of the work and the work queue audit | `task-flow-archive` |
|
|
63
|
+
|
|
64
|
+
No state has a mandatory action that sounds like "wait": waiting for someone else's step is not a
|
|
65
|
+
work state, so in `работа-отдана` the mandatory action is the next task, not the open PR. A blocked
|
|
66
|
+
task does not count as next: the same waiting under the name of work. The next is taken from the
|
|
67
|
+
work queue, and the queue is asked by a command: "no tasks" is a statement about the tree, backed by
|
|
68
|
+
output, not by the executor's memory. A filled session window is no state either: the session ends
|
|
69
|
+
with a handover, and the work stays where it stood. **An open card says nothing about whether the
|
|
70
|
+
work is taken.** A card is closed by the merge, and in a session that opens no PRs the list of open
|
|
71
|
+
ones does not shrink. A task is untaken when the tree holds no trace of it: open numbers are checked
|
|
72
|
+
against the archive — closed work has a record there with its number. The audit costs one command
|
|
73
|
+
and answers for both sides; the open list answers for neither.
|
|
74
|
+
|
|
75
|
+
What a turn ends with — rule `turn-conduct` under the same law.
|
|
76
|
+
|
|
77
|
+
The list is shown to the owner at the start of work, and where we stand is marked on it.
|
|
78
|
+
|
|
79
|
+
The last two states cannot be declared on disk: the progress leaves with the folder, and the folder
|
|
80
|
+
is taken apart before the PR opens. Their sign is in the branch history — the commit that takes the
|
|
81
|
+
folder apart — and a guard reads it, not a line in a file.
|
|
82
|
+
|
|
83
|
+
## Flow
|
|
84
|
+
|
|
85
|
+
The course of work from the owner's request to closing: where the grill stands, what the guard
|
|
86
|
+
demands and where the task folder goes.
|
|
86
87
|
|
|
87
88
|
```mermaid
|
|
88
89
|
flowchart TD
|
|
89
|
-
A[
|
|
90
|
-
B --> C[
|
|
91
|
-
C --> D{
|
|
92
|
-
D
|
|
93
|
-
D
|
|
94
|
-
E --> Z{
|
|
90
|
+
A[The owner's request] --> B[Exploration over the tree — before the first question]
|
|
91
|
+
B --> C[Grill: six mandatory questions, the answers land on disk]
|
|
92
|
+
C --> D{The edit touches application code}
|
|
93
|
+
D -->|Yes| E[A product agreement is written — before the code]
|
|
94
|
+
D -->|No| F[The plan states the reason there is none]
|
|
95
|
+
E --> Z{The grill produced several tasks}
|
|
95
96
|
F --> Z
|
|
96
|
-
Z
|
|
97
|
-
Z
|
|
97
|
+
Z -->|Yes| Y[The series is declared an epic: a card and a plan, before the first task]
|
|
98
|
+
Z -->|No| G[Task, branch, task folder by branch name]
|
|
98
99
|
Y --> G
|
|
99
|
-
G --> H[
|
|
100
|
-
H --> I{
|
|
101
|
-
I
|
|
100
|
+
G --> H[A plan with stages; not edited after it is written]
|
|
101
|
+
H --> I{Stage done}
|
|
102
|
+
I -->|Yes| J[A mark in the progress — the only place where done work is marked]
|
|
102
103
|
J --> I
|
|
103
|
-
I
|
|
104
|
-
T --> N[
|
|
105
|
-
N --> S[
|
|
106
|
-
S --> K[PR
|
|
107
|
-
K --> W[
|
|
108
|
-
W --> L[
|
|
109
|
-
L --> M{
|
|
110
|
-
M
|
|
104
|
+
I -->|Stages are over| T[The agreement merges into the domain spec, texts are brought up to what was done, then the suite runs]
|
|
105
|
+
T --> N[The task folder is taken apart by the last commit: the grill — to the archive, findings — to the epic plan, the plan — away]
|
|
106
|
+
N --> S[Work queue audit]
|
|
107
|
+
S --> K[The PR opens as a draft; the executor names the number, what it waits for and what comes next]
|
|
108
|
+
K --> W[The rules review of the closed work goes to the background, findings land on disk]
|
|
109
|
+
W --> L[While the PR waits for review, the next task is taken]
|
|
110
|
+
L --> M{Review and run are over}
|
|
111
|
+
M -->|Red run or remarks| V[Fixed in the same branch: the plan is gone from disk, the guard takes the sign of work from the branch history]
|
|
111
112
|
V --> M
|
|
112
|
-
M
|
|
113
|
+
M -->|Green and no remarks| O[The draft is lifted, a person presses merge]
|
|
113
114
|
```
|
|
114
115
|
|
|
115
|
-
##
|
|
116
|
-
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
-
|
|
120
|
-
|
|
121
|
-
`разбор-кончился`.
|
|
122
|
-
|
|
123
|
-
-
|
|
124
|
-
|
|
125
|
-
-
|
|
126
|
-
|
|
127
|
-
-
|
|
128
|
-
|
|
129
|
-
-
|
|
130
|
-
|
|
131
|
-
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
- **PR
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
116
|
+
## How the law applies here
|
|
117
|
+
- **Editing application code is refused until the work has reached a state in which code is
|
|
118
|
+
edited.** The guard demands three things: a task folder by branch name, a plan in it and a
|
|
119
|
+
declared state. The product agreement has a guard of its own on the same events.
|
|
120
|
+
- **The guard judges the declared transition, not the presence of files.** An empty plan lies the
|
|
121
|
+
same as a written one, so the refusal is lifted by the declared state — `этап-идёт`,
|
|
122
|
+
`этапы-кончились`, `разбор-кончился`. The fourth road is the branch history: a folder taken apart
|
|
123
|
+
by its commit means handed-in work.
|
|
124
|
+
- **A state line moved forward is the same declaration of intent, only machine-readable.** A state
|
|
125
|
+
is declared by the turn in which its mandatory action is begun by deed.
|
|
126
|
+
- **A refusal by state names the mandatory action of the declared state.** Hearing only "wrong
|
|
127
|
+
state", the executor rewrites the state line instead of the step.
|
|
128
|
+
- **Only a word from the list counts as a state name.** A word of one's own says nothing about the
|
|
129
|
+
entry, the exit or the action.
|
|
130
|
+
- **Two requirements — two guards, and one can be lifted without losing the other.** They judge
|
|
131
|
+
apart: a line about unchanged behaviour lifts the agreement, not the requirement to reach the
|
|
132
|
+
code-editing state.
|
|
133
|
+
- **A merged agreement does not lock the branch.** After the merge the "proposed" directory is gone
|
|
134
|
+
from disk, while the plan refers to it to the end: the guard tells merged from never-created by
|
|
135
|
+
the branch history.
|
|
136
|
+
- **The agreement is required by the edit paths, not by an appraisal of the task.** `apps/**` and
|
|
137
|
+
`libs/**` are the sign; rules, texts, tooling and dependencies fall outside it. The bypass is the
|
|
138
|
+
line `**Behaviour:** unchanged — <the reason of the owner>` in the plan; an empty reason is not
|
|
139
|
+
accepted.
|
|
140
|
+
- **What needs the owner's word is taken from a list, not appraised on the spot.** The appraisal
|
|
141
|
+
"this is safe" is assigned by whoever finds it convenient.
|
|
142
|
+
- **A reply to the owner's order begins with the result, not with intent or its justification.** A
|
|
143
|
+
justification under someone else's accepted decision reads as its appraisal. One exception:
|
|
144
|
+
execution stopped by an obstacle — then the obstacle is named.
|
|
145
|
+
- **A session does not start work by itself.** A start needs the owner's word in the same session:
|
|
146
|
+
the handover, the state from the startup hook and an assigned epic say what to do, not whether to
|
|
147
|
+
work. The form of the message is judged: an empty message, one word or one path order no work.
|
|
148
|
+
- **A refusal by an external limiter removes the way, not the task.** It is not the tree's guard and
|
|
149
|
+
names no exit: read as the end of the road, it stops the work whole. The way is taken from the
|
|
150
|
+
guard that already described this fix — a bypass with the reason in the commit body, a mark in the
|
|
151
|
+
observations, a word to the owner — and the task stays the same.
|
|
152
|
+
- **An instruction to work by the progress covers all its steps, including those that change
|
|
153
|
+
history.** Questions are asked about what the progress lacks.
|
|
154
|
+
- **A question written by a past session does not become a question to the owner.** It is addressed
|
|
155
|
+
to the handover's author, and some such questions are closed by a work step.
|
|
156
|
+
- **The owner's instruction holds until they cancel it, and a new fact against it is a line in the
|
|
157
|
+
reply about the cost, not a new question.** Re-asked is what the instruction does not cover. A
|
|
158
|
+
menu where two options of three offer to cancel the owner's decision is that very cancellation.
|
|
159
|
+
- **An answer in the owner's message counts the same as an answer in a document.** A question
|
|
160
|
+
already answered in the conversation is not asked a second time.
|
|
161
|
+
- **The owner's word about the design is a task setting, not a decision.** What they named is
|
|
162
|
+
usually already in the tree under that word — a name on a screen, a spec section, a model field —
|
|
163
|
+
and is checked against them before the edit. Diverged — the owner is asked.
|
|
164
|
+
- **A task folder is created for any work, no exceptions.** An exception with even one lawful form
|
|
165
|
+
is executed as permission. It is created before the first edit.
|
|
166
|
+
- **The task folder goes into the branch by a commit, not lives in one working tree.** Uncommitted,
|
|
167
|
+
it passes edits without refusal, and the refusal comes at the end, when the plan is already gone.
|
|
168
|
+
Outside history one draft without a number is lawful.
|
|
169
|
+
- **The task folder is taken apart by the last commit before the PR opens, not after approval.** A
|
|
170
|
+
person merges as soon as they see green, and no room is left for a closing commit.
|
|
171
|
+
- **After opening the PR, the executor tells the owner the number, what it waits for and what comes
|
|
172
|
+
next.** It waits for the run; next the draft is lifted: a green run says nothing is broken and
|
|
173
|
+
nothing about the locked merge button.
|
|
174
|
+
- **A request to merge is a turn of its own, and it never comes before a green run.** One order:
|
|
175
|
+
folder taken apart and pushed → PR open as a draft → run green → draft lifted → the executor asks
|
|
176
|
+
to merge, naming the number.
|
|
177
|
+
- **The PR opens as a draft, not at the end of the work.** Before it opens the owner sees no edits,
|
|
178
|
+
and an open PR reads as an invitation to merge. The draft is lifted by the turn in which the
|
|
179
|
+
executor says the solution is ready.
|
|
180
|
+
- **The plan guard is the lower bound of the requirement, not its limit.** It demands a folder only
|
|
181
|
+
for an edit of application code; the article above — for any work.
|
|
182
|
+
- **An instruction to work by a rule is an instruction to do its steps, including those that change
|
|
183
|
+
history.** Marking a stage, a commit, a push and opening a PR are prescribed by the rule.
|
|
184
|
+
- **A taken task does not end a turn.** Creating the task, the branch, the column and the folder is
|
|
185
|
+
preparation: the work moves to the written-plan state, where the action is different. The
|
|
186
|
+
turn-exit guard names the first stage in its refusal.
|
|
187
|
+
- **Waiting for one part of a stage is never a stop of the stage.** The parts independent of what is
|
|
188
|
+
awaited are done in the same turn; the owner is told what is done and what is left for their step.
|
|
189
|
+
A refused command reads the same: everything else is done first.
|
|
190
|
+
- **A finding made mid-stage is checked against the plan's exit conditions before the first edit.**
|
|
191
|
+
Nearness of subject proves no belonging: work on the rules layer and work on the commands that
|
|
192
|
+
call it roll back apart. A finding named by no exit condition goes to the section on what the work
|
|
193
|
+
does not do, and is filed as a task.
|
|
194
|
+
- **Done work is marked only in the progress.** "Where we stand" is rewritten by every session, not
|
|
195
|
+
appended: it is the first thing the next session reads.
|
|
196
|
+
- **A word for a new notion is looked up in the tree's glossary.** The package carries the common
|
|
197
|
+
part, the tree appends the subject part by an override; the glossary goes into the context whole
|
|
198
|
+
at session start, so "did not read it" is never a ground.
|
|
199
|
+
- **The task folder is created as a draft and gets its number by a command.** Until the grill ends,
|
|
200
|
+
how many tasks come out is unknown, so the number never comes first. The command renames the
|
|
201
|
+
draft, fills the plan header and strips the layout header from the copies.
|
|
202
|
+
- **An abandoned grill is visible.** A draft older than a week is listed by the work queue audit.
|
|
203
|
+
- **Work ordered in words becomes a task in the queue in the same turn.** Even if it will not be
|
|
204
|
+
done now. A draft folder is not the queue: it has no number, and one session knows of it.
|
|
205
|
+
Postponed work names a date; postponed silently, it reads as done.
|
|
206
|
+
- **The next task is taken from the epic plan, and the work queue list is asked only where there is
|
|
207
|
+
no epic.** By a list of numbers the first task of someone else's epic cannot be told from one's
|
|
208
|
+
own. A finished epic is named to the owner by the same turn that takes work outside it.
|
|
209
|
+
- **An epic is not closed by a sign confirmed by reading alone.** What is checkable by eye is called
|
|
210
|
+
checked only together with a command and its output.
|
|
211
|
+
- **The tasks of an epic are created all at once, by the same turn as the epic itself.** Creating
|
|
212
|
+
them one at a time hides the volume. The numbers return to the order section by the same edit.
|
|
213
|
+
|
|
214
|
+
- **The epic plan names how the branches of its tasks stand, on a par with their order.** Two
|
|
215
|
+
arrangements: each branch from main, or a stack — each from the previous. The task order says
|
|
216
|
+
nothing about this. The stack costs more, its price is listed in the cold part; the arrangement
|
|
217
|
+
written in the plan is the epic's decision, not that of whoever creates the branch.
|
|
218
|
+
- **The epic plan lies where it is found without the network and after the merge.** The card does
|
|
219
|
+
not hold the task order, and the task folder would hold it only until the first merge; the
|
|
220
|
+
directory — in the rule's companion. What the owner names along the way is appended there by the
|
|
221
|
+
turn that accepted it.
|
|
222
|
+
- **Building by a sample begins with reading the sample itself, not a retelling of it.** A retelling
|
|
223
|
+
in the grill and in the epic plan is not the sample. The repeated part is opened whole, by walking
|
|
224
|
+
the directories.
|
|
225
|
+
- **What acts on the tree, not on the edit, lies outside the index.** The path to the sample and the
|
|
226
|
+
permission to work outside the epic do not belong to the branch and live next to the handover. A
|
|
227
|
+
number in the permitted list repeats the owner's word, not replaces it.
|
|
228
|
+
- **Closed work is reviewed by the rules, and this is a closing step, not a separate request.** What
|
|
229
|
+
was loaded and what was missing is seen only by the session that led the work. The review ends
|
|
230
|
+
with an edit of the rules layer or a proposal outward.
|
|
231
|
+
- **The review of closed work goes to the background, and the executor takes the next task.** The
|
|
232
|
+
role works in a turn of its own; the digest is gathered before the launch, the findings are
|
|
233
|
+
accepted in one turn.
|
|
234
|
+
- **The review's findings wait for the owner, and only the digest of observations leaves for the
|
|
235
|
+
package.** A proposal is a draft of an edit to someone else's tree; sent unreviewed, it becomes
|
|
236
|
+
the work of someone who did not order it. The digest is always sent: it says what was used and is
|
|
237
|
+
never an opinion.
|
|
238
|
+
- **The cheap closing step goes before the costly one, and the run — after the merge.** Merging the
|
|
239
|
+
agreement and bringing the texts up to date cost minutes, the run costs the session window; a run
|
|
240
|
+
before the merge checks what will not reach main.
|
|
241
|
+
- **The agreement merges into the domain spec by one of the last commits of the branch, before the
|
|
242
|
+
PR opens.** By then the code is written, the bindings are known, and the `proposed/` directory
|
|
243
|
+
never appears in main. What is ready to merge is listed by `npm run check:specs`.
|
|
244
|
+
- **The folder of a closed task is taken apart, not moved whole.** What explains a decision goes to
|
|
245
|
+
`docs/archive/`; the rest is deleted. One not taken apart is caught by the work queue audit.
|
|
246
|
+
- **Opening the PR and lifting the draft are refused while the branch carries its task folder.** A
|
|
247
|
+
person presses merge on the host, where there are no guards: a lifted draft reads to them as an
|
|
248
|
+
invitation. The branch content is judged, not the working tree.
|
|
249
|
+
- **A branch that removed the folder must add a record to the archive.** Removing is cheaper than
|
|
250
|
+
taking apart, and the grill leaves first — the only record of the owner's words.
|
|
251
|
+
- **The bypass is the line `Task-folder-skip: <reason>` in the PR or in the command itself.** An
|
|
252
|
+
empty reason is no bypass, and the bypass lifts the refusal but does not silence the work queue
|
|
253
|
+
audit line.
|
|
254
|
+
|
|
255
|
+
## What of the law is not here
|
|
256
|
+
|
|
257
|
+
Nothing checks the completeness of the written understanding: the machine sees that a record exists,
|
|
258
|
+
not that it closes every gap. The same for a question worth asking and not asked — it leaves no
|
|
259
|
+
trace. The owner judges both.
|
|
260
|
+
|
|
261
|
+
The guard judges by the edit paths, not by whether the work changes behaviour. A refactoring gets no
|
|
262
|
+
sign of its own: the appraisal "behaviour does not change" would be assigned by whoever it hinders.
|
|
263
|
+
|
|
264
|
+
Nothing of the grill itself is checked. A conversation with the owner is not a tool call: the guard
|
|
265
|
+
sees a file edit and knows nothing of the exploration, the six mandatory questions or the answers.
|
|
266
|
+
An empty table passes the same as a filled one.
|
|
267
|
+
|
|
268
|
+
The conversation guard does not understand text: its second sign judges shared words between the
|
|
269
|
+
question's topic and the owner's last message, not meaning. The refusal names the lawful move: name
|
|
270
|
+
what the owner's earlier answer lacks.
|
|
271
|
+
|
|
272
|
+
Nothing watches the plan's immutability: an edit along the way is told from the original record only
|
|
273
|
+
by history.
|
|
274
|
+
|
|
275
|
+
Nothing checks that the texts match what was done: the machine cannot see what went stale in a rule
|
|
276
|
+
or a spec. This is held by the closing step and the task footprint in the plan. A rule and a spec
|
|
277
|
+
are edited in the branch, a law is not: its article goes to the owner as text, and the work goes on
|
|
278
|
+
without it.
|
|
279
|
+
|
|
280
|
+
What exactly went to the archive is not checked: the guard sees that the folder left and the branch
|
|
281
|
+
added something to the archive; whether it is the right thing the owner judges at review.
|
|
282
|
+
|
|
283
|
+
The task folder guard judges the executor's call, not the host's button: a person merging from their
|
|
284
|
+
side passes it in silence. On that half of the cases the requirement is held by the remaining step:
|
|
285
|
+
a section in the PR body, said aloud.
|
|
286
|
+
|
|
287
|
+
A tree may reverse the hand-in order by an override, and then some package steps stop being
|
|
288
|
+
executed. Which ones — nothing counts: a step whose mechanics broke by the same decision does not
|
|
289
|
+
enter the cancelled list and still reads as in force. This is held by reading both texts in a row on
|
|
290
|
+
every edit of the hand-in order.
|
|
291
|
+
|
|
292
|
+
## Patterns
|
|
293
|
+
|
|
294
|
+
- `task-flow-start` — exploration, grill, agreement, plan, task and branch.
|
|
295
|
+
- `task-flow-resume` — returning to unfinished work in a new session.
|
|
296
|
+
- `task-flow-close` — lifting the draft, merging the agreement, bringing the texts up to date.
|
|
297
|
+
- `task-flow-archive` — taking the task folder apart, the move to the archive, review by the rules.
|