@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
package/assets/laws/delivery.md
CHANGED
|
@@ -1,139 +1,150 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Law on delivery
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
How a change reaches the running application. The law covers both the history of changes and what
|
|
4
|
+
the user sees at that moment: a failed rollout differs from a successful one only in that the
|
|
5
|
+
application stops responding, and the reason is found from the history.
|
|
6
6
|
|
|
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
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
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
|
-
|
|
7
|
+
## Articles
|
|
8
|
+
- **A change starts with a task visible in the work queue.** A created task is not enough: one that
|
|
9
|
+
did not reach the queue is seen by no one, and no work was planned behind it.
|
|
10
|
+
- **A change reaches the main branch only through a separate branch.** A direct write to main takes
|
|
11
|
+
away both the discussion and the chance to roll the change back in one move.
|
|
12
|
+
- **The work queue holds tasks, not PRs about them.** A task and its PR share one number and one
|
|
13
|
+
fate, so a second card about the same work adds nothing — it doubles the queue and lies about its
|
|
14
|
+
length. The queue is read to see what is done and what remains; a PR answers a different question
|
|
15
|
+
and opens from the task card, where the link to it already stands. A PR card lives a life of its
|
|
16
|
+
own: it hangs in the queue forever after the merge, because there is no column for it.
|
|
17
|
+
- **A check does not run what the change cannot break.** A set that is the same for every change
|
|
18
|
+
looks strict and works the other way round: a run that takes ten times longer than needed teaches
|
|
19
|
+
people to bypass it, not to wait for it. The set is derived from the content of the change — from
|
|
20
|
+
what it touched, not from what it is named; a change that touched no line of code builds no images
|
|
21
|
+
and takes no snapshots. What is skipped is then called skipped: a step dropped silently reads as
|
|
22
|
+
passed.
|
|
23
|
+
- **A task has one branch, and a branch has one task.** A rollback removes everything that came in
|
|
24
|
+
on that branch at once. Two tasks in it roll back only together, and a task that came in on two
|
|
25
|
+
branches stays half done after one is rolled back — and the work queue does not show it. Work that
|
|
26
|
+
does not fit one branch is split into tasks before the branch is created. The sign of a split is a
|
|
27
|
+
separate rollback, not volume: there is no number of files, lines or commits past which work
|
|
28
|
+
becomes two tasks. A change of one kind stays one task no matter how many files it touches; the
|
|
29
|
+
size of a session says which task to create among those that split lawfully, and does not split
|
|
30
|
+
what cannot be split.
|
|
31
|
+
- **Work that goes one piece after another branches one from another.** The branch of the next is
|
|
32
|
+
taken from the previous, not from main: then the change of the previous lies in the common
|
|
33
|
+
ancestor, and two different edits of one file no longer need reconciling. Branches created from
|
|
34
|
+
main one after another know nothing of each other, and the first merge makes the rest diverge —
|
|
35
|
+
the more surely, the closer the work is by subject. It is not the changes that diverge but the
|
|
36
|
+
lines both wrote to. The cost does not vanish but moves: the one who branches pays it once,
|
|
37
|
+
instead of the one who merges paying it as many times as there are open PRs. The first work of a
|
|
38
|
+
series branches from main, and so does any work not connected to the previous one.
|
|
39
|
+
- **A series of branches is handed over bottom up, and the order is named to the owner.** The PR of
|
|
40
|
+
each stands on the previous one, not on main, so one merged out of order drags along everything
|
|
41
|
+
beneath it. The order is known to the one who branched and invisible to the one who merges:
|
|
42
|
+
unsaid, it reads as absent.
|
|
43
|
+
- **A branch that stands under another does not rewrite history.** A force push of the lower one
|
|
44
|
+
makes the tip of the upper reachable from its base, and the hosting closes the upper PR as merged
|
|
45
|
+
— while the main branch holds none of its changes. The divergence is fixed by merging, not by
|
|
46
|
+
moving history.
|
|
47
|
+
- **A change to the delivery itself is checked by running it, not by reasoning.** There is nothing
|
|
48
|
+
else to check it with: it executes only where it rolls out, and in an environment the workplace
|
|
49
|
+
does not have — with someone else's permissions, someone else's secret store and someone else's
|
|
50
|
+
network. "I will check after the merge" is never the executor's decision: behind those words
|
|
51
|
+
stands a rollout that will not happen if the change turns out wrong. Only the owner may postpone
|
|
52
|
+
the check, and says so in words.
|
|
53
|
+
- **Two tasks fixed by one change are one task.** The second is erased together with its number, and
|
|
54
|
+
whatever the first lacked is added to it before that. Two lines about one piece of work are worse
|
|
55
|
+
than a gap in the numbering: afterwards they do not tell what is done and what is not. They can be
|
|
56
|
+
merged while the change has not entered the main branch; after that, both stay as they are.
|
|
57
|
+
- **A task, its branch and the PR about what was done carry the same number in their names.**
|
|
58
|
+
Otherwise one piece of work has to be recognised by the text of its name, and in a list of fifty
|
|
59
|
+
lines that is done from memory and with errors.
|
|
60
|
+
- **The number is written the same way everywhere: task key, hyphen, number.** The title of a task
|
|
61
|
+
and of a PR starts with this pair in square brackets; the branch name starts with the same pair.
|
|
62
|
+
One form, not three similar ones, because the number is read not only by eye: a guard takes it
|
|
63
|
+
from the branch name, the queue audit takes it from the title. Forms derived separately drift
|
|
64
|
+
apart silently and do not fail — they stop recognising the number: the check that was to find work
|
|
65
|
+
without a task lets everything through.
|
|
66
|
+
- **The tree names its task key itself, but must name it.** In the form of the name this is the only
|
|
67
|
+
thing each tree has of its own — and the only thing that is configured. An unnamed key gives
|
|
68
|
+
neither leniency nor a default: work with the queue fails and says where the key is set. An empty
|
|
69
|
+
key is worse than a missing check — what remains of the name is a stub that nothing answers to,
|
|
70
|
+
and not a single task looks correctly named.
|
|
71
|
+
- **What is created in the work queue is visible to the side it was created for.** An account whose
|
|
72
|
+
objects the hosting shows not to everyone leaves behind work that does not exist for the rest.
|
|
73
|
+
From outside this is indistinguishable from done: the task is created, the PR is open, and the
|
|
74
|
+
owner sees an empty queue. Visibility is checked with someone else's eyes — by reading the queue
|
|
75
|
+
as those it is addressed to — not by a successful reply of the create command.
|
|
76
|
+
- **A task has an executor from the moment it is created.** A task without an executor looks like
|
|
77
|
+
nobody's: the work queue does not show who took it, and a change created along the way is lost
|
|
78
|
+
among other people's.
|
|
79
|
+
- **The state of a task in the work queue matches what is happening to it.** One taken into work is
|
|
80
|
+
shown as taken, one waiting for review as waiting. Otherwise untouched, in progress and done look
|
|
81
|
+
the same: the work is taken a second time, and the PR stands unreviewed. The state is moved at the
|
|
82
|
+
moment the work goes to the next step: the queue is read between those moments, not after them.
|
|
83
|
+
- **A change entering the main branch means a rollout.** Everything the change depends on outside
|
|
84
|
+
the code — environment variables, secrets, name records — is put in place before that moment, not
|
|
85
|
+
after.
|
|
86
|
+
- **The sign of the execution mode is declared in the deployment artifact itself, not only in its
|
|
87
|
+
launch composition.** The artifact is also brought up outside that composition — by hand, during
|
|
88
|
+
an analysis, on someone else's machine — and without the declaration it considers itself a debug
|
|
89
|
+
build at that moment, saying nothing about it.
|
|
90
|
+
- **A deployment artifact carries everything that configures what it launches.** The build checks
|
|
91
|
+
that the artifact was built, not that its own launch steps can run. A missing configuration file
|
|
92
|
+
is seen by neither the linter, nor the build, nor the image build step in the pipeline: it fails
|
|
93
|
+
on the first start, that is, already where it was rolled out. A file lying next to it in the
|
|
94
|
+
repository does not get inside the artifact by itself.
|
|
95
|
+
- **The image rolled out is the image of the commit being rolled out.** The default "latest" lags
|
|
96
|
+
behind the main branch, and the application silently returns to the previous version while
|
|
97
|
+
continuing to respond.
|
|
98
|
+
- **The same commit always installs the same dependencies.** If a version is given as a range, an
|
|
99
|
+
install today and an install a week later give different code: the build breaks by itself, and
|
|
100
|
+
there is nothing to roll back. A dependency upgrade is an ordinary change: it has an author, a
|
|
101
|
+
description and a rollback.
|
|
102
|
+
- **The order of storage changes is checked from an empty state.** On a storage that already works,
|
|
103
|
+
a wrong order is invisible: it shows only on a deployment from scratch.
|
|
104
|
+
- **The check before the push looks at the content of the repository, not at the state of the
|
|
105
|
+
machine where it runs.** The machine lawfully holds unfinished work, personal settings and files
|
|
106
|
+
outside the history. A check that reads them rejects the change because of what is not in the
|
|
107
|
+
repository, and stays silent about what is. The check before the push and the rollout pipeline
|
|
108
|
+
judge by the same thing — otherwise "passed" means different things in those two places.
|
|
109
|
+
- **A document travels with the change it describes.** Neither the build nor the checks read texts,
|
|
110
|
+
so the drift accumulates silently and later looks like a current reference.
|
|
111
|
+
- **Work that changes code ends with an open PR.** The PR is the only place where a person sees the
|
|
112
|
+
change whole, answers it and merges it; a commit and a pushed branch do not replace it. Until the
|
|
113
|
+
PR is open, the work does not count as done: there is no review of it, and the person does not
|
|
114
|
+
know about it. The PR is opened in the same turn in which the executor says the work is handed
|
|
115
|
+
over — not in the next session and not on a reminder.
|
|
116
|
+
- **A PR not ready to merge is marked as a draft.** An open PR reads as an invitation to merge, and
|
|
117
|
+
a person presses merge without asking whether the work is finished. The draft separates two states
|
|
118
|
+
that otherwise look the same: the change is put up for viewing — and the change is ready to go to
|
|
119
|
+
the main branch. Everything that waits for a run, for rework or for an answer to a question is
|
|
120
|
+
marked with it; the question is asked in the PR itself, not kept in the executor's head.
|
|
121
|
+
- **Lifting the draft is a separate turn, and with it the executor answers for readiness.** The
|
|
122
|
+
draft is lifted when the checks have passed, no rework remains and the work matches what the task
|
|
123
|
+
was created for. While it stands, the executor's silence means "not ready yet", and the person has
|
|
124
|
+
to ask nothing; after it is lifted, silence means "can be merged", and the price of a mistake here
|
|
125
|
+
is a change in the main branch.
|
|
126
|
+
- **A PR about what was done stays true until the merge itself.** It describes the tree on the day
|
|
127
|
+
it was written, and waits for review for days. In that time the main branch is merged into the
|
|
128
|
+
branch, and the PR's statement about neighbouring files becomes false silently — no check reads PR
|
|
129
|
+
bodies. Everything merged into the branch after the PR is published is a reason to reread it.
|
|
130
|
+
- **A PR into the main branch is merged by a person.** The merge is the last moment when review is
|
|
131
|
+
still possible: after it the change stands in the main branch, the work has moved to the next
|
|
132
|
+
task, and there is nobody left to return to it. The executor of the work merges their own PR only
|
|
133
|
+
on the person's direct word and only about the named PR; silence is never permission, and a word
|
|
134
|
+
said about one PR does not carry over to the next. Otherwise the review is passed by the one being
|
|
135
|
+
reviewed, and the PR queue looks reviewed without being so.
|
|
136
|
+
- **A requirement that stands before an irreversible step stands where that step is taken.** A guard
|
|
137
|
+
on the executor's machine judges their commands and stays silent about the same action done with a
|
|
138
|
+
button at the hosting. The bypass comes out not deliberate but unnoticed: the one who pressed does
|
|
139
|
+
not know anything was missing. The requirement is either moved to where the button is pressed, or
|
|
140
|
+
announced to the one who presses it, before the press. Otherwise it holds not by itself but by the
|
|
141
|
+
fact that the irreversible step is taken by the same person every time.
|
|
142
|
+
- **A merge into the main branch does not yet mean the change has arrived.** A failed rollout
|
|
143
|
+
touches neither the task nor the work queue, so a divergence between the main branch and what runs
|
|
144
|
+
must be visible where the queue is read. Otherwise the next pieces of work merge on top of a
|
|
145
|
+
breakage they did not bring, and each looks as if it arrived.
|
|
146
|
+
- **A breakage that has happened is analysed in a record that outlives the task.** The fix leaves on
|
|
147
|
+
a branch, the task is closed — and the reason the application stopped remains the knowledge of one
|
|
148
|
+
executor. The record names what broke, how it became visible and why the fix fixes the cause and
|
|
149
|
+
not the symptom; it lives in the archive, among the records of what has happened, not where things
|
|
150
|
+
die with the task.
|
|
@@ -1,54 +1,56 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Law on entity editing
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
How the application behaves when the user creates or changes a record. It behaves the same
|
|
4
|
+
everywhere records are edited: this is shared behaviour, not a feature of one part of it.
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
Getting into a record from a list and the amount of data requested are the subject of other laws.
|
|
7
7
|
|
|
8
|
-
##
|
|
8
|
+
## Articles
|
|
9
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
|
-
|
|
10
|
+
- **The form closes only after the record is saved.** Closing means "saved", so it must not close
|
|
11
|
+
before the server replies.
|
|
12
|
+
- **While saving is in progress, the form cannot be submitted a second time, and the user sees that
|
|
13
|
+
the request has not finished yet.** Otherwise a repeated press sends the same data once more.
|
|
14
|
+
- **If saving failed, what was entered stays in place.** The error is shown next to the fields, the
|
|
15
|
+
form is open, and the user corrects the data instead of typing it again.
|
|
16
|
+
- **A new attempt removes the message about the previous error.** Otherwise a message about a
|
|
17
|
+
failure that no longer exists hangs next to a working form.
|
|
18
|
+
- **After creation the form always closes; after a change, the screen decides.** The new record is
|
|
19
|
+
not on the screen yet, and there is nothing to keep the form open over; on a change the screen may
|
|
20
|
+
keep it open and reread the record.
|
|
21
|
+
- **Success is announced by a message, not by the form disappearing.** Closing alone does not tell
|
|
22
|
+
whether it was saved — all the more so since the list behind the form does not refresh at once.
|
|
23
|
+
- **A form in which nothing was changed cannot be submitted.** Otherwise the user sends a request
|
|
24
|
+
without edits and gets a confirmation of what they did not do.
|
|
25
|
+
- **If the user leaves with unsaved edits, the application asks what to do with them.** There are
|
|
26
|
+
three answers: leave without saving, save and leave, stay. This is asked whatever way the user
|
|
27
|
+
leaves.
|
|
28
|
+
- **The label of an action that leads away from the form makes clear what happens to what was
|
|
29
|
+
entered.** If a form with edits and a view-only form show the same word, the user does not know
|
|
30
|
+
whether they will lose what they entered.
|
|
31
|
+
- **If the record behind a link is already deleted, the user sees an explanation, not an empty
|
|
32
|
+
screen.**
|
|
33
|
+
- **The form takes which record to show from the address.** Otherwise it cannot be opened by a link
|
|
34
|
+
or restored after a reload.
|
|
35
|
+
- **When a long form is scrolled, its title and its actions stay in view.**
|
|
36
|
+
- **The title of the form makes clear what is about to happen, not only which record the user is
|
|
37
|
+
working with.** The name of a record alone does not tell whether it is being created or changed.
|
|
38
|
+
- **Creation and change are named differently.**
|
|
39
|
+
- **What was entered can be saved with one action.** It stands apart from the one that leads away
|
|
40
|
+
from the form, so the two are not confused.
|
|
41
|
+
- **The form can be left in several ways:** with the mouse, from the keyboard and by a press outside
|
|
42
|
+
the form.
|
|
43
|
+
- **A closed form does not intercept presses.** It is not visible, and the page under it would stop
|
|
44
|
+
responding without any explanation.
|
|
45
|
+
- **All fields of the form have the same distance from the edge and the same width.** The content
|
|
46
|
+
scrolls as a whole, so the focus ring of the outermost field is not clipped.
|
|
47
|
+
- **While the record is loading, the place of the fields shows that loading is in progress.**
|
|
48
|
+
- **A record that cannot be changed is shown as text, not as input fields.** The user first tries to
|
|
49
|
+
fill in a field that does not accept input.
|
|
50
|
+
- **A related record can be opened straight from the form.** The transition is the same leaving of
|
|
51
|
+
the form as closing, so the question about unsaved edits is asked the same way; for the one who
|
|
52
|
+
chose to save and leave, the related record opens after a successful save.
|
|
53
|
+
- **An explanation stands next to what raised the question.**
|
|
54
|
+
- **Whether the form can be submitted and whether to ask on leaving are decided by one sign.** Two
|
|
55
|
+
different answers to the question "has anything changed" drift apart sooner or later, and the form
|
|
56
|
+
either sends an empty edit or silently loses what was entered.
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Law on entity models
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
How much data the application requests and returns on every screen: a list row, an opened
|
|
4
|
+
record, a dropdown item. The same entity looks different on each of them, and that difference is
|
|
5
|
+
no decoration — it decides how long the user waits for a list.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
How a list shows records and how an edit form behaves are the subject of other laws.
|
|
8
8
|
|
|
9
|
-
##
|
|
9
|
+
## Articles
|
|
10
10
|
|
|
11
|
-
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
-
|
|
17
|
-
|
|
11
|
+
- **An entity has two sides: what came from the contract, and what the screen uses.** The first
|
|
12
|
+
repeats the contract word for word; the second is normalised and does not depend on a contract
|
|
13
|
+
change.
|
|
14
|
+
- **The contract side is not written by hand.** It is declared as an alias of the generated type:
|
|
15
|
+
rewritten by hand, it drifts from the contract silently.
|
|
16
|
+
- **Between the sides stands a mapper, and screens read only the second.**
|
|
17
|
+
- **An empty value is expressed by an empty string or zero, not by a missing field.** There are
|
|
18
|
+
no optional scalars in the contract, and "not set" means something different for every field.
|