@punks/cli 3.3.6 → 4.0.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/dist/BASELINE_CHANGELOG.md +10 -2
- package/dist/CHANGELOG.md +14 -0
- package/dist/baseline/scaffold-baseline/baseline.json +5 -5
- package/dist/baseline/scaffold-baseline/data/catalog/packs.json +3 -0
- package/dist/baseline/scaffold-baseline/data/catalog/skills.json +24 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/docs/docs-onboarding/SKILL.md +20 -4
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-plan/SKILL.md +14 -9
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-plan/references/backlog-sync.md +61 -29
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-plan/references/plan-schema.md +25 -6
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/SKILL.md +10 -4
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/readiness.md +4 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/SKILL.md +20 -1
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/references/lifecycle.md +20 -3
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/wayfinder/SKILL.md +13 -36
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/EXAMPLES.md +42 -26
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/REFERENCE.md +80 -97
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/SKILL.md +93 -96
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/concepts/backlog-model.md +43 -52
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/concepts/story-shape.md +70 -136
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/backlog-initialization.md +88 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/business-projection.md +31 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/delivery-status.md +66 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/fog-intake.md +72 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/functional-projection.md +27 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/issue-reconciliation.md +76 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/normalization.md +105 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/project-context.md +43 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/providers/github.md +168 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/providers/linear.md +190 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/references/technical-projection.md +65 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/scripts/validate-task-blocker-graph.mjs +137 -0
- package/dist/baseline/scaffold-baseline/skills/phases/business-finder/SKILL.md +30 -0
- package/dist/baseline/scaffold-baseline/skills/phases/business-finder/agents/openai.yaml +2 -0
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/backlog.md +10 -3
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/closeout.md +12 -0
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/implement.md +21 -0
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/router.md +8 -0
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/references/artifact-state.md +18 -3
- package/dist/baseline/scaffold-baseline/skills/phases/design-phase/phases/backlog.md +9 -1
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/AUTHORING-HANDOFF.md +276 -0
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/SKILL.md +43 -51
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/agents/openai.yaml +1 -1
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/adopt-business-path.md +52 -0
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/business-grilling.md +68 -0
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/ensure-fog.md +43 -0
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/functional-grilling.md +53 -0
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/handback.md +36 -0
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/prototype.md +40 -0
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/reconcile.md +52 -0
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/research.md +38 -0
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/return-target.md +42 -0
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/router.md +64 -0
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/technical-grilling.md +67 -0
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/entrypoint-contract.md +38 -0
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/root-routing.md +14 -27
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/runtime-handoff.md +62 -0
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/state-graph.md +60 -0
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/scripts/finder-contract.mjs +383 -0
- package/dist/baseline/scaffold-baseline/skills/phases/functional-finder/SKILL.md +78 -0
- package/dist/baseline/scaffold-baseline/skills/phases/functional-finder/agents/openai.yaml +2 -0
- package/dist/baseline/scaffold-baseline/skills/phases/technical-finder/SKILL.md +74 -0
- package/dist/baseline/scaffold-baseline/skills/phases/technical-finder/agents/openai.yaml +2 -0
- package/dist/baseline/scaffold-baseline.json +5 -5
- package/dist/baseline/scaffold-baseline.tgz +0 -0
- package/dist/index.js +6 -6
- package/dist/skills/agnostic/docs/docs-onboarding/SKILL.md +20 -4
- package/dist/skills/agnostic/planning/create-plan/SKILL.md +14 -9
- package/dist/skills/agnostic/planning/create-plan/references/backlog-sync.md +61 -29
- package/dist/skills/agnostic/planning/create-plan/references/plan-schema.md +25 -6
- package/dist/skills/agnostic/planning/create-spec/SKILL.md +10 -4
- package/dist/skills/agnostic/planning/create-spec/references/readiness.md +4 -0
- package/dist/skills/agnostic/planning/implement-spec/SKILL.md +20 -1
- package/dist/skills/agnostic/planning/implement-spec/references/lifecycle.md +20 -3
- package/dist/skills/agnostic/planning/wayfinder/SKILL.md +13 -36
- package/dist/skills/agnostic/requirements/write-backlog/EXAMPLES.md +42 -26
- package/dist/skills/agnostic/requirements/write-backlog/REFERENCE.md +80 -97
- package/dist/skills/agnostic/requirements/write-backlog/SKILL.md +93 -96
- package/dist/skills/agnostic/requirements/write-backlog/assets/concepts/backlog-model.md +43 -52
- package/dist/skills/agnostic/requirements/write-backlog/assets/concepts/story-shape.md +70 -136
- package/dist/skills/agnostic/requirements/write-backlog/references/backlog-initialization.md +88 -0
- package/dist/skills/agnostic/requirements/write-backlog/references/business-projection.md +31 -0
- package/dist/skills/agnostic/requirements/write-backlog/references/delivery-status.md +66 -0
- package/dist/skills/agnostic/requirements/write-backlog/references/fog-intake.md +72 -0
- package/dist/skills/agnostic/requirements/write-backlog/references/functional-projection.md +27 -0
- package/dist/skills/agnostic/requirements/write-backlog/references/issue-reconciliation.md +76 -0
- package/dist/skills/agnostic/requirements/write-backlog/references/normalization.md +105 -0
- package/dist/skills/agnostic/requirements/write-backlog/references/project-context.md +43 -0
- package/dist/skills/agnostic/requirements/write-backlog/references/providers/github.md +168 -0
- package/dist/skills/agnostic/requirements/write-backlog/references/providers/linear.md +190 -0
- package/dist/skills/agnostic/requirements/write-backlog/references/technical-projection.md +65 -0
- package/dist/skills/agnostic/requirements/write-backlog/scripts/validate-task-blocker-graph.mjs +135 -0
- package/dist/skills/phases/business-finder/SKILL.md +30 -0
- package/dist/skills/phases/business-finder/agents/openai.yaml +2 -0
- package/dist/skills/phases/delivery-phase/phases/backlog.md +10 -3
- package/dist/skills/phases/delivery-phase/phases/closeout.md +12 -0
- package/dist/skills/phases/delivery-phase/phases/implement.md +21 -0
- package/dist/skills/phases/delivery-phase/phases/router.md +8 -0
- package/dist/skills/phases/delivery-phase/references/artifact-state.md +18 -3
- package/dist/skills/phases/design-phase/phases/backlog.md +9 -1
- package/dist/skills/phases/finder-phase/AUTHORING-HANDOFF.md +276 -0
- package/dist/skills/phases/finder-phase/SKILL.md +43 -51
- package/dist/skills/phases/finder-phase/agents/openai.yaml +1 -1
- package/dist/skills/phases/finder-phase/phases/adopt-business-path.md +52 -0
- package/dist/skills/phases/finder-phase/phases/business-grilling.md +68 -0
- package/dist/skills/phases/finder-phase/phases/ensure-fog.md +43 -0
- package/dist/skills/phases/finder-phase/phases/functional-grilling.md +53 -0
- package/dist/skills/phases/finder-phase/phases/handback.md +36 -0
- package/dist/skills/phases/finder-phase/phases/prototype.md +40 -0
- package/dist/skills/phases/finder-phase/phases/reconcile.md +52 -0
- package/dist/skills/phases/finder-phase/phases/research.md +38 -0
- package/dist/skills/phases/finder-phase/phases/return-target.md +42 -0
- package/dist/skills/phases/finder-phase/phases/router.md +64 -0
- package/dist/skills/phases/finder-phase/phases/technical-grilling.md +67 -0
- package/dist/skills/phases/finder-phase/references/entrypoint-contract.md +38 -0
- package/dist/skills/phases/finder-phase/references/root-routing.md +14 -27
- package/dist/skills/phases/finder-phase/references/runtime-handoff.md +62 -0
- package/dist/skills/phases/finder-phase/references/state-graph.md +60 -0
- package/dist/skills/phases/finder-phase/scripts/finder-contract.mjs +383 -0
- package/dist/skills/phases/functional-finder/SKILL.md +78 -0
- package/dist/skills/phases/functional-finder/agents/openai.yaml +2 -0
- package/dist/skills/phases/technical-finder/SKILL.md +74 -0
- package/dist/skills/phases/technical-finder/agents/openai.yaml +2 -0
- package/package.json +4 -2
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/convergence.md +0 -39
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/frontier-lifecycle.md +0 -76
- package/dist/skills/phases/finder-phase/references/convergence.md +0 -39
- package/dist/skills/phases/finder-phase/references/frontier-lifecycle.md +0 -76
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
# Normalization
|
|
2
|
+
|
|
3
|
+
Use this branch only for an explicit Normalization request. Invocation cadence
|
|
4
|
+
belongs to the caller.
|
|
5
|
+
|
|
6
|
+
## Inventory
|
|
7
|
+
|
|
8
|
+
Read the project wiki, fresh provider state, and every durable wiki and stable
|
|
9
|
+
provider identity before classifying drift. Read the configured
|
|
10
|
+
Product/Backlog Root, full product topology, Fog children, semantic fields,
|
|
11
|
+
views, milestones, statuses, relations, provenance, and immutable evidence.
|
|
12
|
+
Complete the inventory only when every relevant object is classified as exact,
|
|
13
|
+
drifted, ambiguous, or conflicting.
|
|
14
|
+
|
|
15
|
+
Detect every accepted drift class:
|
|
16
|
+
|
|
17
|
+
- invalid Fog child placement
|
|
18
|
+
- missing or invalid `Grilling Stage`
|
|
19
|
+
- duplicate or ambiguous structures
|
|
20
|
+
- stale links or status
|
|
21
|
+
- hierarchy drift
|
|
22
|
+
- roadmap or milestone drift
|
|
23
|
+
- wiki/provider disagreement
|
|
24
|
+
|
|
25
|
+
Audit the Fog-child lifecycle against these exact semantics:
|
|
26
|
+
|
|
27
|
+
- Fog direct children are `grilling`, Research, or Prototype items.
|
|
28
|
+
- Every `grilling` child has exactly one `Grilling Stage`: Business,
|
|
29
|
+
Functional, or Technical. `Grilling Stage` is absent from every other kind.
|
|
30
|
+
- One Fog has one Business child, one or more Functional children, and one
|
|
31
|
+
Technical child per Story.
|
|
32
|
+
- Research and Prototype children link to the exact grilling child they support.
|
|
33
|
+
|
|
34
|
+
New and resumed work uses the Fog-child lifecycle immediately. There is no
|
|
35
|
+
compatibility writer for the former Fog-graduation model. Normalization may
|
|
36
|
+
describe a legacy-shape migration, but that migration is a structural proposal
|
|
37
|
+
subject to preview and explicit approval.
|
|
38
|
+
|
|
39
|
+
Provider state proves operational facts. The wiki proves durable product
|
|
40
|
+
meaning. Stable provider identity plus durable wiki identity proves an exact
|
|
41
|
+
object; title similarity remains discovery evidence.
|
|
42
|
+
|
|
43
|
+
## Classify The Delta
|
|
44
|
+
|
|
45
|
+
For each finding, record the stable identities, owning authority, observed
|
|
46
|
+
state, intended state, drift class, dependent objects, and proposed action.
|
|
47
|
+
Ambiguous identities, incomplete searches, or conflicting authorities produce
|
|
48
|
+
zero writes. A wiki/provider disagreement about product meaning requires a new
|
|
49
|
+
human decision persisted in the wiki before another attempt.
|
|
50
|
+
|
|
51
|
+
Automatically repair only an unambiguous additive mapping or stale operational
|
|
52
|
+
field after complete preflight proves all of these conditions:
|
|
53
|
+
|
|
54
|
+
1. Durable wiki identity and stable provider identity select one exact object.
|
|
55
|
+
2. Fresh authority makes the intended value single-valued.
|
|
56
|
+
3. The delta adds a missing provenance or source relation, or replaces one
|
|
57
|
+
stale status, link, owner, or other operational value with that exact value.
|
|
58
|
+
4. The delta preserves hierarchy, product boundary, goal, roadmap commitment,
|
|
59
|
+
milestone membership, duplicate semantics, and every dependent relation.
|
|
60
|
+
|
|
61
|
+
Apply one safe repair at a time. Exact readback must prove the repaired field or
|
|
62
|
+
relation before the next write. For example, when one exact Story retains its
|
|
63
|
+
Fog relation but lacks the immutable reciprocal Fog source link required by the
|
|
64
|
+
accepted evidence, add that link and read back the exact Story body and Fog
|
|
65
|
+
relation. A similar title or inferred intent never qualifies.
|
|
66
|
+
|
|
67
|
+
## Structural Approval
|
|
68
|
+
|
|
69
|
+
Treat duplicate closure, merge, split, boundary change, goal change,
|
|
70
|
+
reparenting, milestone movement, reorganization, and migration from the former
|
|
71
|
+
Fog-graduation shape as structural. Use `$show-me` to present the exact current
|
|
72
|
+
and proposed topology before asking for explicit approval:
|
|
73
|
+
|
|
74
|
+
```text
|
|
75
|
+
Current (fresh provider read + durable wiki identity)
|
|
76
|
+
Root [stable ID]
|
|
77
|
+
└── Area A [stable ID]
|
|
78
|
+
└── Initiative A [stable ID]
|
|
79
|
+
└── Epic A [stable ID]
|
|
80
|
+
|
|
81
|
+
After (proposal only)
|
|
82
|
+
Root [same stable ID]
|
|
83
|
+
└── Area B [stable ID]
|
|
84
|
+
└── Initiative A [same stable ID, proposed new parent]
|
|
85
|
+
└── Epic A [same stable ID]
|
|
86
|
+
|
|
87
|
+
State: awaiting explicit approval
|
|
88
|
+
Provider mutations: zero
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
Label every unchanged, added, removed, moved, merged, split, and superseded
|
|
92
|
+
object. Include affected Fogs, Stories, Tasks, `V*` memberships, blockers,
|
|
93
|
+
views, source links, and the durable authority for the intended shape. The
|
|
94
|
+
visual explains the decision; it cannot grant approval. Keep zero provider
|
|
95
|
+
mutations until the user explicitly approves that exact proposal. A revised
|
|
96
|
+
proposal requires a new preview and approval.
|
|
97
|
+
|
|
98
|
+
## Apply And Return
|
|
99
|
+
|
|
100
|
+
Load provider-specific mechanics only from the selected Linear or GitHub
|
|
101
|
+
adapter. Apply the validated delta through that adapter, then use its exact
|
|
102
|
+
readback contract. Return each finding, classification, stable identity,
|
|
103
|
+
authority, approved decision, repair result, readback, and unresolved blocker.
|
|
104
|
+
Normalization is complete only when every finding is repaired, unchanged,
|
|
105
|
+
awaiting an explicit structural decision, or stopped with exact evidence.
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Project Context
|
|
2
|
+
|
|
3
|
+
Read this reference for every mutation.
|
|
4
|
+
|
|
5
|
+
## Authority
|
|
6
|
+
|
|
7
|
+
1. A new explicit human decision resolves a genuine semantic conflict after it
|
|
8
|
+
is persisted in the durable source that owns that meaning.
|
|
9
|
+
2. The project wiki owns durable product meaning: Product brief, business
|
|
10
|
+
objectives, target users, product boundaries, existing Product Map,
|
|
11
|
+
constraints and non-goals, operating rules, owner, repository link, wiki
|
|
12
|
+
link, and current and future `V*` milestone context.
|
|
13
|
+
3. `.devpunks/settings.json` selects the provider and Product/Backlog Root. It
|
|
14
|
+
does not define product meaning.
|
|
15
|
+
4. Fresh provider reads prove current objects, identities, relations, metadata,
|
|
16
|
+
views, milestones, and statuses.
|
|
17
|
+
5. Repository remotes and provider links prove repository identity. Immutable
|
|
18
|
+
accepted evidence uses stable commit/blob links, not mutable branch URLs.
|
|
19
|
+
|
|
20
|
+
Read `apps/wiki/` and its routed product docs before composing the intended
|
|
21
|
+
delta. Pin the verified repository link and wiki link on the Product/Backlog
|
|
22
|
+
Root when the provider supports them. Keep the richer context in the wiki when
|
|
23
|
+
the provider cannot represent a field.
|
|
24
|
+
|
|
25
|
+
## Identity
|
|
26
|
+
|
|
27
|
+
Verify the actual provider workspace, root identity, repository identity, and
|
|
28
|
+
wiki identity. Connector or MCP aliases are routing hints, not workspace proof.
|
|
29
|
+
Several independent Product/Backlog Roots may exist in one workspace.
|
|
30
|
+
|
|
31
|
+
Durable wiki identity is required for every intended object; stable provider
|
|
32
|
+
identity is required after provider readback and on every later update. Apply
|
|
33
|
+
the create/enrich/stop decision table in `issue-reconciliation.md`. Titles,
|
|
34
|
+
similar descriptions, and nearby placement are discovery signals only.
|
|
35
|
+
|
|
36
|
+
## Conflict Handling
|
|
37
|
+
|
|
38
|
+
- Provider state defeats stale cached state for operational facts.
|
|
39
|
+
- Wiki meaning defeats provider prose copied from an older decision.
|
|
40
|
+
- A real wiki/provider semantic conflict requires a new explicit decision and
|
|
41
|
+
durable source update before mutation.
|
|
42
|
+
- Preserve user ticket wording unless an accepted decision changes its meaning.
|
|
43
|
+
Use `$wait-what` to re-pitch unclear language in canonical project terms.
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
# GitHub Provider Adapter
|
|
2
|
+
|
|
3
|
+
Use one Projects V2 surface as the Product/Backlog Root and GitHub Issues for
|
|
4
|
+
the delivery hierarchy. Keep these storage mechanics inside this adapter; the
|
|
5
|
+
mutation envelope and callers use provider-neutral terms.
|
|
6
|
+
|
|
7
|
+
## Semantic Mapping
|
|
8
|
+
|
|
9
|
+
| Product meaning | GitHub representation |
|
|
10
|
+
| ------------------------------ | --------------------------------------------------------------------------- |
|
|
11
|
+
| Product/Backlog Root | one Projects V2 project |
|
|
12
|
+
| Product Area | configured Project field value |
|
|
13
|
+
| Initiative | configured Project field value scoped to its Product Area |
|
|
14
|
+
| Epic | Issue added to the Project |
|
|
15
|
+
| Story | Epic sub-issue, created with `parentIssueId` or attached with `addSubIssue` |
|
|
16
|
+
| Task | required nested sub-issue of its Story |
|
|
17
|
+
| Story and every Task iteration | the same repository milestone named `V*` |
|
|
18
|
+
| Task precedence | native `addBlockedBy` relation |
|
|
19
|
+
| Fog | lateral provenance and source links in every object it enriches or produces |
|
|
20
|
+
|
|
21
|
+
Preflight the complete intended mapping. If any required hierarchy, semantic
|
|
22
|
+
field, Project membership, repository milestone, blocker relation, or source
|
|
23
|
+
link is not representable, return zero provider mutations. Return actionable setup guidance for the missing GitHub capability.
|
|
24
|
+
|
|
25
|
+
## Backlog Initialization
|
|
26
|
+
|
|
27
|
+
Resolve the Project by stable node ID and durable wiki identity. Read its
|
|
28
|
+
metadata, linked repositories, fields, views, items, and repository milestones
|
|
29
|
+
before proposing a delta. A title is discovery evidence, never an upsert key.
|
|
30
|
+
|
|
31
|
+
Use `updateProjectV2` and `linkProjectV2ToRepository` to reconcile:
|
|
32
|
+
|
|
33
|
+
- title: the Product/Backlog Root name
|
|
34
|
+
- short description: the Product brief
|
|
35
|
+
- README: business objectives, target users, product boundaries, the existing
|
|
36
|
+
Product Map, durable constraints and non-goals, operating rules, owner,
|
|
37
|
+
repository link, wiki link, and current and future `V*` milestone context
|
|
38
|
+
- repository link: the verified repository selected by project context
|
|
39
|
+
|
|
40
|
+
Preserve richer product meaning in the wiki. The Project README links that
|
|
41
|
+
authority and carries only the context needed to interpret its backlog.
|
|
42
|
+
|
|
43
|
+
### Semantic fields
|
|
44
|
+
|
|
45
|
+
Read every field and option by node ID before matching values. The required
|
|
46
|
+
configured fields are:
|
|
47
|
+
|
|
48
|
+
- configured **Product Area** single-select: each stable option ID maps to one
|
|
49
|
+
durable wiki identity
|
|
50
|
+
- configured **Initiative** single-select: each stable option ID maps to one
|
|
51
|
+
durable wiki identity and its Product Area identity, so equal titles remain
|
|
52
|
+
distinct
|
|
53
|
+
- configured **Kind** single-select: Fog, Epic, Story, Task, Grilling, Research,
|
|
54
|
+
or Prototype
|
|
55
|
+
- configured **Grilling Stage** single-select: Business, Functional, or
|
|
56
|
+
Technical; populated only when Kind is Grilling
|
|
57
|
+
|
|
58
|
+
Put durable wiki identities in Product Area and Initiative option descriptions
|
|
59
|
+
when that field is API-supported. In the Project README, also maintain the
|
|
60
|
+
canonical identity map: field ID, option ID, option name, durable wiki identity,
|
|
61
|
+
and Initiative parent Area identity. Every Issue body records the selected durable
|
|
62
|
+
identities and stable option ID references. A standalone URL is provenance only
|
|
63
|
+
and is not an identity.
|
|
64
|
+
|
|
65
|
+
Backlog initialization may propose `createProjectV2Field` for missing required
|
|
66
|
+
fields or options, then `createProjectV2View` for missing semantic views. Show
|
|
67
|
+
the complete existing-versus-intended topology in a structural preview and wait
|
|
68
|
+
for explicit approval before provisioning. Ordinary writes never provision
|
|
69
|
+
fields, options, or views; they stop with the exact missing metadata and setup
|
|
70
|
+
action.
|
|
71
|
+
|
|
72
|
+
### Semantic views
|
|
73
|
+
|
|
74
|
+
Create or preserve equivalent configured views. The `createProjectV2View`
|
|
75
|
+
input can set `name`, `layout`, and `configuration.visibleFieldIds`.
|
|
76
|
+
`updateProjectV2View` can set `name`, `layout`, `filter`, and
|
|
77
|
+
`configuration.visibleFieldIds`. Automatic view mutation is limited to these
|
|
78
|
+
schema-supported inputs.
|
|
79
|
+
|
|
80
|
+
- **Product Map**: Epics grouped by Product Area and Initiative, without Story
|
|
81
|
+
or Task rows.
|
|
82
|
+
- **Roadmap**: Stories and Tasks grouped by repository `V*` milestone, with
|
|
83
|
+
Product Area, Initiative, Epic, and progress visible.
|
|
84
|
+
- **Fogs**: Fog rows with business status, affected Area/Initiative/Epic,
|
|
85
|
+
target iteration, generated Stories and Tasks, completion iteration, and
|
|
86
|
+
production-evidence links.
|
|
87
|
+
- **Current Delivery**: active Stories and Tasks grouped by repository `V*`,
|
|
88
|
+
status, owner, and native blocker readiness.
|
|
89
|
+
|
|
90
|
+
GitHub's view mutation inputs leave grouping and sorting unavailable. When an
|
|
91
|
+
accepted view needs either and the current view does not match, preflight stops
|
|
92
|
+
with zero provider mutations. Return exact manual setup guidance naming the
|
|
93
|
+
view, layout, filter, visible fields, group fields, and sort fields. Resume only
|
|
94
|
+
after the user saves that configuration; then read back the view ID, layout,
|
|
95
|
+
filter, visible fields, `groupByFields`, `verticalGroupByFields`, and
|
|
96
|
+
`sortByFields`. A partially automated view is not accepted representation.
|
|
97
|
+
|
|
98
|
+
### Repository V\* milestones
|
|
99
|
+
|
|
100
|
+
Read open and closed repository milestones and reuse a fitting existing `V*`
|
|
101
|
+
before proposing a new one. Never invent a version identity. A supported full
|
|
102
|
+
milestone records:
|
|
103
|
+
|
|
104
|
+
1. Version name
|
|
105
|
+
2. One-sentence product goal
|
|
106
|
+
3. Included product outcomes or capability changes
|
|
107
|
+
|
|
108
|
+
Use the repository milestone title for the Version name and its description
|
|
109
|
+
for the accepted goal and outcomes. When description metadata is unsupported,
|
|
110
|
+
name only is sufficient. Story and Task assignment still requires exact
|
|
111
|
+
milestone readback.
|
|
112
|
+
|
|
113
|
+
## Read-Before-Write Mutation
|
|
114
|
+
|
|
115
|
+
Stable provider identity plus durable wiki identity is the upsert key. Resolve
|
|
116
|
+
both identities, then read the exact Project, Issues, Project items, parents,
|
|
117
|
+
milestones, fields, blockers, bodies, and source links. A title-only or
|
|
118
|
+
ambiguous match authorizes zero provider mutations; return every candidate and
|
|
119
|
+
the identity needed to resume.
|
|
120
|
+
|
|
121
|
+
Construct the complete delta in memory before the first write. Validate every
|
|
122
|
+
Project item, parent, repository `V*`, configured field option, Fog/source link,
|
|
123
|
+
and reachable Task blocker. All intended objects must use the same verified
|
|
124
|
+
repository and Product/Backlog Root.
|
|
125
|
+
|
|
126
|
+
After representability and approval gates pass, use this order:
|
|
127
|
+
|
|
128
|
+
1. Reconcile approved Project metadata, semantic fields, views, and milestone
|
|
129
|
+
definitions required by this operation.
|
|
130
|
+
2. Use `createIssue` with `projectV2Ids`, `parentIssueId`, and `milestoneId` as
|
|
131
|
+
applicable. Create or enrich the Epic, then each Story under its Epic, then
|
|
132
|
+
every required Task under its Story. Use `addSubIssue` only to attach an
|
|
133
|
+
existing exact child.
|
|
134
|
+
3. Resolve each new Project item ID and apply configured Product Area,
|
|
135
|
+
Initiative, Kind, and Grilling Stage values with
|
|
136
|
+
`updateProjectV2ItemFieldValue`.
|
|
137
|
+
4. Add each validated Task prerequisite with `addBlockedBy`; the blocked Task is
|
|
138
|
+
`issueId` and its prerequisite is `blockingIssueId`.
|
|
139
|
+
|
|
140
|
+
The Fog body records its durable wiki identity, immutable accepted evidence,
|
|
141
|
+
and stable links to every Area, Initiative, Epic, Story, and Task it enriched or
|
|
142
|
+
produced. Each produced Issue links back to the Fog and immutable source that
|
|
143
|
+
authorized it. Fog remains outside the Epic parent chain.
|
|
144
|
+
|
|
145
|
+
## Exact Readback
|
|
146
|
+
|
|
147
|
+
Read back and compare the Project membership, parent chain, repository `V*`,
|
|
148
|
+
configured field values, `blockedBy` edges, source and Fog links, and stable
|
|
149
|
+
Issue IDs and URLs for every intended item. For initialization, also compare
|
|
150
|
+
Project metadata, linked repository, every option ID-to-durable-wiki-identity
|
|
151
|
+
mapping, and all four view configurations. A response without this exact match
|
|
152
|
+
is unresolved, not success.
|
|
153
|
+
|
|
154
|
+
If a partial provider failure occurs, stop further writes. Read back every
|
|
155
|
+
intended object, return observed identities and relations, and identify the
|
|
156
|
+
first unresolved delta. A resumed run repeats read-before-write and applies only
|
|
157
|
+
the still-missing validated operations.
|
|
158
|
+
|
|
159
|
+
## Runtime Coverage Gate
|
|
160
|
+
|
|
161
|
+
The first workflow-created nested Task must be read back with its exact Project
|
|
162
|
+
membership, Story parent, repository `V*`, Product Area, Initiative, Kind,
|
|
163
|
+
native blocker, Fog backlink, and immutable source in its body, plus stable ID
|
|
164
|
+
and URL. GraphQL schema introspection is not runtime proof. This gate does not
|
|
165
|
+
claim full view runtime capability. Retain immutable command output and provider
|
|
166
|
+
URLs before closing or deleting run-owned fixtures. When provider capability or
|
|
167
|
+
authentication blocks this proof, report the exact blocker and leave runtime
|
|
168
|
+
coverage unclaimed.
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
# Linear Provider Adapter
|
|
2
|
+
|
|
3
|
+
Read this reference only when the resolved provider is Linear. It translates the
|
|
4
|
+
provider-neutral mutation envelope into native Linear objects; it does not
|
|
5
|
+
change product terms or authorize a mutation.
|
|
6
|
+
|
|
7
|
+
## Native Representation
|
|
8
|
+
|
|
9
|
+
| Product meaning | Linear representation | Required ownership |
|
|
10
|
+
| -------------------- | --------------------------- | ---------------------------------------------- |
|
|
11
|
+
| Product/Backlog Root | top-level Linear Initiative | no semantic parent |
|
|
12
|
+
| Product Area | Linear Initiative | direct child of the Root |
|
|
13
|
+
| Initiative | nested Linear Initiative | exactly one Product Area parent |
|
|
14
|
+
| Epic | Linear Project | exactly one owning Initiative |
|
|
15
|
+
| Story | Linear Issue | member of its Epic Project |
|
|
16
|
+
| Task | Linear sub-issue | `parentId` is its Story; same Project and team |
|
|
17
|
+
| Fog | lateral Linear Issue | provenance, never a hierarchy parent |
|
|
18
|
+
|
|
19
|
+
Linear permits multiple initiative parents. The semantic contract is narrower:
|
|
20
|
+
each Product Area has the resolved Root as its only product parent, and each
|
|
21
|
+
nested Initiative has exactly one Product Area parent. An Epic has exactly one
|
|
22
|
+
owning Initiative membership. Additional native parents or owning Initiative
|
|
23
|
+
memberships are ambiguous hierarchy, not harmless metadata.
|
|
24
|
+
|
|
25
|
+
Product Area and Initiative are native Initiative layers, not labels or
|
|
26
|
+
milestones. Story has no parent Issue standing in for its Epic: Project
|
|
27
|
+
membership represents the Epic. Task nesting uses `parentId` to reference the
|
|
28
|
+
Story's stable provider ID.
|
|
29
|
+
|
|
30
|
+
## Read Before Write
|
|
31
|
+
|
|
32
|
+
Resolve and read the actual Linear workspace first:
|
|
33
|
+
|
|
34
|
+
1. Read `.devpunks/settings.json`. Resolve `backlogProjectUrl` as the top-level
|
|
35
|
+
Linear Initiative by stable provider ID; the URL is a locator, not proof.
|
|
36
|
+
2. Read that Root Initiative, including its workspace ID and workspace URL, and
|
|
37
|
+
match both to the workspace encoded by the configured Root URL.
|
|
38
|
+
3. Treat a Linear Project URL or any non-Initiative URL as a legacy or invalid
|
|
39
|
+
destination. Return exact `hi ensure` migration guidance and zero writes.
|
|
40
|
+
4. Continue with the native object reads below only after Root and workspace
|
|
41
|
+
identity agree.
|
|
42
|
+
|
|
43
|
+
- workspace ID, workspace name, and workspace URL
|
|
44
|
+
- Product/Backlog Root Initiative ID and URL
|
|
45
|
+
- expected parent and child Initiative IDs
|
|
46
|
+
- Epic Project IDs, owning Initiative memberships, and team memberships
|
|
47
|
+
- Story and Task Issue IDs, parents, Projects, teams, labels, and relations
|
|
48
|
+
- every Project milestone and selected milestone membership
|
|
49
|
+
- configured `Kind` and `Grilling Stage` label-group IDs and options
|
|
50
|
+
- every saved view's stable ID, type, filters, grouping, ordering, and scope
|
|
51
|
+
|
|
52
|
+
A connector alias is a routing hint, not identity evidence. Match the workspace
|
|
53
|
+
returned by the connected authority to the workspace encoded by the configured
|
|
54
|
+
Root URL. Resolve known objects by stable provider ID plus durable wiki identity.
|
|
55
|
+
A title-only match, alias-only workspace match, ambiguous candidate, unexpected
|
|
56
|
+
parent, or missing representation returns the evidence and zero writes.
|
|
57
|
+
|
|
58
|
+
Use provider search only to discover candidates. Before the first mutation,
|
|
59
|
+
read every candidate by ID and prove the complete intended hierarchy,
|
|
60
|
+
membership, milestone, field, view, provenance, and blocker delta in memory.
|
|
61
|
+
|
|
62
|
+
## Backlog Initialization
|
|
63
|
+
|
|
64
|
+
Use the Root Initiative as the compact Linear projection of the wiki-owned
|
|
65
|
+
product context. Preserve the full values under stable headings in its
|
|
66
|
+
description and use supported native fields where they add structure:
|
|
67
|
+
|
|
68
|
+
- `summary` or the opening description: Product brief
|
|
69
|
+
- description: business objectives
|
|
70
|
+
- description: target users
|
|
71
|
+
- description: product boundaries
|
|
72
|
+
- description: existing Product Map
|
|
73
|
+
- description: durable constraints and non-goals
|
|
74
|
+
- description: operating rules
|
|
75
|
+
- `owner`: owner
|
|
76
|
+
- description: verified repository link
|
|
77
|
+
- description: verified wiki link
|
|
78
|
+
- description: current and future `V*` milestone context
|
|
79
|
+
|
|
80
|
+
Keep repository link and wiki link as explicit Markdown links when the connected
|
|
81
|
+
Initiative API exposes no native link collection. Read their exact URLs back
|
|
82
|
+
from the Root description. Richer product meaning remains authoritative in the
|
|
83
|
+
wiki; the Linear projection links to it rather than inventing a substitute.
|
|
84
|
+
|
|
85
|
+
Reconcile existing Product Areas, nested Initiatives, and Epic Projects before
|
|
86
|
+
proposing new objects. New Root, Area, Initiative, Project, semantic field, or
|
|
87
|
+
view provisioning is structural: preview the current and intended topology and
|
|
88
|
+
obtain explicit approval. Write only the approved stable-ID delta.
|
|
89
|
+
|
|
90
|
+
### Semantic Fields
|
|
91
|
+
|
|
92
|
+
Use configured Linear label groups as issue-level semantic fields:
|
|
93
|
+
|
|
94
|
+
- `Kind`: the accepted Issue kind, including Fog, grilling, Story, and Task
|
|
95
|
+
- `Grilling Stage`: exactly Business, Functional, or Technical for a grilling
|
|
96
|
+
Issue; absent from other kinds
|
|
97
|
+
|
|
98
|
+
Native Initiative and Project entity types already distinguish Root, Product
|
|
99
|
+
Area, Initiative, and Epic. Provisioning or changing a field, group, or option
|
|
100
|
+
requires a field or view preview and explicit approval. Ordinary projection
|
|
101
|
+
reuses exact configured IDs and never creates labels ad hoc. Overlapping,
|
|
102
|
+
missing, or non-exclusive representations stop with zero writes and setup
|
|
103
|
+
guidance.
|
|
104
|
+
|
|
105
|
+
### Product-Owner Views
|
|
106
|
+
|
|
107
|
+
Preserve an equivalent existing view before proposing a new one. The required
|
|
108
|
+
semantic views are:
|
|
109
|
+
|
|
110
|
+
- **Product Map**: Root -> Product Area -> Initiative -> Epic, without Story or
|
|
111
|
+
Task noise
|
|
112
|
+
- **Roadmap**: `V*` iterations and their Story/Task progress rolled up through
|
|
113
|
+
Epic and Initiative outcomes
|
|
114
|
+
- **Fogs**: Fog status, affected structures, target and completion iteration,
|
|
115
|
+
generated work, and production evidence
|
|
116
|
+
- **Current Delivery**: active Stories and Tasks grouped by `V*`, status,
|
|
117
|
+
owner, and blocker readiness
|
|
118
|
+
|
|
119
|
+
Compare semantics, not display title: view type, scope, filters, grouping,
|
|
120
|
+
ordering, and visible fields must match. View creation or material change needs
|
|
121
|
+
the structural preview and explicit approval. When the connected view API is
|
|
122
|
+
unavailable or unsupported, return the missing capability and zero writes for
|
|
123
|
+
initialization. A document, issue list, or guessed UI configuration is not an
|
|
124
|
+
exact view readback.
|
|
125
|
+
|
|
126
|
+
## Contextual Version Milestones
|
|
127
|
+
|
|
128
|
+
Reuse a fitting existing `V*` milestone before proposing one. Linear milestones
|
|
129
|
+
are project-scoped, so each Story's milestone must belong to its Epic's Linear
|
|
130
|
+
Project. When one product version crosses Epics, reconcile the same durable
|
|
131
|
+
version identity in each affected Project; a shared title alone is not identity.
|
|
132
|
+
|
|
133
|
+
Every Story has exactly one contextual `V*` milestone. Every Task has the same
|
|
134
|
+
Project milestone as its Story. Reject zero or multiple memberships and reject
|
|
135
|
+
a Task whose Project or milestone differs from its Story. Product Areas,
|
|
136
|
+
Initiatives, and Epics span versions. A Fog may target a fitting version; use a
|
|
137
|
+
native milestone only when its Issue belongs to the applicable Project,
|
|
138
|
+
otherwise preserve the target as a stable milestone link in its body.
|
|
139
|
+
|
|
140
|
+
When supported, milestone metadata contains:
|
|
141
|
+
|
|
142
|
+
1. Version name
|
|
143
|
+
2. One-sentence product goal
|
|
144
|
+
3. Included product outcomes or capability changes
|
|
145
|
+
|
|
146
|
+
Store goal and outcomes in the milestone description when that field is
|
|
147
|
+
supported. When milestone description metadata is unsupported by the connected
|
|
148
|
+
authority, the name-only fallback is sufficient and the full meaning remains in
|
|
149
|
+
the linked wiki. Moving an existing Story, Task, or Fog between milestones
|
|
150
|
+
changes roadmap commitment and requires explicit approval.
|
|
151
|
+
|
|
152
|
+
Blockers define delivery precedence. Before writing, traverse the complete
|
|
153
|
+
reachable Task graph and reject missing targets, future-iteration dependencies,
|
|
154
|
+
self-edges, and cycles. Materialize accepted edges with native `blockedBy` and
|
|
155
|
+
`blocks` relations; milestone order never creates a blocker.
|
|
156
|
+
|
|
157
|
+
## Lateral Fog Provenance
|
|
158
|
+
|
|
159
|
+
Fog remains lateral. Use native `relatedTo` relations between the Fog and every
|
|
160
|
+
resulting Story and Task Issue. Record stable Product Area, Initiative, and Epic
|
|
161
|
+
URLs in the Fog body. Add the immutable Fog source link to each enriched
|
|
162
|
+
Initiative or Project description so non-Issue objects preserve reciprocal
|
|
163
|
+
provenance. Read back both the Issue relation and every body or description
|
|
164
|
+
source link. A source link supplements native relations; it never becomes a
|
|
165
|
+
parent edge.
|
|
166
|
+
|
|
167
|
+
## Mutation And Exact Readback
|
|
168
|
+
|
|
169
|
+
Apply the validated, approved delta parent-first and use stable IDs for every
|
|
170
|
+
update or relationship. After each create, capture its returned ID before a
|
|
171
|
+
dependent write. On a partial provider failure, stop, read the affected objects,
|
|
172
|
+
and return the observed writes plus unresolved delta; resume from fresh reads
|
|
173
|
+
instead of replaying the batch.
|
|
174
|
+
|
|
175
|
+
RAC-2 is satisfied only after exact readback proves:
|
|
176
|
+
|
|
177
|
+
1. workspace and Root identity
|
|
178
|
+
2. Root -> Product Area -> Initiative parent hierarchy
|
|
179
|
+
3. Epic Project owning Initiative and team membership
|
|
180
|
+
4. Story Project membership and Task parent, Project, and team membership
|
|
181
|
+
5. exactly-one contextual milestone for every Story and the same milestone for
|
|
182
|
+
every Task
|
|
183
|
+
6. semantic fields and all four views
|
|
184
|
+
7. Fog provenance, immutable evidence, and source links
|
|
185
|
+
8. every native `relatedTo`, `blockedBy`, and `blocks` relation
|
|
186
|
+
9. created, enriched, repaired, or unchanged state for each stable object
|
|
187
|
+
|
|
188
|
+
Any mismatch remains unresolved reconciliation. Report stable IDs, URLs,
|
|
189
|
+
observed provider state, approval record, and the first missing representation;
|
|
190
|
+
never claim success from mutation responses alone.
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# Technical Projection
|
|
2
|
+
|
|
3
|
+
Before any provider write, require one exact Story, one immutable accepted Technical grilling
|
|
4
|
+
resolution on its exact child, and a verified stable blob URL to an authoritative agent-ready `SPEC.md`. The specification
|
|
5
|
+
must preserve stable user stories, acceptance criteria, accepted technical and
|
|
6
|
+
testing decisions, and verification seams. Name every readiness gap and write
|
|
7
|
+
nothing when authority is incomplete.
|
|
8
|
+
|
|
9
|
+
## Authority Enrichment
|
|
10
|
+
|
|
11
|
+
Read the exact existing Epic and Story before mutation. Enrich the existing Epic and Story with verified immutable spec authority: the stable blob URL, accepted
|
|
12
|
+
technical and testing decisions, verification seams, and Fog/Technical-resolution
|
|
13
|
+
provenance. Preserve their Business and Functional wording, non-goals,
|
|
14
|
+
dependencies, and durable accepted-artifact links.
|
|
15
|
+
|
|
16
|
+
Include this enrichment in the validated mutation before Task creation. When the
|
|
17
|
+
provider requires multiple requests, write and read back the authority enrichment
|
|
18
|
+
before creating Tasks. Missing or ambiguous Epic/Story identity, unsupported
|
|
19
|
+
immutable authority representation, or mismatched readback produces no Task write.
|
|
20
|
+
|
|
21
|
+
## Task Split
|
|
22
|
+
|
|
23
|
+
Create one or more mandatory, atomic, independently owner-ready Tasks for the
|
|
24
|
+
Story. Each Task must define one bounded shippable responsibility, preserve its
|
|
25
|
+
Story and specification authority, name its acceptance and verification
|
|
26
|
+
evidence, and remain understandable without a private planning artifact.
|
|
27
|
+
|
|
28
|
+
Tasks are the provider execution graph that downstream planning preserves. Do
|
|
29
|
+
not create a second private Task graph or split by technical layer when one
|
|
30
|
+
owner-ready vertical unit can deliver the result.
|
|
31
|
+
|
|
32
|
+
## Milestone And Blockers
|
|
33
|
+
|
|
34
|
+
Every Task uses the same `V*` milestone iteration as its Story. Resolve every
|
|
35
|
+
blocker by stable provider identity and validate the full reachable Task graph,
|
|
36
|
+
including existing connected Tasks.
|
|
37
|
+
|
|
38
|
+
Run the [provider-neutral Task graph
|
|
39
|
+
validator](../scripts/validate-task-blocker-graph.mjs) with every reachable
|
|
40
|
+
Story's stable identity and exact milestone, every reachable Task's stable
|
|
41
|
+
identity, parent Story identity, exact milestone, and blocker identities, plus
|
|
42
|
+
the resolved earliest-to-latest milestone order. A failed result authorizes
|
|
43
|
+
zero provider mutations. Provider adapters materialize only the validator's
|
|
44
|
+
accepted edges.
|
|
45
|
+
|
|
46
|
+
Reject:
|
|
47
|
+
|
|
48
|
+
- missing targets
|
|
49
|
+
- missing parent Stories
|
|
50
|
+
- Task/Story milestone mismatches
|
|
51
|
+
- future-iteration dependencies
|
|
52
|
+
- self-edges
|
|
53
|
+
- cycles
|
|
54
|
+
|
|
55
|
+
Real blockers may cross Stories and Epics when the target is in the same or an
|
|
56
|
+
earlier milestone iteration. Native blocker relations, not list order or
|
|
57
|
+
milestone order, define precedence and parallel delivery waves.
|
|
58
|
+
|
|
59
|
+
## Write And Read Back
|
|
60
|
+
|
|
61
|
+
Preview the complete Task topology with `$show-me`; obtain approval for any
|
|
62
|
+
structural movement. Write the validated Epic/Story authority enrichment, Tasks,
|
|
63
|
+
parents, the same `V*` membership, blockers, source links, and Fog provenance.
|
|
64
|
+
Read every enrichment and relation back exactly. Return stable Epic, Story, and
|
|
65
|
+
Task identities plus blocker edges to Finder, planning, and delivery consumers.
|