@rt-tools/agent-kit 0.23.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/README.md +8 -2
- 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 +150 -128
- package/assets/checks/check-archive-age.mjs +23 -19
- package/assets/checks/check-board.github.mjs +179 -157
- package/assets/checks/check-descriptions.mjs +30 -29
- package/assets/checks/check-doc-paths.mjs +104 -82
- package/assets/checks/check-dupes.mjs +84 -80
- package/assets/checks/check-file-size.mjs +79 -70
- 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 +125 -33
- 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 +115 -91
- package/assets/defaults/project.sh +228 -178
- package/assets/defaults/shell.sh +85 -65
- 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 +46 -14
- 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 +84 -39
- package/assets/hooks/docs-guard.sh +105 -86
- package/assets/hooks/exam-guard.sh +146 -84
- package/assets/hooks/git-guard-delivery-conflict.sh +38 -36
- package/assets/hooks/git-guard-delivery-draft.sh +85 -0
- 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 +207 -253
- package/assets/hooks/git-guard-main.sh +65 -26
- package/assets/hooks/git-guard-push-tests.sh +133 -75
- 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 +70 -50
- 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 +52 -36
- 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 +104 -0
- 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 +115 -30
- 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 -114
- package/assets/laws/work-conduct.md +250 -250
- 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 +143 -67
- package/assets/patterns/browser-verification-stand.md +181 -128
- package/assets/patterns/component-structure-new.md +51 -42
- package/assets/patterns/dependencies-upgrade.md +55 -39
- package/assets/patterns/doc-style-human.md +93 -0
- 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 +94 -75
- package/assets/patterns/git-workflow-commit.github.md +153 -129
- package/assets/patterns/git-workflow-commit.gitlab.md +96 -78
- 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 +99 -86
- 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 +103 -92
- 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 -188
- 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 +209 -148
- 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 -242
- 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 -137
- 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 +83 -72
- package/assets/rules/task-flow.md +282 -270
- package/assets/rules/testing.md +224 -188
- 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 +236 -222
- 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 +68 -4
- 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 +13 -4
- package/lib/enroll.js.map +1 -1
- package/lib/observations.d.ts +10 -1
- package/lib/observations.d.ts.map +1 -1
- package/lib/observations.js +1 -0
- package/lib/observations.js.map +1 -1
- package/lib/override-marks.d.ts +24 -0
- package/lib/override-marks.d.ts.map +1 -0
- package/lib/override-marks.js +98 -0
- package/lib/override-marks.js.map +1 -0
- 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 +7 -3
- 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.23.0.tgz +0 -0
|
@@ -1,100 +1,105 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Project texts — cold part
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
Pitfalls: traps already stepped on. Loaded not with the rule but on demand — an ordinary
|
|
4
|
+
decision does not need it.
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
The rule is `doc-style`; the articles that hold the law stand there.
|
|
7
7
|
|
|
8
|
-
##
|
|
8
|
+
## Pitfalls
|
|
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
|
-
|
|
10
|
+
- **A deviation from the request is named in the same report that shows the result.** Something
|
|
11
|
+
done not the way it was asked differs from something done the asked way even when the answer
|
|
12
|
+
matches, and the executor names the difference — one line: "did it not the way you said, here
|
|
13
|
+
is how and why". Silence holds exactly until the request has to be repeated, and the price is
|
|
14
|
+
trust in the whole report.
|
|
15
|
+
- **Remaining work is not written into a document; it is filed as a task.** `docs/BACKLOG.md`
|
|
16
|
+
keeps only what never becomes a task: agreements and decisions that were decided not to change.
|
|
17
|
+
The test — the statement stays if nobody intends to change it. "Do later" in a plan, a README or
|
|
18
|
+
a spec is a second work list: it drifts from the board silently, and sorting it out later costs
|
|
19
|
+
more than filing a task right away. Of a 1411-line document, 71 lines turned out to be current,
|
|
20
|
+
and sorting the rest took a separate task. How to sort what has piled up — pattern
|
|
21
|
+
`doc-style-sweep`.
|
|
22
|
+
- **The glossary applies to the conversation with the owner too, not only to files.** It enters
|
|
23
|
+
the context at session start, so "did not read it" is never a ground. A word from the "we do
|
|
24
|
+
not write" left column surfaced precisely in replies: it had already been purged from the tree,
|
|
25
|
+
yet in the PR about the work it remained, and the owner read exactly the word that was dropped.
|
|
26
|
+
- **A term is taken from `docs/GLOSSARY.md`, not invented on the spot.** A word that is not there
|
|
27
|
+
does not exist for the reader either: "application journal" stood in the mail spec until the
|
|
28
|
+
owner asked what it was — it turned out to be backend logs, and "journal" here was already taken
|
|
29
|
+
by the event journal. A new word is either added to the glossary together with the change or
|
|
30
|
+
replaced with one that already exists.
|
|
31
|
+
- **A pass over the glossary by eye does not find the word.** "Wording aligned with the
|
|
32
|
+
glossary" means exactly the lines that were being read at that moment: "speca" survived such a
|
|
33
|
+
pass and stayed on the next line of the same file. A word from the left column of the "Not
|
|
34
|
+
written here" table is purged by grep over the whole tree, not by proofreading. The form is set precisely: "spec" — the
|
|
35
|
+
document — also inflects into the other forms, and legitimate matches by the stem outnumber the
|
|
36
|
+
violations; the search is for phrases ("no spec for …", "the spec checks"), not the stem.
|
|
37
|
+
- **A dropped name is purged by one grep over the whole tree:** rules, their mirrors in skills,
|
|
38
|
+
documents and comments. A description of what the code no longer has reads as a current
|
|
39
|
+
instruction.
|
|
40
|
+
- **A dropped word's second meaning is restored after the blanket replacement, not worked around
|
|
41
|
+
before it.** The word is dropped precisely because it stood over two things, and the second
|
|
42
|
+
meaning stays legitimate. There is no way to pick it out in advance: which of the two meanings a
|
|
43
|
+
line carries shows only from the text around it, and there may be hundreds of lines. The order
|
|
44
|
+
is reversed — blanket replacement, then a full review of the change itself, and each second
|
|
45
|
+
meaning found is restored by name. Of 353 replacements six came back this way, and the first two
|
|
46
|
+
were breakage: the check printed the new name twice in a row, and a comment promised "breakage
|
|
47
|
+
instead of a PR saying there is no debt". The change is reviewed, not the tree after it: in the
|
|
48
|
+
tree both sides look equally right.
|
|
49
|
+
- **A search over the tree does not cover what has already gone outside.** The task title and
|
|
50
|
+
body, the PR title and body, commit subjects live outside files, and text checks do not read
|
|
51
|
+
them at all. Having purged a word in the tree, one walks the same places in the work queue and
|
|
52
|
+
in history:
|
|
51
53
|
|
|
52
54
|
```bash
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
git log --format='%s%n%b'
|
|
55
|
+
<host client> api "<PR path>" --jq '.title, .body' | grep -i '<word>'
|
|
56
|
+
<host client> api "<task path>" --jq '.title, .body' | grep -i '<word>'
|
|
57
|
+
git log --format='%s%n%b' <base>..HEAD | grep -i '<word>'
|
|
56
58
|
```
|
|
57
59
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
60
|
+
A PR title is fixed by a host call, a commit subject only by rewriting the branch, so it is
|
|
61
|
+
checked before the push. An invented word was purged from three files and declared dropped,
|
|
62
|
+
yet stayed in the PR title and the commit subject — the owner read exactly that.
|
|
61
63
|
|
|
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
|
-
|
|
64
|
+
- **A number in a text is recomputed by a command in the same commit that writes it.** It goes
|
|
65
|
+
stale inside one branch: "sixteen pairs" became false two commits after it was written, and the
|
|
66
|
+
owner found it, not a check. A number that will have to be recomputed on every edit is better
|
|
67
|
+
not written at all. A number obtained by parsing text is verified on a sample by hand before it
|
|
68
|
+
is stated: a parser that does not know a second notation fails silently — "51 items without a
|
|
69
|
+
task" turned out to be six, because the id stood both on its own line and in a subsection
|
|
70
|
+
heading.
|
|
71
|
+
- **A check named in a text is run, not retold.** "The check exists" and "the check passes" are
|
|
72
|
+
different statements, and the second is usually absent from the text altogether. Of four checks
|
|
73
|
+
named by a rule, three were not in the state the text described: one produced a dozen and a half
|
|
74
|
+
findings, the second rewrote files by merely running, the third was red and took the overall
|
|
75
|
+
summary down with it. None of the three was part of the release, so the silence was complete. A
|
|
76
|
+
check that rewrites files is run on a clean tree: otherwise its edits leave in someone else's
|
|
77
|
+
commit.
|
|
78
|
+
- **Doneness is read from the tree, not from the text written about it.** This holds both ways:
|
|
79
|
+
the line about both libs' READMEs was struck out as done, yet the README kept the old importer
|
|
80
|
+
count; a task reported to the owner as not done turned out to be half closed and covered by hook
|
|
81
|
+
scenarios. A plan item and a task body describe the day they were written and have not changed
|
|
82
|
+
since.
|
|
83
|
+
- **A comment in a file is a statement like a line in a document.** The justification "lines run
|
|
84
|
+
the full panel width, otherwise the highlight breaks" was invented, lived three sessions and
|
|
85
|
+
each time read as a ground not to touch the layout.
|
|
86
|
+
- **Other projects are not mentioned anywhere** — neither the repository name, nor "ported
|
|
87
|
+
from", nor links to its files. What the code does here is described in this project's own
|
|
88
|
+
terms.
|
|
89
|
+
- **A pattern replacement is silent when the pattern is wrong.** A stream editor may lack
|
|
90
|
+
alternation in its pattern syntax: the expression matches nothing, the command exits zero and
|
|
91
|
+
edits no line. Nothing in the exit code tells this from an applied edit — only the file itself
|
|
92
|
+
shows it, usually later, by the headings of the assembled text. Text is edited with the edit
|
|
93
|
+
tool; and if a replacement is called anyway, the place it promised to change is reread right
|
|
94
|
+
after.
|
|
95
|
+
- **A number obtained from a command is not yet a measurement.** The requirement to recompute a
|
|
96
|
+
number by a command is met literally — there was a command — and nobody asks whether it
|
|
97
|
+
measured the number's subject. Output is false in different ways and silently: `grep -E` with
|
|
98
|
+
the word boundary `\b` on BSD ignores part of the pattern and does not say so ("278
|
|
99
|
+
occurrences" turned out to be 79, and twelve of those were about something else), a regex does
|
|
100
|
+
not see where a block ends and attributes the find to a neighbour, and memory returns a number
|
|
101
|
+
without remembering its origin — indistinguishable from a measurement. A number is written by
|
|
102
|
+
the command that measures its subject, in the same turn the text is written.
|
|
103
|
+
- **The word boundary is asked from the command that knows it.** `grep -w`, `rg` and `python3`
|
|
104
|
+
with `re` implement it, BSD `grep -E` does not; the check costs one command and is done before
|
|
105
|
+
the number goes into the text.
|
|
@@ -1,50 +1,53 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Delivery — cold part
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
Pitfalls: traps already stepped on in a tree on Azure DevOps. Loaded not with the rule but on
|
|
4
|
+
demand — an ordinary decision does not need it.
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
The rule is `git-workflow`; the articles that hold the law stand there.
|
|
7
7
|
|
|
8
|
-
##
|
|
8
|
+
## Pitfalls
|
|
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
|
-
|
|
10
|
+
- **One piece of work — one task, however many files it touches.** There is no number past which
|
|
11
|
+
an edit becomes a second work item: what is split is what would have to be rolled back
|
|
12
|
+
separately. A blanket edit of the tree's texts was filed as three tasks "by volume" — two work
|
|
13
|
+
items had to be deleted, two PRs closed, and commits moved one by one with two conflicts. One
|
|
14
|
+
of the three yielded no commit at all: editing the bodies of already filed tasks is never a
|
|
15
|
+
branch, nor a task for a branch.
|
|
16
|
+
- **A work item is created by the command, not by calls in a row.** The board shows the items of
|
|
17
|
+
its own area and iteration, and one created past them is not visible in the work queue: from
|
|
18
|
+
outside it looks the same as one not created. The creation command sets all the fields at
|
|
19
|
+
once — type, state, assignee, area and iteration — and prints the ready-made branch creation
|
|
20
|
+
line. A defect noticed along the way goes the same route.
|
|
21
|
+
- **The branch is created by a second call, not the same one.** The main-branch guard rejects the
|
|
22
|
+
compound "create a branch and commit at once" whole: at the moment of parsing the branch does
|
|
23
|
+
not exist yet.
|
|
24
|
+
- **A side of a conflict can be a deletion, and "keep both sides" creates a second declaration.**
|
|
25
|
+
The main branch removes the declaration because the symbol moved — in the conflict this looks
|
|
26
|
+
like a side that added nothing. It is sorted out by reading the main branch's version whole,
|
|
27
|
+
not by hunk, and verified by the duplicates check: each copy alone is sound, build and lint
|
|
28
|
+
green.
|
|
29
|
+
- **The account for the push and the author of the PR are chosen separately.** If the push had to
|
|
30
|
+
go from another account, that does not carry over to the next call: the PR is opened with the
|
|
31
|
+
machine account's token, and which account opens it decides who can be assigned as reviewer.
|
|
32
|
+
Once a switch of account for the push leaked into publication — the PR came out from the
|
|
33
|
+
owner.
|
|
34
|
+
- **An invalid pipeline file shows as a zero-length run right after the push.** The run is created
|
|
35
|
+
and ends on parsing the file, without starting a single step: in the list it stands as a
|
|
36
|
+
failure, and inside it has neither a step nor output — only the duration is readable. So the
|
|
37
|
+
branch's run list is looked at with the same motion as the push: `az pipelines runs list` for
|
|
38
|
+
one's own branch.
|
|
39
|
+
- **`online` on a self-hosted agent means a running process, not a working pipeline.** Two sides
|
|
40
|
+
match separately: the demands of the pipeline steps and the capabilities of the agent itself in
|
|
41
|
+
its pool. Until they intersect, the agent stands `online` and takes nothing, while the steps
|
|
42
|
+
wait for a hosted pool — by its state this looks configured. The owner is told the executed
|
|
43
|
+
step with its number, not the state line.
|
|
44
|
+
- **Registry login from an agent started as a service fails silently.** The service runs without
|
|
45
|
+
a user session, and the registry client goes to the system keychain helper and gets an
|
|
46
|
+
interaction refusal — the step fails before the build. Its own settings directory with an empty
|
|
47
|
+
helper does not save it: the client writes the empty value back itself. Ready-made commands —
|
|
48
|
+
pattern `git-workflow-docker`.
|
|
49
|
+
- **A new working tree gets only what lies in the index.** `git worktree add` unpacks a commit,
|
|
50
|
+
and settings, keys, local permissions and dependencies are not part of a commit: the fresh tree
|
|
51
|
+
looks ready and hits the shortage not at once but on the first guard that needs a key. What
|
|
52
|
+
exactly is carried over by hand is named as a list in the rule's companion, and the list grows
|
|
53
|
+
with the same motion that creates a new file outside the index.
|