@punks/cli 4.0.1 → 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 +34 -0
- package/dist/CHANGELOG.md +24 -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 +2 -3
- package/dist/baseline/scaffold-baseline/data/catalog/skills.json +8 -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/research/parallel-research/DURABLE-REPORT.md +5 -12
- package/dist/baseline/scaffold-baseline/skills/agnostic/research/parallel-research/SKILL.md +7 -8
- package/dist/baseline/scaffold-baseline/skills/agnostic/security/architect-pipeline/SKILL.md +97 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/security/architect-pipeline/agents/openai.yaml +4 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/security/architect-pipeline/references/infrastructure-deployment.md +29 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/security/architect-pipeline/references/security-by-design.md +22 -0
- 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/provider-upgrade/SKILL.md +10 -7
- package/dist/baseline/scaffold-baseline/skills/frameworks/pulumi/pulumi-best-practices/SKILL.md +19 -53
- package/dist/baseline/scaffold-baseline/skills/frameworks/pulumi/pulumi-component/SKILL.md +36 -88
- 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/agnostic/research/parallel-research/DURABLE-REPORT.md +5 -12
- package/dist/skills/agnostic/research/parallel-research/SKILL.md +7 -8
- package/dist/skills/agnostic/security/architect-pipeline/SKILL.md +97 -0
- package/dist/skills/agnostic/security/architect-pipeline/agents/openai.yaml +4 -0
- package/dist/skills/agnostic/security/architect-pipeline/references/infrastructure-deployment.md +29 -0
- package/dist/skills/agnostic/security/architect-pipeline/references/security-by-design.md +22 -0
- package/dist/skills/frameworks/pulumi/provider-upgrade/SKILL.md +10 -7
- package/dist/skills/frameworks/pulumi/pulumi-best-practices/SKILL.md +10 -42
- package/dist/skills/frameworks/pulumi/pulumi-component/SKILL.md +18 -58
- 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
|
@@ -2,42 +2,32 @@
|
|
|
2
2
|
|
|
3
3
|
## Entry guard
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
## Inputs
|
|
8
|
-
|
|
9
|
-
Request, repository/wiki identity, optional stable Fog identity, fresh provider
|
|
10
|
-
search, and current runtime handoff.
|
|
5
|
+
The wrapper lens is valid and no exact Fog readback exists.
|
|
11
6
|
|
|
12
7
|
## Bounded action
|
|
13
8
|
|
|
14
|
-
1. If an identity
|
|
15
|
-
|
|
9
|
+
1. If the caller supplied an identity, read the exact Fog, immutable intake
|
|
10
|
+
lens, direct children, relations, and retained evidence.
|
|
16
11
|
2. Otherwise allocate one durable wiki Fog identity, persist it once, and search
|
|
17
|
-
by that identity before proposing
|
|
18
|
-
3. On zero exact matches, send one semantic Fog upsert intent with the
|
|
19
|
-
|
|
20
|
-
4.
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
## Invariants
|
|
24
|
-
|
|
25
|
-
Exactly one Fog is in scope. The Fog remains lateral provenance. This gate
|
|
26
|
-
contains no provider mechanics and never creates a grilling child.
|
|
12
|
+
by that identity before proposing creation.
|
|
13
|
+
3. On zero exact matches, send one semantic Fog upsert intent with the wrapper's
|
|
14
|
+
original intake lens to `$write-backlog`; require exact readback.
|
|
15
|
+
4. Resume one exact match. Route ambiguity or a conflicting lens to human
|
|
16
|
+
steering with zero mutation intent.
|
|
27
17
|
|
|
28
18
|
## Completion evidence
|
|
29
19
|
|
|
30
|
-
One durable wiki identity,
|
|
31
|
-
|
|
32
|
-
|
|
20
|
+
One durable wiki Fog identity, optional exact provider Fog identity, exact
|
|
21
|
+
readback, provider snapshot, and immutable original Business or Functional
|
|
22
|
+
intake lens.
|
|
33
23
|
|
|
34
24
|
## Declared exits
|
|
35
25
|
|
|
36
26
|
- `fog_ready` -> router re-entry.
|
|
37
27
|
- `human_steering_required` -> handback.
|
|
38
|
-
- `blocked` -> stop with missing
|
|
28
|
+
- `blocked` -> stop with missing evidence.
|
|
39
29
|
|
|
40
30
|
## Durable handoff
|
|
41
31
|
|
|
42
|
-
Persist both Fog identities,
|
|
32
|
+
Persist both Fog identities, immutable lens, readback, snapshot, exit, and
|
|
43
33
|
freshness under the durable wiki Fog identity.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Generic Grilling Gate
|
|
2
|
+
|
|
3
|
+
## Entry guard
|
|
4
|
+
|
|
5
|
+
One exact Fog and immutable intake lens exist, and the bounded intake result is
|
|
6
|
+
not ready.
|
|
7
|
+
|
|
8
|
+
## Bounded action
|
|
9
|
+
|
|
10
|
+
1. Read every direct generic `Kind/grilling` child and its support evidence.
|
|
11
|
+
2. Reuse one obviously relevant child. Create another child only when current
|
|
12
|
+
evidence supports separate useful work. When relevance is genuinely
|
|
13
|
+
ambiguous, request human steering before any create intent.
|
|
14
|
+
3. For a new child, allocate one durable wiki identity and ask `$write-backlog`
|
|
15
|
+
to ensure its generic shell and exact supported-by relations.
|
|
16
|
+
4. Run one atomic `$grilling` conversation using the invoking wrapper's intake
|
|
17
|
+
and presentation profile, including its `$wait-what` and `$show-me`
|
|
18
|
+
behavior. Unknown values remain explicit.
|
|
19
|
+
5. When a precise unknown needs readonly facts or a human-evaluated artifact,
|
|
20
|
+
record the named child and route to Research or Prototype.
|
|
21
|
+
6. Retain accepted bounded evidence. If optional structure is useful, emit a
|
|
22
|
+
semantic intent within the wrapper's projection ceiling for reconciliation.
|
|
23
|
+
|
|
24
|
+
## Completion evidence
|
|
25
|
+
|
|
26
|
+
Exact generic child identity, immutable retained evidence, any support request
|
|
27
|
+
and relation, bounded-result state, and optional ceiling-safe projection intent.
|
|
28
|
+
|
|
29
|
+
## Declared exits
|
|
30
|
+
|
|
31
|
+
- `support_required` -> router re-entry.
|
|
32
|
+
- `projection_requested` -> reconciliation through router re-entry.
|
|
33
|
+
- `bounded_result_ready` -> bounded return through router re-entry.
|
|
34
|
+
- `human_steering_required` -> handback.
|
|
35
|
+
- `blocked` -> stop with missing evidence.
|
|
36
|
+
|
|
37
|
+
## Durable handoff
|
|
38
|
+
|
|
39
|
+
Persist child identities, evidence pointers, reuse-or-create decision, support
|
|
40
|
+
relations, optional projection intent, bounded-result state, and exit.
|
|
@@ -2,28 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
## Entry guard
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
## Inputs
|
|
9
|
-
|
|
10
|
-
Exact conflict, admissible evidence, zero-write proof, current runtime handoff,
|
|
11
|
-
and the minimum human decision required.
|
|
5
|
+
Fog identity, immutable lens, child relevance, support relation, evidence,
|
|
6
|
+
scope, or projection ceiling is ambiguous or conflicting under current
|
|
7
|
+
authority.
|
|
12
8
|
|
|
13
9
|
## Bounded action
|
|
14
10
|
|
|
15
|
-
Invoke `$handback` with the conflict and minimum decision. Persist
|
|
16
|
-
outcome as `human_steering_required
|
|
17
|
-
|
|
18
|
-
## Invariants
|
|
19
|
-
|
|
20
|
-
No semantic mutation intent is emitted while the conflict remains. The router
|
|
21
|
-
keeps returning this terminal until the `$handback` authority guard passes.
|
|
11
|
+
Invoke `$handback` with the exact conflict and minimum human decision. Persist
|
|
12
|
+
its complete outcome as `human_steering_required`, prove that no mutation intent
|
|
13
|
+
was emitted after detecting the conflict, and stop.
|
|
22
14
|
|
|
23
15
|
## Completion evidence
|
|
24
16
|
|
|
25
|
-
Durable `$handback` outcome, exact missing authority or decision, and
|
|
26
|
-
|
|
17
|
+
Durable `$handback` outcome, exact missing authority or decision, and zero-write
|
|
18
|
+
proof.
|
|
27
19
|
|
|
28
20
|
## Declared exits
|
|
29
21
|
|
|
@@ -32,5 +24,6 @@ no mutation was requested after conflict detection.
|
|
|
32
24
|
|
|
33
25
|
## Durable handoff
|
|
34
26
|
|
|
35
|
-
Persist
|
|
36
|
-
and terminal state.
|
|
27
|
+
Persist conflict evidence, minimum required decision, complete `$handback`
|
|
28
|
+
outcome, and terminal state. The router keeps returning this terminal while the
|
|
29
|
+
authority guard remains unsatisfied.
|
|
@@ -2,39 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
## Entry guard
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
artifact and no fresh verdict exists.
|
|
7
|
-
|
|
8
|
-
## Inputs
|
|
9
|
-
|
|
10
|
-
Exact Fog, supported grilling child identity, precise question, prior Prototype
|
|
11
|
-
children, and retained verdict evidence.
|
|
5
|
+
A named Grilling child records one precise unknown requiring a human-evaluated
|
|
6
|
+
artifact and no fresh retained verdict exists.
|
|
12
7
|
|
|
13
8
|
## Bounded action
|
|
14
9
|
|
|
15
|
-
Reuse
|
|
16
|
-
|
|
17
|
-
`$prototype-phase
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
## Invariants
|
|
10
|
+
Reuse an obviously relevant direct Fog Prototype child or create one when the
|
|
11
|
+
evidence supports separate useful work. Link it to the named Grilling child,
|
|
12
|
+
run `$prototype-phase`, and retain its human verdict and immutable artifact pointer.
|
|
13
|
+
Ambiguity requests human steering before creation.
|
|
21
14
|
|
|
22
|
-
|
|
23
|
-
|
|
15
|
+
Prototype returns evidence to its supported Grilling child. It cannot accept product direction or authorize backlog
|
|
16
|
+
projection independently.
|
|
24
17
|
|
|
25
18
|
## Completion evidence
|
|
26
19
|
|
|
27
|
-
|
|
28
|
-
|
|
20
|
+
Exact Prototype child identity, supported-child relation, immutable artifact
|
|
21
|
+
and human-verdict pointers, and exact child/relation readback.
|
|
29
22
|
|
|
30
23
|
## Declared exits
|
|
31
24
|
|
|
32
|
-
- `support_resolved` ->
|
|
33
|
-
- `iterate` -> remain in this gate after durable handoff.
|
|
25
|
+
- `support_resolved` -> router re-entry.
|
|
34
26
|
- `human_steering_required` -> handback.
|
|
35
27
|
- `blocked` -> stop with missing retained evidence.
|
|
36
28
|
|
|
37
29
|
## Durable handoff
|
|
38
30
|
|
|
39
|
-
Persist Prototype identity, supported child, verdict pointers,
|
|
40
|
-
exit.
|
|
31
|
+
Persist Prototype identity, supported Grilling child, verdict pointers,
|
|
32
|
+
readback, and exit.
|
|
@@ -1,52 +1,38 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Optional Projection Reconciliation Gate
|
|
2
2
|
|
|
3
3
|
## Entry guard
|
|
4
4
|
|
|
5
|
-
Fresh
|
|
6
|
-
readback.
|
|
7
|
-
|
|
8
|
-
## Inputs
|
|
9
|
-
|
|
10
|
-
Exact Fog snapshot, child identity, immutable evidence, semantic projection or
|
|
11
|
-
support intent, prior provider identities, and current wiki/provider state.
|
|
5
|
+
Fresh bounded intake evidence contains an optional semantic structure intent
|
|
6
|
+
without a final exact readback.
|
|
12
7
|
|
|
13
8
|
## Bounded action
|
|
14
9
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
mutation intent and route to handback.
|
|
27
|
-
|
|
28
|
-
## Invariants
|
|
29
|
-
|
|
30
|
-
No provider mechanics live here. Title-only matching is inadmissible. A stage
|
|
31
|
-
cannot become accepted runtime state until immutable evidence and exact readback
|
|
32
|
-
agree.
|
|
10
|
+
No provider mechanics live here.
|
|
11
|
+
|
|
12
|
+
1. Verify the intent still matches current evidence and the invoking wrapper's
|
|
13
|
+
projection ceiling.
|
|
14
|
+
2. Send the semantic intent to `$write-backlog`, which owns identity
|
|
15
|
+
reconciliation, preview and approval, provider mutation, and exact readback.
|
|
16
|
+
3. Consume exact identities, relationships, source links, and residual result.
|
|
17
|
+
4. On an unavailable or declined optional projection, record it unresolved and
|
|
18
|
+
preserve the otherwise valid Fog result.
|
|
19
|
+
5. Conflicting identity or above-ceiling intent emits no mutation request and
|
|
20
|
+
routes to human steering.
|
|
33
21
|
|
|
34
22
|
## Completion evidence
|
|
35
23
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
Technical completion also retains the bound full-reachable Task graph validator
|
|
39
|
-
result and proves that it covers every returned Task and outgoing edge.
|
|
24
|
+
The original semantic intent plus exact optional structure readback, an
|
|
25
|
+
unresolved projection result, or a zero-write conflict result.
|
|
40
26
|
|
|
41
27
|
## Declared exits
|
|
42
28
|
|
|
43
|
-
- `
|
|
44
|
-
- `
|
|
29
|
+
- `projection_reconciled` -> router re-entry.
|
|
30
|
+
- `projection_unresolved` -> bounded return through router re-entry.
|
|
45
31
|
- `approval_required` -> persist checkpoint and stop.
|
|
46
32
|
- `human_steering_required` -> handback.
|
|
47
|
-
- `blocked` -> stop with missing readback.
|
|
33
|
+
- `blocked` -> stop with missing required readback.
|
|
48
34
|
|
|
49
35
|
## Durable handoff
|
|
50
36
|
|
|
51
|
-
Persist intent identity,
|
|
52
|
-
snapshot, checkpoint or blocker, and exit.
|
|
37
|
+
Persist intent identity, wrapper ceiling, exact readback or unresolved result,
|
|
38
|
+
provider snapshot, checkpoint or blocker, and exit.
|
|
@@ -2,37 +2,32 @@
|
|
|
2
2
|
|
|
3
3
|
## Entry guard
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
A named Grilling child records one precise unknown answerable by readonly
|
|
6
6
|
investigation and no fresh retained answer exists.
|
|
7
7
|
|
|
8
|
-
## Inputs
|
|
9
|
-
|
|
10
|
-
Exact Fog, supported grilling child identity, precise question, scope, and
|
|
11
|
-
prior research children/evidence.
|
|
12
|
-
|
|
13
8
|
## Bounded action
|
|
14
9
|
|
|
15
|
-
Reuse
|
|
16
|
-
|
|
17
|
-
`$parallel-research` in durable-report mode
|
|
18
|
-
immutable commit SHA and path
|
|
19
|
-
|
|
20
|
-
## Invariants
|
|
10
|
+
Reuse an obviously relevant direct Fog Research child or create one when the
|
|
11
|
+
evidence supports separate useful work. Link it to the named Grilling child,
|
|
12
|
+
run `$parallel-research` in durable-report mode, and retain the report by
|
|
13
|
+
immutable commit SHA and path. Ambiguity requests human steering before
|
|
14
|
+
creation.
|
|
21
15
|
|
|
22
|
-
Research
|
|
23
|
-
projection.
|
|
16
|
+
Research returns facts to its supported Grilling child. It cannot accept product direction or authorize backlog
|
|
17
|
+
projection independently.
|
|
24
18
|
|
|
25
19
|
## Completion evidence
|
|
26
20
|
|
|
27
|
-
|
|
28
|
-
and path, and exact child/relation readback.
|
|
21
|
+
Exact Research child identity, supported-child relation, report retained by
|
|
22
|
+
immutable commit SHA and path, and exact child/relation readback.
|
|
29
23
|
|
|
30
24
|
## Declared exits
|
|
31
25
|
|
|
32
|
-
- `support_resolved` ->
|
|
26
|
+
- `support_resolved` -> router re-entry.
|
|
33
27
|
- `human_steering_required` -> handback.
|
|
34
28
|
- `blocked` -> stop with missing retained evidence.
|
|
35
29
|
|
|
36
30
|
## Durable handoff
|
|
37
31
|
|
|
38
|
-
Persist Research identity, supported child, report pointer, readback,
|
|
32
|
+
Persist Research identity, supported Grilling child, report pointer, readback,
|
|
33
|
+
and exit.
|
|
@@ -1,42 +1,31 @@
|
|
|
1
|
-
# Return
|
|
1
|
+
# Bounded Return Gate
|
|
2
2
|
|
|
3
3
|
## Entry guard
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
## Inputs
|
|
9
|
-
|
|
10
|
-
Target depth, exact Fog and child identities, immutable resolution pointers,
|
|
11
|
-
provider readbacks, any required full-reachable Task graph validator result,
|
|
12
|
-
and unresolved accepted resulting scope.
|
|
5
|
+
One exact Fog, immutable intake lens, retained bounded evidence, and every
|
|
6
|
+
requested support result exist. Optional projection is skipped, unresolved, or
|
|
7
|
+
read back within the wrapper's projection ceiling.
|
|
13
8
|
|
|
14
9
|
## Bounded action
|
|
15
10
|
|
|
16
|
-
Assemble the direct-composition
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
## Invariants
|
|
11
|
+
Assemble the direct-composition result: exact Fog identity, immutable lens,
|
|
12
|
+
generic Grilling and support identities, retained evidence, optional structure
|
|
13
|
+
readback, unresolved decisions, and next explicit human options.
|
|
21
14
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
invocation; Technical returns exactly one Technical child per selected Story.
|
|
25
|
-
Every returned child includes its accepted projection readback.
|
|
15
|
+
Return control without asserting that the Fog is resolved or complete. Delivery
|
|
16
|
+
truth remains outside Finder.
|
|
26
17
|
|
|
27
18
|
## Completion evidence
|
|
28
19
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
runtime handoff whose outcome is `target_depth_reached` rather than Fog
|
|
32
|
-
completion.
|
|
20
|
+
A durable result containing every identity and evidence pointer the gate claims,
|
|
21
|
+
plus outcome `bounded_result_returned` and no Fog-completion assertion.
|
|
33
22
|
|
|
34
23
|
## Declared exits
|
|
35
24
|
|
|
36
|
-
- `
|
|
25
|
+
- `bounded_result_returned` -> invoking human wrapper.
|
|
37
26
|
- `blocked` -> router re-entry when required evidence is incomplete.
|
|
38
27
|
|
|
39
28
|
## Durable handoff
|
|
40
29
|
|
|
41
|
-
Persist
|
|
42
|
-
|
|
30
|
+
Persist returned identities, immutable lens, optional projection status,
|
|
31
|
+
unresolved decisions, exact outcome, and remaining evidence obligations.
|
|
@@ -1,64 +1,30 @@
|
|
|
1
1
|
# Finder Router
|
|
2
2
|
|
|
3
|
-
Recompute one route on every entry
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
Recompute exactly one route from current evidence on every entry and cold
|
|
4
|
+
resume. Read current direct evidence from provider and human decisions first, then fresh
|
|
5
|
+
workflow-native artifacts, then a consistent committed runtime handoff. A
|
|
6
|
+
suggested route is advisory only.
|
|
7
7
|
|
|
8
|
-
## Route
|
|
8
|
+
## Route precedence
|
|
9
9
|
|
|
10
|
-
1.
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
6. Current stage has selected unresolved Research support ->
|
|
23
|
-
[research](research.md).
|
|
24
|
-
7. Current stage has selected unresolved Prototype support ->
|
|
25
|
-
[prototype](prototype.md).
|
|
26
|
-
8. Functional or Technical depth starts from an exact accepted Product Area ->
|
|
27
|
-
Initiative -> Epic path with an explicit `reuse-unchanged` decision but no
|
|
28
|
-
Business child -> [adopt-business-path](adopt-business-path.md).
|
|
29
|
-
9. Business evidence is missing or invalid ->
|
|
30
|
-
[business-grilling](business-grilling.md).
|
|
31
|
-
10. Accepted Business evidence lacks an exact child identity or immutable
|
|
32
|
-
resolution pointer -> [handback](handback.md), with zero mutation intent.
|
|
33
|
-
11. Accepted Business evidence lacks exact projection readback ->
|
|
34
|
-
[reconcile](reconcile.md).
|
|
35
|
-
12. Target depth is `Business` -> [return-target](return-target.md).
|
|
36
|
-
13. Accepted Functional evidence lacks an exact child identity or immutable
|
|
37
|
-
resolution pointer -> [handback](handback.md), with zero mutation intent.
|
|
38
|
-
14. Accepted Functional evidence lacks one distinct stable projected Story
|
|
39
|
-
identity and exact projection readback ->
|
|
40
|
-
[reconcile](reconcile.md).
|
|
41
|
-
15. Required Functional evidence is missing or invalid ->
|
|
42
|
-
[functional-grilling](functional-grilling.md).
|
|
43
|
-
16. Target depth is `Functional` -> [return-target](return-target.md).
|
|
44
|
-
17. A selected Technical Story is not the distinct projected Story of one
|
|
45
|
-
selected accepted Functional child -> [handback](handback.md), with zero
|
|
46
|
-
mutation intent.
|
|
47
|
-
18. Accepted Technical evidence lacks stable projected Task identities, exact
|
|
48
|
-
parent and `V*` membership, or an exact `write-backlog` full-reachable Task
|
|
49
|
-
graph validation bound to the current provider snapshot and milestone-order
|
|
50
|
-
readback ->
|
|
51
|
-
[reconcile](reconcile.md).
|
|
52
|
-
19. Any selected Story lacks valid Technical evidence ->
|
|
53
|
-
[technical-grilling](technical-grilling.md).
|
|
54
|
-
20. Target depth is `Technical` -> [return-target](return-target.md).
|
|
55
|
-
21. Any other state -> [handback](handback.md).
|
|
10
|
+
1. Unsupported intake lens, explicit steering state, ambiguous Fog identity,
|
|
11
|
+
conflicting immutable-lens evidence, duplicate child identity, ambiguous child choice,
|
|
12
|
+
unsupported support kind, or projection above the wrapper ceiling ->
|
|
13
|
+
[handback](handback.md).
|
|
14
|
+
2. No exact Fog readback -> [ensure-fog](ensure-fog.md).
|
|
15
|
+
3. One unresolved Research child -> [research](research.md).
|
|
16
|
+
4. One unresolved Prototype child -> [prototype](prototype.md).
|
|
17
|
+
5. Accepted optional projection intent lacks final readback ->
|
|
18
|
+
[reconcile](reconcile.md).
|
|
19
|
+
6. The wrapper's bounded result is ready ->
|
|
20
|
+
[return-target](return-target.md).
|
|
21
|
+
7. Otherwise -> [grilling](grilling.md).
|
|
56
22
|
|
|
57
|
-
|
|
58
|
-
|
|
23
|
+
Reuse and create decisions both enter the Grilling or support gate. The selected
|
|
24
|
+
gate reads the evidence-backed decision and performs only that action. Genuine
|
|
25
|
+
ambiguity reaches `human_steering_required` before any creation request.
|
|
59
26
|
|
|
60
27
|
## Output
|
|
61
28
|
|
|
62
|
-
Persist the selected gate or
|
|
63
|
-
|
|
64
|
-
provider mutation.
|
|
29
|
+
Persist the selected gate or terminal outcome in the runtime handoff. The
|
|
30
|
+
router performs no provider mutation and makes no Fog-completion claim.
|
package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/entrypoint-contract.md
CHANGED
|
@@ -2,37 +2,36 @@
|
|
|
2
2
|
|
|
3
3
|
## Inputs
|
|
4
4
|
|
|
5
|
-
-
|
|
6
|
-
-
|
|
7
|
-
-
|
|
8
|
-
-
|
|
5
|
+
- intake lens: exactly `Business` or `Functional`
|
|
6
|
+
- the invoking wrapper's audience and intake profile
|
|
7
|
+
- projection ceiling: `Initiative` for Business or `Epic` for Functional
|
|
8
|
+
- one product request
|
|
9
|
+
- optional exact provider or durable wiki Fog identity
|
|
9
10
|
- optional durable runtime-handoff locator
|
|
10
11
|
|
|
11
|
-
The
|
|
12
|
-
|
|
12
|
+
Invocation is explicit and human-selected. The wrapper stays in control while
|
|
13
|
+
loading the engine and supplies no lifecycle state or provider mechanics.
|
|
13
14
|
|
|
14
|
-
## Shared
|
|
15
|
+
## Shared invariants
|
|
15
16
|
|
|
16
17
|
- One invocation creates or resumes exactly one Fog.
|
|
17
|
-
- Fog
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
-
|
|
21
|
-
children
|
|
22
|
-
- Current
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
-
|
|
28
|
-
|
|
29
|
-
-
|
|
18
|
+
- A new Fog records its immutable original intake lens. Either wrapper may
|
|
19
|
+
later resume that Fog while preserving the recorded lens unchanged; the lens
|
|
20
|
+
is provenance, not maturity or a route gate.
|
|
21
|
+
- A Fog may own several generic `Kind/grilling` children plus direct Research
|
|
22
|
+
and Prototype children that support a named Grilling child.
|
|
23
|
+
- Current evidence decides whether an obviously relevant support child is
|
|
24
|
+
reused or separate useful work is created. Genuine ambiguity requests human
|
|
25
|
+
steering with zero duplicate creation.
|
|
26
|
+
- Research and Prototype return durable evidence or verdicts. They cannot
|
|
27
|
+
accept product direction or authorize provider projection independently.
|
|
28
|
+
- Optional structure stays within the invoking wrapper's projection ceiling.
|
|
29
|
+
- Historical staged records remain compatibility evidence, not a current gate.
|
|
30
|
+
- A bounded return gives control back without asserting that the Fog is
|
|
31
|
+
resolved or complete.
|
|
30
32
|
|
|
31
33
|
## Return
|
|
32
34
|
|
|
33
|
-
Return
|
|
34
|
-
identities and
|
|
35
|
-
|
|
36
|
-
durable handoff locator. Business returns exactly one Business child;
|
|
37
|
-
Functional returns one or more Functional children selected for this
|
|
38
|
-
invocation; Technical returns exactly one Technical child per selected Story.
|
|
35
|
+
Return exact Fog identity, immutable intake lens, generic support-child
|
|
36
|
+
identities and retained evidence, optional structure readback within the
|
|
37
|
+
ceiling, unresolved decisions, and the durable handoff locator.
|
package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/root-routing.md
CHANGED
|
@@ -1,22 +1,14 @@
|
|
|
1
1
|
# Root Routing Boundary
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
Accepted specs, issues, or plans remain delivery work. Runtime failures remain
|
|
16
|
-
debugging work. Docs learning after proven changes remains docs-ingest work.
|
|
17
|
-
|
|
18
|
-
Review requests persist the bounded target and accepted-bounds context, then
|
|
19
|
-
point the operator to the exact explicit `$review-phase` invocation.
|
|
20
|
-
`finder-phase`, root routing, and `delivery-phase` never invoke, delegate to, or
|
|
21
|
-
model-select `review-phase`. They may only persist its input context, return the
|
|
22
|
-
exact explicit `$review-phase` instruction, and stop.
|
|
3
|
+
Route into Finder only after a human explicitly invokes `business-finder` or
|
|
4
|
+
`functional-finder`. Neither model inference nor a historical Stage chooses a
|
|
5
|
+
wrapper. Both wrappers directly compose this engine.
|
|
6
|
+
|
|
7
|
+
Finder returns to its invoking wrapper at the bounded result. Requirements
|
|
8
|
+
Phase is independently invocable and owns any later requirements closure,
|
|
9
|
+
specification compilation, and delivery-depth backlog projection.
|
|
10
|
+
|
|
11
|
+
Review requests persist their target and return the exact explicit `$review-phase` invocation
|
|
12
|
+
to the human. Finder may preserve that context, but
|
|
13
|
+
it must never invoke, delegate to, or
|
|
14
|
+
model-select `review-phase`.
|