@rt-tools/agent-kit 0.37.1 → 0.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/assets/checks/action-of.mjs +154 -0
- package/assets/checks/board-runs.github.mjs +40 -5
- package/assets/checks/check-board.github.mjs +38 -7
- package/assets/checks/check-state-next.mjs +22 -10
- package/assets/checks/check-turn-map.mjs +26 -6
- package/assets/checks/check-work-steps.mjs +4 -173
- package/assets/checks/decide.mjs +285 -0
- package/assets/checks/decision-table.json +21432 -0
- package/assets/checks/decision-table.mjs +495 -0
- package/assets/checks/epic-window.mjs +98 -0
- package/assets/checks/flow-condition.mjs +64 -0
- package/assets/checks/flow-data.mjs +135 -0
- package/assets/checks/flow-forecast.mjs +334 -0
- package/assets/checks/flow-guard-run.mjs +90 -0
- package/assets/checks/flow-guard.mjs +496 -0
- package/assets/checks/flow-model.mjs +271 -0
- package/assets/checks/flow-override.mjs +130 -0
- package/assets/checks/flow-plan.mjs +206 -0
- package/assets/checks/flow-scaffold.mjs +224 -0
- package/assets/checks/flow-step.mjs +495 -0
- package/assets/checks/flow-sync.mjs +296 -0
- package/assets/checks/flow-syntax.mjs +292 -0
- package/assets/checks/flow-verdict.mjs +227 -0
- package/assets/checks/merge-read.mjs +239 -0
- package/assets/checks/owner-nudges.mjs +389 -0
- package/assets/checks/push-inputs.mjs +59 -16
- package/assets/checks/record-count.mjs +437 -0
- package/assets/checks/record-recount.mjs +187 -0
- package/assets/checks/record-turn.mjs +155 -0
- package/assets/checks/task-flow-script.mjs +318 -0
- package/assets/checks/tree-assignment.mjs +26 -7
- package/assets/checks/work-result.mjs +362 -0
- package/assets/checks/work-steps-lib.mjs +205 -0
- package/assets/commands/night.md +6 -6
- package/assets/defaults/gate-map.sh +39 -12
- package/assets/defaults/merges.sh +48 -0
- package/assets/defaults/project.sh +6 -5
- package/assets/defaults/turn-map.md +23 -22
- package/assets/docs/GLOSSARY.md +5 -1
- package/assets/hooks/ask-judge.md +67 -0
- package/assets/hooks/browser-guard-device-id.sh +11 -9
- package/assets/hooks/browser-guard-no-asking.sh +12 -6
- package/assets/hooks/browser-guard-no-listing.sh +13 -7
- package/assets/hooks/browser-guard-no-other-drivers.sh +25 -17
- package/assets/hooks/browser-guard-require-select.sh +15 -15
- package/assets/hooks/commit-msg.sh +13 -3
- package/assets/hooks/conscience-guard.sh +9 -25
- package/assets/hooks/decide.sh +141 -0
- package/assets/hooks/deny-tail.sh +16 -11
- package/assets/hooks/dev-server-guard.sh +27 -20
- package/assets/hooks/dispatch.sh +47 -4
- package/assets/hooks/docs-guard.sh +31 -200
- package/assets/hooks/end-conversation-guard.sh +12 -21
- package/assets/hooks/epic-stop-guard.sh +54 -152
- package/assets/hooks/exam-guard.sh +32 -65
- package/assets/hooks/facts-docs.sh +221 -0
- package/assets/hooks/facts-flow.sh +173 -0
- package/assets/hooks/facts.sh +374 -0
- package/assets/hooks/flow-step-guard.sh +93 -0
- package/assets/hooks/git-guard-delivery-body.sh +4 -4
- package/assets/hooks/git-guard-delivery-conflict.sh +16 -10
- package/assets/hooks/git-guard-delivery-draft.sh +3 -3
- package/assets/hooks/git-guard-delivery-epic.sh +18 -9
- package/assets/hooks/git-guard-delivery-folder.sh +32 -7
- package/assets/hooks/git-guard-delivery-merge.sh +2 -2
- package/assets/hooks/git-guard-delivery-merged.sh +12 -1
- package/assets/hooks/git-guard-delivery-pipeline.sh +1 -1
- package/assets/hooks/git-guard-delivery-rerun.sh +44 -0
- package/assets/hooks/git-guard-delivery-signature.sh +82 -45
- package/assets/hooks/git-guard-delivery-task.sh +47 -0
- package/assets/hooks/git-guard-delivery.sh +112 -101
- package/assets/hooks/git-guard-discard.sh +8 -18
- package/assets/hooks/git-guard-main.sh +13 -19
- package/assets/hooks/git-guard-no-verify.sh +56 -16
- package/assets/hooks/git-guard-push-ahead.sh +39 -6
- package/assets/hooks/git-guard-push-marks.sh +262 -13
- package/assets/hooks/git-guard-push-tests.sh +58 -52
- package/assets/hooks/git-guard-tree-assignment.sh +7 -4
- package/assets/hooks/guard-note.sh +8 -6
- package/assets/hooks/handoff-entry-guard.sh +19 -38
- package/assets/hooks/handoff-write.sh +3 -1
- package/assets/hooks/hook-input.sh +0 -41
- package/assets/hooks/metric-marks.sh +19 -7
- package/assets/hooks/observe.sh +1 -1
- package/assets/hooks/override-write-guard.sh +27 -9
- package/assets/hooks/pre-push.sh +40 -12
- package/assets/hooks/prose-style-guard.sh +6 -19
- package/assets/hooks/pull-merges.sh +76 -0
- package/assets/hooks/push-ahead-call-guard.sh +447 -0
- package/assets/hooks/push-set.sh +38 -8
- package/assets/hooks/qa-dataid-guard.sh +7 -17
- package/assets/hooks/record-turn.sh +52 -0
- package/assets/hooks/rerun-guard.sh +11 -16
- package/assets/hooks/reuse-first-guard.sh +7 -21
- package/assets/hooks/role-calls.sh +25 -3
- package/assets/hooks/rule-source-guard.sh +54 -21
- package/assets/hooks/skill-gate-rearm.sh +18 -5
- package/assets/hooks/skill-gate.sh +156 -20
- package/assets/hooks/skill-loaded.sh +18 -3
- package/assets/hooks/sql-guard-target.sh +2 -2
- package/assets/hooks/sql-guard-write.sh +12 -12
- package/assets/hooks/sql-guard.sh +58 -16
- package/assets/hooks/task-context-load.sh +3 -1
- package/assets/hooks/task-flow-context.sh +5 -18
- package/assets/hooks/task-flow-draft-guard.sh +25 -74
- package/assets/hooks/task-flow-guard.sh +28 -130
- package/assets/hooks/tree-assignment-guard.sh +25 -14
- package/assets/hooks/turn-entry-load.sh +3 -1
- package/assets/hooks/turn-exit-guard.sh +92 -452
- package/assets/hooks/turn-exit-role.sh +3 -1
- package/assets/hooks/turn-judge.md +113 -0
- package/assets/hooks/window-fill-guard.sh +22 -41
- package/assets/patterns/doc-style-human.md +36 -76
- package/assets/patterns/git-workflow-commit.azure.md +9 -155
- package/assets/patterns/git-workflow-commit.github.md +11 -269
- package/assets/patterns/git-workflow-commit.gitlab.md +9 -161
- package/assets/patterns/git-workflow-docker.md +8 -231
- package/assets/patterns/git-workflow-freshness.md +8 -56
- package/assets/patterns/git-workflow-merge.md +6 -176
- package/assets/patterns/git-workflow-migration.md +5 -75
- package/assets/patterns/git-workflow-pr-body.github.md +6 -159
- package/assets/patterns/git-workflow-pr-ready.md +9 -70
- package/assets/patterns/git-workflow-pr.azure.md +13 -285
- package/assets/patterns/git-workflow-pr.github.md +13 -251
- package/assets/patterns/git-workflow-pr.gitlab.md +13 -286
- package/assets/patterns/git-workflow-restart.md +5 -42
- package/assets/patterns/git-workflow-secrets.md +10 -76
- package/assets/patterns/git-workflow-stack.md +7 -207
- package/assets/patterns/status-report-table.github.md +1 -1
- package/assets/patterns/task-flow-archive.md +12 -233
- package/assets/patterns/task-flow-close.md +16 -292
- package/assets/patterns/task-flow-cycle.md +13 -39
- package/assets/patterns/task-flow-graph.needs-graph.md +8 -62
- package/assets/patterns/task-flow-handoff.md +13 -161
- package/assets/patterns/task-flow-resume.md +18 -218
- package/assets/patterns/task-flow-start.md +9 -247
- package/assets/patterns/turn-entry-map.md +2 -2
- package/assets/pitfalls/agent-kit-extend.md +200 -0
- package/assets/pitfalls/agent-kit.2.md +323 -0
- package/assets/pitfalls/angular-patterns.md +98 -0
- package/assets/pitfalls/browser-verification.md +265 -0
- package/assets/pitfalls/component-structure.md +98 -0
- package/assets/pitfalls/dependencies.md +92 -0
- package/assets/pitfalls/deploy-flow.azure.md +171 -0
- package/assets/pitfalls/deploy-flow.github.md +211 -0
- package/assets/pitfalls/deploy-flow.gitlab.md +173 -0
- package/assets/pitfalls/doc-style-human.md +112 -0
- package/assets/pitfalls/doc-style.2.md +286 -0
- package/assets/pitfalls/entity-conventions.needs-admin.md +96 -0
- package/assets/pitfalls/entity-models.md +89 -0
- package/assets/pitfalls/epic-flow.md +92 -0
- package/assets/pitfalls/git-workflow-commit.azure.md +190 -0
- package/assets/pitfalls/git-workflow-commit.github.md +307 -0
- package/assets/pitfalls/git-workflow-commit.gitlab.md +196 -0
- package/assets/pitfalls/git-workflow-docker.md +275 -0
- package/assets/pitfalls/git-workflow-freshness.md +88 -0
- package/assets/pitfalls/git-workflow-hosting.azure.md +31 -0
- package/assets/pitfalls/git-workflow-hosting.github.md +32 -0
- package/assets/pitfalls/git-workflow-hosting.gitlab.md +31 -0
- package/assets/pitfalls/git-workflow-merge.md +220 -0
- package/assets/pitfalls/git-workflow-migration.md +103 -0
- package/assets/pitfalls/git-workflow-pr-body.github.md +185 -0
- package/assets/pitfalls/git-workflow-pr-ready.md +104 -0
- package/assets/pitfalls/git-workflow-pr.2.azure.md +172 -0
- package/assets/pitfalls/git-workflow-pr.2.github.md +184 -0
- package/assets/pitfalls/git-workflow-pr.2.gitlab.md +180 -0
- package/assets/pitfalls/git-workflow-pr.azure.md +159 -0
- package/assets/pitfalls/git-workflow-pr.github.md +107 -0
- package/assets/pitfalls/git-workflow-pr.gitlab.md +151 -0
- package/assets/pitfalls/git-workflow-push.azure.md +30 -0
- package/assets/pitfalls/git-workflow-push.github.md +30 -0
- package/assets/pitfalls/git-workflow-push.gitlab.md +30 -0
- package/assets/pitfalls/git-workflow-queue.azure.md +30 -0
- package/assets/pitfalls/git-workflow-queue.github.md +30 -0
- package/assets/pitfalls/git-workflow-queue.gitlab.md +30 -0
- package/assets/pitfalls/git-workflow-restart.md +72 -0
- package/assets/pitfalls/git-workflow-secrets.md +114 -0
- package/assets/pitfalls/git-workflow-stack.md +254 -0
- package/assets/pitfalls/git-workflow.2.azure.md +291 -0
- package/assets/pitfalls/git-workflow.2.github.md +294 -0
- package/assets/pitfalls/git-workflow.2.gitlab.md +278 -0
- package/assets/pitfalls/lib-layers.md +114 -0
- package/assets/pitfalls/lists.md +117 -0
- package/assets/pitfalls/mockups.needs-mockups.md +87 -0
- package/assets/pitfalls/navigation.md +94 -0
- package/assets/pitfalls/observability.needs-app.md +186 -0
- package/assets/pitfalls/platform-access.md +94 -0
- package/assets/pitfalls/queue-audit.github.md +78 -0
- package/assets/pitfalls/reuse-first.md +201 -0
- package/assets/pitfalls/spec-driven.2.md +318 -0
- package/assets/pitfalls/styling-bem.2.md +125 -0
- package/assets/pitfalls/task-flow-archive.md +265 -0
- package/assets/pitfalls/task-flow-close.2.md +166 -0
- package/assets/pitfalls/task-flow-close.md +167 -0
- package/assets/pitfalls/task-flow-cycle.md +73 -0
- package/assets/pitfalls/task-flow-graph.needs-graph.md +98 -0
- package/assets/pitfalls/task-flow-handoff.md +200 -0
- package/assets/pitfalls/task-flow-handover.md +30 -0
- package/assets/pitfalls/task-flow-owner.md +58 -0
- package/assets/pitfalls/task-flow-plan.md +29 -0
- package/assets/pitfalls/task-flow-resume.md +257 -0
- package/assets/pitfalls/task-flow-start.md +287 -0
- package/assets/pitfalls/task-flow.2.md +303 -0
- package/assets/pitfalls/task-flow.md +4 -4
- package/assets/pitfalls/testing.2.md +279 -0
- package/assets/pitfalls/turn-conduct.md +16 -17
- package/assets/pitfalls/typescript-conventions.md +161 -0
- package/assets/pitfalls/write-a-skill.md +128 -0
- package/assets/rules/angular-patterns.md +21 -86
- package/assets/rules/autonomous-work.md +2 -2
- package/assets/rules/browser-verification.md +28 -256
- package/assets/rules/component-structure.md +25 -87
- package/assets/rules/dependencies.md +20 -78
- package/assets/rules/deploy-flow.azure.md +26 -156
- package/assets/rules/deploy-flow.github.md +34 -200
- package/assets/rules/deploy-flow.gitlab.md +27 -159
- package/assets/rules/doc-style.md +32 -286
- package/assets/rules/entity-conventions.needs-admin.md +26 -82
- package/assets/rules/entity-models.md +14 -63
- package/assets/rules/epic-flow.md +24 -63
- package/assets/rules/git-workflow-hosting.azure.md +26 -0
- package/assets/rules/git-workflow-hosting.github.md +38 -0
- package/assets/rules/git-workflow-hosting.gitlab.md +27 -0
- package/assets/rules/git-workflow-push.azure.md +28 -0
- package/assets/rules/git-workflow-push.github.md +28 -0
- package/assets/rules/git-workflow-push.gitlab.md +28 -0
- package/assets/rules/git-workflow-queue.azure.md +23 -0
- package/assets/rules/git-workflow-queue.github.md +30 -0
- package/assets/rules/git-workflow-queue.gitlab.md +23 -0
- package/assets/rules/git-workflow.azure.md +21 -282
- package/assets/rules/git-workflow.github.md +24 -284
- package/assets/rules/git-workflow.gitlab.md +21 -269
- package/assets/rules/lib-layers.md +30 -103
- package/assets/rules/lists.md +21 -105
- package/assets/rules/mockups.needs-mockups.md +25 -64
- package/assets/rules/navigation.md +10 -69
- package/assets/rules/observability.needs-app.md +43 -172
- package/assets/rules/platform-access.md +28 -75
- package/assets/rules/queue-audit.github.md +25 -52
- package/assets/rules/reuse-first.md +20 -195
- package/assets/rules/spec-driven.md +35 -308
- package/assets/rules/styling-bem.md +20 -117
- package/assets/rules/task-flow-handover.md +24 -0
- package/assets/rules/task-flow-owner.md +34 -0
- package/assets/rules/task-flow-plan.md +38 -0
- package/assets/rules/task-flow.md +22 -300
- package/assets/rules/testing.md +32 -273
- package/assets/rules/turn-conduct.md +105 -106
- package/assets/rules/turn-entry.md +2 -2
- package/assets/rules/typescript-conventions.md +41 -147
- package/assets/samples/tasks/_template/plan.md +30 -6
- package/assets/samples/tasks/_template/progress.md +0 -1
- package/assets/skills/agent-kit-extend.md +25 -168
- package/assets/skills/agent-kit.md +27 -299
- package/assets/skills/write-a-skill.md +20 -106
- package/assets/task-flow/flow.js +184 -0
- package/assets/task-flow/flow.md +101 -0
- package/assets/task-flow/measure/agreement.mjs +24 -0
- package/assets/task-flow/measure/ci.mjs +184 -0
- package/assets/task-flow/measure/copy.mjs +22 -0
- package/assets/task-flow/measure/epic-of.mjs +50 -0
- package/assets/task-flow/measure/epic-text.mjs +35 -0
- package/assets/task-flow/measure/epic.mjs +114 -0
- package/assets/task-flow/measure/folder.mjs +16 -0
- package/assets/task-flow/measure/footprint.mjs +28 -0
- package/assets/task-flow/measure/grill.mjs +21 -0
- package/assets/task-flow/measure/host.mjs +8 -0
- package/assets/task-flow/measure/owner.mjs +27 -0
- package/assets/task-flow/measure/plan.mjs +27 -0
- package/assets/task-flow/measure/pr.mjs +20 -0
- package/assets/task-flow/measure/progress.mjs +50 -0
- package/assets/task-flow/measure/session.mjs +252 -0
- package/assets/task-flow/measure/task.mjs +23 -0
- package/assets/task-flow/measure/text.mjs +77 -0
- package/assets/task-flow/source/git.mjs +254 -0
- package/assets/task-flow/source/host.mjs +277 -0
- package/assets/task-flow/source/marks.mjs +56 -0
- package/assets/task-flow/source/owner.mjs +94 -0
- package/assets/task-flow/source/records.mjs +116 -0
- package/assets/task-flow/source/session.mjs +269 -0
- package/assets/task-flow/source/steps.mjs +28 -0
- package/assets/task-flow/source/tree.mjs +42 -0
- package/bin/agent-kit.d.ts.map +1 -1
- package/bin/agent-kit.js +30 -0
- package/bin/agent-kit.js.map +1 -1
- package/lib/agent-checks.d.ts +55 -0
- package/lib/agent-checks.d.ts.map +1 -0
- package/lib/agent-checks.js +221 -0
- package/lib/agent-checks.js.map +1 -0
- package/lib/assets.d.ts.map +1 -1
- package/lib/assets.js +7 -2
- package/lib/assets.js.map +1 -1
- package/lib/cargo.d.ts +29 -0
- package/lib/cargo.d.ts.map +1 -1
- package/lib/cargo.js +27 -1
- package/lib/cargo.js.map +1 -1
- package/lib/cascade.d.ts.map +1 -1
- package/lib/cascade.js +3 -1
- package/lib/cascade.js.map +1 -1
- package/lib/commands.d.ts.map +1 -1
- package/lib/commands.js +78 -2
- package/lib/commands.js.map +1 -1
- package/lib/config.d.ts +18 -0
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +18 -1
- package/lib/config.js.map +1 -1
- package/lib/epic-window-send.d.ts +74 -0
- package/lib/epic-window-send.d.ts.map +1 -0
- package/lib/epic-window-send.js +166 -0
- package/lib/epic-window-send.js.map +1 -0
- package/lib/hooks-map.d.ts +4 -0
- package/lib/hooks-map.d.ts.map +1 -1
- package/lib/hooks-map.js +2 -2
- package/lib/hooks-map.js.map +1 -1
- package/lib/integrity.d.ts +3 -0
- package/lib/integrity.d.ts.map +1 -1
- package/lib/integrity.js +7 -0
- package/lib/integrity.js.map +1 -1
- package/lib/metric-lines.d.ts +2 -1
- package/lib/metric-lines.d.ts.map +1 -1
- package/lib/metric-lines.js +49 -1
- package/lib/metric-lines.js.map +1 -1
- package/lib/metric-send-mark.d.ts +6 -3
- package/lib/metric-send-mark.d.ts.map +1 -1
- package/lib/metric-send-mark.js +15 -5
- package/lib/metric-send-mark.js.map +1 -1
- package/lib/metric-send.d.ts +6 -2
- package/lib/metric-send.d.ts.map +1 -1
- package/lib/metric-send.js +47 -13
- package/lib/metric-send.js.map +1 -1
- package/lib/metrics.d.ts +17 -0
- package/lib/metrics.d.ts.map +1 -1
- package/lib/metrics.js +26 -15
- package/lib/metrics.js.map +1 -1
- package/lib/observations.js +3 -3
- package/lib/observations.js.map +1 -1
- package/lib/outcomes.d.ts +5 -2
- package/lib/outcomes.d.ts.map +1 -1
- package/lib/outcomes.js +5 -4
- package/lib/outcomes.js.map +1 -1
- package/lib/push-gate.d.ts +13 -0
- package/lib/push-gate.d.ts.map +1 -1
- package/lib/push-gate.js +11 -7
- package/lib/push-gate.js.map +1 -1
- package/lib/push-set-usefulness.d.ts +78 -0
- package/lib/push-set-usefulness.d.ts.map +1 -0
- package/lib/push-set-usefulness.js +225 -0
- package/lib/push-set-usefulness.js.map +1 -0
- package/lib/sync.d.ts +10 -0
- package/lib/sync.d.ts.map +1 -1
- package/lib/sync.js +14 -1
- package/lib/sync.js.map +1 -1
- package/lib/work-result.d.ts +43 -0
- package/lib/work-result.d.ts.map +1 -0
- package/lib/work-result.js +39 -0
- package/lib/work-result.js.map +1 -0
- package/package.json +1 -1
- package/assets/hooks/claim-guard.sh +0 -212
- package/assets/hooks/grill-gate-ask.sh +0 -26
- package/assets/hooks/grill-gate-bypass.sh +0 -61
- package/assets/hooks/grill-gate-options.sh +0 -50
- package/assets/hooks/grill-gate.sh +0 -482
- package/assets/hooks/postmortem-guard.sh +0 -124
- package/assets/hooks/proposal-guard.sh +0 -154
- package/assets/hooks/stand-login-guard.sh +0 -107
- package/assets/hooks/turn-exit-epic.sh +0 -173
- package/assets/hooks/turn-exit-patterns.sh +0 -123
- package/assets/hooks/turn-exit-verdict.sh +0 -149
- package/assets/hooks/waiting-turn-guard.sh +0 -320
- package/assets/hooks/work-start-guard.sh +0 -175
|
@@ -1,328 +1,52 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: task-flow-close
|
|
3
3
|
kind: pattern
|
|
4
|
-
rule: task-flow
|
|
5
|
-
description: Pattern of rule task-flow. Load when bringing work to readiness — merging the product agreement into the domain spec, bringing the domain texts up to date with what was done, opening the PR as a draft or ready by its base and leaving draft.
|
|
4
|
+
rule: task-flow-handover
|
|
5
|
+
description: Pattern of rule task-flow-handover. Load when bringing work to readiness — merging the product agreement into the domain spec, bringing the domain texts up to date with what was done, opening the PR as a draft or ready by its base and leaving draft.
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# Closing the work
|
|
9
9
|
|
|
10
10
|
Pattern of the rule `task-flow`. What must be true meanwhile — the law
|
|
11
|
-
`docs/constitution/work-conduct.md`.
|
|
11
|
+
`docs/constitution/work-conduct.md`. Cold part: `pitfalls.md` — every section below whole, with its code and reasons.
|
|
12
12
|
|
|
13
13
|
## When to use
|
|
14
14
|
|
|
15
15
|
- The stages of the plan are closed.
|
|
16
|
-
- `npm run check:specs` listed the agreement in its "time to merge" section.
|
|
17
|
-
- The spec is measured for length before the merge and right after it: one already over the limit is
|
|
18
|
-
split by a commit of its own first, one that has grown is split by the same commit.
|
|
19
|
-
- The domain texts are up to date, and `product-strategist` reviews the work against its points.
|
|
20
|
-
- The gate suite is run whole — after the merge and the texts, not before them.
|
|
21
|
-
- The task folder is taken apart, and the PR opens — a draft or ready, by the base.
|
|
22
|
-
- The run on the head is green, and the draft is lifted from the PR.
|
|
23
|
-
|
|
24
|
-
Taking the folder itself apart is not here — that is pattern `task-flow-archive`. It stands between
|
|
25
|
-
the suite run and opening the PR: the PR opens behind work already cleaned up.
|
|
26
|
-
|
|
27
|
-
**The run stands after merging the agreement and bringing the texts up to date, not before them.**
|
|
28
|
-
Both steps cost minutes, and the run costs the session window. A session that spent it on the run
|
|
29
|
-
hit the fill threshold on four binding lines, and there was nothing left to write them with. The
|
|
30
|
-
second argument is stronger than the first — a run that goes after the merge checks the merge
|
|
31
|
-
itself; going before it, it looks at a state of the tree that will not reach main.
|
|
32
16
|
|
|
33
17
|
## State `этапы-кончились`: the agreement merges into the domain spec
|
|
34
18
|
|
|
35
|
-
By one of the last commits of the branch, before the PR opens. By then the code is written, so the
|
|
36
|
-
`file:symbol` bindings are known — the rule enters the domain spec checkable at once.
|
|
37
|
-
|
|
38
|
-
```bash
|
|
39
|
-
npm run check:specs # the "time to merge" section names the ready directories
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
**The spec is measured for length before the merge, and again in the same turn after it.** Merging
|
|
43
|
-
is a known move that grows a spec. One merge took it to 572 lines against a limit of 500, and the
|
|
44
|
-
executor learned of it from the push guard's refusal — after the commit. One that has grown is split
|
|
45
|
-
into subdomains right here, not on the push.
|
|
46
|
-
|
|
47
|
-
A spec grows by direct edits too, and a measure taken only after the merge leaves that excess to
|
|
48
|
-
every next merge: one domain spec stood at 885 lines and its scenarios at 1293 before any of nine
|
|
49
|
-
waiting agreements. So the measure goes first: a spec already over the limit is split by a commit
|
|
50
|
-
of its own, and the agreement merges after it. The same holds for a rule or a scenario added to a
|
|
51
|
-
spec directly, with no agreement: the room is measured before the edit, not learned from the push
|
|
52
|
-
set after the work.
|
|
53
|
-
|
|
54
|
-
The order of the move:
|
|
55
|
-
|
|
56
|
-
- the rules from `proposed/<фича>/spec.md` are appended to the domain's `spec.md`, into its
|
|
57
|
-
sections;
|
|
58
|
-
- the scenarios move to the domain's `scenarios.md` **with their old numbers**: test titles refer to
|
|
59
|
-
them, and renumbering breaks the audit;
|
|
60
|
-
- scenarios whose promise the work rewrote are edited in place: the number stays, the text is new,
|
|
61
|
-
the test title is edited by the same commit. Work that removes a technique rewrites a written
|
|
62
|
-
promise more often than it adds a new one, and a list naming one append does not name this edit at
|
|
63
|
-
all;
|
|
64
|
-
- the bindings from `proposed/<фича>/implementation.md` are appended to the domain's
|
|
65
|
-
`implementation.md` and set on the code that now exists;
|
|
66
|
-
- the laws the feature declared in its header are appended to the header of the domain spec;
|
|
67
|
-
- the `proposed/<фича>/` directory is deleted, and the line about the feature is removed from the
|
|
68
|
-
"proposed, not yet rolled out" section of `docs/specs/README.md`;
|
|
69
|
-
- the domain did not exist yet — `proposed/` is replaced by a full spec, and the domain gets a row
|
|
70
|
-
in the table of `docs/specs/README.md`.
|
|
71
|
-
|
|
72
|
-
The work went in several tasks — the merge goes in the last of them. Which one is last is seen in
|
|
73
|
-
the epic plan; a closed epic leaves for the archive or is deleted.
|
|
74
|
-
|
|
75
|
-
```bash
|
|
76
|
-
npm run check:specs # after the merge: the bindings are in place, no scenario is lost
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
**Next move:** after the merged agreement, in the same turn, come the domain texts — the rules,
|
|
80
|
-
patterns and sections the work touched.
|
|
19
|
+
By one of the last commits of the branch, before the PR opens. By then the code is written, so the `file:symbol` bindings are known — the rule enters the domain spec checkable at once.
|
|
81
20
|
|
|
82
21
|
## State `этапы-кончились`: the domain texts are brought up to what was done
|
|
83
22
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
What to re-read is taken from the plan section that names what the work touches: the specs, laws and
|
|
89
|
-
rules along its footprint stand there. What surfaced along the way is added. The whole constitution
|
|
90
|
-
and all the rules need not be read.
|
|
91
|
-
|
|
92
|
-
| Kind of text | What is done with it |
|
|
93
|
-
| --- | --- |
|
|
94
|
-
| the domain spec and its subdomains | a new feature gets a rule, a scenario and a binding; what is now included leaves "What is not included" |
|
|
95
|
-
| a rule and its `implementation.md` | a new statement with a `file:symbol` binding; a lifted one leaves together with its binding line |
|
|
96
|
-
| a pattern | code that diverged from the tree is fixed; a new technique is appended as a section |
|
|
97
|
-
| an application law and a general law | **the file is not edited**: the owner gets the text of the article, the work goes on without it |
|
|
98
|
-
| the product overview document | a new feature is appended as a line; the line about a lifted one is edited |
|
|
99
|
-
|
|
100
|
-
What is stale lies most often in four places, and all four are read whole:
|
|
101
|
-
|
|
102
|
-
- **"What of the law is not here" in a rule.** The spec audit does not read this section, so an
|
|
103
|
-
untruth lives there as long as it likes;
|
|
104
|
-
- **"What is not included" in a domain spec.** A task boundary was written there, and the task is
|
|
105
|
-
long closed;
|
|
106
|
-
- **"Where it lives" in a rule.** Files move, the paths in the table stay;
|
|
107
|
-
- **A statement of a companion about what the tree does not have.** Written before the subject
|
|
108
|
-
exists, it lives on words about emptiness, and nobody rereads it once the subject appears.
|
|
109
|
-
|
|
110
|
-
```bash
|
|
111
|
-
# where the rule and the specs speak of what the work touched
|
|
112
|
-
grep -rn -i "<слово работы>" <каталог правил>/*/SKILL.md docs/specs/*/spec.md
|
|
113
|
-
# the section nothing audits — read whole by eye
|
|
114
|
-
grep -rn -A3 "What of the law is not here" <каталог правил>/<правило>/SKILL.md
|
|
115
|
-
# the companions: statements about emptiness and counts, checked by nothing
|
|
116
|
-
grep -rn -iE "(нет|ни одного|пока|всего|записей) [0-9]*" <каталог правил>/*/implementation.md
|
|
117
|
-
```
|
|
118
|
-
|
|
119
|
-
**A law is not edited in the branch.** An article of a law is an agreement with the owner, and the
|
|
120
|
-
owner changes it. The work diverged from it — the ready-made text of the article is written: into
|
|
121
|
-
the progress and into the PR body. The law file is edited after the answer, an application law too.
|
|
122
|
-
|
|
123
|
-
What was done at this step is written into the PR body: what was re-read, what was changed, and if
|
|
124
|
-
nothing was changed — why. The form of the section — pattern `git-workflow-pr-body`. The body fits
|
|
125
|
-
the host's length limit — Azure DevOps takes 4000 characters — so the report is one line per text.
|
|
126
|
-
|
|
127
|
-
**The role `product-strategist` reviews the work while the folder still lies here.** It runs the sign
|
|
128
|
-
of each point in the plan and tries to prove the miss. A proved miss is fixed now or named in the PR
|
|
129
|
-
body next to the table of points. Before the PR of an epic the same call judges the milestone.
|
|
130
|
-
|
|
131
|
-
**The role `goal-critic` compares the result with the owner's words in the same state.** It gets the
|
|
132
|
-
words verbatim and the result, without the plan or an account of the work. A session calls it before
|
|
133
|
-
saying the work is done. Its reply is not reworded: a disagreement goes under it as a session line.
|
|
134
|
-
|
|
135
|
-
**Next move:** the updated texts are committed, and in the same turn the task folder is taken apart
|
|
136
|
-
— by the last commit of the branch, pattern `task-flow-archive`.
|
|
23
|
+
- **"What of the law is not here" in a rule.**
|
|
24
|
+
- **"What is not included" in a domain spec.**
|
|
25
|
+
- **"Where it lives" in a rule.**
|
|
26
|
+
- **A statement of a companion about what the tree does not have.**
|
|
137
27
|
|
|
138
28
|
## State `папка-разобрана`: the work is handed in by a PR
|
|
139
29
|
|
|
140
|
-
The folder is taken apart and pushed, the work is cleaned up behind — and the PR opens.
|
|
141
|
-
opens as a draft is decided by the bases the pipeline wakes for: where a run comes, a draft, and it
|
|
142
|
-
is lifted on the green; where none comes, the PR opens ready and the push gate is the check behind
|
|
143
|
-
it. From then the work waits for the owner, and the session does not end on it: the queue audit
|
|
144
|
-
before the opening and the background rules review after it — pattern `task-flow-archive`; the
|
|
145
|
-
next task is taken by the same move, pattern `task-flow-resume`.
|
|
146
|
-
|
|
147
|
-
**Readiness is measured by what is told, not by what has passed.** A check the executor cannot pass
|
|
148
|
-
for a reason outside the work — a refused permission, an unreachable environment, a key held by a
|
|
149
|
-
person — does not cancel readiness: it goes into "Not run" and into "Remaining step" with the
|
|
150
|
-
reason. Silence about it reads as passed.
|
|
151
|
-
|
|
152
|
-
There is no state on disk any more — the progress left with the folder. This is the price of the
|
|
153
|
-
cleanup standing before the PR. The tail — open the PR, wait for the run, lift the draft, ask to
|
|
154
|
-
merge, and without a run the first and the last of those — is held by this pattern, not by a line in
|
|
155
|
-
a file. The guard counts the work
|
|
156
|
-
handed in by the branch history: a folder removed by its commit is the sign.
|
|
30
|
+
The folder is taken apart and pushed, the work is cleaned up behind — and the PR opens.
|
|
157
31
|
|
|
158
32
|
### The section on the remaining step is written in the PR body, not appended later
|
|
159
33
|
|
|
160
|
-
It stands there from the minute of opening. Saying it aloud is not enough, and the requirement does
|
|
161
|
-
not hold on that alone. A message lives until the next message, and the merge decision is taken on
|
|
162
|
-
the PR page — there is no conversation there at all. The owner merges as soon as they see green, and
|
|
163
|
-
a PR opened without the section goes into main before the section is appended. That is how a task
|
|
164
|
-
folder once went unsorted while the run was going. The section stands last and says exactly one
|
|
165
|
-
thing: is anything left before the merge.
|
|
166
|
-
|
|
167
|
-
```markdown
|
|
168
|
-
## Оставшийся шаг
|
|
169
|
-
|
|
170
|
-
Папка задачи разобрана коммитом `<sha>` — за работой убрано. Осталось дождаться прогона и снять
|
|
171
|
-
черновик; до этого кнопка слияния заблокирована хостингом.
|
|
172
|
-
```
|
|
173
|
-
|
|
174
|
-
The draft is lifted — the section is rewritten by the same call that edits the body:
|
|
175
|
-
|
|
176
|
-
```markdown
|
|
177
|
-
## Оставшийся шаг
|
|
178
|
-
|
|
179
|
-
Не осталось: прогон зелёный, черновик снят. Можно вливать.
|
|
180
|
-
```
|
|
181
|
-
|
|
182
|
-
Where the pipeline does not wake for this base, the PR opens with the section already in this
|
|
183
|
-
second form: nothing is left to wait for, and the check standing behind it is the push gate.
|
|
184
|
-
|
|
185
|
-
```markdown
|
|
186
|
-
## Оставшийся шаг
|
|
187
|
-
|
|
188
|
-
Не осталось: набор проверок перед push зелёный, CI на эту базу не ходит. Можно вливать.
|
|
189
|
-
```
|
|
190
|
-
|
|
191
|
-
The section heading and the words of both samples are written in the language of the PR, not the
|
|
192
|
-
language of the pattern. The heading is named by the tree in its profile, `RT_PULL_BODY_SECTION`,
|
|
193
|
-
and is taken from there, not from the samples above. What is carried over whole is the order of
|
|
194
|
-
thoughts, not the words. The same holds for the messages to the owner below: they are samples of
|
|
195
|
-
**what** is said, not of which words.
|
|
196
|
-
|
|
197
|
-
The section is neither left empty nor removed altogether: a missing section and "no steps left" read
|
|
198
|
-
the same and mean different things. The full sample of a PR body — in the pattern for creating a
|
|
199
|
-
commit and a PR, if the tree laid it out.
|
|
200
|
-
|
|
201
|
-
Where the tree laid out the delivery guard, it reads the body straight from the opening command —
|
|
202
|
-
passed as an argument or as a file — and refuses the call together with everything else that does
|
|
203
|
-
not match. It judges the section by the heading the profile names; unnamed, the section is not
|
|
204
|
-
judged at all. Without the guard the section is held only by whoever writes the body.
|
|
205
|
-
The work queue audit still does not read the body: the miss is caught at the minute of opening, that
|
|
206
|
-
is, where one call still fixes it.
|
|
207
|
-
|
|
208
|
-
The difference between the section and the spoken word is one, and it is all. The owner reads a
|
|
209
|
-
message only if they return to the conversation, and the section they see where they look when
|
|
210
|
-
pressing the button.
|
|
34
|
+
It stands there from the minute of opening. Saying it aloud is not enough, and the requirement does not hold on that alone.
|
|
211
35
|
|
|
212
36
|
### The messages to the owner, and the run between them
|
|
213
37
|
|
|
214
|
-
Where the pipeline wakes for this base both are mandatory, and the order between them is one.
|
|
215
|
-
Neither replaces the other: the first says the work is handed in and what it waits for, the second
|
|
216
|
-
— that it is ready. Where no run comes, there is nothing between them, and they are written as one.
|
|
217
|
-
|
|
218
|
-
Right after the PR opens:
|
|
219
|
-
|
|
220
|
-
```
|
|
221
|
-
PR #<номер> открыт черновиком, папка задачи уже разобрана — за работой убрано. Жду прогона:
|
|
222
|
-
пока он идёт, о работе известно только то, что она запушена. Как закончится — сниму черновик и
|
|
223
|
-
попрошу тебя влить. Следующая задача уже взята: #<номер>, ветка <имя ветки>.
|
|
224
|
-
```
|
|
225
|
-
|
|
226
|
-
Где CI на эту базу не просыпается, оба сообщения складываются в одно — его пишут тем же ходом,
|
|
227
|
-
каким открыли PR:
|
|
228
|
-
|
|
229
|
-
```
|
|
230
|
-
PR #<номер> открыт и готов к слиянию: набор проверок перед push зелёный, папка задачи разобрана.
|
|
231
|
-
CI на PR в ветку эпика у нас не ходит — влей его, пожалуйста. Следующая задача уже взята:
|
|
232
|
-
#<номер>, ветка <имя ветки>.
|
|
233
|
-
```
|
|
234
|
-
|
|
235
|
-
The last line names what is taken, not an intent to take, and that is no figure of speech. A sample
|
|
236
|
-
that ends with a promise is carried out as a promise: the session says the last line and ends the
|
|
237
|
-
turn on it. The message looks complete, and nobody sees the emptiness behind it, neither the owner
|
|
238
|
-
nor the session itself. A sample that ends with the number of a created branch cannot be carried out
|
|
239
|
-
so: while there is no branch, there is nothing to write the line with. The incident analysis —
|
|
240
|
-
`2026-08-16-next-task-said-not-taken.md`.
|
|
241
|
-
|
|
242
|
-
The run is green, the draft is lifted:
|
|
243
|
-
|
|
244
|
-
```
|
|
245
|
-
PR #<номер> готов к слиянию: прогон зелёный, черновик снят. Влей его, пожалуйста.
|
|
246
|
-
```
|
|
247
|
-
|
|
248
|
-
The draft is lifted before the second message, not after it. The owner, having read the request to
|
|
249
|
-
merge, goes to press the button — on a draft it is locked, and the turn comes back to the executor
|
|
250
|
-
for nothing.
|
|
251
|
-
|
|
252
|
-
The run is red — the message is the same in form, but speaks of the red and of what is being done
|
|
253
|
-
about it; there is no request to merge in it. The request sounds once and only when the work is
|
|
254
|
-
ready whole: said ahead of time, it stops meaning anything, and the owner returns to the old way —
|
|
255
|
-
merging by a green page.
|
|
256
|
-
|
|
257
|
-
Between the two messages the executor does not wait: the work is handed in for review, and the next
|
|
258
|
-
task is taken by the same move. They return to the PR by the turn that reads the end of the run.
|
|
38
|
+
Where the pipeline wakes for this base both are mandatory, and the order between them is one. Neither replaces the other: the first says the work is handed in and what it waits for, the second — that it is ready.
|
|
259
39
|
|
|
260
40
|
### An edit after remarks goes without a plan on disk
|
|
261
41
|
|
|
262
|
-
The review returned remarks, or the run went red — it is fixed in the same branch.
|
|
263
|
-
longer there, and the folder is not assembled again: the progress guard lets the edit through on the
|
|
264
|
-
sign from the branch history. What exactly is fixed is taken from the remark, not from the plan.
|
|
265
|
-
|
|
266
|
-
A merge left in the working copy is either pushed in the same turn or not made — otherwise the owner
|
|
267
|
-
sees the old state and decides by it.
|
|
268
|
-
|
|
269
|
-
**Next move:** the run is green and there are no remarks — the draft is lifted, and the owner is
|
|
270
|
-
told the work is ready. Where no run comes, the same move follows the fix itself.
|
|
42
|
+
The review returned remarks, or the run went red — it is fixed in the same branch.
|
|
271
43
|
|
|
272
44
|
## State `задачи-эпика-кончились`: the epic is handed in by a request into the main branch
|
|
273
45
|
|
|
274
|
-
Every task of the epic is merged into its branch and every folder is taken apart — only then does
|
|
275
|
-
the epic branch get a request of its own, and its base is the main branch. Until that minute the
|
|
276
|
-
branch is not offered to a person at all: the merge button on it means the whole epic, and there is
|
|
277
|
-
nothing to press it for while a task is still being written.
|
|
278
|
-
|
|
279
|
-
Before opening, three things are checked by a command rather than by memory:
|
|
280
|
-
|
|
281
|
-
```bash
|
|
282
|
-
gh pr list --base <ветка эпика> --state open # no task of the epic is left unmerged
|
|
283
|
-
git ls-tree -r --name-only HEAD -- docs/tasks/ # no folder of a task of this epic is left
|
|
284
|
-
git fetch origin && git merge origin/main # the main branch is merged into the epic branch
|
|
285
|
-
```
|
|
286
|
-
|
|
287
|
-
A folder left in the epic branch reaches the main branch with it: what one branch needed becomes the
|
|
288
|
-
tree's for good. A foreign folder, arrived with a merge of the main branch, is not touched.
|
|
289
|
-
|
|
290
|
-
**A step of the milestone that the merge does not make gets a holder before the request opens.** A
|
|
291
|
-
release, a rollout, an install in the consumers and a task taken out of the epic belong to no task
|
|
292
|
-
of it, and after the merge nothing keeps them: each becomes a task in the work queue in the same
|
|
293
|
-
turn, and the body of the request names their numbers.
|
|
294
|
-
|
|
295
|
-
The body is written the same way as a task's, and its "Что сделано" is the list of the tasks by
|
|
296
|
-
number: the reviewer opens one page instead of five. The plan of the epic stays in the tree — it
|
|
297
|
-
outlives the branch.
|
|
298
|
-
|
|
299
|
-
**Next move:** the request is open as a draft, the run is awaited, the draft is lifted, and the
|
|
300
|
-
owner is asked to merge — by the number, in one turn.
|
|
46
|
+
Every task of the epic is merged into its branch and every folder is taken apart — only then does the epic branch get a request of its own, and its base is the main branch.
|
|
301
47
|
|
|
302
48
|
## Common misses
|
|
303
49
|
|
|
304
|
-
- **The texts are edited before the folder is taken apart:**
|
|
305
|
-
|
|
306
|
-
- **
|
|
307
|
-
whole even if the section empties; a reason the article lacks is appended to it.
|
|
308
|
-
- **The PR body stays older than the taking-apart.** The taking-apart is the last commit of the
|
|
309
|
-
branch and makes untrue everything the body promised to do before the merge; it is edited in the
|
|
310
|
-
same turn.
|
|
311
|
-
- **A rule statement is lifted together with its binding line.** The link goes by text, and either
|
|
312
|
-
half alone reddens the spec audit.
|
|
313
|
-
- **The section "What of the law is not here" is read by eye, grep does not help here.** The word
|
|
314
|
-
to search for is not the one expected, and the untruth is not where the theme word leads.
|
|
315
|
-
- **"Audited" cannot be said without opening the file.** The rule is read whole: a stale statement
|
|
316
|
-
stands among true ones and differs by nothing.
|
|
317
|
-
- **The merge is not done after the merge into main:** main then holds a "proposed, not rolled out" section with what has worked for a month.
|
|
318
|
-
- **Scenario numbers are not renumbered at the merge.** The id is the key of the link to the tests.
|
|
319
|
-
- **"What is not included" is read whole after the merge, not appended to.** The feature's
|
|
320
|
-
boundaries land next to the domain's, and the line "this section does not exist yet" becomes a lie
|
|
321
|
-
by the very work that merges it. The spec audit does not look there.
|
|
322
|
-
- **One's own line of the work queue audit is found by name** — by the task number and the branch
|
|
323
|
-
name: the audit answers for the whole tree.
|
|
324
|
-
- **The pair "size label — line in the epic plan" breaks from both sides.** A task on the trail of a
|
|
325
|
-
closed one inherits the label without the line about sessions, and a closed epic takes the line
|
|
326
|
-
away from everyone who carries it.
|
|
327
|
-
- **A rule without a binding does not enter the domain spec.** Nothing carries it out, so it is an
|
|
328
|
-
intent, and its place is the domain's open questions.
|
|
50
|
+
- **The texts are edited before the folder is taken apart:**
|
|
51
|
+
- **A decisions entry repeating a rule's article word for word is no reason next to it.**
|
|
52
|
+
- **The PR body stays older than the taking-apart.**
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: task-flow-cycle
|
|
3
3
|
kind: pattern
|
|
4
|
-
rule: task-flow
|
|
5
|
-
description: Pattern of rule task-flow. Load when an edit of a rule, a hook, a check or a role is chosen and when its result is judged. The worst driver from the report, one metric and its direction in the task, the verdict from the next report, and the plain name of an edit that moved nothing.
|
|
4
|
+
rule: task-flow-owner
|
|
5
|
+
description: Pattern of rule task-flow-owner. Load when an edit of a rule, a hook, a check or a role is chosen and when its result is judged. The worst driver from the report, one metric and its direction in the task, the verdict from the next report, and the plain name of an edit that moved nothing.
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# The improvement cycle
|
|
9
9
|
|
|
10
10
|
Pattern of the rule `task-flow`. What must be true meanwhile — the law
|
|
11
|
-
`docs/constitution/work-conduct.md`.
|
|
11
|
+
`docs/constitution/work-conduct.md`. Cold part: `pitfalls.md` — every section below whole, with its code and reasons.
|
|
12
12
|
|
|
13
13
|
## When to use
|
|
14
14
|
|
|
@@ -23,51 +23,25 @@ of something broken is not an improvement and needs no cycle: its task names the
|
|
|
23
23
|
|
|
24
24
|
### The report opens the cycle
|
|
25
25
|
|
|
26
|
-
The cycle begins with the numbers, not with an idea of what to improve.
|
|
27
|
-
|
|
28
|
-
```bash
|
|
29
|
-
npx agent-kit metrics
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
The worst driver of the main metric is named with its numbers: which resource, how many refusals,
|
|
33
|
-
runs or minutes. A tree that sends its numbers reads the same in the receiver over all its copies. No
|
|
34
|
-
data means no cycle: the text says so, and nothing is chosen by a guess.
|
|
26
|
+
The cycle begins with the numbers, not with an idea of what to improve. The worst driver of the main metric is named with its numbers: which resource, how many refusals, runs or minutes. A tree that sends its numbers reads the same in the receiver over all its copies.
|
|
35
27
|
|
|
36
28
|
### One task, one metric, one direction
|
|
37
29
|
|
|
38
|
-
The
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
**Metric:** empty refusals of `git-guard-push`, down. Baseline: 0.42 over 30 days, noise 0.05.
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
- **The direction is a word, not a target.** A target needs a baseline first, and two weeks of data
|
|
45
|
-
or ten accepted tasks come before one.
|
|
46
|
-
- **Two metrics mean two tasks.** Two edits in one release cannot be told apart in the next report.
|
|
47
|
-
- **The edit does not raise its own numbers.** The observations are not edited, and a metric is not
|
|
48
|
-
redefined by the task that is judged by it.
|
|
30
|
+
- **The direction is a word, not a target.**
|
|
31
|
+
- **Two metrics mean two tasks.**
|
|
32
|
+
- **The edit does not raise its own numbers.**
|
|
49
33
|
|
|
50
34
|
### The next report gives the verdict
|
|
51
35
|
|
|
52
|
-
The
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
- **The executor who made the edit gives no verdict.** The role `goal-critic` reads the numbers.
|
|
56
|
-
- **A movement below the noise is not a result.** The noise is the spread of the metric between the
|
|
57
|
-
weeks of the baseline, and it is named with it.
|
|
36
|
+
- **The executor who made the edit gives no verdict.**
|
|
37
|
+
- **A movement below the noise is not a result.**
|
|
58
38
|
|
|
59
39
|
### An edit that moved nothing is named so
|
|
60
40
|
|
|
61
|
-
The report says «не сдвинулось», with the two numbers. It is not reworded as a partial success and not
|
|
62
|
-
explained by the days being unusual. Such an edit is reverted or kept by a decision of the owner, and
|
|
63
|
-
the next cycle starts from the report again.
|
|
41
|
+
The report says «не сдвинулось», with the two numbers. It is not reworded as a partial success and not explained by the days being unusual. Such an edit is reverted or kept by a decision of the owner, and the next cycle starts from the report again.
|
|
64
42
|
|
|
65
43
|
## Common misses
|
|
66
44
|
|
|
67
|
-
- **A metric picked after the edit.**
|
|
68
|
-
|
|
69
|
-
- **
|
|
70
|
-
repeated mistakes.
|
|
71
|
-
- **A rising count taken for a worse rule.** More refusals also come from more work, and from a
|
|
72
|
-
repair that widened what a guard reads: a guard that starts seeing a new place refuses more and is
|
|
73
|
-
right. A share is read against its denominator, and a repair names no metric at all.
|
|
45
|
+
- **A metric picked after the edit.**
|
|
46
|
+
- **Reading one's own tree as the package.**
|
|
47
|
+
- **A rising count taken for a worse rule.**
|
|
@@ -15,84 +15,30 @@ the code. It answers relations, not behaviour. The tool is not part of the packa
|
|
|
15
15
|
is laid out only to a tree that names the trait `graph`. A copy that names the trait and has no
|
|
16
16
|
artefact on disk — a fresh clone, a new working tree — builds it by `graphify update .` before the
|
|
17
17
|
first exploration of the turn, or the turn names that there is no graph, and none of the steps below
|
|
18
|
-
applies.
|
|
18
|
+
applies. Cold part: `pitfalls.md` — every section below whole, with its code and reasons.
|
|
19
19
|
|
|
20
20
|
## When to use
|
|
21
21
|
|
|
22
22
|
- The first exploration of a domain in a turn, before reading files one by one.
|
|
23
|
-
- Before an edit of a shared symbol: who calls, imports or re-exports it.
|
|
24
|
-
- A question of the shape of the tree: which files belong to a domain, where the procedures of a
|
|
25
|
-
service lie.
|
|
26
23
|
|
|
27
24
|
## Freshness
|
|
28
25
|
|
|
29
|
-
The build records the commit it was made from. It is compared with the head in every turn, before
|
|
30
|
-
the first exploration:
|
|
31
|
-
|
|
32
|
-
```bash
|
|
33
|
-
python3 -c "import json;print(json.load(open('graphify-out/graph.json'))['built_at_commit'])"
|
|
34
|
-
git rev-parse HEAD
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
Equal — the graph describes the head. Behind — the graph is stale, and the difference is read before
|
|
38
|
-
anything else: it names the files whose relations the graph no longer knows.
|
|
39
|
-
|
|
40
|
-
```bash
|
|
41
|
-
git log --oneline --stat <built_at_commit>..HEAD
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
A tree that keeps the graph in history is always one commit behind: the graph comes in the commit
|
|
45
|
-
after the one it was built from. A difference that holds only graph files is that commit, and the
|
|
46
|
-
graph describes the head; the graph is stale when the difference holds a code file.
|
|
47
|
-
|
|
48
|
-
A rebuild re-extracts code files and calls no model:
|
|
49
|
-
|
|
50
|
-
```bash
|
|
51
|
-
graphify update .
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
A stale graph not rebuilt is not a source: the turn names why it was not rebuilt, and no answer
|
|
55
|
-
cites it. A turn where the graph exists and was not used names one of two reasons: the answer is
|
|
56
|
-
about behaviour, numbers or texts, or the graph is stale and was not rebuilt.
|
|
26
|
+
The build records the commit it was made from. It is compared with the head in every turn, before the first exploration: Equal — the graph describes the head. Behind — the graph is stale, and the difference is read before anything else: it names the files whose relations the graph no longer knows.
|
|
57
27
|
|
|
58
28
|
## The inventory
|
|
59
29
|
|
|
60
|
-
Nodes carry the file they came from. Listing them shows a domain whole: files, classes, procedures,
|
|
61
|
-
functions.
|
|
62
|
-
|
|
63
|
-
```bash
|
|
64
|
-
python3 -c "import json,collections;g=json.load(open('graphify-out/graph.json'));c=collections.Counter(n.get('source_file','') for n in g['nodes'] if '<domain>' in n.get('source_file',''));print('\n'.join(f'{v:5d} {k}' for k,v in c.most_common()))"
|
|
65
|
-
```
|
|
30
|
+
Nodes carry the file they came from. Listing them shows a domain whole: files, classes, procedures, functions.
|
|
66
31
|
|
|
67
32
|
## The relations
|
|
68
33
|
|
|
69
|
-
|
|
70
|
-
graphify explain "<node>" # a node and its neighbours
|
|
71
|
-
graphify affected "<symbol>" --depth 2 # who depends on it, reverse traversal
|
|
72
|
-
graphify path "<caller>" "<callee>" # the chain between two nodes
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
A node is named by a file name or a symbol, not by a path: `board.mjs` is found, `tools/board.mjs`
|
|
76
|
-
is not. `explain` answers with `imports`, `imports_from`, `calls`, `contains` and `re_exports`;
|
|
77
|
-
`affected` is the reverse traversal an edit of a shared symbol needs.
|
|
34
|
+
A node is named by a file name or a symbol, not by a path: `board.mjs` is found, `tools/board.mjs` is not. `explain` answers with `imports`, `imports_from`, `calls`, `contains` and `re_exports`; `affected` is the reverse traversal an edit of a shared symbol needs.
|
|
78
35
|
|
|
79
36
|
## What the graph never answers
|
|
80
37
|
|
|
81
|
-
|
|
82
|
-
- The body of an `async function*`: the extraction may leave it out, and a function absent from the
|
|
83
|
-
graph is not absent from the code.
|
|
84
|
-
- A template, a style sheet, a generated file: often outside the extraction.
|
|
85
|
-
- The meaning of a document: document nodes are headings, not the text under them.
|
|
86
|
-
- A permission or an enum value: names are nodes, strings are not.
|
|
38
|
+
A constant, a limit, a number: values are not nodes. The body of an `async function*`: the extraction may leave it out, and a function absent from the graph is not absent from the code. A template, a style sheet, a generated file: often outside the extraction.
|
|
87
39
|
|
|
88
40
|
## Common misses
|
|
89
41
|
|
|
90
|
-
- **A free-text query looks like the entry point and is not.**
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
- **A barrel file distorts a path.** `index.ts` nodes stand between a caller and a callee, and
|
|
94
|
-
`graphify path` returns a chain through re-exports that no reader would walk. `affected` on the
|
|
95
|
-
symbol is used instead, and the relations are read.
|
|
96
|
-
- **A rebuild after deleted code keeps the old graph.** `graphify update` does not overwrite
|
|
97
|
-
`graph.json` when the rebuild has fewer nodes, and `built_at_commit` stays old: after an edit that
|
|
98
|
-
removes code it is run with `--force`, and the commit is compared again.
|
|
42
|
+
- **A free-text query looks like the entry point and is not.**
|
|
43
|
+
- **A barrel file distorts a path.**
|
|
44
|
+
- **A rebuild after deleted code keeps the old graph.**
|