@rt-tools/agent-kit 0.26.0 → 0.28.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.
Files changed (148) hide show
  1. package/assets/agents/cargo-writer.md +54 -0
  2. package/assets/checks/board-epic-link.github.mjs +29 -0
  3. package/assets/checks/board-epic-plan.github.mjs +86 -0
  4. package/assets/checks/board-epics.github.mjs +217 -69
  5. package/assets/checks/board-long-work.github.mjs +5 -1
  6. package/assets/checks/board-pull-state.github.mjs +163 -0
  7. package/assets/checks/board-task-dirs.github.mjs +98 -0
  8. package/assets/checks/board.github.mjs +8 -91
  9. package/assets/checks/check-board.github.mjs +25 -165
  10. package/assets/checks/check-glossary.mjs +10 -2
  11. package/assets/checks/check-lib-layers.mjs +24 -1
  12. package/assets/checks/check-prose-style.mjs +19 -3
  13. package/assets/checks/check-reuse.mjs +26 -2
  14. package/assets/checks/check-schema-drift.mjs +19 -3
  15. package/assets/checks/check-specs.mjs +8 -1
  16. package/assets/checks/epic-table.github.mjs +268 -0
  17. package/assets/checks/lib-boundaries.mjs +2 -2
  18. package/assets/checks/lib-common.mjs +46 -0
  19. package/assets/checks/lib-manifests.mjs +18 -13
  20. package/assets/checks/rt-kit-checks.config.mjs +19 -0
  21. package/assets/checks/signals.mjs +39 -5
  22. package/assets/checks/spec-anchors.mjs +48 -4
  23. package/assets/checks/spec-common.mjs +40 -6
  24. package/assets/checks/spec-contract.mjs +33 -7
  25. package/assets/checks/spec-scenarios.mjs +24 -1
  26. package/assets/checks/specs-for.mjs +214 -0
  27. package/assets/checks/task-new.github.mjs +237 -6
  28. package/assets/commands/night.md +115 -0
  29. package/assets/defaults/gate-map.sh +20 -5
  30. package/assets/defaults/project.sh +13 -0
  31. package/assets/defaults/turn-map.md +3 -1
  32. package/assets/docs/GLOSSARY.md +22 -22
  33. package/assets/hooks/browser-device-id.sh +4 -0
  34. package/assets/hooks/browser-guard-device-id.sh +4 -0
  35. package/assets/hooks/commit-msg.sh +3 -0
  36. package/assets/hooks/dev-server-guard.sh +64 -31
  37. package/assets/hooks/epic-over.sh +49 -0
  38. package/assets/hooks/epic-stop-guard.sh +108 -0
  39. package/assets/hooks/exam-guard.sh +10 -10
  40. package/assets/hooks/git-guard-delivery-conflict.sh +56 -1
  41. package/assets/hooks/git-guard-delivery-draft.sh +10 -6
  42. package/assets/hooks/git-guard-delivery-epic.sh +167 -0
  43. package/assets/hooks/git-guard-delivery-signature.sh +32 -2
  44. package/assets/hooks/git-guard-delivery-tree.sh +50 -0
  45. package/assets/hooks/git-guard-delivery.sh +71 -27
  46. package/assets/hooks/git-guard-discard.sh +144 -0
  47. package/assets/hooks/git-guard-push-tests.sh +36 -16
  48. package/assets/hooks/handoff-entry-guard.sh +20 -2
  49. package/assets/hooks/prose-style-guard.sh +31 -8
  50. package/assets/hooks/qa-dataid-guard.sh +33 -11
  51. package/assets/hooks/reuse-first-guard.sh +29 -4
  52. package/assets/hooks/rule-article.sh +3 -0
  53. package/assets/hooks/rule-source-guard.sh +17 -2
  54. package/assets/hooks/skill-gate-layers.sh +4 -0
  55. package/assets/hooks/skill-gate.sh +7 -0
  56. package/assets/hooks/skill-loaded.sh +4 -0
  57. package/assets/hooks/sql-guard-parse.sh +3 -0
  58. package/assets/hooks/sql-guard-request.sh +3 -0
  59. package/assets/hooks/sql-guard-target.sh +3 -0
  60. package/assets/hooks/sql-guard-write.sh +21 -2
  61. package/assets/hooks/stand-login-guard.sh +3 -0
  62. package/assets/hooks/turn-exit-guard.sh +55 -67
  63. package/assets/hooks/turn-exit-patterns.sh +28 -1
  64. package/assets/hooks/turn-exit-verdict.sh +84 -0
  65. package/assets/hooks/utf8.sh +3 -0
  66. package/assets/hooks/waiting-turn-guard.sh +11 -1
  67. package/assets/hooks/write-targets.sh +3 -0
  68. package/assets/laws/delivery.md +37 -7
  69. package/assets/laws/verifiability.md +22 -4
  70. package/assets/patterns/git-workflow-commit.azure.md +1 -1
  71. package/assets/patterns/git-workflow-commit.github.md +9 -2
  72. package/assets/patterns/git-workflow-commit.gitlab.md +1 -1
  73. package/assets/patterns/git-workflow-merge.md +8 -5
  74. package/assets/patterns/git-workflow-pr.azure.md +1 -1
  75. package/assets/patterns/git-workflow-pr.github.md +44 -18
  76. package/assets/patterns/git-workflow-pr.gitlab.md +1 -1
  77. package/assets/patterns/git-workflow-stack.md +32 -9
  78. package/assets/patterns/status-report-table.github.md +11 -0
  79. package/assets/patterns/task-flow-close.md +96 -90
  80. package/assets/patterns/task-flow-start.md +40 -26
  81. package/assets/patterns/ts-procedure.md +6 -0
  82. package/assets/pitfalls/agent-kit.md +19 -0
  83. package/assets/pitfalls/git-workflow.github.md +44 -0
  84. package/assets/pitfalls/task-flow.md +25 -23
  85. package/assets/rules/autonomous-work.md +15 -3
  86. package/assets/rules/browser-verification.md +8 -0
  87. package/assets/rules/deploy-flow.github.md +6 -0
  88. package/assets/rules/doc-style.md +13 -4
  89. package/assets/rules/git-workflow.azure.md +10 -0
  90. package/assets/rules/git-workflow.github.md +144 -126
  91. package/assets/rules/git-workflow.gitlab.md +10 -0
  92. package/assets/rules/lib-layers.md +11 -0
  93. package/assets/rules/spec-driven.md +17 -1
  94. package/assets/rules/status-report.md +7 -0
  95. package/assets/rules/task-flow.md +78 -54
  96. package/assets/rules/testing.md +7 -0
  97. package/assets/rules/turn-conduct.md +30 -3
  98. package/assets/samples/tasks/_template/plan.md +4 -1
  99. package/assets/skills/agent-kit.md +40 -25
  100. package/bin/agent-kit.d.ts.map +1 -1
  101. package/bin/agent-kit.js +9 -2
  102. package/bin/agent-kit.js.map +1 -1
  103. package/lib/cargo-prose.d.ts +41 -0
  104. package/lib/cargo-prose.d.ts.map +1 -0
  105. package/lib/cargo-prose.js +88 -0
  106. package/lib/cargo-prose.js.map +1 -0
  107. package/lib/cargo.d.ts +12 -1
  108. package/lib/cargo.d.ts.map +1 -1
  109. package/lib/cargo.js +8 -2
  110. package/lib/cargo.js.map +1 -1
  111. package/lib/commands.d.ts +1 -1
  112. package/lib/commands.d.ts.map +1 -1
  113. package/lib/commands.js +59 -2
  114. package/lib/commands.js.map +1 -1
  115. package/lib/fate.d.ts +29 -0
  116. package/lib/fate.d.ts.map +1 -0
  117. package/lib/fate.js +147 -0
  118. package/lib/fate.js.map +1 -0
  119. package/lib/hooks-map.d.ts +5 -0
  120. package/lib/hooks-map.d.ts.map +1 -1
  121. package/lib/hooks-map.js +9 -3
  122. package/lib/hooks-map.js.map +1 -1
  123. package/lib/override-marks.d.ts +7 -0
  124. package/lib/override-marks.d.ts.map +1 -1
  125. package/lib/override-marks.js +14 -0
  126. package/lib/override-marks.js.map +1 -1
  127. package/lib/plan.d.ts +2 -0
  128. package/lib/plan.d.ts.map +1 -1
  129. package/lib/plan.js +8 -0
  130. package/lib/plan.js.map +1 -1
  131. package/lib/proposals.d.ts +25 -0
  132. package/lib/proposals.d.ts.map +1 -1
  133. package/lib/proposals.js +43 -1
  134. package/lib/proposals.js.map +1 -1
  135. package/lib/ship.d.ts +29 -2
  136. package/lib/ship.d.ts.map +1 -1
  137. package/lib/ship.js +34 -0
  138. package/lib/ship.js.map +1 -1
  139. package/lib/shipment.d.ts.map +1 -1
  140. package/lib/shipment.fixture.d.ts +8 -1
  141. package/lib/shipment.fixture.d.ts.map +1 -1
  142. package/lib/shipment.fixture.js +9 -0
  143. package/lib/shipment.fixture.js.map +1 -1
  144. package/lib/shipment.js +40 -14
  145. package/lib/shipment.js.map +1 -1
  146. package/package.json +1 -1
  147. package/rt-tools-agent-kit-0.28.0.tgz +0 -0
  148. package/rt-tools-agent-kit-0.26.0.tgz +0 -0
@@ -157,3 +157,22 @@ not see it. It is carried into the override by hand.
157
157
  - **A trait the package did not declare fails the layout** — whether in the tree's `has` or in a
158
158
  resource name. Traits are declared in a list with the package, next to the axes of difference.
159
159
 
160
+ ## Layout pitfalls
161
+ - **The glossary is as much a laid-out resource as a rule.** The startup hook puts it into the
162
+ context in full, before the first reply, and so it looks like an ordinary tree document; it has
163
+ a header, but it reads as a service line. A new word goes into the glossary override, as a
164
+ section of its own.
165
+
166
+ - **A file write by a shell command is checked on all paths named in its body.** The gate takes
167
+ the paths out of the command text and reads the document body in full if the command holds an
168
+ interpreter name; an import line of a laid-out module then demands a second rule, and one is
169
+ demanded at a time — two refusals in a row, and each loses the written body. The edit tool is
170
+ checked by its one path; a shell redirect is for what does not become a tree file.
171
+ - **Your own thing standing next to the laid-out repeats its mechanics silently.** Parsing the
172
+ list of the known, the source roots and the debt snapshot is given by the checks config
173
+ module; a second such parser in your own check is seen by neither the layout audit nor the
174
+ duplicate check. Before starting your own, look at what the checks config module exports.
175
+ - **A rule loaded by a tool may be shown not in full, and the cut is marked by nothing.** A long
176
+ file comes into the context cut at a line, and the cut falls on the tail — where the override
177
+ sections are appended at the end. The shown lines are compared with the file length by one
178
+ command; if they differ, the file is read to the end.
@@ -131,6 +131,37 @@ Here moved the cases, numbers and rejected remedies that used to stand next to t
131
131
  articles. No edit decision rests on them: they are for whoever investigates a miss or argues with
132
132
  a guard.
133
133
 
134
+ - **A PR opened by another account is lawful while its reviewer is somebody else.** The clash the
135
+ guard judges is that of author and reviewer, not the account name: the machine account is named
136
+ aloud rather than demanded.
137
+
138
+ - **A chain branched from the epic branch twice diverges at the first merge.** The rest of the
139
+ branches then stand on a base that is gone.
140
+
141
+ - **While the handed-over conflicts, a person cannot merge it.** New work adds one more branch to
142
+ the same queue instead of fixing that.
143
+
144
+ - **A flag between the verb and `-b` is the same branch creation.** The guard used to judge only the
145
+ form without a flag.
146
+
147
+ - **A printed task number means only that the call went through.** The board is a separate service,
148
+ and a task lands on it only when added.
149
+
150
+ - **A temporary directory will not do for a runner's paths.** The package store lives there.
151
+
152
+ - **A pipeline step printed next to the push instead of refusing it is skipped.** A warning reads as
153
+ permission.
154
+
155
+ - **A write limit is told from exhaustion by the limits answer.** There it is zero.
156
+
157
+ - **At branch creation the column is not asked.** Nothing has moved it yet.
158
+
159
+ - **A fresh tip is given time before the audit counts it as running no checks.**
160
+
161
+ - **A machine signature sends git to the key agent.** A locked agent brings the whole suite down.
162
+
163
+ - **A run pushed out of the queue has zero steps.** That is what tells it from a failed one.
164
+
134
165
  - **A refusal at the merge remains the second line.** A person merges as soon as they see green,
135
166
  and the second line is simply never reached.
136
167
 
@@ -267,3 +298,16 @@ a guard.
267
298
  broken command and is cured by the directory: the path to it is named from the root, and it is
268
299
  called from there.
269
300
 
301
+ ## The active account of the host client
302
+
303
+ A client login as the machine account hijacks every neighbouring session on the machine: a
304
+ neighbour with rights to one repository reads its task as nonexistent, and from inside the tree
305
+ the miss is invisible — the answer is an ordinary "not found". That is why the account is
306
+ substituted per call and never made active, even when the active one is already right.
307
+
308
+ - **Why a neighbouring runner rewrites a ready-made step's default.** On a machine with several
309
+ runners any path from the home directory is shared, so the version a neighbouring run installs
310
+ lands under the same path and is picked up by the next run of any project.
311
+ - **What the second tier of the delivery guard cannot ask without a network.** Task, column,
312
+ assignee and review live at the hosting: with no network and no token that tier is skipped, and
313
+ the skip is silent.
@@ -50,11 +50,9 @@ The rule is `task-flow`; the articles that hold the law stand there.
50
50
  the node was moved to another place in the markup. The owner rejected both and named the needed
51
51
  way himself. Ask before the edit, do not show the measurement after.
52
52
  - **A path offered to a person is judged by the number of their steps and by what they must have to
53
- walk it.** From the code side an option looks cheap — "fewer paths", "the launch line is
54
- untouched" — while for a person it costs a visit to the server: issuing a token stood as
55
- recommended, and for it the owner would have had to go over ssh into a running container. The
56
- price is named from the side of the one who will walk it; a retelling of the order without it the
57
- owner reads as approval.
53
+ walk it.** From the code side an option looks cheap while for a person it costs a visit to the
54
+ server. The price is named from the side of the one who will walk it; a retelling of the order
55
+ without it the owner reads as approval.
58
56
  - **The epic on the theme is read before the layout is decided.** The epic plan holds decisions that
59
57
  survived a dozen tasks, and code exploration does not find them: a withdrawn decision leaves no
60
58
  trace in the tree. A domain created by the generator and torn down half an hour later stood in the
@@ -115,11 +113,9 @@ The rule is `task-flow`; the articles that hold the law stand there.
115
113
  moved nothing.
116
114
 
117
115
  - **One's own temporary files go outside the code tree — otherwise their removal is judged as an
118
- edit of the application.** The write sign counts a deletion as a write, and that is on purpose:
119
- something removed without a plan leaves no trace. The sign has nothing to tell one's own temporary
120
- directory from a domain directory — both paths sit under the same root — and the guard demands a
121
- plan for cleaning up a draft. The directory is named by the tree's profile, and it lies outside
122
- the code tree.
116
+ edit of the application.** The write sign counts a deletion as a write on purpose, and it has
117
+ nothing to tell one's own temporary directory from a domain directory. The directory is named by
118
+ the tree's profile, and it lies outside the code tree.
123
119
 
124
120
  - **A task body written ahead of the plan names the method, and the method goes stale before the
125
121
  defect.** A task of a series is created weeks before it is taken; by that day the proposed method
@@ -133,11 +129,10 @@ The rule is `task-flow`; the articles that hold the law stand there.
133
129
  passed is written into the PR body, where the reviewer reads it.
134
130
 
135
131
  - **The owner's word about how something is arranged is a framing, not a decision.** What they named
136
- usually already lives in the tree under that very word: it has a name on screen, a section in the
137
- spec and a field in the model, and checking costs one search. Interpreted by the nearest code, the
138
- word looks like a fulfilled request right up to acceptance: the edit is merged by then, and the
139
- owner got work in someone else's console instead of a field in the application. Did the reading
140
- diverge from the tree — the owner is asked, and asked before the edit.
132
+ usually already lives in the tree under that very word — a name on screen, a spec section, a model
133
+ field — and checking costs one search. Interpreted by the nearest code, the word looks like a
134
+ fulfilled request right up to acceptance. Did the reading diverge — the owner is asked before the
135
+ edit.
141
136
 
142
137
  - **An instruction to work by the flow is an instruction to do its steps, including those that
143
138
  change history.** Marking a stage, pushing the branch and opening the PR are prescribed by the
@@ -161,18 +156,16 @@ The rule is `task-flow`; the articles that hold the law stand there.
161
156
  not catch this loss: the work loses to neighbouring assignments within the hour, and the week
162
157
  passes afterwards.
163
158
  - **A stack of branches costs more, and its price is named.** A PR into a neighbouring branch does
164
- not start the pipeline declared for the main base; merging the base branch closes the next PR as
165
- merged although its edits are not in main; a conflict from someone else's merge is resolved anew
166
- in every branch of the stack. An arrangement chosen silently collects the whole price and shows
167
- none of its parts. Tasks that follow one another in code lawfully live as branches from main, as
168
- long as the next edit does not rest on the code of the previous one.
159
+ not start the pipeline declared for the main base; merging the base closes the next PR as merged
160
+ although its edits are not in main; a conflict is resolved anew in every branch of the stack.
161
+ Tasks that follow one another in code lawfully live as branches from main, as long as the next
162
+ edit does not rest on the code of the previous one.
169
163
 
170
164
  - **A find in the middle of a stage feels like part of the current work when the subject is
171
165
  adjacent.** It has no sign of its own: before the first edit the find is not in the tree, and
172
166
  after it the files of neighbouring work do not differ from one's own. So the plan's list of exit
173
- conditions is checked, not the feeling. Once such an edit was stopped by an unrelated refusal by
174
- file kind, not by a check against the plan: without it, it would have gone into someone else's
175
- branch, and the two pieces of work would have had no separate rollback.
167
+ conditions is checked, not the feeling — otherwise the two pieces of work lose their separate
168
+ rollback.
176
169
 
177
170
  ## Executor behaviour — from incident analyses
178
171
 
@@ -260,3 +253,12 @@ they are for whoever investigates a miss or argues with a guard.
260
253
  is two motions, and done by half it leaves the task in two sets at once: the epic looks unclosed
261
254
  with all its work done. The total is written where the set is edited: postponed, it is written
262
255
  from memory of how many tasks there were, not how many remain.
256
+ - **A run of the readiness command while writing the plan costs a minute** and shows the cause of
257
+ the line in the command's own output, where a guess shows nothing.
258
+ - **Without the sub-issue link the makeup of an epic is assembled by hand**, from the list of open
259
+ cards, one card at a time.
260
+ - **The task order says nothing about how the branches stand**, and the numbers of the created
261
+ tasks return to the order section by the same edit.
262
+ - **A finished epic is named to the owner by the same turn that takes work outside it.**
263
+ - **A retelling of a sample in the grill and in the epic plan is not the sample.**
264
+ - **The review of closed work ends with an edit of the rules layer or a proposal outward.**
@@ -16,7 +16,7 @@ work. The course of work itself — rule `task-flow`, the end of a turn — `tur
16
16
 
17
17
  | In the law | Here |
18
18
  | --- | --- |
19
- | an autonomous session | the owner's request to work without them, stated in words and with a time boundary |
19
+ | an autonomous session | the owner's request to work without them, stated in words and with a time boundary; started by the command `/night` |
20
20
  | a default instead of a question | a "Decisions" line in the grill: what was taken, the reason and the cost of a mistake |
21
21
  | work visible from outside | pushing a branch, opening a PR, merging, publishing the package, sending cargo |
22
22
  | a chain | the branch of each next piece of work is created from the branch of the previous one |
@@ -51,6 +51,18 @@ flowchart TD
51
51
 
52
52
  ## How the law applies here
53
53
 
54
+ - **The session is started by the command `/night`, and the time boundary goes to it as an
55
+ argument.** Before it there was no launch at all: the order of the night lay in the texts, and
56
+ every session assembled it from memory — what was forgotten showed only in the morning, by a
57
+ branch that cannot be merged or by work missing from the list. The command takes the boundary,
58
+ raises this rule and the pattern, makes the checks that cost a whole night if met at three
59
+ o'clock, and creates the file of the morning list.
60
+ - **The command called without a boundary asks the owner for one and starts nothing.** They are
61
+ still here at that minute; by morning there is nobody to ask, and a session without a boundary is
62
+ work without an end.
63
+ - **The command does not repeat the order of the night.** It raises the rule and the pattern:
64
+ rewritten into the command, the order would become a second source and diverge from the first
65
+ silently.
54
66
  - **The branch of the next work is created from the previous one, not from main.** The first — from
55
67
  main, each next — from the tip of the previous: `git checkout -b <ключ>-<номер>-<slug> <прошлая
56
68
  ветка>`. The owner merges them in turn from the bottom up, and each PR stands on the previous one.
@@ -74,8 +86,8 @@ flowchart TD
74
86
 
75
87
  ## What of the law is not here
76
88
 
77
- Nothing checks the session's time boundary: the session ends when the work is over or the owner said
78
- a word. Keeping the ban on what is visible from outside is held the same way — by the rule, not by a
89
+ Nothing checks the session's time boundary: the command asks for it and writes it down, and after
90
+ that the session ends when the work is over or the owner said a word. Keeping the ban on what is visible from outside is held the same way — by the rule, not by a
79
91
  guard: the push command is no different from the one made by day.
80
92
 
81
93
  ## Patterns
@@ -152,6 +152,14 @@ flowchart TD
152
152
  advance are checked against the implementation the same way: work done by retelling the reference
153
153
  in words diverges from it unnoticed.
154
154
 
155
+ - **Work that carries a look over from a sample is accepted by a frame of one's own screen next to
156
+ the sample's frame.** Names carried into the markup are the technique, not the result: a green
157
+ build, linters and tests say nothing about a field clipped mid-line. Every remade screen is
158
+ looked at by the executor and shown to the owner; a screen not opened since the edit counts as
159
+ unchecked. A measurement set assembled by the author under their own edit confirms nothing
160
+ either — it holds what was fixed in that hour; the set is taken from what the work is accepted
161
+ by and is written before the edit.
162
+
155
163
  A conclusion about layout is backed by a number: "looks fine" is never a check result. Nothing
156
164
  guards this — how to measure is covered in pattern `browser-verification-measure`.
157
165
 
@@ -115,6 +115,12 @@ flowchart TD
115
115
  - **A PR is checked before the merge by the same pipeline as the main branch.** Checks and image
116
116
  builds go on the `pull_request` event, the rollout does not: it is held by the main-branch
117
117
  condition on its step, and a PR image does not leave for the registry.
118
+ - **Which PRs the pipeline wakes for is named by the tree, and it sets the order of handing in.**
119
+ A base filter is not a detail of the settings: a PR the pipeline does not wake for has nothing
120
+ to wait for, and a draft on it costs a locked button and an extra turn. A tree with a single
121
+ runner pays a whole run for every PR into an epic branch, and pays it for checks the push gate
122
+ has already run on the same machine; a tree with runners to spare buys the earlier refusal. The
123
+ answer is written in the pipeline file next to the trigger, together with what is lost by it.
118
124
  - **A divergence of production from the main branch is visible by the work queue audit.** A task
119
125
  leaves the queue by a merge, but a merge is not yet production: a failed or unstarted rollout
120
126
  touches neither the task nor its column, and there is nowhere to notice it. The audit asks for
@@ -174,6 +174,12 @@ flowchart TD
174
174
  the run turned red for something other than the branch's change.
175
175
  <!-- rt-when: *.md -->
176
176
 
177
+ - **The removal by expiry is not carried by whichever branch pushed first.** The check stands in the
178
+ gate of every branch, so the cleanup lands in the first work to reach a push and travels to the
179
+ reviewer inside an edit that has nothing to do with it. Either the cleanup is work of its own with
180
+ a task of its own, or the check refuses the run and not the push.
181
+ <!-- rt-when: *.md -->
182
+
177
183
  - **A link to a record of the past in a live text lives exactly until the record's expiry.** The
178
184
  address check does not read the archive at all, so the dead link turns red not there but in the
179
185
  text that referenced it. A live text names the decision in words, not by the record's address.
@@ -228,10 +234,13 @@ written in.
228
234
 
229
235
  ## What of the law is not here
230
236
 
231
- None of the wording agreements is checked: one sentence per rule, plain words, no claims about
232
- the future, freshness of a number in the text. The last two the law leaves with the author
233
- explicitly: an open question is written in the same words as a promise, and a date and an id are
234
- numbers like the ones that get recomputed.
237
+ Part of the wording agreements is checked, and part is not. The wording check sees the listed
238
+ signs — officialese, a word not written here, a sentence over the limit — and it is called twice:
239
+ by the guard on an edit of a `.md` of the tree, and by the send on a cargo record leaving for the
240
+ intake. What is left with the author is one sentence per rule, no claims about the future and
241
+ freshness of a number in the text. The last two the law leaves with the author explicitly: an
242
+ open question is written in the same words as a promise, and a date and an id are numbers like
243
+ the ones that get recomputed.
235
244
 
236
245
  No check reads the reply to the owner, and the misses in it are the same as in tree text: an
237
246
  invented fact served alongside a verified one, and an appraisal of someone else's decision
@@ -99,6 +99,16 @@ flowchart TD
99
99
  draft; the question is asked in the PR itself. The check pipeline does not run on a draft by
100
100
  default — until the draft is lifted it stays silent, and that silence is not taken for a green
101
101
  run.
102
+ - **`--hard` is not taken to drop a commit — that is `--soft`.** `reset --hard`, `checkout --
103
+ <path>`, `restore <path>` and `clean -f` erase what is not committed. On a dirty tree the guard
104
+ refuses and names the files; the bypass is `# discard: <reason>` in the command.
105
+ - **The working tree is emptied before the PR opens, not after.** `git status --porcelain` is asked
106
+ in the same turn as the opening: what is uncommitted goes to the host by a commit before it, or
107
+ is named. A push after the opening moves the tip past the green run the body names, and for that
108
+ stretch the PR invites merging a tip nothing has checked.
109
+ - **A push into a branch that has an open PR is followed by rereading its body.** The statement
110
+ about a green run names the tip by its sha, and moving the tip makes it false in silence: no check
111
+ reads a PR body.
102
112
  - **The draft is lifted by a separate call — `az repos pr update --id <номер> --draft false`.** With
103
113
  it the executor answers for readiness: checks passed, no rework left, the work matches the work
104
114
  item. Lifting the draft and asking to merge are one turn, not two days.