@punks/cli 3.3.6 → 4.0.1
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/AGENTS.md +1 -1
- package/dist/BASELINE_CHANGELOG.md +11 -2
- package/dist/CHANGELOG.md +20 -0
- package/dist/baseline/scaffold-baseline/baseline.json +5 -5
- package/dist/baseline/scaffold-baseline/data/catalog/packs.json +9 -3
- package/dist/baseline/scaffold-baseline/data/catalog/skills.json +32 -0
- package/dist/baseline/scaffold-baseline/data/subagents/manifest.mjs +1 -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/quality/make-tsuite/SKILL.md +57 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/quality/make-tsuite/agents/openai.yaml +4 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/quality/make-tsuite/references/audit-portfolio.md +47 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/quality/make-tsuite/references/implement-suite.md +40 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/quality/make-tsuite/references/route-api-design.md +21 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/quality/make-tsuite/references/user-journey-design.md +21 -0
- 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/data/subagents/manifest.mjs +1 -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/quality/make-tsuite/SKILL.md +57 -0
- package/dist/skills/agnostic/quality/make-tsuite/agents/openai.yaml +4 -0
- package/dist/skills/agnostic/quality/make-tsuite/references/audit-portfolio.md +47 -0
- package/dist/skills/agnostic/quality/make-tsuite/references/implement-suite.md +40 -0
- package/dist/skills/agnostic/quality/make-tsuite/references/route-api-design.md +21 -0
- package/dist/skills/agnostic/quality/make-tsuite/references/user-journey-design.md +21 -0
- 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,21 @@
|
|
|
1
|
+
# User journey test design
|
|
2
|
+
|
|
3
|
+
Use this reference only when the suite drives a real browser, mobile app, desktop client, terminal, or other interactive production entrypoint.
|
|
4
|
+
|
|
5
|
+
## Define the journey
|
|
6
|
+
|
|
7
|
+
Describe one plausible intent with its actor, systems crossed, visible result, persisted effect, and isolation rule. Prioritize authentication lifecycle, authority-specific states, meaningful domain transitions, persistence across reload or session changes, representative recovery, and exclusion of inaccessible data.
|
|
8
|
+
|
|
9
|
+
Journey selection is complete when each journey protects a distinct user intent or security boundary; every extra permutation has a separately named invariant.
|
|
10
|
+
|
|
11
|
+
## Preserve the real system
|
|
12
|
+
|
|
13
|
+
Reuse the repository's executable harness. Test-scoped orchestration may build artifacts, start isolated dependencies, wait for readiness, seed deterministic prerequisites through supported external seams, capture diagnostics, and clean up. Keep business rules and deployable wiring inside the real system.
|
|
14
|
+
|
|
15
|
+
Harness preparation is complete when startup, readiness, data setup, identities, diagnostic capture, and cleanup are deterministic and remain test-scoped.
|
|
16
|
+
|
|
17
|
+
## Drive public interaction
|
|
18
|
+
|
|
19
|
+
Use stable user-visible or accessibility-facing controls and states. Synchronize on specific visible state or public responses. Assert visible outcomes, authority controls, forbidden navigation, persistence, cross-session effects, and absence of inaccessible data as the protected invariant requires.
|
|
20
|
+
|
|
21
|
+
Validation is complete when each journey records actor, visible workflow, invariant, real runtime boundary, execution invocation or mechanism, observed result, artifacts, cleanup result, semantic-lock result, and production-immutability proof for every changed region.
|
|
@@ -1,41 +1,57 @@
|
|
|
1
1
|
# Write Backlog Examples
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## Reconstruct An Existing Product
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
The wiki identifies the product goal, owner, repository, two Product Areas, and
|
|
6
|
+
three Initiatives. Fresh provider reads find the same Product/Backlog Root and
|
|
7
|
+
one current and one future `V*` milestone under stable identities.
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
Existing structure is reused. The proposal enriches missing root metadata,
|
|
10
|
+
links the wiki and repository, and adds the missing Fogs view. `$show-me`
|
|
11
|
+
presents that structural delta. After explicit approval, exact readback proves
|
|
12
|
+
the metadata, links, milestone context, and Product Map, Roadmap, Fogs, and
|
|
13
|
+
Current Delivery views.
|
|
10
14
|
|
|
11
|
-
|
|
12
|
-
- `US-001`: Team lead restores ownership of an unassigned submission.
|
|
13
|
-
- `AC-001` — `Covers: US-001`: Reassignment preserves notes and evidence.
|
|
14
|
-
- `AC-002` — `Covers: US-001`: The new owner sees the submission in their queue.
|
|
15
|
+
## Cumulative Finder Projection
|
|
15
16
|
|
|
16
|
-
|
|
17
|
+
One Fog records a product owner's request.
|
|
17
18
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
1. **Business**: accepted Business grilling reuses Product Area `Knowledge` and
|
|
20
|
+
Initiative `Reliable answers`, then enriches Epic `Source quality`. The Fog
|
|
21
|
+
links to all three; no duplicate structure is created.
|
|
22
|
+
2. **Functional**: one accepted Functional child creates Story `Reader sees why
|
|
23
|
+
an answer is trustworthy` in `V4.0`. Its body preserves the product outcome,
|
|
24
|
+
`US-001`, `AC-001`, demonstration, evidence, and Fog provenance.
|
|
25
|
+
3. **Technical**: an authoritative agent-ready `SPEC.md` at a stable blob URL
|
|
26
|
+
enriches the existing Epic and Story with immutable spec authority, then
|
|
27
|
+
creates required Task `Expose source confidence` and Task `Render confidence
|
|
28
|
+
explanation`. Both inherit `V4.0`; the second is blocked by the first.
|
|
24
29
|
|
|
25
|
-
|
|
30
|
+
The Task graph has stable provider identities, no missing target, no
|
|
31
|
+
future-iteration dependency, no self-edge, and no cycle. Exact readback proves
|
|
32
|
+
the Story parent and milestone, both Task parents and milestones, the native
|
|
33
|
+
blocker, source links, and Fog relations.
|
|
26
34
|
|
|
27
|
-
##
|
|
35
|
+
## Existing Milestone Wins
|
|
28
36
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
37
|
+
The accepted Functional resolution targets the current product increment. A
|
|
38
|
+
fresh provider read finds a fitting `V4.0` milestone with the same goal and
|
|
39
|
+
outcomes. Reuse it. Do not propose another milestone because its display title
|
|
40
|
+
differs from the draft wording.
|
|
32
41
|
|
|
33
|
-
If
|
|
42
|
+
If milestone metadata is supported, preserve Version name, One-sentence product
|
|
43
|
+
goal, and Included product outcomes or capability changes. Otherwise preserve
|
|
44
|
+
the version name alone.
|
|
34
45
|
|
|
35
|
-
##
|
|
46
|
+
## Ambiguous Identity
|
|
36
47
|
|
|
37
|
-
|
|
48
|
+
Two Epics share a similar title, and neither carries the Fog's durable wiki
|
|
49
|
+
identity. Show both candidates and return the identity gap with zero writes.
|
|
50
|
+
Title similarity cannot select an upsert target.
|
|
38
51
|
|
|
39
|
-
##
|
|
52
|
+
## Partial Provider Failure
|
|
40
53
|
|
|
41
|
-
|
|
54
|
+
The Story write succeeds and the second Task relation fails. Stop, read back the
|
|
55
|
+
Story, Tasks, milestone memberships, and blockers, then return observed IDs plus
|
|
56
|
+
the missing relation. A retry reconciles fresh state and writes only that
|
|
57
|
+
validated relation.
|
|
@@ -1,107 +1,90 @@
|
|
|
1
|
-
# Write Backlog
|
|
1
|
+
# Write Backlog Mutation Envelope
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## Public Seam
|
|
4
4
|
|
|
5
|
-
`write-backlog`
|
|
5
|
+
`write-backlog` accepts one semantic operation and returns its exact provider
|
|
6
|
+
result. Callers do not select provider primitives or perform writes.
|
|
6
7
|
|
|
7
|
-
|
|
8
|
+
Required input:
|
|
8
9
|
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
-
|
|
14
|
-
|
|
10
|
+
- operation: initialize/reconstruct, Fog or pre-resolution grilling-child
|
|
11
|
+
ensure, Research/Prototype support-child ensure, Business projection,
|
|
12
|
+
Functional projection, Technical projection, Normalization, delivery status,
|
|
13
|
+
or issue reconciliation
|
|
14
|
+
- durable wiki identity for every intended object and stable provider identity
|
|
15
|
+
for every known object
|
|
16
|
+
- immutable accepted evidence that authorizes a projection, Normalization, or
|
|
17
|
+
delivery-status operation; Fog, grilling-shell, and support-child intake use
|
|
18
|
+
exact parent identity, kind, durable wiki identity, and cardinality instead
|
|
19
|
+
- proposed semantic delta, source wording, source links, and expected current
|
|
20
|
+
provider state
|
|
21
|
+
- exact `V*` milestone for each Story and any explicit Fog target iteration
|
|
22
|
+
- structural approval record when the delta crosses an approval boundary
|
|
15
23
|
|
|
16
|
-
|
|
24
|
+
Missing operation-specific authority or conflicting authority returns every gap
|
|
25
|
+
with zero provider mutations. Intake requires no accepted evidence: it creates
|
|
26
|
+
or resumes the unresolved shell that will later carry that evidence.
|
|
17
27
|
|
|
18
|
-
##
|
|
19
|
-
|
|
20
|
-
Finder may request one `fog`, `grilling`, `research`, or `prototype` item before
|
|
21
|
-
a spec exists. A `fog` item requires a frontier or uncertainty description; it
|
|
22
|
-
does not require a precise question. A `grilling`, `research`, or `prototype`
|
|
23
|
-
item requires the precise question derived when fog graduates. Every intake
|
|
24
|
-
also requires its selected classification, map link, dependencies, and claim
|
|
25
|
-
state. Validate the complete intake dependency graph for missing targets,
|
|
26
|
-
self-edges, and cycles before mutation. Materialize exactly that intake item;
|
|
27
|
-
do not infer or create delivery epics/stories.
|
|
28
|
-
|
|
29
|
-
## Delivery input contract
|
|
30
|
-
|
|
31
|
-
Before inspecting or mutating provider state for an `epic` or `story` delivery projection, require:
|
|
32
|
-
|
|
33
|
-
- a verified stable blob URL to an authoritative `SPEC.md`; local SHA plus path is insufficient
|
|
34
|
-
- frontmatter `readiness: agent-ready`
|
|
35
|
-
- stable `US-###` user stories
|
|
36
|
-
- stable `AC-###` acceptance criteria
|
|
37
|
-
- every criterion carrying `Covers: US-###`
|
|
38
|
-
- no uncovered story and no criterion pointing to a missing story
|
|
39
|
-
- accepted technical/testing decisions and verification seams
|
|
40
|
-
- prototype verdict links when prototypes informed the decisions
|
|
41
|
-
|
|
42
|
-
If any requirement is missing, return a readiness failure naming every gap. Write nothing to the provider.
|
|
43
|
-
|
|
44
|
-
## Projection contract
|
|
45
|
-
|
|
46
|
-
Create one capability-boundary epic for the spec. Derive the fewest product-facing stories that preserve all `US-###` outcomes and `AC-###` evidence. Every story must:
|
|
47
|
-
|
|
48
|
-
- name its source `US-###` records
|
|
49
|
-
- name its covered `AC-###` records
|
|
50
|
-
- be agent-sized
|
|
51
|
-
- be a vertical tracer bullet with one demonstrable user, operator, or system outcome
|
|
52
|
-
- remain understandable without the implementation plan
|
|
53
|
-
|
|
54
|
-
Split only across distinct product outcomes, acceptance signals, provider boundaries, or true dependencies. Technical layers are not stories.
|
|
55
|
-
|
|
56
|
-
## Readiness before mutation
|
|
57
|
-
|
|
58
|
-
Build and validate the complete intended projection in memory before the first provider write:
|
|
59
|
-
|
|
60
|
-
1. Resolve the target from `.devpunks/settings.json`.
|
|
61
|
-
2. Validate the spec and traceability.
|
|
62
|
-
3. Validate every story as an agent-sized tracer bullet.
|
|
63
|
-
4. Resolve every blocker to a projected story.
|
|
64
|
-
5. Reject self-blockers, missing targets, and cycles.
|
|
65
|
-
6. Assign milestones across the overview-level taxonomy from `fog` through `epic` (`fog`, `grilling`, `research`, `prototype`, `epic`) for project-level chronological precedence. When supported, assign each child story the same containing overview milestone; never derive distinct story milestones. Native blockers explain story relations.
|
|
66
|
-
7. Validate provider representation and required native primitives.
|
|
67
|
-
8. Only after every check passes, write immediately without a separate approval stop.
|
|
68
|
-
|
|
69
|
-
A validation failure produces zero mutations. If a provider fails during the write sequence, stop, report created identifiers, and do not claim atomicity or readiness.
|
|
70
|
-
|
|
71
|
-
## Intake resolution
|
|
72
|
-
|
|
73
|
-
When the work began as a pre-spec `fog`, `grilling`, `research`, or `prototype` item:
|
|
74
|
-
|
|
75
|
-
- keep that intake item as historical decision evidence
|
|
76
|
-
- resolve it with the immutable spec link and the accepted outcome
|
|
77
|
-
- create a separate delivery epic projection
|
|
78
|
-
- never silently promote or relabel the intake item as the delivery epic
|
|
79
|
-
|
|
80
|
-
## Provider model
|
|
28
|
+
## Topology
|
|
81
29
|
|
|
82
30
|
```text
|
|
83
|
-
Backlog
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
Project overview execution milestones
|
|
93
|
-
M1 -> M2 -> M3 ...
|
|
94
|
-
(assigned only to overview-level items from fog through epic)
|
|
31
|
+
Product/Backlog Root
|
|
32
|
+
└── Product Area
|
|
33
|
+
└── Initiative
|
|
34
|
+
└── Epic
|
|
35
|
+
└── Story [exactly one contextual V*]
|
|
36
|
+
└── Task 1..n [same V* + blocker relations]
|
|
37
|
+
|
|
38
|
+
Fog ──lateral provenance/enrichment──> Product Area | Initiative | Epic | Story | Task
|
|
95
39
|
```
|
|
96
40
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
41
|
+
Product Areas are durable product responsibilities. Initiatives are business
|
|
42
|
+
goals. Epics are long-lived business slices and may span iterations. Stories
|
|
43
|
+
are shippable product outcomes. Tasks are required atomic, independently
|
|
44
|
+
ownable delivery units.
|
|
45
|
+
|
|
46
|
+
Business projection creates or enriches Product Area, Initiative, and Epic.
|
|
47
|
+
Functional projection creates Stories. Technical projection creates mandatory
|
|
48
|
+
Tasks only after one authoritative agent-ready `SPEC.md` exists for the Story.
|
|
49
|
+
Fog remains lateral provenance throughout all three stages.
|
|
50
|
+
|
|
51
|
+
Every Story belongs to exactly one contextual `V*` milestone iteration, and
|
|
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.
|
|
54
|
+
|
|
55
|
+
## Validation Envelope
|
|
56
|
+
|
|
57
|
+
Before the first provider write:
|
|
58
|
+
|
|
59
|
+
1. Resolve destination, Product/Backlog Root, repository, wiki, and provider
|
|
60
|
+
workspace identity.
|
|
61
|
+
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 only.
|
|
65
|
+
4. Reuse the exact existing structure and fitting `V*` milestone. Propose a new
|
|
66
|
+
structure only when no exact or fitting one exists.
|
|
67
|
+
5. Validate hierarchy, metadata representation, provider membership, source
|
|
68
|
+
links, accepted evidence, and approval state.
|
|
69
|
+
6. For Technical projection, validate every parent Story and the complete
|
|
70
|
+
reachable Task graph. Reject a missing parent Story, Task/Story milestone
|
|
71
|
+
mismatch, missing blocker target, self-edge, future-iteration dependency, or
|
|
72
|
+
cycle. Real blockers may cross Stories and Epics.
|
|
73
|
+
7. Preview material topology changes with `$show-me`; wait for explicit approval
|
|
74
|
+
where required.
|
|
75
|
+
|
|
76
|
+
## Result Envelope
|
|
77
|
+
|
|
78
|
+
Return:
|
|
79
|
+
|
|
80
|
+
- provider and Product/Backlog Root identities
|
|
81
|
+
- operation and immutable evidence identity
|
|
82
|
+
- each durable wiki identity and stable provider ID/URL
|
|
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
|
|
88
|
+
|
|
89
|
+
Only exact readback proves success. A successful request without matching
|
|
90
|
+
readback is an unresolved reconciliation, not completion.
|
|
@@ -1,107 +1,104 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: write-backlog
|
|
3
|
-
description:
|
|
3
|
+
description: Reconcile or materialize a coherent Linear or GitHub product backlog from accepted Finder, project-initialization, Normalization, planning, or delivery intent.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Write Backlog
|
|
7
7
|
|
|
8
|
+
`write-backlog` is the sole physical provider mutation authority. Callers supply
|
|
9
|
+
semantic intent and evidence; this skill owns reconciliation, provider writes,
|
|
10
|
+
and readback. It preserves the user's ticket wording, canonical project terms,
|
|
11
|
+
source links, and durable traceability while structuring the ticket correctly.
|
|
12
|
+
|
|
8
13
|
Before naming or rewriting domain concepts, read the canonical glossary in the
|
|
9
14
|
routed `requirements-grill` status artifact. Preserve its canonical terms;
|
|
10
15
|
route proposed terminology changes through `requirements-grill` instead of
|
|
11
16
|
silently renaming them.
|
|
12
17
|
|
|
13
|
-
##
|
|
14
|
-
|
|
15
|
-
1.
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
- `
|
|
49
|
-
- `
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
## Advanced features
|
|
102
|
-
|
|
103
|
-
- Canonical hierarchy and handoff contract: see [REFERENCE.md](REFERENCE.md)
|
|
104
|
-
- Backlog model and body ownership: see [assets/concepts/backlog-model.md](assets/concepts/backlog-model.md)
|
|
105
|
-
- Epic/story body shape: see [assets/concepts/story-shape.md](assets/concepts/story-shape.md)
|
|
106
|
-
- Provider create payloads: see [assets/providers/](assets/providers/)
|
|
107
|
-
- Intake and post-spec delivery branches: see [REFERENCE.md](REFERENCE.md)
|
|
18
|
+
## Mutation Pipeline
|
|
19
|
+
|
|
20
|
+
1. Read [project context](references/project-context.md). Resolve
|
|
21
|
+
`.devpunks/settings.json`, the Product/Backlog Root, project wiki,
|
|
22
|
+
repository identity, and current provider workspace. Missing or legacy
|
|
23
|
+
destination settings stop with exact `hi ensure` guidance; never discover or
|
|
24
|
+
guess another destination.
|
|
25
|
+
2. Read project context, repository identity, and fresh provider state. Read
|
|
26
|
+
every intended target, parent, relation, milestone, field, and view before
|
|
27
|
+
deciding whether the operation creates, enriches, or repairs anything.
|
|
28
|
+
3. Read [the mutation envelope](REFERENCE.md) and
|
|
29
|
+
[identity reconciliation](references/issue-reconciliation.md). After a
|
|
30
|
+
complete provider search, create on zero stable matches, enrich one stable
|
|
31
|
+
match carrying the same durable wiki identity, and stop on any ambiguity,
|
|
32
|
+
conflict, or incomplete search.
|
|
33
|
+
4. Load exactly one semantic branch:
|
|
34
|
+
- [initialize or reconstruct a backlog](references/backlog-initialization.md)
|
|
35
|
+
- [ensure Fog, pre-resolution grilling child shell, or Research/Prototype support child](references/fog-intake.md)
|
|
36
|
+
- [project accepted Business grilling](references/business-projection.md)
|
|
37
|
+
- [project accepted Functional grilling](references/functional-projection.md)
|
|
38
|
+
- [project accepted Technical grilling from a verified stable blob URL](references/technical-projection.md)
|
|
39
|
+
- [normalize existing backlog state](references/normalization.md)
|
|
40
|
+
- [record directly observed delivery state](references/delivery-status.md)
|
|
41
|
+
5. Construct the complete intended mutation in memory. Validate authority,
|
|
42
|
+
stable identity, hierarchy, provider representation, source links,
|
|
43
|
+
contextual `V*` membership, and the full reachable Task blocker graph.
|
|
44
|
+
6. Use `$show-me` to preview the authority-derived topology. Boundary, goal,
|
|
45
|
+
parent, roadmap, milestone movement, duplicate closure, merge, split,
|
|
46
|
+
reparenting, or reorganization changes require explicit approval. The visual
|
|
47
|
+
explains the proposal; it is not approval. Unambiguous additive links and
|
|
48
|
+
stale-state repairs may continue after preflight.
|
|
49
|
+
7. Apply `$wait-what` when proposed ticket wording or project terms do not land.
|
|
50
|
+
Re-pitch in the project's language; preserve accepted meaning and user
|
|
51
|
+
wording instead of silently renaming it.
|
|
52
|
+
8. Select exactly one adapter from `backlogProvider`:
|
|
53
|
+
- `Linear`: read [the Linear provider branch](references/providers/linear.md).
|
|
54
|
+
- `GitHub`: read [the GitHub provider branch](references/providers/github.md).
|
|
55
|
+
If exact hierarchy, metadata, milestone, relation, or readback representation
|
|
56
|
+
is unavailable, stop with zero provider mutations and setup guidance.
|
|
57
|
+
9. Write only the approved, validated delta. Then perform exact readback of
|
|
58
|
+
every intended identity, parent, relation, source link, field, view,
|
|
59
|
+
milestone, status, and provider object. A partial provider failure returns
|
|
60
|
+
the observed writes and unresolved delta; it never claims atomic success.
|
|
61
|
+
10. Return the stable provider IDs and URLs, durable wiki identities, branch,
|
|
62
|
+
created/enriched/unchanged classification, approved structural decisions,
|
|
63
|
+
exact readback, and any remaining blocker to the caller.
|
|
64
|
+
|
|
65
|
+
## Invariants
|
|
66
|
+
|
|
67
|
+
```text
|
|
68
|
+
Product/Backlog Root
|
|
69
|
+
└── Product Area
|
|
70
|
+
└── Initiative
|
|
71
|
+
└── Epic
|
|
72
|
+
└── Story [one contextual V*]
|
|
73
|
+
└── Task 1..n [required, same V* + blockers]
|
|
74
|
+
|
|
75
|
+
Fog ──provenance/enrichment──> Area | Initiative | Epic | Story | Task
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
- Business projection creates or enriches Product Area, Initiative, and Epic.
|
|
79
|
+
- Functional projection creates one Story per accepted Functional child.
|
|
80
|
+
- Technical projection requires an authoritative agent-ready `SPEC.md`, then
|
|
81
|
+
creates one or more mandatory, atomic, owner-ready Tasks per Story.
|
|
82
|
+
- Every Story belongs to exactly one contextual `V*` milestone iteration. Each
|
|
83
|
+
Task inherits the same iteration. Product Areas, Initiatives, and Epics span
|
|
84
|
+
iterations. A Fog may target a fitting iteration.
|
|
85
|
+
- Reuse a fitting existing structure or milestone before proposing a new one.
|
|
86
|
+
- Blockers, not milestone order, define precedence. Reject missing targets,
|
|
87
|
+
future-iteration edges, self-edges, and cycles across the complete reachable
|
|
88
|
+
Task graph before any provider mutation.
|
|
89
|
+
- Fog is lateral provenance, not a delivery parent. Its accepted stage children
|
|
90
|
+
and every enriched or produced provider object remain linked to it.
|
|
91
|
+
- Project views are Product Map, Roadmap, Fogs, and Current Delivery. This skill
|
|
92
|
+
does not design CI/CD pipelines, sprints, provider Cycles, or scheduling.
|
|
93
|
+
|
|
94
|
+
## Body Contract
|
|
95
|
+
|
|
96
|
+
Every written ticket stays independently understandable and retains its source
|
|
97
|
+
authority. Add a compact `$show-me` visual when the relationships are harder to
|
|
98
|
+
understand than the prose. The visual does not replace product outcome,
|
|
99
|
+
`US-###`/`AC-###` traceability, immutable evidence, or provider-native
|
|
100
|
+
relations. Concrete files, commands, workers, and
|
|
101
|
+
execution notes stay in planning and delivery artifacts.
|
|
102
|
+
|
|
103
|
+
See [examples](EXAMPLES.md) for representative initialization and staged
|
|
104
|
+
projection results. Provider mechanics remain behind this mutation seam; Finder and delivery callers never perform provider writes themselves.
|