@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,38 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: task-flow-plan
|
|
3
|
+
kind: rule
|
|
4
|
+
law: work-conduct
|
|
5
|
+
description: Rule under the work-conduct law — the task folder, the plan, its steps and the progress. Load on any edit of a task folder and on a plan refusal. Pattern task-flow-resume.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Work conduct — the folder, the plan and the progress
|
|
9
|
+
|
|
10
|
+
Rule under the law `docs/constitution/work-conduct.md`. Cold part: `pitfalls.md`; articles whole — `task-flow`, `pitfalls-2.md`.
|
|
11
|
+
|
|
12
|
+
**Requires:** `hooks/task-flow-guard.sh`, `hooks/task-flow-draft-guard.sh`, `hooks/task-context-load.sh`, `hooks/window-fill-guard.sh`, `hooks/turn-exit-guard.sh`, `hooks/turn-judge.md`, `hooks/ask-judge.md`, `hooks/main-run-context.sh`
|
|
13
|
+
|
|
14
|
+
## How the law applies here
|
|
15
|
+
|
|
16
|
+
- **Editing application code is refused until the work has reached a state in which code is edited.**
|
|
17
|
+
- **The guard judges the declared transition, not the presence of files.** Lifted by `этап-идёт`, `этапы-кончились`, `разбор-кончился`, `работа-отдана`, or a taken-apart folder in history.
|
|
18
|
+
- **Two requirements — two guards, and one can be lifted without losing the other.** The behaviour line lifts only the agreement.
|
|
19
|
+
- **A merged agreement does not lock the branch.**
|
|
20
|
+
- **The agreement is required by the edit paths, not by an appraisal of the task.** `apps/**`, `libs/**`; bypass: `**Behaviour:** unchanged — <the owner's reason>` in the plan.
|
|
21
|
+
- **A task folder is created for any work, no exceptions.**
|
|
22
|
+
- **The task folder goes into the branch by a commit, not lives in one working tree.**
|
|
23
|
+
- **The plan guard is the lower bound of the requirement, not its limit.**
|
|
24
|
+
- **A taken task does not end a turn.**
|
|
25
|
+
- **The stages of a plan cover its done-sign whole.**
|
|
26
|
+
- **Every rule of the product agreement becomes a step of some stage.**
|
|
27
|
+
- **Every step of the plan carries a check whose expected output is taken from a run while the plan is written.**
|
|
28
|
+
- **A plan for work that ports a technique from outside is written by a measurement of one's own code.**
|
|
29
|
+
- **A count that becomes the measure of the work is bounded by the declaration, not by the file.**
|
|
30
|
+
- **Waiting for one part of a stage is never a stop of the stage.**
|
|
31
|
+
- **A finding made mid-stage is checked against the plan's exit conditions before the first edit.** Outside them: to what the work does not do, filed as a task.
|
|
32
|
+
- **Done work is marked only in the progress.**
|
|
33
|
+
- **The plan names the steps of every stage, and the progress mirrors them with a mark each.**
|
|
34
|
+
- **The numbers and the names of the steps are copied from the plan, not reworded.**
|
|
35
|
+
- **Exactly one step carries the mark of going on right now, while any step is not done.**
|
|
36
|
+
- **The task folder is created as a draft and gets its number by a command.**
|
|
37
|
+
- **An abandoned grill is visible.**
|
|
38
|
+
- **The plan names the points: the epic its milestone, the task the change a person will see.**
|
|
@@ -2,302 +2,35 @@
|
|
|
2
2
|
name: task-flow
|
|
3
3
|
kind: rule
|
|
4
4
|
law: work-conduct
|
|
5
|
-
description: Rule under the work-conduct law — the
|
|
5
|
+
description: Rule under the work-conduct law — the work states. Load at the start of any work, on any edit of a task folder and on return to unfinished work. Its parts: task-flow-plan, -owner, -handover. Patterns task-flow-start, -graph.
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
# Work conduct —
|
|
8
|
+
# Work conduct — the states
|
|
9
9
|
|
|
10
|
-
Rule under the law `docs/constitution/work-conduct.md`.
|
|
11
|
-
course of work; here — what it is called in this tree, where it lives and what is not checked here.
|
|
12
|
-
How a series of tasks is held together as one epic — rule `epic-flow` under the same law.
|
|
13
|
-
|
|
14
|
-
**Cold part:** `pitfalls.md` next to it — traps and conduct from incident analyses. Loaded on
|
|
15
|
-
demand, not with the rule: an ordinary decision does not need it — whoever analyses a miss or argues
|
|
16
|
-
with a guard does.
|
|
17
|
-
|
|
18
|
-
**Requires:** `hooks/task-flow-guard.sh`, `hooks/task-flow-draft-guard.sh`,
|
|
19
|
-
`hooks/task-context-load.sh`, `hooks/grill-gate.sh`, `hooks/window-fill-guard.sh`,
|
|
20
|
-
`hooks/turn-exit-guard.sh`, `hooks/work-start-guard.sh`, `hooks/main-run-context.sh`
|
|
21
|
-
|
|
22
|
-
## What it is called here
|
|
23
|
-
|
|
24
|
-
| In the law | Here |
|
|
25
|
-
| --- | --- |
|
|
26
|
-
| the owner's request | what work begins with; grilled by the `/grill-me` command before the first edit |
|
|
27
|
-
| understanding written where the work goes | `docs/tasks/<ветка>/grill.md` — the request verbatim, the owner's answers in their words, decisions with reasons |
|
|
28
|
-
| the plan | `docs/tasks/<ветка>/plan.md` — the task footprint and stages with readiness signs; not edited after it is written |
|
|
29
|
-
| the progress | `docs/tasks/<ветка>/progress.md` — "Where we stand", decisions along the way, session entries; the only place where done work is marked |
|
|
30
|
-
| the product agreement written before the code | `docs/specs/<домен>/proposed/<фича>/` — the feature spec; survives the merge and merges into the domain spec |
|
|
31
|
-
| the task folder before the task is created | `docs/tasks/_draft-<slug>/` — outside history while there is no number |
|
|
32
|
-
| exploration | an `Explore` or `general-purpose` session before the first question to the owner |
|
|
33
|
-
| the plan review by roles | `.claude/workflows/plan.js` — need, points, agreement, critique, plan, goal |
|
|
34
|
-
|
|
35
|
-
## Where it lives
|
|
36
|
-
|
|
37
|
-
In this tree — the table in `implementation.md` next to it. Paths live there, not here: the rule
|
|
38
|
-
travels between repositories, the layout does not, and a path named in the rule lies in the first
|
|
39
|
-
tree that keeps its code differently.
|
|
10
|
+
Rule under the law `docs/constitution/work-conduct.md`. Cold part: `pitfalls.md`, `pitfalls-2.md`.
|
|
40
11
|
|
|
41
12
|
## Work states
|
|
42
13
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
The state is declared in the "Where we stand" section of the progress by the machine-readable line
|
|
47
|
-
``- **State:** `этап-идёт` `` and is rewritten with it.
|
|
48
|
-
|
|
49
|
-
| State | Entry | Mandatory action | Pattern |
|
|
14
|
+
<!-- flow:states -->
|
|
15
|
+
| State | Exit | Mandatory action | Pattern |
|
|
50
16
|
| --- | --- | --- | --- |
|
|
51
|
-
| `просьба-не-разобрана` |
|
|
52
|
-
| `эпик-заведён` |
|
|
53
|
-
| `разбор-закрыт` |
|
|
54
|
-
| `договорённость-записана` |
|
|
55
|
-
| `задача-взята` |
|
|
56
|
-
| `замысел-записан` |
|
|
57
|
-
| `этап-идёт` |
|
|
58
|
-
| `этапы-кончились` |
|
|
59
|
-
| `разбор-кончился` |
|
|
60
|
-
| `папка-разобрана` |
|
|
61
|
-
| `работа-отдана` |
|
|
62
|
-
| `влито` | the
|
|
63
|
-
| `задачи-эпика-кончились` |
|
|
64
|
-
|
|
65
|
-
No state has a mandatory action that sounds like "wait": waiting for someone else's step is not a
|
|
66
|
-
work state, so in `работа-отдана` the mandatory action is the next task, not the open PR. A blocked
|
|
67
|
-
task does not count as next: the same waiting under the name of work. The next is taken from the
|
|
68
|
-
work queue, and the queue is asked by a command: "no tasks" is a statement about the tree, backed by
|
|
69
|
-
output, not by the executor's memory. A filled session window is no state either: the session ends
|
|
70
|
-
with a handover, and the work stays where it stood. **An open card says nothing about whether the
|
|
71
|
-
work is taken.** A card is closed by the merge, and in a session that opens no PRs the list of open
|
|
72
|
-
ones does not shrink. A task is untaken when the tree holds no trace of it: open numbers are checked
|
|
73
|
-
against the archive — closed work has a record there with its number.
|
|
74
|
-
|
|
75
|
-
What a turn ends with — rule `turn-conduct` under the same law.
|
|
76
|
-
|
|
77
|
-
The list is shown to the owner at the start of work, and where we stand is marked on it.
|
|
78
|
-
|
|
79
|
-
The last two states cannot be declared on disk: the progress leaves with the folder, and the folder
|
|
80
|
-
is taken apart before the PR opens. Their sign is in the branch history — the commit that takes the
|
|
81
|
-
folder apart — and a guard reads it, not a line in a file.
|
|
82
|
-
|
|
83
|
-
## Flow
|
|
84
|
-
|
|
85
|
-
The course of work from the owner's request to closing: where the grill stands, what the guard
|
|
86
|
-
demands and where the task folder goes.
|
|
87
|
-
|
|
88
|
-
```mermaid
|
|
89
|
-
flowchart TD
|
|
90
|
-
A[The owner's request] --> B[Exploration over the tree — before the first question]
|
|
91
|
-
B --> C[Grill: six mandatory questions, the answers land on disk]
|
|
92
|
-
C --> D{The edit touches application code}
|
|
93
|
-
D -->|Yes| E[A product agreement is written — before the code]
|
|
94
|
-
D -->|No| F[The plan states the reason there is none]
|
|
95
|
-
E --> Z{The epic of this work exists}
|
|
96
|
-
F --> Z
|
|
97
|
-
Z -->|No| Y[The epic is declared: a card, all its tasks and a plan — then its branch from the main branch]
|
|
98
|
-
Z -->|Yes| G[Task, branch from the epic branch, task folder by branch name; the epic card moves with its first task]
|
|
99
|
-
Y --> G
|
|
100
|
-
G --> H[A plan with stages; not edited after it is written]
|
|
101
|
-
H --> I{Stage done}
|
|
102
|
-
I -->|Yes| J[A mark in the progress — the only place where done work is marked]
|
|
103
|
-
J --> I
|
|
104
|
-
I -->|Stages are over| T[The agreement merges into the domain spec, texts are brought up to what was done, then the suite runs]
|
|
105
|
-
T --> N[The task folder is taken apart by the last commit: the grill — to the archive, findings — to the epic plan, the plan — away]
|
|
106
|
-
N --> S[Work queue audit]
|
|
107
|
-
S --> K[The PR opens; the executor names the number, what it waits for and what comes next]
|
|
108
|
-
K --> W[The rules review of the closed work goes to the background, findings land on disk]
|
|
109
|
-
W --> L[While the PR waits for review, the next task is taken]
|
|
110
|
-
L --> M{Review and run are over}
|
|
111
|
-
M -->|Red run or remarks| V[Fixed in the same branch: the plan is gone from disk, the guard takes the sign of work from the branch history]
|
|
112
|
-
V --> M
|
|
113
|
-
M -->|Green and no remarks| O[The draft, if there was one, is lifted; a person presses merge into the epic branch]
|
|
114
|
-
O --> P{Tasks of the epic are left}
|
|
115
|
-
P -->|Yes| G
|
|
116
|
-
P -->|No| Q[The PR of the epic into the main branch opens: every folder is taken apart]
|
|
117
|
-
```
|
|
17
|
+
| `просьба-не-разобрана` | `measure.grill.written` | explore the tree, then ask the questions | `task-flow-start` |
|
|
18
|
+
| `эпик-заведён` | `measure.epic.declared` | take the epic branch from the main branch; the epic card moves with the first task | `epic-flow-declare` |
|
|
19
|
+
| `разбор-закрыт` | `measure.agreement.named` | write the product agreement, or the reason there is none | `task-flow-start` |
|
|
20
|
+
| `договорённость-записана` | `measure.task.taken` | create the task, the branch from the epic branch, and the folder | `task-flow-start` |
|
|
21
|
+
| `задача-взята` | `measure.plan.approved` | write the plan | `task-flow-start` |
|
|
22
|
+
| `замысел-записан` | `measure.progress.mirrors` | do the first stage | `task-flow-start` |
|
|
23
|
+
| `этап-идёт` | `measure.progress.done` | finish the stage: `step N.M` measures each step and marks it done | `task-flow-resume` |
|
|
24
|
+
| `этапы-кончились` | `measure.footprint.touched` | merge the agreement, bring the texts up to date, run the suite | `task-flow-close` |
|
|
25
|
+
| `разбор-кончился` | `measure.folder.archived` | take the folder apart by the last commit | `task-flow-archive` |
|
|
26
|
+
| `папка-разобрана` | `measure.pr.handed` | the work queue audit, then open the PR | `task-flow-close` |
|
|
27
|
+
| `работа-отдана` | `measure.epic.nextTaken` | send the rules review to the background, then take the next task of the epic | `task-flow-archive` |
|
|
28
|
+
| `влито` | `measure.epic.mergedMarked` | merge the PRs of the chain bottom-up, mark the merged tasks by the branch of the next one | `task-flow-resume` |
|
|
29
|
+
| `задачи-эпика-кончились` | `measure.epic.finished` | open the PR of the epic into the main branch | `task-flow-close` |
|
|
30
|
+
<!-- /flow:states -->
|
|
118
31
|
|
|
119
32
|
## How the law applies here
|
|
120
|
-
- **Editing application code is refused until the work has reached a state in which code is
|
|
121
|
-
edited.** The guard demands three things: a task folder by branch name, a plan in it and a
|
|
122
|
-
declared state. The agreement has a guard of its own on the same events.
|
|
123
|
-
- **The guard judges the declared transition, not the presence of files.** The refusal is lifted
|
|
124
|
-
by the declared state — `этап-идёт`,
|
|
125
|
-
`этапы-кончились`, `разбор-кончился`. The fourth road is the branch history: a folder taken apart
|
|
126
|
-
means handed-in work.
|
|
127
|
-
- **A state line moved forward is the same declaration of intent, only machine-readable.** It is
|
|
128
|
-
declared by the turn in which its mandatory action is begun by deed.
|
|
129
|
-
- **A refusal by state names the mandatory action of that state.** Hearing only "wrong state", the
|
|
130
|
-
executor rewrites the state line instead of the step.
|
|
131
|
-
- **Only a word from the list counts as a state name.** A word of one's own says nothing about the
|
|
132
|
-
entry, the exit or the action.
|
|
133
|
-
- **Two requirements — two guards, and one can be lifted without losing the other.** A line about
|
|
134
|
-
unchanged behaviour lifts the agreement, not the requirement to reach the code-editing state.
|
|
135
|
-
- **A merged agreement does not lock the branch.** After the merge the "proposed" directory is gone
|
|
136
|
-
from disk while the plan refers to it to the end: the guard tells merged from never-created by the
|
|
137
|
-
branch history.
|
|
138
|
-
- **The agreement is required by the edit paths, not by an appraisal of the task.** `apps/**` and
|
|
139
|
-
`libs/**` are the sign; rules, texts, tooling and dependencies fall outside it. The bypass is the
|
|
140
|
-
line `**Behaviour:** unchanged — <the reason of the owner>` in the plan; an empty reason is not
|
|
141
|
-
accepted.
|
|
142
|
-
- **What needs the owner's word is taken from a list, not appraised on the spot.** The appraisal
|
|
143
|
-
"this is safe" is assigned by whoever finds it convenient.
|
|
144
|
-
- **A stop the owner sets on a later step is written down the moment it is said.** It is quoted in
|
|
145
|
-
the waiting line: it holds that step and releases the exit guard.
|
|
146
|
-
- **A reply to the owner's order begins with the result, not with intent or its justification.** A
|
|
147
|
-
justification under someone else's accepted decision reads as its appraisal. One exception:
|
|
148
|
-
execution stopped by an obstacle — then the obstacle is named.
|
|
149
|
-
- **The last run of the main branch is read first thing in a session and after every known
|
|
150
|
-
merge.** A red main branch lives until the owner notices; a red run is fixed before new work is taken.
|
|
151
|
-
- **A session does not start work by itself.** The handover, the state from the startup hook and an
|
|
152
|
-
assigned epic say what to do, not whether to work: a start needs the owner's word in the same
|
|
153
|
-
session. An empty message, one word or one path order no work.
|
|
154
|
-
- **A refusal by an external limiter removes the way, not the task.** It names no exit: the way is
|
|
155
|
-
taken from the guard that already described this fix, and the task stays the same.
|
|
156
|
-
- **A question written by a past session does not become a question to the owner.** It is addressed
|
|
157
|
-
to the handover's author, and some are closed by a work step.
|
|
158
|
-
- **The owner's instruction holds until they cancel it, and a new fact against it is a line in the
|
|
159
|
-
reply about the cost, not a new question.** Re-asked is what the instruction does not cover. A
|
|
160
|
-
menu where two options of three offer to cancel the owner's decision is that very cancellation.
|
|
161
|
-
- **An answer in the owner's message counts the same as an answer in a document.** A question
|
|
162
|
-
already answered in the conversation is not asked again.
|
|
163
|
-
- **The owner's word about the design is a task setting, not a decision.** What they named is
|
|
164
|
-
usually in the tree under that word — a name on a screen, a spec section, a model field — and is
|
|
165
|
-
checked against it before the edit. Diverged — the owner is asked.
|
|
166
|
-
- **A task folder is created for any work, no exceptions.** An exception with even one lawful form
|
|
167
|
-
is executed as permission. It goes in before the first edit.
|
|
168
|
-
- **The task folder goes into the branch by a commit, not lives in one working tree.** Uncommitted,
|
|
169
|
-
it passes edits without refusal until the plan is already gone. Outside history one draft without
|
|
170
|
-
a number is lawful.
|
|
171
|
-
- **The task folder is taken apart by the last commit before the PR opens, not after approval.** A
|
|
172
|
-
person merges as soon as they see green, and no room is left for a closing commit.
|
|
173
|
-
- **After opening the PR, the executor tells the owner the number, what it waits for and what comes
|
|
174
|
-
next.** A draft waits for the run, a PR opened ready waits for the owner's hand, and that is said.
|
|
175
|
-
- **A request to merge never comes before the work is checked.** Where the pipeline wakes for this
|
|
176
|
-
base: folder taken apart and pushed → PR as a draft → run green → draft lifted → the request to
|
|
177
|
-
merge, naming the number. Where it does not wake, the green push gate is the check, and opening
|
|
178
|
-
the PR and asking to merge are one turn.
|
|
179
|
-
- **A PR that waits for a run opens as a draft, and one that waits for nothing opens ready.** An
|
|
180
|
-
open PR reads as an invitation to merge. Which of the two applies is decided by the bases the pipeline wakes for, and that is read from its file.
|
|
181
|
-
- **The plan guard is the lower bound of the requirement, not its limit.** It demands a folder only
|
|
182
|
-
for an edit of application code; the article above — for any work.
|
|
183
|
-
- **An instruction to work by a rule or by the progress is an instruction to do all its steps,
|
|
184
|
-
including those that change history.** Marking a stage, a commit, a push and opening a PR are
|
|
185
|
-
prescribed by the rule; questions are asked about what the progress lacks.
|
|
186
|
-
- **A taken task does not end a turn.** Creating the task, the branch, the column and the folder is
|
|
187
|
-
preparation; the turn-exit guard names the first stage in its refusal.
|
|
188
|
-
- **The stages of a plan cover its done-sign whole.** Otherwise every stage closes, the run is
|
|
189
|
-
green, and half the order is not done. Either the stages are written up to the sign, or the sign
|
|
190
|
-
is narrowed to what the stages give.
|
|
191
|
-
- **Every rule of the product agreement becomes a step of some stage.** The plan names, per rule,
|
|
192
|
-
the stage that writes its code and the check that proves it, and is compared with the agreement
|
|
193
|
-
rule by rule before the first stage: a rule with no stage is found at the merge review, when the
|
|
194
|
-
code is written.
|
|
195
|
-
- **A stage's readiness sign is taken from the output of a command run while the plan is written.**
|
|
196
|
-
Written by a guess, it fails at the stage itself.
|
|
197
|
-
- **A plan for work that ports a technique from outside is written by a measurement of one's own
|
|
198
|
-
code.** Reading the sample says how it is built; what is needed here is said by a count over
|
|
199
|
-
one's own files.
|
|
200
|
-
- **A count that becomes the measure of the work is bounded by the declaration, not by the file.**
|
|
201
|
-
A file holds neighbouring sets too.
|
|
202
|
-
- **Waiting for one part of a stage is never a stop of the stage.** The parts independent of what is
|
|
203
|
-
awaited are done in the same turn; the owner is told what is done and what is left for their step.
|
|
204
|
-
- **A finding made mid-stage is checked against the plan's exit conditions before the first edit.**
|
|
205
|
-
A finding named by no exit condition goes to the section on what the work does not do, and is
|
|
206
|
-
filed as a task.
|
|
207
|
-
- **Done work is marked only in the progress.** "Where we stand" is rewritten by every session, not
|
|
208
|
-
appended.
|
|
209
|
-
- **The plan names the steps of every stage, and the progress mirrors them with a mark each.** The
|
|
210
|
-
plan is not edited after it is written, the marks change every turn; a line nobody can call done
|
|
211
|
-
is not a step.
|
|
212
|
-
- **The numbers and the names of the steps are copied from the plan, not reworded.** A check matches
|
|
213
|
-
the two lists: a reworded name reads as a different step.
|
|
214
|
-
- **Exactly one step carries the mark of going on right now, while any step is not done.** Marked on
|
|
215
|
-
none, the progress says the work stands; marked on two, it says nothing at all.
|
|
216
|
-
- **A word for a new notion is looked up in the tree's glossary.** It goes into the context whole
|
|
217
|
-
at session start, so "did not read it" is never a ground.
|
|
218
|
-
- **The task folder is created as a draft and gets its number by a command.** Until the grill ends,
|
|
219
|
-
how many tasks come out is unknown, so the number never comes first.
|
|
220
|
-
- **An abandoned grill is visible.** A draft older than a week is listed by the work queue audit.
|
|
221
|
-
- **Work ordered in words becomes a task in the queue in the same turn.** Even if it will not be
|
|
222
|
-
done now: a draft folder has no number, and one session knows of it. Postponed work names a
|
|
223
|
-
date; postponed silently, it reads as done.
|
|
224
|
-
- **The plan names the points: the epic its milestone, the task the change a person will see.** The
|
|
225
|
-
role `product-strategist` tries to prove the miss in planning and before the PR. A proved miss is
|
|
226
|
-
fixed or named to the owner; no pipeline stops. Every PR body carries the table of points.
|
|
227
|
-
- **An improvement of a rule names the metric it should move, and the next report judges it.** A repair
|
|
228
|
-
names what was broken instead. An edit that moved nothing is named so. The technique is the
|
|
229
|
-
pattern `task-flow-cycle`.
|
|
230
|
-
- **Work is judged by the role `goal-critic` against the owner's words.** A plan is no evidence to
|
|
231
|
-
it, its reply is not edited, and the PR body carries its table.
|
|
232
|
-
- **A mission is set by the owner.** A session only proposes a wording from its analysis and waits
|
|
233
|
-
for approval.
|
|
234
|
-
- **Building by a sample begins with reading the sample itself, whole, by walking the directories.**
|
|
235
|
-
- **Exploration of a tree that holds a code graph begins with the graph.** A tree with a graph names
|
|
236
|
-
the trait `graph` in its settings and follows the pattern `task-flow-graph`: in every turn the
|
|
237
|
-
graph is checked against the head before the first exploration, and a turn that does not use it
|
|
238
|
-
names the reason. Relations are taken from the graph; numbers, behaviour and texts — from the code
|
|
239
|
-
and the documents.
|
|
240
|
-
- **What acts on the tree, not on the edit, lies outside the index.** The path to the sample and the
|
|
241
|
-
permission to work outside the epic do not belong to the branch and live next to the handover. A
|
|
242
|
-
number in the permitted list repeats the owner's word, not replaces it.
|
|
243
|
-
- **Closed work is reviewed by the rules in the background, right after the PR, and its findings
|
|
244
|
-
wait for the owner.** Only the session that led the work sees what was loaded and what was
|
|
245
|
-
missing, and it takes the next task meanwhile. A proposal sent unreviewed becomes the work of
|
|
246
|
-
someone who did not order it; only the digest of observations leaves, always. The technique is
|
|
247
|
-
the pattern `task-flow-archive`.
|
|
248
|
-
- **The cheap closing step goes before the costly one, and the run — after the merge.** A run
|
|
249
|
-
before the merge checks what will not reach main.
|
|
250
|
-
- **The agreement merges into the domain spec by one of the last commits of the branch, before the
|
|
251
|
-
PR opens.** By then the bindings are known, and `proposed/` never appears in main. What is ready
|
|
252
|
-
to merge is listed by `npm run check:specs`.
|
|
253
|
-
- **The folder of a closed task is taken apart, not moved whole.** What explains a decision goes to
|
|
254
|
-
`docs/archive/`; the rest is deleted. One not taken apart is caught by the work queue audit.
|
|
255
|
-
- **Opening the PR and lifting the draft are refused while the branch carries its task folder.** A
|
|
256
|
-
person presses merge on the host, where there are no guards: a lifted draft reads to them as an
|
|
257
|
-
invitation. The branch content is judged, not the working tree.
|
|
258
|
-
- **A branch that removed the folder adds a record to the archive.** Removing is cheaper than taking
|
|
259
|
-
apart, and the grill leaves first — the only record of the owner's words.
|
|
260
|
-
- **The bypass is the line `Task-folder-skip: <reason>` in the PR or in the command itself.** An
|
|
261
|
-
empty reason is no bypass, and the bypass lifts the refusal but does not silence the work queue
|
|
262
|
-
audit line.
|
|
263
|
-
|
|
264
|
-
## What of the law is not here
|
|
265
|
-
|
|
266
|
-
Nothing checks the completeness of the written understanding: the machine sees that a record exists,
|
|
267
|
-
not that it closes every gap. The same for a question worth asking and not asked — it leaves no
|
|
268
|
-
trace. The owner judges both.
|
|
269
|
-
|
|
270
|
-
The guard judges by the edit paths, not by whether the work changes behaviour. A refactoring gets no
|
|
271
|
-
sign of its own: the appraisal "behaviour does not change" would be assigned by whoever it hinders.
|
|
272
|
-
|
|
273
|
-
Nothing of the grill itself is checked: the guard sees a file edit and knows nothing of the
|
|
274
|
-
exploration, the six questions or the answers.
|
|
275
|
-
|
|
276
|
-
The conversation guard judges shared words between the question's topic and the owner's last
|
|
277
|
-
message, not meaning; its refusal names the lawful move.
|
|
278
|
-
|
|
279
|
-
Nothing watches the plan's immutability: an edit along the way is told from the original record only
|
|
280
|
-
by history.
|
|
281
|
-
|
|
282
|
-
Nothing checks that the texts match what was done: the machine cannot see what went stale in a rule
|
|
283
|
-
or a spec. This is held by the closing step and the task footprint in the plan. A rule and a spec
|
|
284
|
-
are edited in the branch, a law is not: its article goes to the owner as text, and the work goes on
|
|
285
|
-
without it.
|
|
286
|
-
|
|
287
|
-
What went to the archive is not checked: the owner judges it at review.
|
|
288
|
-
|
|
289
|
-
The task folder guard judges the executor's call, not the host's button: a person merging from their
|
|
290
|
-
side passes it in silence, and there the requirement is held by a section in the PR body.
|
|
291
|
-
|
|
292
|
-
A tree may reverse the hand-in order by an override. Which package steps stop being executed then
|
|
293
|
-
nothing counts; it is held by reading both texts in a row on every such edit.
|
|
294
|
-
|
|
295
|
-
## Patterns
|
|
296
33
|
|
|
297
|
-
-
|
|
298
|
-
-
|
|
299
|
-
-
|
|
300
|
-
- `task-flow-archive` — taking the task folder apart, the move to the archive, review by the rules.
|
|
301
|
-
- `task-flow-cycle` — an edit chosen by the report and judged by the next one.
|
|
302
|
-
- `task-flow-graph` — where the tree names the trait `graph`: the freshness check, the domain inventory and
|
|
303
|
-
what the graph never answers.
|
|
34
|
+
- **A state line never stands ahead of the measured state.**
|
|
35
|
+
- **A refusal by state names the mandatory action of that state.**
|
|
36
|
+
- **Only a word from the list counts as a state name.**
|