@punks/cli 4.0.2 → 4.0.4
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/dist/BASELINE_CHANGELOG.md +29 -0
- package/dist/CHANGELOG.md +25 -0
- package/dist/baseline/scaffold-baseline/baseline.json +5 -5
- package/dist/baseline/scaffold-baseline/data/catalog/lint-assets.json +10 -4
- package/dist/baseline/scaffold-baseline/data/catalog/packs.json +0 -1
- package/dist/baseline/scaffold-baseline/data/catalog/skills.json +0 -8
- package/dist/baseline/scaffold-baseline/data/hooks/format-edited-file.mjs +602 -101
- package/dist/baseline/scaffold-baseline/data/scripts/commit-gate-runner.d.ts +11 -0
- package/dist/baseline/scaffold-baseline/data/scripts/commit-gate-runner.mjs +103 -0
- package/dist/baseline/scaffold-baseline/data/scripts/commit-gate-runner.test.ts +144 -0
- package/dist/baseline/scaffold-baseline/data/scripts/harness-projection/adapters/claude.mjs +1 -0
- package/dist/baseline/scaffold-baseline/data/scripts/harness-projection/adapters/codex.mjs +1 -0
- package/dist/baseline/scaffold-baseline/data/scripts/harness-projection/adapters/cursor.mjs +1 -0
- package/dist/baseline/scaffold-baseline/data/scripts/harness-projection/adapters/opencode.mjs +1 -0
- package/dist/baseline/scaffold-baseline/data/scripts/harness-projection/contract.ts +24 -33
- package/dist/baseline/scaffold-baseline/data/scripts/harness-projection/core.mjs +4 -0
- package/dist/baseline/scaffold-baseline/data/scripts/harness-projection/core.test.ts +61 -0
- package/dist/baseline/scaffold-baseline/data/scripts/harness-projection/lint-feedback.test.ts +123 -0
- package/dist/baseline/scaffold-baseline/data/scripts/harness-projection/test-fixtures/claude/actions.json +1 -0
- package/dist/baseline/scaffold-baseline/data/scripts/harness-projection/test-fixtures/codex/actions.json +2 -1
- package/dist/baseline/scaffold-baseline/data/scripts/harness-projection/test-fixtures/cursor/projection.json +1 -0
- package/dist/baseline/scaffold-baseline/data/scripts/harness-projection/test-fixtures/opencode/projection.json +1 -0
- package/dist/baseline/scaffold-baseline/data/scripts/sync-subagents-validator.test.ts +59 -0
- package/dist/baseline/scaffold-baseline/data/scripts/sync-subagents.d.mts +1 -0
- package/dist/baseline/scaffold-baseline/data/scripts/sync-subagents.mjs +27 -14
- package/dist/baseline/scaffold-baseline/skills/agnostic/docs/docs-onboarding/SKILL.md +2 -2
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/SKILL.md +32 -32
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/assets/SPEC-TEMPLATE.md +7 -7
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/readiness.md +14 -13
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/spec-quality-bar.md +26 -19
- package/dist/baseline/scaffold-baseline/skills/agnostic/quality/autoreview/SKILL.md +2 -2
- package/dist/baseline/scaffold-baseline/skills/agnostic/quality/autoreview/scripts/autoreview +3 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/brainstorm/SKILL.md +18 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/requirements-grill/SKILL.md +2 -1
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/EXAMPLES.md +9 -9
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/REFERENCE.md +43 -55
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/SKILL.md +68 -63
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/concepts/backlog-model.md +26 -29
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/concepts/story-shape.md +5 -5
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/providers/azure-devops-create-payload.md +1 -1
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/providers/github-projects-create-payload.md +2 -2
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/providers/linear-create-payload.md +1 -1
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/providers/monday-create-payload.md +2 -2
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/business-projection.md +19 -24
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/delivery-status.md +17 -13
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/fog-intake.md +45 -48
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/functional-projection.md +16 -21
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/normalization.md +14 -14
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/project-context.md +32 -27
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/providers/github.md +105 -150
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/providers/linear.md +111 -181
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/technical-projection.md +51 -47
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/scripts/validate-task-blocker-graph.mjs +49 -35
- package/dist/baseline/scaffold-baseline/skills/agnostic/security/security-best-practices/references/javascript-typescript-vue-web-frontend-security.md +1 -1
- package/dist/baseline/scaffold-baseline/skills/frameworks/expo/eas-update-insights/references/update-insights-schema.md +2 -6
- package/dist/baseline/scaffold-baseline/skills/frameworks/expo/expo-skill-eval/SKILL.md +6 -7
- package/dist/baseline/scaffold-baseline/skills/frameworks/pulumi/pulumi-best-practices/SKILL.md +1 -3
- package/dist/baseline/scaffold-baseline/skills/frameworks/pulumi/pulumi-component/SKILL.md +2 -14
- package/dist/baseline/scaffold-baseline/skills/frameworks/tanstack-query/tanstack-query/references/best-practices.md +7 -1
- package/dist/baseline/scaffold-baseline/skills/frameworks/tanstack-query/tanstack-query/templates/devtools-setup.tsx +4 -0
- package/dist/baseline/scaffold-baseline/skills/frameworks/trpc/tanstack-query/references/best-practices.md +7 -1
- package/dist/baseline/scaffold-baseline/skills/frameworks/trpc/tanstack-query/templates/devtools-setup.tsx +4 -0
- package/dist/baseline/scaffold-baseline/skills/languages/typescript/quality-types/SKILL.md +1 -3
- package/dist/baseline/scaffold-baseline/skills/phases/business-finder/SKILL.md +29 -16
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/SKILL.md +1 -1
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/router.md +10 -8
- package/dist/baseline/scaffold-baseline/skills/phases/design-phase/phases/backlog.md +26 -17
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/AUTHORING-HANDOFF.md +51 -261
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/SKILL.md +22 -25
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/ensure-fog.md +13 -23
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/grilling.md +40 -0
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/handback.md +11 -18
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/prototype.md +13 -21
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/reconcile.md +21 -35
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/research.md +13 -18
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/return-target.md +14 -25
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/router.md +22 -56
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/entrypoint-contract.md +25 -26
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/root-routing.md +12 -20
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/runtime-handoff.md +17 -39
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/state-graph.md +27 -49
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/scripts/finder-contract.mjs +40 -359
- package/dist/baseline/scaffold-baseline/skills/phases/functional-finder/SKILL.md +29 -62
- package/dist/baseline/scaffold-baseline/skills/phases/requirements-phase/SKILL.md +49 -13
- package/dist/baseline/scaffold-baseline.json +5 -5
- package/dist/baseline/scaffold-baseline.tgz +0 -0
- package/dist/data/hooks/format-edited-file.d.mts +21 -0
- package/dist/data/hooks/format-edited-file.mjs +588 -98
- package/dist/data/scripts/commit-gate-runner.mjs +103 -0
- package/dist/data/scripts/harness-projection/adapters/claude.mjs +1 -0
- package/dist/data/scripts/harness-projection/adapters/codex.mjs +1 -0
- package/dist/data/scripts/harness-projection/adapters/cursor.mjs +1 -0
- package/dist/data/scripts/harness-projection/adapters/opencode.mjs +1 -0
- package/dist/data/scripts/harness-projection/core.mjs +4 -0
- package/dist/data/scripts/harness-projection/test-fixtures/claude/actions.json +1 -0
- package/dist/data/scripts/harness-projection/test-fixtures/codex/actions.json +2 -1
- package/dist/data/scripts/harness-projection/test-fixtures/cursor/projection.json +1 -0
- package/dist/data/scripts/harness-projection/test-fixtures/opencode/projection.json +1 -0
- package/dist/data/scripts/sync-subagents.d.mts +1 -0
- package/dist/data/scripts/sync-subagents.mjs +30 -13
- package/dist/data/shared-agents.md +2 -60
- package/dist/index.js +73 -64
- package/dist/skills/agnostic/docs/docs-onboarding/SKILL.md +2 -2
- package/dist/skills/agnostic/planning/create-spec/SKILL.md +32 -32
- package/dist/skills/agnostic/planning/create-spec/assets/SPEC-TEMPLATE.md +7 -7
- package/dist/skills/agnostic/planning/create-spec/references/readiness.md +14 -13
- package/dist/skills/agnostic/planning/create-spec/references/spec-quality-bar.md +26 -19
- package/dist/skills/agnostic/quality/autoreview/SKILL.md +2 -2
- package/dist/skills/agnostic/quality/autoreview/scripts/autoreview +3 -0
- package/dist/skills/agnostic/requirements/brainstorm/SKILL.md +18 -0
- package/dist/skills/agnostic/requirements/requirements-grill/SKILL.md +2 -1
- package/dist/skills/agnostic/requirements/write-backlog/EXAMPLES.md +9 -9
- package/dist/skills/agnostic/requirements/write-backlog/REFERENCE.md +43 -55
- package/dist/skills/agnostic/requirements/write-backlog/SKILL.md +68 -63
- package/dist/skills/agnostic/requirements/write-backlog/assets/concepts/backlog-model.md +26 -29
- package/dist/skills/agnostic/requirements/write-backlog/assets/concepts/story-shape.md +5 -5
- package/dist/skills/agnostic/requirements/write-backlog/assets/providers/azure-devops-create-payload.md +1 -1
- package/dist/skills/agnostic/requirements/write-backlog/assets/providers/github-projects-create-payload.md +2 -2
- package/dist/skills/agnostic/requirements/write-backlog/assets/providers/linear-create-payload.md +1 -1
- package/dist/skills/agnostic/requirements/write-backlog/assets/providers/monday-create-payload.md +2 -2
- package/dist/skills/agnostic/requirements/write-backlog/references/business-projection.md +19 -24
- package/dist/skills/agnostic/requirements/write-backlog/references/delivery-status.md +17 -13
- package/dist/skills/agnostic/requirements/write-backlog/references/fog-intake.md +45 -48
- package/dist/skills/agnostic/requirements/write-backlog/references/functional-projection.md +16 -21
- package/dist/skills/agnostic/requirements/write-backlog/references/normalization.md +14 -14
- package/dist/skills/agnostic/requirements/write-backlog/references/project-context.md +32 -27
- package/dist/skills/agnostic/requirements/write-backlog/references/providers/github.md +97 -142
- package/dist/skills/agnostic/requirements/write-backlog/references/providers/linear.md +106 -176
- package/dist/skills/agnostic/requirements/write-backlog/references/technical-projection.md +51 -47
- package/dist/skills/agnostic/requirements/write-backlog/scripts/validate-task-blocker-graph.mjs +55 -31
- package/dist/skills/phases/business-finder/SKILL.md +29 -16
- package/dist/skills/phases/delivery-phase/SKILL.md +1 -1
- package/dist/skills/phases/delivery-phase/phases/router.md +10 -8
- package/dist/skills/phases/design-phase/phases/backlog.md +26 -17
- package/dist/skills/phases/finder-phase/AUTHORING-HANDOFF.md +51 -261
- package/dist/skills/phases/finder-phase/SKILL.md +22 -25
- package/dist/skills/phases/finder-phase/phases/ensure-fog.md +13 -23
- package/dist/skills/phases/finder-phase/phases/grilling.md +40 -0
- package/dist/skills/phases/finder-phase/phases/handback.md +11 -18
- package/dist/skills/phases/finder-phase/phases/prototype.md +13 -21
- package/dist/skills/phases/finder-phase/phases/reconcile.md +21 -35
- package/dist/skills/phases/finder-phase/phases/research.md +13 -18
- package/dist/skills/phases/finder-phase/phases/return-target.md +14 -25
- package/dist/skills/phases/finder-phase/phases/router.md +22 -56
- package/dist/skills/phases/finder-phase/references/entrypoint-contract.md +25 -26
- package/dist/skills/phases/finder-phase/references/root-routing.md +12 -20
- package/dist/skills/phases/finder-phase/references/runtime-handoff.md +17 -39
- package/dist/skills/phases/finder-phase/references/state-graph.md +27 -49
- package/dist/skills/phases/finder-phase/scripts/finder-contract.mjs +44 -357
- package/dist/skills/phases/functional-finder/SKILL.md +29 -62
- package/dist/skills/phases/requirements-phase/SKILL.md +49 -13
- package/package.json +7 -5
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/adopt-business-path.md +0 -52
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/business-grilling.md +0 -68
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/functional-grilling.md +0 -53
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/technical-grilling.md +0 -67
- package/dist/baseline/scaffold-baseline/skills/phases/technical-finder/SKILL.md +0 -74
- package/dist/baseline/scaffold-baseline/skills/phases/technical-finder/agents/openai.yaml +0 -2
- package/dist/skills/phases/finder-phase/phases/adopt-business-path.md +0 -52
- package/dist/skills/phases/finder-phase/phases/business-grilling.md +0 -68
- package/dist/skills/phases/finder-phase/phases/functional-grilling.md +0 -53
- package/dist/skills/phases/finder-phase/phases/technical-grilling.md +0 -67
- package/dist/skills/phases/technical-finder/SKILL.md +0 -74
- package/dist/skills/phases/technical-finder/agents/openai.yaml +0 -2
package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/REFERENCE.md
CHANGED
|
@@ -3,29 +3,27 @@
|
|
|
3
3
|
## Public Seam
|
|
4
4
|
|
|
5
5
|
`write-backlog` accepts one semantic operation and returns its exact provider
|
|
6
|
-
result. Callers
|
|
6
|
+
result. Callers neither select provider primitives nor perform writes.
|
|
7
7
|
|
|
8
8
|
Required input:
|
|
9
9
|
|
|
10
|
-
- operation: initialize/reconstruct, Fog
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
or issue reconciliation
|
|
10
|
+
- operation: initialize/reconstruct, Fog/Grilling/support intake, Business
|
|
11
|
+
projection, Functional projection, delivery projection, Normalization,
|
|
12
|
+
delivery status, or issue reconciliation
|
|
14
13
|
- durable wiki identity for every intended object and stable provider identity
|
|
15
14
|
for every known object
|
|
16
|
-
- immutable accepted evidence
|
|
17
|
-
delivery-
|
|
18
|
-
|
|
19
|
-
- proposed semantic delta, source wording, source links, and expected
|
|
15
|
+
- immutable accepted evidence authorizing projection, Normalization, or a
|
|
16
|
+
delivery-state operation; intake instead carries exact parent, kind, durable
|
|
17
|
+
identity, and bounded unknown
|
|
18
|
+
- proposed semantic delta, source wording, immutable source links, and expected
|
|
20
19
|
provider state
|
|
21
|
-
- exact `V*` milestone for
|
|
22
|
-
- structural approval record
|
|
20
|
+
- exact `V*` milestone for every Story and derived Task
|
|
21
|
+
- structural approval record whenever the delta crosses an approval boundary
|
|
23
22
|
|
|
24
|
-
Missing
|
|
25
|
-
|
|
26
|
-
or resumes the unresolved shell that will later carry that evidence.
|
|
23
|
+
Missing, mutable, ambiguous, or conflicting authority returns every gap with
|
|
24
|
+
zero provider mutations.
|
|
27
25
|
|
|
28
|
-
## Topology
|
|
26
|
+
## Semantic Topology
|
|
29
27
|
|
|
30
28
|
```text
|
|
31
29
|
Product/Backlog Root
|
|
@@ -33,58 +31,48 @@ Product/Backlog Root
|
|
|
33
31
|
└── Initiative
|
|
34
32
|
└── Epic
|
|
35
33
|
└── Story [exactly one contextual V*]
|
|
36
|
-
└── Task
|
|
34
|
+
└── Task [same V* + blocker relations when derived]
|
|
37
35
|
|
|
38
36
|
Fog ──lateral provenance/enrichment──> Product Area | Initiative | Epic | Story | Task
|
|
39
37
|
```
|
|
40
38
|
|
|
41
|
-
Product Areas are
|
|
42
|
-
goals. Epics are long-lived business slices
|
|
43
|
-
|
|
44
|
-
ownable delivery units.
|
|
39
|
+
Product Areas are stable product responsibilities. Initiatives are business
|
|
40
|
+
goals. Epics are long-lived business slices. Stories are shippable product
|
|
41
|
+
outcomes. Derived Tasks are atomic, independently ownable delivery units.
|
|
45
42
|
|
|
46
|
-
Business projection
|
|
47
|
-
|
|
48
|
-
Tasks
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
every Task belongs to the same iteration as its Story. A Fog may target one
|
|
53
|
-
fitting iteration. Product Areas, Initiatives, and Epics span iterations.
|
|
43
|
+
Business projection stops at Product Area and Initiative. Functional projection
|
|
44
|
+
may project that structure plus Epics. Neither Finder projection creates Stories
|
|
45
|
+
or Tasks. Delivery projection starts from an immutable agent-ready `SPEC.md`,
|
|
46
|
+
treats `OUT-###` only as traceability, and derives or reuses the accepted Product
|
|
47
|
+
Area → Initiative → Epic → Story → Task placement. Outcome count imposes no
|
|
48
|
+
provider-item cardinality.
|
|
54
49
|
|
|
55
50
|
## Validation Envelope
|
|
56
51
|
|
|
57
52
|
Before the first provider write:
|
|
58
53
|
|
|
59
|
-
1.
|
|
60
|
-
workspace identity.
|
|
54
|
+
1. Prove Product/Backlog Root, repository, wiki, and actual provider workspace.
|
|
61
55
|
2. Read every target and relation from the provider.
|
|
62
|
-
3. Apply the exact create/enrich/stop decision table from
|
|
63
|
-
[issue reconciliation](references/issue-reconciliation.md). A title is
|
|
64
|
-
discovery evidence
|
|
65
|
-
4. Reuse
|
|
66
|
-
|
|
67
|
-
5. Validate hierarchy,
|
|
68
|
-
links, accepted evidence, and
|
|
69
|
-
6.
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
where required.
|
|
56
|
+
3. Apply the exact create/reuse/enrich/stop decision table from
|
|
57
|
+
[issue reconciliation](references/issue-reconciliation.md). A title is only
|
|
58
|
+
discovery evidence.
|
|
59
|
+
4. Reuse exact structure and fitting `V*` milestones. Require preview and
|
|
60
|
+
explicit approval for material topology changes.
|
|
61
|
+
5. Validate hierarchy, adapter representation, memberships, immutable source
|
|
62
|
+
links, accepted evidence, approval state, and historical-ticket exclusion.
|
|
63
|
+
6. Validate every parent Story and the complete reachable Task graph. Reject a
|
|
64
|
+
missing parent or blocker, milestone mismatch, future-iteration edge,
|
|
65
|
+
self-edge, duplicate edge, or cycle.
|
|
66
|
+
7. Validate a small mutation envelope: ordered operations, stable identities,
|
|
67
|
+
preconditions, and the exact readback comparison expected after each write.
|
|
75
68
|
|
|
76
69
|
## Result Envelope
|
|
77
70
|
|
|
78
|
-
Return
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
- created, enriched, repaired, or unchanged classification
|
|
84
|
-
- exact parents, relations, `V*` membership, fields, views, source links, and
|
|
85
|
-
statuses read back from the provider
|
|
86
|
-
- applied approval record and unresolved delta
|
|
87
|
-
- partial writes and recovery point when a provider request fails
|
|
71
|
+
Return provider, workspace, and Product/Backlog Root identities; operation and
|
|
72
|
+
immutable evidence identity; stable provider IDs and durable wiki identities;
|
|
73
|
+
created, enriched, repaired, or unchanged classification; exact parents,
|
|
74
|
+
relations, `V*` membership, semantic fields, views, source links, and statuses;
|
|
75
|
+
the approval record; observed writes; recovery point; and residual delta.
|
|
88
76
|
|
|
89
|
-
Only exact readback proves success. A successful request
|
|
90
|
-
readback
|
|
77
|
+
Only exact readback proves success. A successful provider request with a
|
|
78
|
+
mismatched readback remains unresolved reconciliation.
|
|
@@ -6,63 +6,65 @@ description: Reconcile or materialize a coherent Linear or GitHub product backlo
|
|
|
6
6
|
# Write Backlog
|
|
7
7
|
|
|
8
8
|
`write-backlog` is the sole physical provider mutation authority. Callers supply
|
|
9
|
-
semantic intent and evidence; this skill owns reconciliation, provider
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
semantic intent and evidence; this skill owns reconciliation, preview, provider
|
|
10
|
+
writes, exact readback, and residual delta. Provider adapters translate
|
|
11
|
+
representation and never redefine product hierarchy policy.
|
|
12
12
|
|
|
13
13
|
Before naming or rewriting domain concepts, read the canonical glossary in the
|
|
14
|
-
routed `requirements-grill` status artifact. Preserve its canonical terms
|
|
15
|
-
|
|
14
|
+
routed `requirements-grill` status artifact. Preserve its canonical terms.
|
|
15
|
+
Route proposed terminology changes through `requirements-grill` instead of
|
|
16
16
|
silently renaming them.
|
|
17
17
|
|
|
18
18
|
## Mutation Pipeline
|
|
19
19
|
|
|
20
|
-
1. Read [project context](references/project-context.md). Resolve
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
deciding whether the operation creates, enriches, or repairs anything.
|
|
20
|
+
1. Read [project context](references/project-context.md). Resolve settings,
|
|
21
|
+
Product/Backlog Root, wiki, repository, and actual provider workspace. A
|
|
22
|
+
missing or legacy destination returns exact `hi ensure` guidance and zero
|
|
23
|
+
writes. Completion means every destination identity is proven.
|
|
24
|
+
2. Read fresh provider state for every intended object, parent, relation,
|
|
25
|
+
milestone, field, and view. Completion means the current topology is known
|
|
26
|
+
by stable provider identity, not inferred from names.
|
|
28
27
|
3. Read [the mutation envelope](REFERENCE.md) and
|
|
29
28
|
[identity reconciliation](references/issue-reconciliation.md). After a
|
|
30
29
|
complete provider search, create on zero stable matches, enrich one stable
|
|
31
|
-
match carrying the same durable wiki identity, and stop on
|
|
32
|
-
conflict, or incomplete search.
|
|
30
|
+
match carrying the same durable wiki identity, and stop on ambiguity,
|
|
31
|
+
conflict, or an incomplete search. Completion means every object has one
|
|
32
|
+
fail-closed create, reuse, enrich, or unchanged decision.
|
|
33
33
|
4. Load exactly one semantic branch:
|
|
34
34
|
- [initialize or reconstruct a backlog](references/backlog-initialization.md)
|
|
35
|
-
- [ensure Fog,
|
|
36
|
-
- [project
|
|
37
|
-
- [project
|
|
38
|
-
- [
|
|
39
|
-
- [normalize
|
|
40
|
-
- [record
|
|
41
|
-
5. Construct the complete intended
|
|
42
|
-
|
|
35
|
+
- [ensure Fog, Grilling, or Research/Prototype intake](references/fog-intake.md)
|
|
36
|
+
- [project Business evidence to the Initiative ceiling](references/business-projection.md)
|
|
37
|
+
- [project Functional evidence to the Epic ceiling](references/functional-projection.md)
|
|
38
|
+
- [derive delivery structure from an immutable specification](references/technical-projection.md)
|
|
39
|
+
- [normalize current backlog state](references/normalization.md)
|
|
40
|
+
- [record observed delivery state](references/delivery-status.md)
|
|
41
|
+
5. Construct the complete intended delta in memory. Validate authority, stable
|
|
42
|
+
identity, provider-neutral hierarchy, adapter representation, source links,
|
|
43
43
|
contextual `V*` membership, and the full reachable Task blocker graph.
|
|
44
|
+
Completion means validation accepts the whole delta before the first write.
|
|
44
45
|
6. Use `$show-me` to preview the authority-derived topology. Boundary, goal,
|
|
45
46
|
parent, roadmap, milestone movement, duplicate closure, merge, split,
|
|
46
|
-
reparenting, or reorganization changes require explicit approval.
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
reparenting, or reorganization changes require explicit approval.
|
|
48
|
+
Divergent-topology repair uses the same gate. The visual explains the
|
|
49
|
+
proposal; it is not approval. Completion means every material structural
|
|
50
|
+
decision has an approval record.
|
|
49
51
|
7. Apply `$wait-what` when proposed ticket wording or project terms do not land.
|
|
50
|
-
Re-pitch in
|
|
51
|
-
wording instead of silently renaming it.
|
|
52
|
+
Re-pitch in canonical language while preserving accepted meaning.
|
|
52
53
|
8. Select exactly one adapter from `backlogProvider`:
|
|
53
54
|
- `Linear`: read [the Linear provider branch](references/providers/linear.md).
|
|
54
55
|
- `GitHub`: read [the GitHub provider branch](references/providers/github.md).
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
9. Write only the
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
the
|
|
61
|
-
10. Return
|
|
62
|
-
created/enriched/unchanged classification,
|
|
63
|
-
|
|
56
|
+
A missing hierarchy, metadata, milestone, relation, or readback capability
|
|
57
|
+
returns setup guidance and zero provider mutations.
|
|
58
|
+
9. Write only the validated, approved delta. Read back every intended identity,
|
|
59
|
+
parent, relation, source link, field, view, milestone, status, and provider
|
|
60
|
+
object. On partial failure, stop further writes and return observed writes
|
|
61
|
+
plus the exact residual delta.
|
|
62
|
+
10. Return stable provider IDs and URLs, durable wiki identities, operation,
|
|
63
|
+
created/enriched/repaired/unchanged classification, approvals, exact
|
|
64
|
+
readback, and residual delta. Completion requires the return envelope to
|
|
65
|
+
reconcile byte-for-byte with the intended provider state.
|
|
64
66
|
|
|
65
|
-
## Invariants
|
|
67
|
+
## Provider-Neutral Invariants
|
|
66
68
|
|
|
67
69
|
```text
|
|
68
70
|
Product/Backlog Root
|
|
@@ -70,35 +72,38 @@ Product/Backlog Root
|
|
|
70
72
|
└── Initiative
|
|
71
73
|
└── Epic
|
|
72
74
|
└── Story [one contextual V*]
|
|
73
|
-
└── Task
|
|
75
|
+
└── Task [same V* + blockers when derived]
|
|
74
76
|
|
|
75
|
-
Fog ──provenance/enrichment──> Area | Initiative | Epic | Story | Task
|
|
77
|
+
Fog ──provenance/enrichment──> Product Area | Initiative | Epic | Story | Task
|
|
76
78
|
```
|
|
77
79
|
|
|
78
|
-
- Business projection
|
|
79
|
-
- Functional projection
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
-
|
|
90
|
-
|
|
91
|
-
-
|
|
92
|
-
|
|
80
|
+
- Business Finder projection stops at Product Area and Initiative.
|
|
81
|
+
- Functional Finder projection may project that Business structure plus Epics.
|
|
82
|
+
Neither Finder branch creates Stories or Tasks.
|
|
83
|
+
- Delivery projection consumes an agent-ready `SPEC.md` through its
|
|
84
|
+
verified stable blob URL. Neutral `OUT-###` outcomes remain traceability
|
|
85
|
+
while Write Backlog derives or reuses the Product Area, Initiative, Epic,
|
|
86
|
+
Story, and Task identities
|
|
87
|
+
supported by the requirements. Outcome count prescribes no item count.
|
|
88
|
+
- Every Story has exactly one contextual `V*` milestone. Every derived Task has
|
|
89
|
+
its Story's milestone. Product Areas, Initiatives, and Epics may span
|
|
90
|
+
iterations.
|
|
91
|
+
- Blockers, rather than list or milestone order, define precedence. Validate
|
|
92
|
+
the complete reachable graph before mutation.
|
|
93
|
+
- Fog is lateral provenance, never a hierarchy parent. Historical staged
|
|
94
|
+
tickets remain unchanged unless a separately authorized operation targets an
|
|
95
|
+
exact ticket.
|
|
93
96
|
|
|
94
97
|
## Body Contract
|
|
95
98
|
|
|
96
|
-
Every written ticket
|
|
97
|
-
authority.
|
|
98
|
-
|
|
99
|
-
`
|
|
100
|
-
|
|
101
|
-
|
|
99
|
+
Every written ticket remains understandable from its immutable specification
|
|
100
|
+
authority. Preserve applicable `OUT-###`/`AC-###` traceability, source links,
|
|
101
|
+
accepted wording, non-goals, dependencies, and provider-native relations.
|
|
102
|
+
Add a compact `$show-me` visual when the relationships are harder to understand than the prose.
|
|
103
|
+
The visual does not replace traceability, immutable evidence, or
|
|
104
|
+
provider-native relations.
|
|
105
|
+
Concrete files, commands, workers, and execution notes stay in planning and
|
|
106
|
+
delivery artifacts.
|
|
102
107
|
|
|
103
|
-
See [examples](EXAMPLES.md) for representative
|
|
104
|
-
|
|
108
|
+
See [examples](EXAMPLES.md) for representative results. Finder, Requirements,
|
|
109
|
+
planning, and delivery callers never perform provider writes themselves.
|
|
@@ -8,7 +8,7 @@ Product/Backlog Root
|
|
|
8
8
|
└── Initiative
|
|
9
9
|
└── Epic
|
|
10
10
|
└── Story [exactly one contextual V*]
|
|
11
|
-
└── Task
|
|
11
|
+
└── Task [same V* + blocker relations when derived]
|
|
12
12
|
|
|
13
13
|
Fog ──lateral provenance/enrichment──> Product Area | Initiative | Epic | Story | Task
|
|
14
14
|
```
|
|
@@ -16,45 +16,42 @@ Fog ──lateral provenance/enrichment──> Product Area | Initiative | Epic
|
|
|
16
16
|
- Product Area: stable product responsibility.
|
|
17
17
|
- Initiative: business goal within one Product Area.
|
|
18
18
|
- Epic: long-lived business slice within one Initiative.
|
|
19
|
-
- Story:
|
|
20
|
-
- Task:
|
|
21
|
-
- Fog:
|
|
19
|
+
- Story: shippable product outcome within one Epic.
|
|
20
|
+
- Task: derived atomic, owner-ready Story work.
|
|
21
|
+
- Fog: intake, evidence, decision history, and delivery provenance.
|
|
22
22
|
|
|
23
|
-
##
|
|
23
|
+
## Projection Boundaries
|
|
24
24
|
|
|
25
|
-
- Business
|
|
26
|
-
Initiative
|
|
27
|
-
- Functional
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
- Business Finder may reuse, enrich, or create Product Areas and Initiatives;
|
|
26
|
+
Initiative is its ceiling.
|
|
27
|
+
- Functional Finder may project that Business structure plus Epics; Epic is its
|
|
28
|
+
ceiling. Neither Finder branch creates Stories or Tasks.
|
|
29
|
+
- Requirements Phase supplies an immutable agent-ready `SPEC.md` with neutral
|
|
30
|
+
`OUT-###` outcomes. Write Backlog derives or reuses Product Area → Initiative
|
|
31
|
+
→ Epic → Story → Task placement and native blocker relations. Outcome identity
|
|
32
|
+
remains traceability and imposes no Story or Task cardinality.
|
|
30
33
|
|
|
31
|
-
Every
|
|
32
|
-
|
|
33
|
-
ownership level and does not replace native parent relations.
|
|
34
|
+
Every projection preserves immutable evidence and exact provider identities.
|
|
35
|
+
Fog is lateral provenance and does not replace native parent relations.
|
|
34
36
|
|
|
35
|
-
## Iterations
|
|
37
|
+
## Iterations and Blockers
|
|
36
38
|
|
|
37
|
-
Every Story belongs to exactly one contextual `V*` milestone
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
Reuse a fitting existing milestone before proposing another. Moving work to a
|
|
41
|
-
different iteration requires explicit approval. Milestones do not encode Task
|
|
42
|
-
precedence.
|
|
39
|
+
Every Story belongs to exactly one contextual `V*` milestone. Every derived
|
|
40
|
+
Task belongs to its Story's milestone. Product Areas, Initiatives, and Epics may
|
|
41
|
+
span iterations.
|
|
43
42
|
|
|
44
43
|
Validate the complete reachable Task graph before mutation:
|
|
45
44
|
|
|
46
|
-
1. Resolve every blocker target by stable identity.
|
|
47
|
-
2. Reject missing
|
|
48
|
-
3. Reject a dependency on a future `V*` milestone
|
|
45
|
+
1. Resolve every parent Story and blocker target by stable identity.
|
|
46
|
+
2. Reject missing identities, duplicate edges, and self-edges.
|
|
47
|
+
3. Reject a dependency on a future `V*` milestone.
|
|
49
48
|
4. Reject cycles across all reachable Tasks.
|
|
50
49
|
5. Preserve real blockers across Stories and Epics.
|
|
51
50
|
|
|
52
51
|
## Mutation Boundary
|
|
53
52
|
|
|
54
53
|
Construct and validate the full intended provider delta before the first write.
|
|
55
|
-
An identity, hierarchy, milestone,
|
|
56
|
-
failure produces zero provider mutations. After writing, exact
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
Provider writes may fail between requests. Return all observed provider IDs and
|
|
60
|
-
the unresolved delta; never claim transactional atomicity.
|
|
54
|
+
An authority, identity, hierarchy, milestone, representation, or approval
|
|
55
|
+
failure produces zero provider mutations. After writing, exact readback must
|
|
56
|
+
prove every intended object and relation. A partial failure returns observed
|
|
57
|
+
provider IDs and the residual delta without claiming atomic success.
|
|
@@ -16,14 +16,14 @@ milestone, blocker, provenance, source, and approval records remain authority.
|
|
|
16
16
|
- uncertainty or request
|
|
17
17
|
- why it is still Fog
|
|
18
18
|
- accepted and open decisions
|
|
19
|
-
-
|
|
19
|
+
- generic Grilling child identities and immutable intake lens
|
|
20
20
|
- supporting Research or Prototype evidence
|
|
21
21
|
- affected or produced backlog objects
|
|
22
22
|
- target and completion iteration when known
|
|
23
23
|
|
|
24
24
|
## Grilling Body
|
|
25
25
|
|
|
26
|
-
-
|
|
26
|
+
- bounded unknown closed by this generic Grilling child
|
|
27
27
|
- question and accepted decision
|
|
28
28
|
- evidence, observations, and open decisions
|
|
29
29
|
- immutable resolution pointer
|
|
@@ -48,9 +48,9 @@ decisions, and immutable resolution pointer.
|
|
|
48
48
|
|
|
49
49
|
[One shippable product result]
|
|
50
50
|
|
|
51
|
-
## Source
|
|
51
|
+
## Source outcomes
|
|
52
52
|
|
|
53
|
-
- `
|
|
53
|
+
- `OUT-###`
|
|
54
54
|
|
|
55
55
|
## Acceptance criteria
|
|
56
56
|
|
|
@@ -111,7 +111,7 @@ decisions, and immutable resolution pointer.
|
|
|
111
111
|
|
|
112
112
|
- Parent Story: ...
|
|
113
113
|
- Immutable spec: ...
|
|
114
|
-
-
|
|
114
|
+
- Compiled outcome and Fog provenance: ...
|
|
115
115
|
- Milestone iteration: same `V*` as Story
|
|
116
116
|
```
|
|
117
117
|
|
|
@@ -235,14 +235,14 @@ mutation CreateStory(
|
|
|
235
235
|
Story body ownership:
|
|
236
236
|
|
|
237
237
|
- outcome
|
|
238
|
-
- source `
|
|
238
|
+
- source outcome `OUT-###`
|
|
239
239
|
- covered `AC-###`
|
|
240
240
|
- demonstration
|
|
241
241
|
- non-goals
|
|
242
242
|
- immutable spec link
|
|
243
243
|
- accepted artifact links
|
|
244
244
|
|
|
245
|
-
Minimum body headings: `Outcome`, `Source
|
|
245
|
+
Minimum body headings: `Outcome`, `Source outcomes`, `Acceptance criteria`, `Demonstration`, `Non-goals`, and `Links`.
|
|
246
246
|
|
|
247
247
|
After creation, set Project fields:
|
|
248
248
|
|
|
@@ -183,7 +183,7 @@ Tool:
|
|
|
183
183
|
"boardId": 123456789,
|
|
184
184
|
"parentItemId": 987654321,
|
|
185
185
|
"name": "Lead reassigns ownership to another reviewer",
|
|
186
|
-
"columnValues": "{\"long_text\":\"Outcome: ...\\n\\nSource
|
|
186
|
+
"columnValues": "{\"long_text\":\"Outcome: ...\\n\\nSource outcomes: OUT-001\\n\\nAcceptance criteria: AC-001\\n\\nDemonstration: ...\\n\\nAccepted artifacts: ...\",\"kind\":{\"label\":\"story\"}}"
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
189
|
```
|
|
@@ -191,7 +191,7 @@ Tool:
|
|
|
191
191
|
Story body ownership:
|
|
192
192
|
|
|
193
193
|
- outcome
|
|
194
|
-
- source `
|
|
194
|
+
- source outcome `OUT-###`
|
|
195
195
|
- covered `AC-###`
|
|
196
196
|
- demonstration
|
|
197
197
|
- non-goals
|
|
@@ -1,31 +1,26 @@
|
|
|
1
1
|
# Business Projection
|
|
2
2
|
|
|
3
|
-
Require
|
|
4
|
-
and fresh reads of relevant Product Areas
|
|
5
|
-
milestones.
|
|
3
|
+
Require immutable accepted Business evidence, its Fog identity when Finder
|
|
4
|
+
supplied one, and fresh reads of relevant Product Areas and Initiatives.
|
|
6
5
|
|
|
7
|
-
|
|
6
|
+
Business projection has a strict Product Area → Initiative ceiling. It creates
|
|
7
|
+
or enriches neither Epic, Story, nor Task delivery depth.
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
2. Complete the provider search using durable wiki identity and any known stable
|
|
11
|
-
provider identity.
|
|
12
|
-
3. Reuse or enrich the exact Product Area → Initiative → Epic path when one
|
|
13
|
-
stable match carries the same durable wiki identity.
|
|
14
|
-
4. Enrich the exact existing structure when the accepted meaning adds durable
|
|
15
|
-
context without changing its boundary.
|
|
16
|
-
5. Exact-create only the missing level when the complete search has zero stable
|
|
17
|
-
matches and the accepted resolution authorizes it.
|
|
9
|
+
## Resolve the Path
|
|
18
10
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
11
|
+
1. Identify the business outcome and affected product responsibility.
|
|
12
|
+
2. Complete the provider search by durable wiki identity and known stable
|
|
13
|
+
provider identity.
|
|
14
|
+
3. Reuse or enrich the exact Product Area → Initiative path when one stable
|
|
15
|
+
match carries the same durable wiki identity.
|
|
16
|
+
4. Exact-create only a missing Product Area or Initiative when a complete
|
|
17
|
+
search finds zero matches and accepted evidence authorizes it.
|
|
18
|
+
5. Treat a cross-Area or cross-Initiative request as scope expansion. Preview
|
|
19
|
+
the split with `$show-me` and require explicit approval.
|
|
24
20
|
|
|
25
|
-
## Write
|
|
21
|
+
## Write and Read Back
|
|
26
22
|
|
|
27
|
-
Preserve
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
identities to Finder without creating lower-stage delivery work.
|
|
23
|
+
Preserve accepted wording, goal, outcomes, boundaries, constraints, non-goals,
|
|
24
|
+
source links, and Fog provenance. Write only the validated delta. Read back the
|
|
25
|
+
resolved Product Area and Initiative identities and provenance. Return them to
|
|
26
|
+
Finder without creating an Epic, Story, Task, or milestone-bound structure.
|
|
@@ -15,6 +15,7 @@ of these facts, each with its evidence source and observation time:
|
|
|
15
15
|
|
|
16
16
|
- work started or changed to in-progress
|
|
17
17
|
- blocked, including the blocker reason and evidence
|
|
18
|
+
- review evidence and observed result
|
|
18
19
|
- pull request URL and observed state
|
|
19
20
|
- merge evidence
|
|
20
21
|
- staging deployment evidence
|
|
@@ -23,22 +24,24 @@ of these facts, each with its evidence source and observation time:
|
|
|
23
24
|
|
|
24
25
|
For each newly observed fact, immediately record the exact linked Story or Task
|
|
25
26
|
delta through the provider adapter, then read back that fact before continuing.
|
|
26
|
-
Do not delay a start, blocker, or pull request update until a later
|
|
27
|
-
event.
|
|
27
|
+
Do not delay a start, blocker, review, or pull request update until a later
|
|
28
|
+
delivery event.
|
|
28
29
|
|
|
29
30
|
## Evidence Boundaries
|
|
30
31
|
|
|
31
|
-
|
|
32
|
-
|
|
32
|
+
Each fact remains distinct; one observed fact cannot infer another. Record
|
|
33
|
+
directly observed merge evidence as a merge fact only. Merge is never staging
|
|
34
|
+
deployment or production deployment. Staging is never production.
|
|
33
35
|
Recording merge leaves staging evidence, production evidence, and Fog
|
|
34
36
|
completion unchanged; the Fog remains open.
|
|
35
37
|
|
|
36
38
|
## Fog Completion
|
|
37
39
|
|
|
38
|
-
Before considering completion, read the Fog's
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
each exact stable
|
|
40
|
+
Before considering completion, read the Fog's accepted resulting scope from
|
|
41
|
+
immutable Grilling resolutions and provenance. This scope is the exact set of
|
|
42
|
+
Story and Task identities produced, plus provenance links to every Epic
|
|
43
|
+
enriched. Read the current production evidence linked to each exact stable
|
|
44
|
+
identity.
|
|
42
45
|
|
|
43
46
|
Complete the Fog only when exact production evidence covers every accepted
|
|
44
47
|
resulting Story and Task and therefore proves the Fog's accepted Epic
|
|
@@ -46,11 +49,12 @@ contribution reached production. A shared Epic may remain open for work outside
|
|
|
46
49
|
this Fog. Child creation, Task creation, merge, and staging deployment cannot
|
|
47
50
|
complete a Fog.
|
|
48
51
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
Cancelled and Superseded Fogs receive no completion credit, regardless of
|
|
53
|
+
coverage. Otherwise, list every identity missing production evidence; while any
|
|
54
|
+
remain, the Fog remains open. On complete coverage, record the final contextual
|
|
55
|
+
`V*` milestone iteration in which the last required scope reached production,
|
|
56
|
+
then read back the Fog status, completion iteration, scope links, and production
|
|
57
|
+
evidence.
|
|
54
58
|
|
|
55
59
|
## Result
|
|
56
60
|
|