@rt-tools/agent-kit 0.37.0 → 0.38.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-pull-state.github.mjs +82 -13
- package/assets/checks/board-runs.github.mjs +40 -5
- package/assets/checks/board.github.mjs +1 -1
- package/assets/checks/check-board.github.mjs +58 -19
- package/assets/checks/check-specs.mjs +2 -2
- 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 +21365 -0
- package/assets/checks/decision-table.mjs +495 -0
- package/assets/checks/epic-table.github.mjs +4 -3
- package/assets/checks/epic-window.mjs +98 -0
- package/assets/checks/flow-condition.mjs +64 -0
- package/assets/checks/flow-data.mjs +136 -0
- package/assets/checks/flow-forecast.mjs +330 -0
- package/assets/checks/flow-guard-run.mjs +90 -0
- package/assets/checks/flow-guard.mjs +294 -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 +365 -0
- package/assets/checks/flow-sync.mjs +296 -0
- package/assets/checks/flow-syntax.mjs +292 -0
- package/assets/checks/flow-verdict.mjs +112 -0
- package/assets/checks/lib-common.mjs +10 -2
- package/assets/checks/lib-domains.mjs +1 -1
- package/assets/checks/lib-manifests.mjs +34 -2
- package/assets/checks/merge-read.mjs +239 -0
- package/assets/checks/owner-nudges.mjs +389 -0
- package/assets/checks/push-inputs.mjs +444 -0
- package/assets/checks/push-trace.mjs +108 -0
- package/assets/checks/record-count.mjs +410 -0
- package/assets/checks/record-recount.mjs +187 -0
- package/assets/checks/record-turn.mjs +155 -0
- package/assets/checks/rt-kit-checks.config.mjs +17 -2
- package/assets/checks/spec-anchors.mjs +4 -4
- package/assets/checks/spec-contract.mjs +5 -5
- package/assets/checks/task-flow-script.mjs +292 -0
- package/assets/checks/tree-assignment.mjs +26 -7
- package/assets/checks/work-result.mjs +281 -0
- package/assets/checks/work-steps-lib.mjs +205 -0
- package/assets/commands/next-session.md +3 -1
- package/assets/commands/night.md +28 -18
- package/assets/defaults/gate-map.sh +39 -12
- package/assets/defaults/merges.sh +48 -0
- package/assets/defaults/project.sh +43 -13
- package/assets/defaults/push.sh +23 -0
- package/assets/defaults/turn-map.md +24 -21
- package/assets/docs/GLOSSARY.md +6 -2
- package/assets/hooks/ask-judge.md +65 -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 -105
- 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 +308 -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 +32 -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 +46 -5
- package/assets/hooks/git-guard-push-marks.sh +227 -31
- package/assets/hooks/git-guard-push-tests.sh +51 -53
- 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 +20 -39
- 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 +20 -10
- package/assets/hooks/prose-style-guard.sh +6 -19
- package/assets/hooks/pull-merges.sh +76 -0
- package/assets/hooks/push-set.sh +39 -7
- 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 +20 -22
- package/assets/hooks/task-flow-draft-guard.sh +25 -74
- package/assets/hooks/task-flow-guard.sh +28 -129
- 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 +47 -0
- package/assets/hooks/turn-judge.md +103 -0
- package/assets/hooks/window-fill-guard.sh +22 -41
- package/assets/laws/work-conduct.md +9 -8
- package/assets/patterns/autonomous-work-run.md +35 -10
- package/assets/patterns/browser-verification-measure.md +10 -20
- package/assets/patterns/browser-verification-stand.md +30 -42
- package/assets/patterns/doc-style-human.md +0 -6
- package/assets/patterns/doc-style-sweep.md +7 -7
- package/assets/patterns/doc-style-trace.md +5 -4
- package/assets/patterns/doc-style-write.md +7 -7
- package/assets/patterns/epic-flow-declare.md +15 -8
- 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 +9 -56
- package/assets/patterns/git-workflow-merge.md +7 -174
- package/assets/patterns/git-workflow-migration.md +5 -73
- package/assets/patterns/git-workflow-pr-body.github.md +6 -159
- package/assets/patterns/git-workflow-pr-ready.md +9 -69
- package/assets/patterns/git-workflow-pr.azure.md +14 -220
- package/assets/patterns/git-workflow-pr.github.md +13 -253
- package/assets/patterns/git-workflow-pr.gitlab.md +14 -241
- package/assets/patterns/git-workflow-restart.md +5 -41
- package/assets/patterns/git-workflow-secrets.md +10 -76
- package/assets/patterns/git-workflow-stack.md +9 -205
- package/assets/patterns/lib-layers-new.md +7 -3
- package/assets/patterns/queue-audit-read.github.md +9 -3
- package/assets/patterns/spec-driven-domain.md +50 -48
- package/assets/patterns/spec-driven-rule.md +18 -19
- package/assets/patterns/status-report-table.github.md +2 -2
- package/assets/patterns/task-flow-archive.md +15 -256
- package/assets/patterns/task-flow-close.md +16 -291
- package/assets/patterns/task-flow-cycle.md +13 -39
- package/assets/patterns/task-flow-graph.needs-graph.md +8 -58
- package/assets/patterns/task-flow-handoff.md +13 -161
- package/assets/patterns/task-flow-resume.md +19 -183
- package/assets/patterns/task-flow-start.md +9 -248
- package/assets/patterns/testing-e2e.md +14 -18
- package/assets/patterns/testing-unit.md +9 -13
- package/assets/patterns/turn-entry-map.md +15 -5
- 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/autonomous-work.md +15 -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.2.md +286 -0
- package/assets/pitfalls/doc-style.md +3 -3
- package/assets/pitfalls/entity-conventions.needs-admin.md +96 -0
- package/assets/pitfalls/entity-models.md +89 -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/git-workflow.github.md +5 -9
- package/assets/pitfalls/lib-layers.md +114 -0
- package/assets/pitfalls/lists.md +117 -0
- package/assets/pitfalls/navigation.md +94 -0
- package/assets/pitfalls/reuse-first.md +201 -0
- package/assets/pitfalls/spec-driven.2.md +318 -0
- package/assets/pitfalls/spec-driven.md +9 -7
- package/assets/pitfalls/styling-bem.2.md +125 -0
- package/assets/pitfalls/task-flow-archive.md +264 -0
- package/assets/pitfalls/task-flow-close.2.md +165 -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 +29 -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 +18 -29
- package/assets/pitfalls/testing.2.md +279 -0
- package/assets/pitfalls/testing.md +11 -12
- package/assets/pitfalls/turn-conduct.md +17 -18
- 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 +37 -29
- package/assets/rules/browser-verification.md +28 -251
- package/assets/rules/component-structure.md +25 -87
- package/assets/rules/dependencies.md +20 -78
- package/assets/rules/deploy-flow.azure.md +27 -134
- package/assets/rules/deploy-flow.github.md +34 -196
- package/assets/rules/deploy-flow.gitlab.md +28 -137
- package/assets/rules/doc-style.md +32 -282
- package/assets/rules/entity-conventions.needs-admin.md +26 -82
- package/assets/rules/entity-models.md +14 -63
- package/assets/rules/epic-flow.md +5 -3
- 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 -264
- package/assets/rules/git-workflow.github.md +24 -285
- package/assets/rules/git-workflow.gitlab.md +21 -258
- package/assets/rules/lib-layers.md +30 -103
- package/assets/rules/lists.md +21 -105
- package/assets/rules/navigation.md +10 -69
- package/assets/rules/queue-audit.github.md +5 -3
- package/assets/rules/reuse-first.md +20 -195
- package/assets/rules/spec-driven.md +35 -316
- package/assets/rules/status-report.md +5 -3
- 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 -289
- package/assets/rules/testing.md +32 -270
- package/assets/rules/turn-conduct.md +109 -111
- 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 +188 -0
- package/assets/task-flow/flow.md +102 -0
- package/assets/task-flow/measure/agreement.mjs +24 -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 +20 -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 +175 -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 +86 -0
- package/assets/task-flow/source/host.mjs +172 -0
- package/assets/task-flow/source/marks.mjs +56 -0
- package/assets/task-flow/source/owner.mjs +74 -0
- package/assets/task-flow/source/records.mjs +116 -0
- package/assets/task-flow/source/session.mjs +232 -0
- package/assets/task-flow/source/steps.mjs +28 -0
- package/assets/task-flow/source/tree.mjs +42 -0
- package/assets/templates/rule.md +2 -2
- 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 +209 -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-prose.d.ts +2 -1
- package/lib/cargo-prose.d.ts.map +1 -1
- package/lib/cargo-prose.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/companion.d.ts +0 -5
- package/lib/companion.d.ts.map +1 -1
- package/lib/companion.js +1 -1
- package/lib/companion.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/cost.d.ts +0 -8
- package/lib/cost.d.ts.map +1 -1
- package/lib/cost.js +4 -4
- package/lib/cost.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 -12
- package/lib/hooks-map.d.ts.map +1 -1
- package/lib/hooks-map.js +4 -27
- 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-cargo.d.ts +1 -5
- package/lib/observations-cargo.d.ts.map +1 -1
- package/lib/observations-cargo.js +2 -2
- package/lib/observations-cargo.js.map +1 -1
- package/lib/observations.d.ts +0 -2
- package/lib/observations.d.ts.map +1 -1
- package/lib/observations.js +3 -3
- package/lib/observations.js.map +1 -1
- package/lib/order.d.ts +0 -2
- package/lib/order.d.ts.map +1 -1
- package/lib/order.js +0 -4
- package/lib/order.js.map +1 -1
- package/lib/outcomes.d.ts +7 -9
- package/lib/outcomes.d.ts.map +1 -1
- package/lib/outcomes.js +8 -7
- package/lib/outcomes.js.map +1 -1
- package/lib/proposals.d.ts +0 -1
- package/lib/proposals.d.ts.map +1 -1
- package/lib/proposals.js +1 -1
- package/lib/proposals.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/shipment.d.ts +2 -11
- package/lib/shipment.d.ts.map +1 -1
- package/lib/shipment.fixture.d.ts +0 -3
- package/lib/shipment.fixture.d.ts.map +1 -1
- package/lib/shipment.fixture.js +3 -3
- package/lib/shipment.fixture.js.map +1 -1
- package/lib/shipment.js +2 -2
- package/lib/shipment.js.map +1 -1
- 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/traits.d.ts +0 -3
- package/lib/traits.d.ts.map +1 -1
- package/lib/traits.js +2 -2
- package/lib/traits.js.map +1 -1
- package/lib/variants.d.ts +0 -1
- package/lib/variants.d.ts.map +1 -1
- package/lib/variants.js +1 -1
- package/lib/variants.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/checks/signals/ui-kit.json +0 -11
- 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
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
# Closing the work — cold part
|
|
2
|
+
|
|
3
|
+
The pattern `task-flow-close` whole, in two files: every section with its code and its reasons. Its hot part names the sections and the opening of each.
|
|
4
|
+
|
|
5
|
+
## Pitfalls
|
|
6
|
+
|
|
7
|
+
The misses of this pattern stand where they happen: in its sections below and in its list of
|
|
8
|
+
common misses, when it has one.
|
|
9
|
+
|
|
10
|
+
Pattern of the rule `task-flow`. What must be true meanwhile — the law
|
|
11
|
+
`docs/constitution/work-conduct.md`.
|
|
12
|
+
|
|
13
|
+
## When to use
|
|
14
|
+
|
|
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
|
+
|
|
33
|
+
## State `этапы-кончились`: the agreement merges into the domain spec
|
|
34
|
+
|
|
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.
|
|
81
|
+
|
|
82
|
+
## State `этапы-кончились`: the domain texts are brought up to what was done
|
|
83
|
+
|
|
84
|
+
Only what was written before the code goes into the spec. The other texts — rules, patterns,
|
|
85
|
+
application laws — nobody re-reads after the edit, and they go on describing the old tree. The next
|
|
86
|
+
reader takes them for true.
|
|
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`.
|
|
137
|
+
|
|
138
|
+
## State `папка-разобрана`: the work is handed in by a PR
|
|
139
|
+
|
|
140
|
+
The folder is taken apart and pushed, the work is cleaned up behind — and the PR opens. Whether it
|
|
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.
|
|
157
|
+
|
|
158
|
+
### The section on the remaining step is written in the PR body, not appended later
|
|
159
|
+
|
|
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
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# The improvement cycle — cold part
|
|
2
|
+
|
|
3
|
+
The pattern `task-flow-cycle` whole: every section with its code and its reasons. Its hot part names the sections and the opening of each.
|
|
4
|
+
|
|
5
|
+
## Pitfalls
|
|
6
|
+
|
|
7
|
+
The misses of this pattern stand where they happen: in its sections below and in its list of
|
|
8
|
+
common misses, when it has one.
|
|
9
|
+
|
|
10
|
+
Pattern of the rule `task-flow`. What must be true meanwhile — the law
|
|
11
|
+
`docs/constitution/work-conduct.md`.
|
|
12
|
+
|
|
13
|
+
## When to use
|
|
14
|
+
|
|
15
|
+
- An edit of a rule, a hook, a check or a role is being chosen.
|
|
16
|
+
- A task about such an edit is being written.
|
|
17
|
+
- The result of such an edit is being judged.
|
|
18
|
+
|
|
19
|
+
An edit chosen by opinion has no way to be proved wrong, so nobody learns whether it helped. A repair
|
|
20
|
+
of something broken is not an improvement and needs no cycle: its task names the failure instead.
|
|
21
|
+
|
|
22
|
+
## Order
|
|
23
|
+
|
|
24
|
+
### The report opens the cycle
|
|
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.
|
|
35
|
+
|
|
36
|
+
### One task, one metric, one direction
|
|
37
|
+
|
|
38
|
+
The task changes one thing and carries one line:
|
|
39
|
+
|
|
40
|
+
```markdown
|
|
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.
|
|
49
|
+
|
|
50
|
+
### The next report gives the verdict
|
|
51
|
+
|
|
52
|
+
The same trees are compared, on a version with the edit against themselves before it. A tree that has
|
|
53
|
+
not installed the version does not count.
|
|
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.
|
|
58
|
+
|
|
59
|
+
### An edit that moved nothing is named so
|
|
60
|
+
|
|
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.
|
|
64
|
+
|
|
65
|
+
## Common misses
|
|
66
|
+
|
|
67
|
+
- **A metric picked after the edit.** A number chosen once the result is known finds a movement in any
|
|
68
|
+
edit. The line stands in the task before the first commit.
|
|
69
|
+
- **Reading one's own tree as the package.** One tree is the partial view: it lacks completeness and
|
|
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.
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# Working with the tree's code graph — cold part
|
|
2
|
+
|
|
3
|
+
The pattern `task-flow-graph` whole: every section with its code and its reasons. Its hot part names the sections and the opening of each.
|
|
4
|
+
|
|
5
|
+
## Pitfalls
|
|
6
|
+
|
|
7
|
+
The misses of this pattern stand where they happen: in its sections below and in its list of
|
|
8
|
+
common misses, when it has one.
|
|
9
|
+
|
|
10
|
+
Pattern of the rule `task-flow`. What must be true meanwhile — the law
|
|
11
|
+
`docs/constitution/work-conduct.md`.
|
|
12
|
+
|
|
13
|
+
The graph is a build artefact of the tool `graphify`: it lies next to the tree and is rebuilt from
|
|
14
|
+
the code. It answers relations, not behaviour. The tool is not part of the package, and the pattern
|
|
15
|
+
is laid out only to a tree that names the trait `graph`. A copy that names the trait and has no
|
|
16
|
+
artefact on disk — a fresh clone, a new working tree — builds it by `graphify update .` before the
|
|
17
|
+
first exploration of the turn, or the turn names that there is no graph, and none of the steps below
|
|
18
|
+
applies.
|
|
19
|
+
|
|
20
|
+
## When to use
|
|
21
|
+
|
|
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
|
+
|
|
27
|
+
## Freshness
|
|
28
|
+
|
|
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.
|
|
57
|
+
|
|
58
|
+
## The inventory
|
|
59
|
+
|
|
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
|
+
```
|
|
66
|
+
|
|
67
|
+
## The relations
|
|
68
|
+
|
|
69
|
+
```bash
|
|
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.
|
|
78
|
+
|
|
79
|
+
## What the graph never answers
|
|
80
|
+
|
|
81
|
+
- A constant, a limit, a number: values are not nodes.
|
|
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.
|
|
87
|
+
|
|
88
|
+
## Common misses
|
|
89
|
+
|
|
90
|
+
- **A free-text query looks like the entry point and is not.** `graphify query` walks breadth-first
|
|
91
|
+
over the words of the question and starts from whatever token it matched: it answers with
|
|
92
|
+
neighbours of a word, not with the domain. `explain` is asked by a file name or a symbol.
|
|
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.
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
# Closing a session on window fill — cold part
|
|
2
|
+
|
|
3
|
+
The pattern `task-flow-handoff` whole: every section with its code and its reasons. Its hot part names the sections and the opening of each.
|
|
4
|
+
|
|
5
|
+
## Pitfalls
|
|
6
|
+
|
|
7
|
+
The misses of this pattern stand where they happen: in its sections below and in its list of
|
|
8
|
+
common misses, when it has one.
|
|
9
|
+
|
|
10
|
+
Pattern of the rule `turn-conduct`. What must be true meanwhile — the law
|
|
11
|
+
`docs/constitution/work-conduct.md`.
|
|
12
|
+
|
|
13
|
+
## When to use
|
|
14
|
+
|
|
15
|
+
- A reminder about window fill has come.
|
|
16
|
+
- The work does not fit into the session, and this became visible in advance.
|
|
17
|
+
- The session is interrupted for any other reason: the owner leaves, the machine is busy.
|
|
18
|
+
|
|
19
|
+
## What happens at the thresholds
|
|
20
|
+
|
|
21
|
+
| Fill | What the guard does | What the session does |
|
|
22
|
+
| --- | --- | --- |
|
|
23
|
+
| below the first threshold | stays silent | works |
|
|
24
|
+
| the first threshold and above | a reminder at every next step of five percent | picks a stopping point and brings the current step to it |
|
|
25
|
+
| the second threshold and above | refuses everything but the task folder, the handover and the delivery commands | closes |
|
|
26
|
+
|
|
27
|
+
The thresholds are watched by the window-fill guard; it takes the window size from the tree's
|
|
28
|
+
setting — it cannot be derived from the session record. The room between the thresholds is what the
|
|
29
|
+
session closes on: write up the progress, write the handover, commit and open the PR if the work is
|
|
30
|
+
finished.
|
|
31
|
+
|
|
32
|
+
## The stopping point
|
|
33
|
+
|
|
34
|
+
The logical point is not "where the reminder caught us" but a state from which the next session goes
|
|
35
|
+
on without redoing anything:
|
|
36
|
+
|
|
37
|
+
- a stage of the plan is closed whole, not by half;
|
|
38
|
+
- what was done is checked — the run passed, the build built, the measurement taken;
|
|
39
|
+
- what was checked is committed: uncommitted work does not survive the break;
|
|
40
|
+
- what was begun and dropped is named in the progress outright, with the reason.
|
|
41
|
+
|
|
42
|
+
An unclosed stage is a lawful point too, if the progress records exactly what of it is done and what
|
|
43
|
+
confirms it. There is one unlawful point: an edit about which nothing is recorded.
|
|
44
|
+
|
|
45
|
+
## The session closes with a handover, and the work state does not change
|
|
46
|
+
|
|
47
|
+
The cleanup of this step — main, the merged branches and the record of the handover itself — is done
|
|
48
|
+
by the `next-session` command: it walks the step whole and names the path to the handover in its
|
|
49
|
+
last line. Below is what must come out of it; the order is the same whether it is called by the
|
|
50
|
+
command or by hand.
|
|
51
|
+
|
|
52
|
+
### The progress
|
|
53
|
+
|
|
54
|
+
The "Where we stand" section is rewritten, the decisions along the way and the session entry are
|
|
55
|
+
appended. The form — pattern `task-flow-resume`.
|
|
56
|
+
|
|
57
|
+
### The commit
|
|
58
|
+
|
|
59
|
+
What was checked is committed at once, not stored up until the end of the task. The work is finished
|
|
60
|
+
— a PR opens: pattern `git-workflow-pr`.
|
|
61
|
+
|
|
62
|
+
### The handover
|
|
63
|
+
|
|
64
|
+
It is placed as the section `## Handover of the session` in the task's progress — the same file where "Where
|
|
65
|
+
we stand" stands. It is committed and goes into the branch, so the handover survives a move to
|
|
66
|
+
another machine: work broken off by window fill is picked up where it goes on. The executor commits
|
|
67
|
+
and pushes the section, in the same turn as the rest of the work record.
|
|
68
|
+
|
|
69
|
+
The section is one: a second compaction rewrites the previous one rather than adding a second — two
|
|
70
|
+
truths about one piece of work in one file are worse than one stale truth. The headings inside it go
|
|
71
|
+
at the third level, so as not to clash with the sections of the progress itself.
|
|
72
|
+
|
|
73
|
+
Work without a task folder — a detached head, a branch without a created task — has nowhere to put
|
|
74
|
+
the section, and the handover leaves as a file outside the tree; the directory is named by the
|
|
75
|
+
profile:
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
mkdir -p <каталог передачи>
|
|
79
|
+
# the file — <каталог передачи>/<ветка>.md
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
This is a fallback, not a second lawful place: a branch with a task folder gets no such file at all,
|
|
83
|
+
and the reading side does not look at it once it has found the section.
|
|
84
|
+
|
|
85
|
+
**The handover draft is written by a hook, not by hand.** Before context compaction it puts what is
|
|
86
|
+
on disk at the same address: the branch, the work state, the next step, what is uncommitted, the
|
|
87
|
+
commits above main. Compaction comes even when there is nobody to remind — at night or in the middle
|
|
88
|
+
of a long turn — and without the hook the session lost the handover whole at that moment.
|
|
89
|
+
|
|
90
|
+
**The handover is read by a hook too, not by a person.** At startup it puts it into the context
|
|
91
|
+
whole, together with the turn map. Nobody has to paste it by hand — neither after compaction, nor
|
|
92
|
+
after a break, nor after clearing. Written and not read, a handover equals an unwritten one: the
|
|
93
|
+
next session knows nothing of it and starts from a blank — that is, from what it was written to
|
|
94
|
+
prevent.
|
|
95
|
+
|
|
96
|
+
Hence the requirement on the text: the handover is written for a machine that feeds it in without
|
|
97
|
+
sorting, and for a session that reads it as its first line. Addressing the owner in it — "ask them
|
|
98
|
+
how the trial ended" — is writing into a void: by the time it is read the owner is not yet in the
|
|
99
|
+
conversation.
|
|
100
|
+
|
|
101
|
+
What the hook writes is the lower bound, not a finished handover. An executor closing the session by
|
|
102
|
+
the rule writes over it: they know what is not on disk — how the trial ended, why this path was
|
|
103
|
+
chosen, what the owner said along the way. The file is one, the last entry wins.
|
|
104
|
+
|
|
105
|
+
Inside — ready text for pasting into the new session, without asking the owner for details:
|
|
106
|
+
|
|
107
|
+
```markdown
|
|
108
|
+
Work: <KEY>-<number> "<task name>". Working tree — <full path>, branch
|
|
109
|
+
<KEY>-<number>-<slug> (created, in progress).
|
|
110
|
+
PR: #<number>, open, the review is the owner's. The freshness of its base is left out on
|
|
111
|
+
purpose — it goes stale; the new session asks the hosting about it first thing.
|
|
112
|
+
|
|
113
|
+
The progress and the plan arrive at session start through the hook — no need to re-read them
|
|
114
|
+
as files. The grill of the owner's request lies in the task folder and is read when the reason
|
|
115
|
+
for a decision is unclear.
|
|
116
|
+
|
|
117
|
+
Done: stages 1–3 of the plan are closed and committed.
|
|
118
|
+
Next step: stage 4 — <what exactly>.
|
|
119
|
+
|
|
120
|
+
What to keep in mind in this session:
|
|
121
|
+
|
|
122
|
+
- the rules review of <KEY>-<number> was started in the background and has not returned —
|
|
123
|
+
write the findings to `<plan name>-findings.md` next to the epic plan;
|
|
124
|
+
- the stands are already up, raised by the owner; do not raise your own;
|
|
125
|
+
- the dependencies of this tree lag behind the main branch — when the build fails on a
|
|
126
|
+
foreign error, install dependencies first;
|
|
127
|
+
- <anything else that is neither in the rules nor in the progress>.
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
The third section is "Epic" — the position table. Work outside an epic does not carry this section:
|
|
131
|
+
a table of one row repeats the "Work" section and reads as an epic of one task.
|
|
132
|
+
|
|
133
|
+
```markdown
|
|
134
|
+
### Epic <number> — <the capability named by the plan>
|
|
135
|
+
|
|
136
|
+
| # | Task | State |
|
|
137
|
+
| --- | --------------------------------- | ----------- |
|
|
138
|
+
| 1 | <KEY>-<number> — <what it does> | closed |
|
|
139
|
+
| 2 | **<KEY>-<number> — <what it does>** | in progress |
|
|
140
|
+
| 3 | <KEY>-<number> — <what it does> | ahead |
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
Three columns, a row per task. The heading names the epic number and the capability — the one
|
|
144
|
+
written in the plan, not retold anew. `#` is the place in order: the actual one for closed tasks,
|
|
145
|
+
the one assigned by the plan for future ones. `Task` — the number and what it does, in the same
|
|
146
|
+
words as the plan. `State` — "closed", "in progress" or "ahead"; the row of the current task is
|
|
147
|
+
highlighted whole.
|
|
148
|
+
|
|
149
|
+
The set is taken from the epic plan, and the state from the work queue: the plan does not know what
|
|
150
|
+
is closed, and the queue does not know the order. A task added to the epic after planning stands in
|
|
151
|
+
the queue and in the table, but not in the plan — the discrepancy is named aloud, not smoothed over.
|
|
152
|
+
|
|
153
|
+
The sections are fixed, and their order is the same:
|
|
154
|
+
|
|
155
|
+
1. **Work** — the task number, its name, the working tree by full path, the branch and its state;
|
|
156
|
+
for handed-in work — the number of the open PR and what it waits for.
|
|
157
|
+
2. **Where to look** — what comes by the hook itself, and what is read as needed.
|
|
158
|
+
3. **Epic** — the position table; work outside an epic has no such section.
|
|
159
|
+
4. **Done and the next step** — one line each; the details are already in the progress.
|
|
160
|
+
5. **What to keep in mind** — the particulars of this session that are neither in the rules nor in
|
|
161
|
+
the progress. Raised stands, lagging dependencies, other people's processes on ports, open
|
|
162
|
+
questions to the owner, a review launched in the background and not returned.
|
|
163
|
+
|
|
164
|
+
**A review launched in the background and not returned by the session's end is named by a line in
|
|
165
|
+
"What to keep in mind".** The role answers into the conversation, gone by the next session. An
|
|
166
|
+
answer that came after closing is read by nobody, and the findings are lost whole, together with
|
|
167
|
+
what the review was launched for. There is no trace on disk either — the findings file is written by
|
|
168
|
+
the executor from the answer, and there was no answer yet. The line names the task the review runs
|
|
169
|
+
on and the file to write the returned findings to: without the second, the next session knows it
|
|
170
|
+
waits for something and does not know where to put it. The review gets no section of its own — in a
|
|
171
|
+
session that did not launch one, the section would stand empty.
|
|
172
|
+
|
|
173
|
+
### The path to the owner
|
|
174
|
+
|
|
175
|
+
The last line to the owner names where the handover lies. They paste nothing: the entry hook serves
|
|
176
|
+
it to the next session on the same branch by itself. Retelling the content of the handover in the
|
|
177
|
+
reply is not needed: the owner will read it anyway, and the room for it is already spent.
|
|
178
|
+
|
|
179
|
+
## Common misses
|
|
180
|
+
|
|
181
|
+
- **The session closes at the second threshold instead of starting a new stage on it.** The reminder
|
|
182
|
+
at the first one is already the signal to pick a point, not to work on until refused.
|
|
183
|
+
- **The handover is written as a retelling of the conversation.** What goes into it is what is
|
|
184
|
+
neither in the progress nor in the rules: the tree, the branch, the state of the stands.
|
|
185
|
+
Everything else the next session reads by itself.
|
|
186
|
+
- **A statement about the state of the work is taken in the same turn, not recalled.** The task's
|
|
187
|
+
parent, its column, the open PR, the merged branch, the raised stands live outside the session and
|
|
188
|
+
change without it. The handover is read first and not disputed: the session carries out its
|
|
189
|
+
instruction rather than checking it. Plausibility is no confirmation — "the branch is not merged,
|
|
190
|
+
so there is no parent either" is an inference, not a measurement. Nothing to ask with — then it is
|
|
191
|
+
written as a question: "the parent is not checked, check before the PR".
|
|
192
|
+
- **The work state does not move into the handover.** Done work is marked in the progress — by one
|
|
193
|
+
entry; the handover retells it but does not replace it.
|
|
194
|
+
- **The handover records a state that lives for hours.** Lag behind main, the course of the run and
|
|
195
|
+
"checks green" the new session reads as true today. What goes into the handover is what does not
|
|
196
|
+
change without the executor: the tree, the branch, the PR number, what is not committed.
|
|
197
|
+
- **The uncommitted is not named.** Work lives in the tree for weeks, and the line "what lies
|
|
198
|
+
unsaved and why" is the only thing that makes it visible.
|
|
199
|
+
- **A session that ended in nothing writes a handover too.** "We tried this — it did not work,
|
|
200
|
+
because" is its result; without the record the next session repeats the same path.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Work conduct — closing a task — cold part
|
|
2
|
+
|
|
3
|
+
This part of the rule `task-flow` keeps its statements hot and its explanation in the cold part
|
|
4
|
+
of `task-flow`, `pitfalls-2.md` there: every article of it stands there whole, with its reasons.
|
|
5
|
+
|
|
6
|
+
## Pitfalls
|
|
7
|
+
|
|
8
|
+
The traps of the course of work, this part included, stand in the cold part of `task-flow`, its
|
|
9
|
+
`pitfalls.md`.
|
|
10
|
+
|
|
11
|
+
## What it is called here
|
|
12
|
+
|
|
13
|
+
The names of the rule `task-flow`, in its cold part `pitfalls-2.md`.
|
|
14
|
+
|
|
15
|
+
## Where it lives
|
|
16
|
+
|
|
17
|
+
In this tree — the table in `implementation.md` next to it.
|
|
18
|
+
|
|
19
|
+
## Flow
|
|
20
|
+
|
|
21
|
+
The course of work is drawn whole in the cold part of `task-flow`, `pitfalls-2.md`.
|
|
22
|
+
|
|
23
|
+
## What of the law is not here
|
|
24
|
+
|
|
25
|
+
Said for all four parts at once, in the cold part of `task-flow`, `pitfalls-2.md`.
|
|
26
|
+
|
|
27
|
+
## Patterns
|
|
28
|
+
|
|
29
|
+
- `task-flow-close`.
|
|
30
|
+
- `task-flow-archive`.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Work conduct — the owner's word and the session — cold part
|
|
2
|
+
|
|
3
|
+
This part of the rule `task-flow` keeps its statements hot and its explanation in the cold part
|
|
4
|
+
of `task-flow`, `pitfalls-2.md` there: every article of it stands there whole, with its reasons.
|
|
5
|
+
|
|
6
|
+
## Pitfalls
|
|
7
|
+
|
|
8
|
+
The traps of the course of work, this part included, stand in the cold part of `task-flow`, its
|
|
9
|
+
`pitfalls.md`.
|
|
10
|
+
|
|
11
|
+
## What it is called here
|
|
12
|
+
|
|
13
|
+
The names of the rule `task-flow`, in its cold part `pitfalls-2.md`.
|
|
14
|
+
|
|
15
|
+
## Where it lives
|
|
16
|
+
|
|
17
|
+
In this tree — the table in `implementation.md` next to it.
|
|
18
|
+
|
|
19
|
+
## Flow
|
|
20
|
+
|
|
21
|
+
The course of work is drawn whole in the cold part of `task-flow`, `pitfalls-2.md`.
|
|
22
|
+
|
|
23
|
+
## What of the law is not here
|
|
24
|
+
|
|
25
|
+
Said for all four parts at once, in the cold part of `task-flow`, `pitfalls-2.md`.
|
|
26
|
+
|
|
27
|
+
## Patterns
|
|
28
|
+
|
|
29
|
+
- `task-flow-cycle`.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Work conduct — the folder, the plan and the progress — cold part
|
|
2
|
+
|
|
3
|
+
This part of the rule `task-flow` keeps its statements hot and its explanation in the cold part
|
|
4
|
+
of `task-flow`, `pitfalls-2.md` there: every article of it stands there whole, with its reasons.
|
|
5
|
+
|
|
6
|
+
## Pitfalls
|
|
7
|
+
|
|
8
|
+
The traps of the course of work, this part included, stand in the cold part of `task-flow`, its
|
|
9
|
+
`pitfalls.md`.
|
|
10
|
+
|
|
11
|
+
## What it is called here
|
|
12
|
+
|
|
13
|
+
The names of the rule `task-flow`, in its cold part `pitfalls-2.md`.
|
|
14
|
+
|
|
15
|
+
## Where it lives
|
|
16
|
+
|
|
17
|
+
In this tree — the table in `implementation.md` next to it.
|
|
18
|
+
|
|
19
|
+
## Flow
|
|
20
|
+
|
|
21
|
+
The course of work is drawn whole in the cold part of `task-flow`, `pitfalls-2.md`.
|
|
22
|
+
|
|
23
|
+
## What of the law is not here
|
|
24
|
+
|
|
25
|
+
Said for all four parts at once, in the cold part of `task-flow`, `pitfalls-2.md`.
|
|
26
|
+
|
|
27
|
+
## Patterns
|
|
28
|
+
|
|
29
|
+
- `task-flow-resume`.
|