@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
|
@@ -1,27 +1,22 @@
|
|
|
1
1
|
# Functional Projection
|
|
2
2
|
|
|
3
|
-
Require
|
|
4
|
-
|
|
3
|
+
Require immutable accepted Functional evidence, its Fog identity when Finder
|
|
4
|
+
supplied one, and fresh reads of the relevant Business structure.
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
Functional projection has a strict Product Area → Initiative → Epic ceiling. It
|
|
7
|
+
may reuse, enrich, or create that accepted path. It creates neither Story nor
|
|
8
|
+
Task and does not select a delivery milestone.
|
|
7
9
|
|
|
8
|
-
|
|
9
|
-
- observable workflow and result
|
|
10
|
-
- applicable business rules
|
|
11
|
-
- visible alternate and failure paths
|
|
12
|
-
- product-level edge cases
|
|
13
|
-
- acceptance signals and boundaries
|
|
14
|
-
- non-goals
|
|
15
|
-
- known product dependencies
|
|
16
|
-
- durable accepted-artifact links
|
|
17
|
-
- unresolved engineering handoff questions
|
|
18
|
-
- immutable Business and Functional evidence plus Fog provenance
|
|
10
|
+
The Epic preserves:
|
|
19
11
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
12
|
+
- actor, trigger, observable workflow, and result
|
|
13
|
+
- applicable business rules and visible alternate or failure paths
|
|
14
|
+
- product-level edge cases, acceptance signals, and boundaries
|
|
15
|
+
- non-goals and known product dependencies
|
|
16
|
+
- durable accepted-artifact links and unresolved engineering questions
|
|
17
|
+
- immutable Business and Functional evidence plus Fog provenance
|
|
23
18
|
|
|
24
|
-
Use stable identity reconciliation before create or enrich. Preserve user
|
|
25
|
-
and
|
|
26
|
-
|
|
27
|
-
identity to Finder.
|
|
19
|
+
Use stable identity reconciliation before create or enrich. Preserve user
|
|
20
|
+
wording and accepted evidence traceability. Read back Product Area and
|
|
21
|
+
Initiative identities, Epic parent, source links, and Fog relation. Return the
|
|
22
|
+
stable Epic identity to Finder without creating delivery-depth children.
|
|
@@ -15,7 +15,7 @@ drifted, ambiguous, or conflicting.
|
|
|
15
15
|
Detect every accepted drift class:
|
|
16
16
|
|
|
17
17
|
- invalid Fog child placement
|
|
18
|
-
- missing or
|
|
18
|
+
- missing or conflicting Fog provenance or support relation
|
|
19
19
|
- duplicate or ambiguous structures
|
|
20
20
|
- stale links or status
|
|
21
21
|
- hierarchy drift
|
|
@@ -24,17 +24,17 @@ Detect every accepted drift class:
|
|
|
24
24
|
|
|
25
25
|
Audit the Fog-child lifecycle against these exact semantics:
|
|
26
26
|
|
|
27
|
-
- Fog
|
|
28
|
-
-
|
|
29
|
-
|
|
30
|
-
-
|
|
31
|
-
|
|
32
|
-
- Research and Prototype children link to the exact grilling child they support.
|
|
27
|
+
- The Fog retains one immutable original `Business` or `Functional` intake lens.
|
|
28
|
+
- Fog direct children are generic `grilling`, `Research`, or `Prototype` items.
|
|
29
|
+
- Each `grilling` child links to the bounded unknown it closes; several are valid.
|
|
30
|
+
- Research and Prototype children link to the exact unknown or Grilling work
|
|
31
|
+
they support.
|
|
33
32
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
Historical Business, Functional, and Technical staged tickets are compatibility
|
|
34
|
+
evidence only. Their stored content and provider state remain unchanged unless
|
|
35
|
+
a separately authorized operation targets the exact ticket. Exclude them from
|
|
36
|
+
automatic Normalization: never migrate, relabel, replace, reparent, or repair
|
|
37
|
+
their historical metadata. The former Stage is not a current gate.
|
|
38
38
|
|
|
39
39
|
Provider state proves operational facts. The wiki proves durable product
|
|
40
40
|
meaning. Stable provider identity plus durable wiki identity proves an exact
|
|
@@ -67,9 +67,9 @@ relation. A similar title or inferred intent never qualifies.
|
|
|
67
67
|
## Structural Approval
|
|
68
68
|
|
|
69
69
|
Treat duplicate closure, merge, split, boundary change, goal change,
|
|
70
|
-
reparenting, milestone movement,
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
reparenting, milestone movement, and reorganization as structural. Use
|
|
71
|
+
`$show-me` to present the exact current and proposed topology before asking for
|
|
72
|
+
explicit approval:
|
|
73
73
|
|
|
74
74
|
```text
|
|
75
75
|
Current (fresh provider read + durable wiki identity)
|
|
@@ -2,42 +2,47 @@
|
|
|
2
2
|
|
|
3
3
|
Read this reference for every mutation.
|
|
4
4
|
|
|
5
|
-
## Authority
|
|
6
|
-
|
|
7
|
-
1. A
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
constraints and non-goals, operating rules, owner, repository link, wiki
|
|
12
|
-
link, and current and future `V*` milestone context.
|
|
5
|
+
## Authority Order
|
|
6
|
+
|
|
7
|
+
1. A persisted explicit human decision resolves a genuine semantic conflict.
|
|
8
|
+
2. The project wiki owns durable product meaning: Product brief, objectives,
|
|
9
|
+
users, boundaries, Product Map, constraints and non-goals, operating rules,
|
|
10
|
+
owner, repository, wiki, and `V*` milestone context.
|
|
13
11
|
3. `.devpunks/settings.json` selects the provider and Product/Backlog Root. It
|
|
14
12
|
does not define product meaning.
|
|
15
|
-
4. Fresh provider reads prove
|
|
16
|
-
views, milestones, and statuses.
|
|
13
|
+
4. Fresh provider reads prove operational objects, identities, relations,
|
|
14
|
+
metadata, views, milestones, and statuses.
|
|
17
15
|
5. Repository remotes and provider links prove repository identity. Immutable
|
|
18
|
-
accepted evidence uses
|
|
16
|
+
accepted evidence uses a verified commit/blob URL, not a local path or mutable
|
|
17
|
+
branch URL.
|
|
18
|
+
|
|
19
|
+
Read routed `apps/wiki/` product artifacts before composing the delta. A valid
|
|
20
|
+
Requirements Phase result may have no Finder or Fog provenance; immutable
|
|
21
|
+
specification authority plus accepted placement is sufficient to reuse, enrich,
|
|
22
|
+
or create the needed hierarchy.
|
|
19
23
|
|
|
20
|
-
|
|
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
|
+
## Destination and Identity
|
|
24
25
|
|
|
25
|
-
|
|
26
|
+
Keep the settings key `backlogProjectUrl`; it identifies the
|
|
27
|
+
Product/Backlog Root. Verify the actual provider workspace, Root, repository,
|
|
28
|
+
and wiki. Connector or MCP aliases are routing hints, never workspace proof.
|
|
29
|
+
Several independent Roots may exist in one workspace.
|
|
26
30
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
31
|
+
Every intended object needs a durable wiki identity. Every known provider object
|
|
32
|
+
needs its stable provider identity. Apply the create/reuse/enrich/stop decision
|
|
33
|
+
table in `issue-reconciliation.md`. Titles, similar descriptions, and nearby
|
|
34
|
+
placement are discovery signals only.
|
|
30
35
|
|
|
31
|
-
|
|
32
|
-
identity
|
|
33
|
-
|
|
34
|
-
|
|
36
|
+
A legacy destination, wrong workspace, unsupported representation, ambiguous
|
|
37
|
+
identity, or incomplete search returns exact setup guidance and zero provider
|
|
38
|
+
mutations. Historical staged tickets remain unchanged and excluded from
|
|
39
|
+
automatic Normalization.
|
|
35
40
|
|
|
36
41
|
## Conflict Handling
|
|
37
42
|
|
|
38
|
-
- Provider state defeats
|
|
39
|
-
- Wiki
|
|
43
|
+
- Provider state defeats cached state for operational facts.
|
|
44
|
+
- Wiki authority defeats provider prose copied from a superseded decision.
|
|
40
45
|
- A real wiki/provider semantic conflict requires a new explicit decision and
|
|
41
46
|
durable source update before mutation.
|
|
42
|
-
- Preserve user
|
|
43
|
-
|
|
47
|
+
- Preserve accepted user wording. Use `$wait-what` to re-pitch unclear language
|
|
48
|
+
in canonical project terms without changing meaning.
|
|
@@ -1,168 +1,123 @@
|
|
|
1
1
|
# GitHub Provider Adapter
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
the
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
##
|
|
8
|
-
|
|
9
|
-
| Product meaning
|
|
10
|
-
|
|
|
11
|
-
| Product/Backlog Root
|
|
12
|
-
| Product Area
|
|
13
|
-
| Initiative
|
|
14
|
-
| Epic
|
|
15
|
-
| Story
|
|
16
|
-
| Task
|
|
17
|
-
| Story and
|
|
18
|
-
| Task precedence
|
|
19
|
-
| Fog
|
|
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
|
-
Read every
|
|
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
|
-
### 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
|
|
3
|
+
Read this reference only when the resolved provider is GitHub. It translates
|
|
4
|
+
the provider-neutral mutation envelope into one Projects V2 operating surface;
|
|
5
|
+
hierarchy policy and mutation authority remain in Write Backlog.
|
|
6
|
+
|
|
7
|
+
## Accepted Representation
|
|
8
|
+
|
|
9
|
+
| Product meaning | GitHub representation |
|
|
10
|
+
| ------------------------ | ------------------------------------------------------------- |
|
|
11
|
+
| Product/Backlog Root | one Projects V2 project |
|
|
12
|
+
| Product Area | configured Product Area field option |
|
|
13
|
+
| Initiative | configured Initiative field option scoped to its Product Area |
|
|
14
|
+
| Epic | Issue added to the Project |
|
|
15
|
+
| Story | Epic sub-issue through `parentIssueId` or `addSubIssue` |
|
|
16
|
+
| Task | nested sub-issue of its Story |
|
|
17
|
+
| Story and Task iteration | same repository milestone named `V*` |
|
|
18
|
+
| Task precedence | native `addBlockedBy` relation |
|
|
19
|
+
| Fog | lateral provenance and immutable source links |
|
|
20
|
+
|
|
21
|
+
Issues, recursive parent/sub-issue relations, repository milestones, native
|
|
22
|
+
blocker relations, semantic fields, and product-owner views must all be
|
|
23
|
+
representable. A missing required representation returns actionable setup
|
|
24
|
+
guidance and zero provider mutations. There is no flat Issues fallback.
|
|
25
|
+
|
|
26
|
+
## Destination and Identity
|
|
27
|
+
|
|
28
|
+
Resolve the configured Product/Backlog Root by stable Projects V2 node ID and
|
|
29
|
+
durable wiki identity. Read the linked repository, Project metadata, fields,
|
|
30
|
+
views, items, Issues, parents, milestones, blockers, bodies, and immutable
|
|
31
|
+
source links before choosing create, reuse, or enrich.
|
|
32
|
+
|
|
33
|
+
Stable provider identity plus durable wiki identity is the reuse key. A title
|
|
34
|
+
match, standalone provenance URL, incomplete search, ambiguous candidate,
|
|
35
|
+
conflicting identity, wrong repository, or unsupported parent relation returns
|
|
36
|
+
exact steering and zero writes.
|
|
37
|
+
|
|
38
|
+
## Initialization Metadata, Fields, and Views
|
|
39
|
+
|
|
40
|
+
Use `updateProjectV2` and `linkProjectV2ToRepository` to project the Product
|
|
41
|
+
brief, business objectives, target users, product boundaries, Product Map,
|
|
42
|
+
constraints and non-goals, operating rules, owner, repository link, wiki link,
|
|
43
|
+
and current and future `V*` context. Richer meaning remains in the wiki.
|
|
44
|
+
|
|
45
|
+
Read every configured option by stable node ID:
|
|
46
|
+
|
|
47
|
+
- **Product Area**: one option ID per durable Product Area identity
|
|
48
|
+
- **Initiative**: one option ID per durable Initiative identity, with its
|
|
49
|
+
Product Area identity in the canonical Project README map
|
|
50
|
+
- **Kind**: Epic, Story, Task, Fog, Grilling, Research, or Prototype
|
|
51
|
+
|
|
52
|
+
Record durable wiki identities in option descriptions when the API supports
|
|
53
|
+
them and in the Project README identity map otherwise. Ordinary writes reuse
|
|
54
|
+
configured IDs. Initialization may call `createProjectV2Field` only after a
|
|
55
|
+
structural preview and explicit approval.
|
|
56
|
+
|
|
57
|
+
Create or preserve semantically equivalent product-owner views. Supported
|
|
58
|
+
automatic inputs are `createProjectV2View` and `updateProjectV2View` fields
|
|
59
|
+
`name`, `layout`, `configuration.visibleFieldIds`, and `filter`:
|
|
60
|
+
|
|
61
|
+
- **Product Map**: Product Area, Initiative, and Epic structure
|
|
62
|
+
- **Roadmap**: repository `V*` milestones with rolled-up Story/Task progress
|
|
63
|
+
- **Fogs**: unresolved provenance, affected structures, and production evidence
|
|
64
|
+
- **Current Delivery**: active Stories and Tasks with native blocker readiness
|
|
65
|
+
|
|
66
|
+
If grouping or sorting is required but unavailable through the connected API,
|
|
67
|
+
return manual setup guidance naming the exact view, fields, grouping, and sort.
|
|
68
|
+
Resume only after exact view readback. A partially configured view is not an
|
|
69
|
+
accepted representation.
|
|
70
|
+
|
|
71
|
+
## Milestones and Blockers
|
|
99
72
|
|
|
100
73
|
Read open and closed repository milestones and reuse a fitting existing `V*`
|
|
101
|
-
before proposing
|
|
102
|
-
milestone
|
|
74
|
+
before proposing another. Every Story belongs to exactly one repository
|
|
75
|
+
milestone and every derived Task belongs to the same milestone as its Story.
|
|
76
|
+
Preserve Version name, one-sentence product goal, and included product outcomes
|
|
77
|
+
or capability changes in supported milestone metadata; otherwise retain richer
|
|
78
|
+
meaning in the linked wiki.
|
|
103
79
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
80
|
+
Validate the complete reachable Task graph before mutation. Reject missing
|
|
81
|
+
parents or blocker targets, Task/Story milestone mismatch, future-iteration
|
|
82
|
+
dependencies, duplicate edges, self-edges, and cycles. Materialize only accepted
|
|
83
|
+
edges with native `addBlockedBy` relations.
|
|
107
84
|
|
|
108
|
-
|
|
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.
|
|
85
|
+
## Small Mutation
|
|
112
86
|
|
|
113
|
-
|
|
87
|
+
Build the complete mutation envelope in memory: ordered operations, stable IDs,
|
|
88
|
+
preconditions, immutable source identities, approval record, and expected
|
|
89
|
+
readback. Preview every material structural change and obtain explicit approval.
|
|
114
90
|
|
|
115
|
-
|
|
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.
|
|
91
|
+
Write the approved delta parent-first:
|
|
120
92
|
|
|
121
|
-
|
|
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.
|
|
93
|
+
1. Reconcile approved Project metadata, fields, views, and milestones.
|
|
130
94
|
2. Use `createIssue` with `projectV2Ids`, `parentIssueId`, and `milestoneId` as
|
|
131
|
-
applicable.
|
|
132
|
-
|
|
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
|
|
95
|
+
applicable. Attach an existing exact child only with `addSubIssue`.
|
|
96
|
+
3. Resolve Project item IDs and set Product Area, Initiative, and Kind through
|
|
136
97
|
`updateProjectV2ItemFieldValue`.
|
|
137
|
-
4. Add each validated Task prerequisite with `addBlockedBy
|
|
138
|
-
`issueId` and its prerequisite is `blockingIssueId`.
|
|
98
|
+
4. Add each validated Task prerequisite with `addBlockedBy`.
|
|
139
99
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
authorized it. Fog remains outside the Epic parent chain.
|
|
100
|
+
Fog stays outside the parent chain. Every enriched or produced Issue records
|
|
101
|
+
its Fog backlink when one exists, durable wiki identity, applicable `OUT-###`
|
|
102
|
+
traceability, and immutable specification source.
|
|
144
103
|
|
|
145
|
-
## Exact Readback
|
|
104
|
+
## Exact Readback and Recovery
|
|
146
105
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
Project metadata, linked repository,
|
|
151
|
-
|
|
152
|
-
is unresolved, not success.
|
|
106
|
+
Exact readback must prove Project membership, recursive parent chain, repository
|
|
107
|
+
milestone, Product Area, Initiative, Kind, native blocker relations, Fog
|
|
108
|
+
provenance, immutable source links, stable IDs, and URLs. Initialization also
|
|
109
|
+
reads back Project metadata, linked repository, identity maps, and all required
|
|
110
|
+
view configurations. A response without an exact comparison remains unresolved.
|
|
153
111
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
112
|
+
On partial provider failure, stop further writes, read back every affected
|
|
113
|
+
object, and return observed writes, the recovery point, and the exact residual
|
|
114
|
+
delta. A resumed operation repeats read-before-write and applies only the
|
|
115
|
+
remaining validated operations.
|
|
158
116
|
|
|
159
117
|
## Runtime Coverage Gate
|
|
160
118
|
|
|
161
|
-
The first workflow-created nested Task must
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
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.
|
|
119
|
+
The first workflow-created nested Task must read back its Project membership,
|
|
120
|
+
Story parent, repository `V*`, Product Area, Initiative, Kind, native blocker,
|
|
121
|
+
Fog backlink, immutable source, stable ID, and URL. Schema introspection is not
|
|
122
|
+
runtime proof. When provider capability or authentication blocks this proof,
|
|
123
|
+
report the exact blocker and leave runtime coverage unclaimed.
|