@punks/cli 4.0.2 → 4.0.3
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 +24 -0
- package/dist/CHANGELOG.md +17 -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/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 +12 -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/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/index.js +73 -58
- 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 +12 -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/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
|
@@ -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
|
|
|
@@ -3,70 +3,67 @@
|
|
|
3
3
|
Create or resume exactly one Fog. Allocate its durable wiki identity before a
|
|
4
4
|
provider write; attach the stable provider identity after exact readback.
|
|
5
5
|
|
|
6
|
+
At creation, record the Fog's immutable original intake lens as `Business` or
|
|
7
|
+
`Functional`. The lens selects the interaction profile that captured the
|
|
8
|
+
uncertainty; it is never a maturity state, Stage, or ordered prerequisite.
|
|
9
|
+
Resume preserves the original lens even when later work adds another kind of
|
|
10
|
+
evidence.
|
|
11
|
+
|
|
6
12
|
Read the candidate Fog, direct children, relations, immutable evidence, and
|
|
7
13
|
linked provider objects first. Ambiguous identity or conflicting accepted
|
|
8
14
|
evidence produces zero writes.
|
|
9
15
|
|
|
10
|
-
## Ensure
|
|
11
|
-
|
|
12
|
-
An exact Fog identity, exact Stage, durable child wiki identity, and stage
|
|
13
|
-
cardinality key authorize ensuring one child shell before accepted evidence exists.
|
|
14
|
-
Read all existing direct children before any create or update, then compare
|
|
15
|
-
Stage, durable identity, and cardinality key together.
|
|
16
|
-
|
|
17
|
-
Cardinality keys are:
|
|
16
|
+
## Ensure Grilling Child
|
|
18
17
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
An exact Fog identity, durable child wiki identity, and bounded unknown
|
|
19
|
+
authorize ensuring a generic `grilling` child shell before accepted evidence
|
|
20
|
+
exists. Read every direct child and relation before any create or update.
|
|
22
21
|
|
|
23
|
-
Reuse
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
Reuse an obviously relevant child. Create another child only when the current
|
|
23
|
+
evidence supports separate useful Grilling work and the complete read proves no
|
|
24
|
+
match. Several generic Grilling children are valid; wrapper choice never limits
|
|
25
|
+
their count or requires the same identity across wrappers. Genuine ambiguity
|
|
26
|
+
returns human steering with zero writes.
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
immutable accepted
|
|
28
|
+
After creation, read back the stable provider identity and exact Fog relation.
|
|
29
|
+
The unresolved shell carries its bounded unknown but no accepted decision or
|
|
30
|
+
immutable resolution pointer. It can host the interview and support relations;
|
|
31
|
+
only an immutable accepted Grilling resolution can return accepted evidence to
|
|
32
|
+
Finder reconciliation.
|
|
32
33
|
|
|
33
34
|
## Ensure Research or Prototype Support Child
|
|
34
35
|
|
|
35
|
-
An exact Fog identity,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
ambiguous identity, wrong parent, or conflicting support relation authorizes
|
|
43
|
-
zero writes.
|
|
36
|
+
An exact Fog identity, support kind (`Research` or `Prototype`), durable child
|
|
37
|
+
wiki identity, and the exact unknown or Grilling work supported authorize
|
|
38
|
+
ensuring a direct Fog support child. Read every direct child and relation first.
|
|
39
|
+
Reuse one exact kind, identity, and support-relation match. Create one unresolved
|
|
40
|
+
support child only when the complete read proves zero matches, then read back
|
|
41
|
+
its stable provider identity and exact relation. A duplicate, ambiguous
|
|
42
|
+
identity, wrong parent, or conflicting support relation produces zero writes.
|
|
44
43
|
|
|
45
44
|
The unresolved support child carries no accepted answer, verdict, or immutable
|
|
46
|
-
resolution pointer. Research
|
|
47
|
-
intake
|
|
48
|
-
the
|
|
45
|
+
resolution pointer. Research and Prototype own producing durable evidence;
|
|
46
|
+
intake establishes only the stable child and support relation. Closure records
|
|
47
|
+
the answer or verdict, artifacts or evidence, observations, open decisions, and
|
|
48
|
+
immutable resolution pointer. Research and Prototype cannot authorize backlog
|
|
49
|
+
projection independently.
|
|
49
50
|
|
|
50
|
-
|
|
51
|
-
evidence links, and every Product Area, Initiative, Epic, Story, or Task the Fog
|
|
52
|
-
enriched or produced. Fog never becomes a parent in the product hierarchy.
|
|
51
|
+
## Provenance
|
|
53
52
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
53
|
+
Fog is lateral provenance. Preserve the user's uncertainty, immutable original
|
|
54
|
+
intake lens, accepted decisions, evidence links, and every Product Area,
|
|
55
|
+
Initiative, Epic, Story, or Task the Fog enriched or produced. Fog never becomes
|
|
56
|
+
a parent in the product hierarchy.
|
|
58
57
|
|
|
59
|
-
|
|
60
|
-
evidence, observations, open decisions, and immutable resolution pointer. That
|
|
61
|
-
evidence returns to Finder reconciliation. Support work cannot authorize backlog
|
|
62
|
-
projection by itself.
|
|
58
|
+
Its direct children use these provider-neutral semantics:
|
|
63
59
|
|
|
64
|
-
|
|
65
|
-
|
|
60
|
+
- kind: `grilling`; linked to the bounded unknown it closes
|
|
61
|
+
- kind: `Research` or `Prototype`; linked to the exact unknown or Grilling work
|
|
62
|
+
it supports
|
|
66
63
|
|
|
67
|
-
A Fog may target a fitting existing `V*` milestone iteration when
|
|
68
|
-
|
|
64
|
+
A Fog may target a fitting existing `V*` milestone iteration when intake
|
|
65
|
+
selects it. Reuse that target downstream unless a later explicit decision
|
|
69
66
|
changes it. Moving the Fog requires a topology preview and approval.
|
|
70
67
|
|
|
71
|
-
Returning from a Finder
|
|
72
|
-
intake and provenance; it never infers production or completes the Fog.
|
|
68
|
+
Returning from a Finder's bounded result leaves the Fog open. This branch
|
|
69
|
+
records intake and provenance; it never infers production or completes the Fog.
|