@paradigma-inc/flywheel 0.1.12 → 0.1.13
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: flywheel-lookahead
|
|
3
|
-
description: Stage next-step frontier
|
|
3
|
+
description: Stage a single-path next-step frontier from existing Flywheel graph state with Flywheel MCP using lookahead depth `n` and per-hop option width `k`, without execution or compute acquisition. Use for planning what to do next, not claim validation, source-to-graph authoring, or autonomous execution.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# flywheel-lookahead
|
|
@@ -15,14 +15,14 @@ If exact tool or field semantics are unclear, load [references/flywheel-mcp-tool
|
|
|
15
15
|
|
|
16
16
|
Before planning, recover or establish these inputs:
|
|
17
17
|
|
|
18
|
-
- Required before planning: start nodes, objective, lookahead depth `n`,
|
|
18
|
+
- Required before planning: start nodes, objective, lookahead depth `n`, step option width `k`, and an explicit terminal condition.
|
|
19
19
|
- Optional: budget ceiling and budget unit, but only when the user already supplied them or wants them tracked for later execution.
|
|
20
|
-
- Defaults: `lookahead_depth` defaults to `n=1`; `
|
|
20
|
+
- Defaults: `lookahead_depth` defaults to `n=1`; `step_option_width` defaults to `k=1`.
|
|
21
21
|
- Recovery rules:
|
|
22
22
|
- Ask only when a required planning input cannot be recovered from explicit user instructions, current conversational context, or recent graph state.
|
|
23
23
|
- If start nodes cannot be recovered from explicit ids/slugs, named current context, or recent graph context, ask once.
|
|
24
24
|
- If the objective is missing, ask once; if the user refuses, infer it from graph context and persist it before planning.
|
|
25
|
-
- If the terminal condition is missing, ask once; if it remains unspecified, persist a planning-local terminal condition such as stopping after staging this lookahead pass through the requested `n` hops
|
|
25
|
+
- If the terminal condition is missing, ask once; if it remains unspecified, persist a planning-local terminal condition such as stopping after staging this lookahead pass through the requested `n` hops with at most `k` considered options per hop and one selected continuation per hop.
|
|
26
26
|
|
|
27
27
|
## Working Terms
|
|
28
28
|
|
|
@@ -31,6 +31,19 @@ Before planning, recover or establish these inputs:
|
|
|
31
31
|
- `control node`: the dedicated `insight` node that stores the canonical planning contract for the current frontier.
|
|
32
32
|
- `terminal condition`: the explicit condition that tells this planning pass when to stop staging additional frontier nodes.
|
|
33
33
|
- `expected_revision`: the node's current revision token used for optimistic-locking writes.
|
|
34
|
+
- `lookahead depth (n)`: the number of sequential hops in one planned path.
|
|
35
|
+
- `step option width (k)`: the number of candidate directions evaluated at each hop before choosing one continuation.
|
|
36
|
+
|
|
37
|
+
## Width Semantics (Unambiguous)
|
|
38
|
+
|
|
39
|
+
- Lookahead depth `n`: number of sequential hops in one plan path.
|
|
40
|
+
- Step option width `k`: number of candidate directions to evaluate at each hop.
|
|
41
|
+
- Expansion rule: at hop `i`, generate up to `k` non-redundant options, select exactly 1 winner, and only that winner continues to hop `i+1`.
|
|
42
|
+
- Graph shape for this mode: a single chain of `n` staged nodes (not `k` parallel branches).
|
|
43
|
+
- Each step node must record:
|
|
44
|
+
- the `k` considered options,
|
|
45
|
+
- the selection criterion,
|
|
46
|
+
- the chosen continuation.
|
|
34
47
|
|
|
35
48
|
## Core Rules
|
|
36
49
|
|
|
@@ -51,7 +64,7 @@ Before planning, recover or establish these inputs:
|
|
|
51
64
|
- The flywheel-lookahead skill requires a measurable objective. Ask once if it is missing; if the user refuses to specify one, infer it from the available graph context and state it explicitly before continuing.
|
|
52
65
|
- Default `n=1` and `k=1` unless the user specified otherwise.
|
|
53
66
|
- Persist the planning contract in a dedicated `insight` control node for this frontier. Put the canonical contract in node `content`, keep a one-line synopsis in `summary`, and keep brief planning rationale in `insights` so the commit contract stays valid.
|
|
54
|
-
- The control contract must name: objective, decision criterion, start nodes, lookahead depth `n`,
|
|
67
|
+
- The control contract must name: objective, decision criterion, start nodes, lookahead depth `n`, step option width `k`, and an explicit terminal condition. Only persist a budget ceiling and unit when the user already supplied one or wants them tracked for later execution.
|
|
55
68
|
- Later lookahead passes must read the control node `content` first and continue from that persisted contract rather than from chat memory.
|
|
56
69
|
3. Map each stable page, claim, or concept to a node.
|
|
57
70
|
- For exact node-mutation shapes, load [references/flywheel-mcp-tool-map.md](references/flywheel-mcp-tool-map.md).
|
|
@@ -69,12 +82,14 @@ Before planning, recover or establish these inputs:
|
|
|
69
82
|
6. Add graph structure sparingly.
|
|
70
83
|
- Promote only decision-relevant relationships to edges.
|
|
71
84
|
- Leave ordinary cross-links inside the markdown body.
|
|
72
|
-
7. Expand the frontier
|
|
85
|
+
7. Expand the frontier as a single selected path.
|
|
73
86
|
- Expand from the resolved frontier rather than mirroring the source corpus again.
|
|
74
|
-
- Depth `n` means plan `n` hops ahead from the currently resolved frontier. Default `n=1`.
|
|
75
|
-
- Width `k` means
|
|
76
|
-
-
|
|
77
|
-
-
|
|
87
|
+
- Depth `n` means plan `n` sequential hops ahead from the currently resolved frontier. Default `n=1`.
|
|
88
|
+
- Width `k` means evaluate up to `k` distinct non-redundant candidate directions at each hop. Default `k=1`.
|
|
89
|
+
- At each hop, stage the considered options in the step record, apply the selection criterion, and choose exactly one continuation.
|
|
90
|
+
- Only the chosen continuation advances to hop `i+1`; do not stage `k` parallel continuation branches for this mode.
|
|
91
|
+
- The staged graph shape for this mode is a single chain of up to `n` unresolved step nodes (shorter only when the terminal condition is met early).
|
|
92
|
+
- Each step node must record: the `k` considered options, the selection criterion used, and the chosen continuation.
|
|
78
93
|
8. Commit after the node snapshot is coherent with `flywheel_commit_node`.
|
|
79
94
|
- Commit resolved insight nodes only when they have non-empty `insights`.
|
|
80
95
|
- Commit resolved empirical nodes only when outcome and artifact rules are satisfied.
|
|
@@ -85,7 +100,7 @@ Before planning, recover or establish these inputs:
|
|
|
85
100
|
When the skill completes a pass, it should leave behind:
|
|
86
101
|
|
|
87
102
|
- One persisted `insight` control node containing the canonical planning contract.
|
|
88
|
-
-
|
|
103
|
+
- A single staged next-step chain up to the current `n` limit where each hop records up to `k` considered options and one selected continuation.
|
|
89
104
|
- Updated node summaries, rationale, and edges only where the current planning pass justifies them.
|
|
90
105
|
- No hidden execution, no compute approval, and no managed compute acquisition.
|
|
91
106
|
|
|
@@ -114,7 +129,7 @@ Canonical contract shape:
|
|
|
114
129
|
- Decision criterion:
|
|
115
130
|
- Start nodes:
|
|
116
131
|
- Lookahead depth:
|
|
117
|
-
-
|
|
132
|
+
- Step option width:
|
|
118
133
|
- Terminal condition:
|
|
119
134
|
- Budget ceiling: optional
|
|
120
135
|
- Budget unit: optional
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
15
|
"id": "planning-only-with-explicit-depth-and-width",
|
|
16
|
-
"prompt": "Use $flywheel-lookahead to stage two hops of next-step work
|
|
17
|
-
"expected_output": "Persist `n=2` and `k=3` in the planning contract,
|
|
16
|
+
"prompt": "Use $flywheel-lookahead to stage two sequential hops of next-step work while evaluating up to three non-redundant options at each hop from the current Flywheel frontier. Plan only for later work and do not execute anything.",
|
|
17
|
+
"expected_output": "Persist `n=2` and `k=3` in the planning contract, evaluate up to three non-redundant options at each hop, record the considered options plus selection criterion plus chosen continuation for each step node, continue only along the single chosen path, and avoid compute approval, managed compute acquisition, or execution launch.",
|
|
18
18
|
"files": []
|
|
19
19
|
}
|
|
20
20
|
]
|