@shardworks/astrolabe-apparatus 0.1.190 → 0.1.191
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/README.md +22 -9
- package/dist/astrolabe.d.ts.map +1 -1
- package/dist/astrolabe.js +22 -98
- package/dist/astrolabe.js.map +1 -1
- package/dist/three-phase-planning.d.ts +11 -0
- package/dist/three-phase-planning.d.ts.map +1 -0
- package/dist/three-phase-planning.js +87 -0
- package/dist/three-phase-planning.js.map +1 -0
- package/dist/two-phase-planning.d.ts +11 -0
- package/dist/two-phase-planning.d.ts.map +1 -0
- package/dist/two-phase-planning.js +75 -0
- package/dist/two-phase-planning.js.map +1 -0
- package/package.json +12 -9
- package/sage-analyst.md +155 -0
- package/sage-reader.md +73 -0
- package/sage-reading-analyst.md +191 -0
- package/sage-writer.md +244 -0
- package/dist/planning-mra.d.ts +0 -19
- package/dist/planning-mra.d.ts.map +0 -1
- package/dist/planning-mra.js +0 -128
- package/dist/planning-mra.js.map +0 -1
- package/sage.md +0 -431
package/README.md
CHANGED
|
@@ -142,13 +142,15 @@ The Astrolabe declares one book in Stacks:
|
|
|
142
142
|
| Name | Description |
|
|
143
143
|
|---|---|
|
|
144
144
|
| `brief` | A patron brief triggering the planning pipeline |
|
|
145
|
-
| `brief-mra` | Experimental brief using merged reader/analyst pipeline |
|
|
146
145
|
|
|
147
146
|
### Roles (contributed to Loom)
|
|
148
147
|
|
|
149
|
-
| Role | Qualified Name | Permissions | Strict |
|
|
150
|
-
|
|
151
|
-
| `sage` | `astrolabe.sage` | `astrolabe:read`, `astrolabe:write`, `clerk:read` | `true` |
|
|
148
|
+
| Role | Qualified Name | Permissions | Strict | Used In |
|
|
149
|
+
|---|---|---|---|---|
|
|
150
|
+
| `sage-reader` | `astrolabe.sage-reader` | `astrolabe:read`, `astrolabe:write`, `clerk:read` | `true` | three-phase reader stage |
|
|
151
|
+
| `sage-analyst` | `astrolabe.sage-analyst` | `astrolabe:read`, `astrolabe:write`, `clerk:read` | `true` | three-phase analyst stage |
|
|
152
|
+
| `sage-writer` | `astrolabe.sage-writer` | `astrolabe:read`, `astrolabe:write`, `clerk:read` | `true` | spec-writer stage (both templates) |
|
|
153
|
+
| `sage-reading-analyst` | `astrolabe.sage-reading-analyst` | `astrolabe:read`, `astrolabe:write`, `clerk:read` | `true` | two-phase reader-analyst stage |
|
|
152
154
|
|
|
153
155
|
### Engines (contributed to Fabricator)
|
|
154
156
|
|
|
@@ -157,21 +159,32 @@ The Astrolabe declares one book in Stacks:
|
|
|
157
159
|
| `astrolabe.plan-init` | Creates a PlanDoc from the brief writ; validates codex presence |
|
|
158
160
|
| `astrolabe.inventory-check` | Validates that the reader produced a non-empty inventory |
|
|
159
161
|
| `astrolabe.decision-review` | Two-pass engine: blocks for patron review, then reconciles answers |
|
|
162
|
+
| `astrolabe.spec-publish` | Publishes the generated specification as a new writ |
|
|
160
163
|
|
|
161
164
|
### Rig Templates (contributed to Spider)
|
|
162
165
|
|
|
163
166
|
| Template | Mapped Writ Type | Engines |
|
|
164
167
|
|---|---|---|
|
|
165
|
-
| `astrolabe.planning` | `brief` | plan-init → draft → reader → inventory-check →
|
|
166
|
-
| `astrolabe.planning
|
|
168
|
+
| `astrolabe.two-phase-planning` | `brief` (default) | plan-init → draft → reader-analyst → inventory-check → decision-review → spec-writer → spec-publish → seal |
|
|
169
|
+
| `astrolabe.three-phase-planning` | — | plan-init → draft → reader → inventory-check → analyst → decision-review → spec-writer → spec-publish → seal |
|
|
167
170
|
|
|
168
171
|
The `resolutionEngine` is `spec-writer` for both templates — the rig's completion summary comes from the specification writer session.
|
|
169
172
|
|
|
170
|
-
####
|
|
173
|
+
#### Rig Template Selection
|
|
174
|
+
|
|
175
|
+
The `brief` writ type maps to `astrolabe.two-phase-planning` by default. The two-phase template merges the reader and analyst into a single `reader-analyst` anima session that produces inventory, scope, decisions, and observations in one pass.
|
|
171
176
|
|
|
172
|
-
|
|
177
|
+
To use the three-phase template instead (separate reader and analyst sessions), add a rig template mapping override in `guild.json`:
|
|
173
178
|
|
|
174
|
-
|
|
179
|
+
```json
|
|
180
|
+
{
|
|
181
|
+
"spider": {
|
|
182
|
+
"rigTemplateMappings": {
|
|
183
|
+
"brief": "astrolabe.three-phase-planning"
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
```
|
|
175
188
|
|
|
176
189
|
### Tools
|
|
177
190
|
|
package/dist/astrolabe.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"astrolabe.d.ts","sourceRoot":"","sources":["../src/astrolabe.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAkB,MAAM,wBAAwB,CAAC;AAQrE,OAAO,KAAK,EAEV,eAAe,EAGhB,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"astrolabe.d.ts","sourceRoot":"","sources":["../src/astrolabe.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAkB,MAAM,wBAAwB,CAAC;AAQrE,OAAO,KAAK,EAEV,eAAe,EAGhB,MAAM,YAAY,CAAC;AAsBpB,iBAAS,sBAAsB,IAAI,eAAe,CAEjD;AAID,wBAAgB,eAAe,IAAI,MAAM,CA+QxC;AAGD,OAAO,EAAE,sBAAsB,EAAE,CAAC"}
|
package/dist/astrolabe.js
CHANGED
|
@@ -18,101 +18,12 @@ const decisionAnalysisSchema = z.object({
|
|
|
18
18
|
stakes: z.enum(['low', 'high']).optional(),
|
|
19
19
|
});
|
|
20
20
|
import { createPlanInitEngine, createInventoryCheckEngine, createDecisionReviewEngine, createSpecPublishEngine, } from "./engines/index.js";
|
|
21
|
-
import {
|
|
21
|
+
import { twoPhaseRigTemplate } from "./two-phase-planning.js";
|
|
22
|
+
import { threePhaseRigTemplate } from "./three-phase-planning.js";
|
|
22
23
|
// ── Config resolver ──────────────────────────────────────────────────
|
|
23
24
|
function resolveAstrolabeConfig() {
|
|
24
25
|
return guild().guildConfig().astrolabe ?? {};
|
|
25
26
|
}
|
|
26
|
-
// ── Rig template ─────────────────────────────────────────────────────
|
|
27
|
-
const planningTemplate = {
|
|
28
|
-
engines: [
|
|
29
|
-
{
|
|
30
|
-
id: 'plan-init',
|
|
31
|
-
designId: 'astrolabe.plan-init',
|
|
32
|
-
upstream: [],
|
|
33
|
-
givens: { writ: '${writ}' },
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
id: 'draft',
|
|
37
|
-
designId: 'draft',
|
|
38
|
-
upstream: ['plan-init'],
|
|
39
|
-
givens: { writ: '${writ}' },
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
id: 'reader',
|
|
43
|
-
designId: 'anima-session',
|
|
44
|
-
upstream: ['draft'],
|
|
45
|
-
givens: {
|
|
46
|
-
role: 'astrolabe.sage',
|
|
47
|
-
prompt: 'MODE: READER\n\nPlan ID: ${yields.plan-init.planId}\n\n' +
|
|
48
|
-
'You are beginning a new planning session. Use plan-show to read the plan, ' +
|
|
49
|
-
'then inventory the codebase and write the inventory using inventory-write.',
|
|
50
|
-
cwd: '${yields.draft.path}',
|
|
51
|
-
writ: '${writ}',
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
id: 'inventory-check',
|
|
56
|
-
designId: 'astrolabe.inventory-check',
|
|
57
|
-
upstream: ['reader'],
|
|
58
|
-
givens: {
|
|
59
|
-
planId: '${yields.plan-init.planId}',
|
|
60
|
-
},
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
id: 'analyst',
|
|
64
|
-
designId: 'anima-session',
|
|
65
|
-
upstream: ['inventory-check'],
|
|
66
|
-
givens: {
|
|
67
|
-
role: 'astrolabe.sage',
|
|
68
|
-
prompt: 'MODE: ANALYST\n\nPlan ID: ${yields.plan-init.planId}\n\n' +
|
|
69
|
-
'You are continuing the reader conversation. Use plan-show to read the current ' +
|
|
70
|
-
'plan state, then produce scope, decisions, and observations using the write tools.',
|
|
71
|
-
cwd: '${yields.draft.path}',
|
|
72
|
-
conversationId: '${yields.reader.conversationId}',
|
|
73
|
-
writ: '${writ}',
|
|
74
|
-
},
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
id: 'decision-review',
|
|
78
|
-
designId: 'astrolabe.decision-review',
|
|
79
|
-
upstream: ['analyst'],
|
|
80
|
-
givens: {
|
|
81
|
-
planId: '${yields.plan-init.planId}',
|
|
82
|
-
},
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
id: 'spec-writer',
|
|
86
|
-
designId: 'anima-session',
|
|
87
|
-
upstream: ['decision-review'],
|
|
88
|
-
givens: {
|
|
89
|
-
role: 'astrolabe.sage',
|
|
90
|
-
prompt: 'MODE: WRITER\n\nPlan ID: ${yields.plan-init.planId}\n\n' +
|
|
91
|
-
'You are continuing the analyst conversation. Use plan-show to read the full ' +
|
|
92
|
-
'plan including patron-reviewed decisions, then write the specification using spec-write.' +
|
|
93
|
-
'\n\nDecision summary:\n${yields.decision-review.decisionSummary}',
|
|
94
|
-
cwd: '${yields.draft.path}',
|
|
95
|
-
conversationId: '${yields.analyst.conversationId}',
|
|
96
|
-
writ: '${writ}',
|
|
97
|
-
},
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
id: 'spec-publish',
|
|
101
|
-
designId: 'astrolabe.spec-publish',
|
|
102
|
-
upstream: ['spec-writer'],
|
|
103
|
-
givens: {
|
|
104
|
-
planId: '${yields.plan-init.planId}',
|
|
105
|
-
},
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
id: 'seal',
|
|
109
|
-
designId: 'seal',
|
|
110
|
-
upstream: ['spec-publish'],
|
|
111
|
-
givens: { abandon: true },
|
|
112
|
-
},
|
|
113
|
-
],
|
|
114
|
-
resolutionEngine: 'spec-writer',
|
|
115
|
-
};
|
|
116
27
|
// ── Factory ──────────────────────────────────────────────────────────
|
|
117
28
|
export function createAstrolabe() {
|
|
118
29
|
let plansBook;
|
|
@@ -296,13 +207,27 @@ export function createAstrolabe() {
|
|
|
296
207
|
},
|
|
297
208
|
writTypes: [
|
|
298
209
|
{ name: 'brief', description: 'A patron brief triggering the planning pipeline' },
|
|
299
|
-
{ name: 'brief-mra', description: 'Experimental brief using merged reader/analyst pipeline' },
|
|
300
210
|
],
|
|
301
211
|
roles: {
|
|
302
|
-
sage: {
|
|
212
|
+
'sage-reader': {
|
|
213
|
+
permissions: ['astrolabe:read', 'astrolabe:write', 'clerk:read'],
|
|
214
|
+
strict: true,
|
|
215
|
+
instructionsFile: 'sage-reader.md',
|
|
216
|
+
},
|
|
217
|
+
'sage-analyst': {
|
|
218
|
+
permissions: ['astrolabe:read', 'astrolabe:write', 'clerk:read'],
|
|
219
|
+
strict: true,
|
|
220
|
+
instructionsFile: 'sage-analyst.md',
|
|
221
|
+
},
|
|
222
|
+
'sage-writer': {
|
|
223
|
+
permissions: ['astrolabe:read', 'astrolabe:write', 'clerk:read'],
|
|
224
|
+
strict: true,
|
|
225
|
+
instructionsFile: 'sage-writer.md',
|
|
226
|
+
},
|
|
227
|
+
'sage-reading-analyst': {
|
|
303
228
|
permissions: ['astrolabe:read', 'astrolabe:write', 'clerk:read'],
|
|
304
229
|
strict: true,
|
|
305
|
-
instructionsFile: 'sage.md',
|
|
230
|
+
instructionsFile: 'sage-reading-analyst.md',
|
|
306
231
|
},
|
|
307
232
|
},
|
|
308
233
|
engines: {
|
|
@@ -312,12 +237,11 @@ export function createAstrolabe() {
|
|
|
312
237
|
'astrolabe.spec-publish': specPublishEngine,
|
|
313
238
|
},
|
|
314
239
|
rigTemplates: {
|
|
315
|
-
planning:
|
|
316
|
-
'planning
|
|
240
|
+
'two-phase-planning': twoPhaseRigTemplate,
|
|
241
|
+
'three-phase-planning': threePhaseRigTemplate,
|
|
317
242
|
},
|
|
318
243
|
rigTemplateMappings: {
|
|
319
|
-
brief: 'astrolabe.planning',
|
|
320
|
-
'brief-mra': 'astrolabe.planning-mra',
|
|
244
|
+
brief: 'astrolabe.two-phase-planning',
|
|
321
245
|
},
|
|
322
246
|
tools: [
|
|
323
247
|
planShowTool,
|
package/dist/astrolabe.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"astrolabe.js","sourceRoot":"","sources":["../src/astrolabe.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AAInD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,oFAAoF;AACpF,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,KAAK,EAAE,gBAAgB,CAAC,CAAC,CAAC,QAAQ,EAAE;IACjE,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAClC,UAAU,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC,QAAQ,EAAE;IACxD,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,QAAQ,EAAE;CAC3C,CAAC,CAAC;AAEH,OAAO,EACL,oBAAoB,EACpB,0BAA0B,EAC1B,0BAA0B,EAC1B,uBAAuB,GACxB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"astrolabe.js","sourceRoot":"","sources":["../src/astrolabe.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AAInD,OAAO,EAAE,CA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EAAE,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Three-phase planning rig template.
|
|
3
|
+
*
|
|
4
|
+
* Separates reading and analysis into distinct anima-session stages:
|
|
5
|
+
* reader (inventory) and analyst (scope, decisions, observations).
|
|
6
|
+
* Stages: plan-init → draft → reader → inventory-check → analyst →
|
|
7
|
+
* decision-review → spec-writer → spec-publish → seal.
|
|
8
|
+
*/
|
|
9
|
+
import type { RigTemplate } from '@shardworks/spider-apparatus';
|
|
10
|
+
export declare const threePhaseRigTemplate: RigTemplate;
|
|
11
|
+
//# sourceMappingURL=three-phase-planning.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"three-phase-planning.d.ts","sourceRoot":"","sources":["../src/three-phase-planning.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAEhE,eAAO,MAAM,qBAAqB,EAAE,WA8EnC,CAAC"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Three-phase planning rig template.
|
|
3
|
+
*
|
|
4
|
+
* Separates reading and analysis into distinct anima-session stages:
|
|
5
|
+
* reader (inventory) and analyst (scope, decisions, observations).
|
|
6
|
+
* Stages: plan-init → draft → reader → inventory-check → analyst →
|
|
7
|
+
* decision-review → spec-writer → spec-publish → seal.
|
|
8
|
+
*/
|
|
9
|
+
export const threePhaseRigTemplate = {
|
|
10
|
+
engines: [
|
|
11
|
+
{
|
|
12
|
+
id: 'plan-init',
|
|
13
|
+
designId: 'astrolabe.plan-init',
|
|
14
|
+
upstream: [],
|
|
15
|
+
givens: { writ: '${writ}' },
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
id: 'draft',
|
|
19
|
+
designId: 'draft',
|
|
20
|
+
upstream: ['plan-init'],
|
|
21
|
+
givens: { writ: '${writ}' },
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
id: 'reader',
|
|
25
|
+
designId: 'anima-session',
|
|
26
|
+
upstream: ['draft'],
|
|
27
|
+
givens: {
|
|
28
|
+
role: 'astrolabe.sage-reader',
|
|
29
|
+
prompt: 'Plan ID: ${yields.plan-init.planId}',
|
|
30
|
+
cwd: '${yields.draft.path}',
|
|
31
|
+
writ: '${writ}',
|
|
32
|
+
metadata: { engineId: 'reader' },
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
id: 'inventory-check',
|
|
37
|
+
designId: 'astrolabe.inventory-check',
|
|
38
|
+
upstream: ['reader'],
|
|
39
|
+
givens: { planId: '${yields.plan-init.planId}' },
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
id: 'analyst',
|
|
43
|
+
designId: 'anima-session',
|
|
44
|
+
upstream: ['inventory-check'],
|
|
45
|
+
givens: {
|
|
46
|
+
role: 'astrolabe.sage-analyst',
|
|
47
|
+
prompt: 'Plan ID: ${yields.plan-init.planId}',
|
|
48
|
+
cwd: '${yields.draft.path}',
|
|
49
|
+
writ: '${writ}',
|
|
50
|
+
metadata: { engineId: 'analyst' },
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
id: 'decision-review',
|
|
55
|
+
designId: 'astrolabe.decision-review',
|
|
56
|
+
upstream: ['analyst'],
|
|
57
|
+
givens: { planId: '${yields.plan-init.planId}' },
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
id: 'spec-writer',
|
|
61
|
+
designId: 'anima-session',
|
|
62
|
+
upstream: ['decision-review'],
|
|
63
|
+
givens: {
|
|
64
|
+
role: 'astrolabe.sage-writer',
|
|
65
|
+
prompt: 'Plan ID: ${yields.plan-init.planId}\n\n' +
|
|
66
|
+
'Decision summary:\n${yields.decision-review.decisionSummary}',
|
|
67
|
+
cwd: '${yields.draft.path}',
|
|
68
|
+
writ: '${writ}',
|
|
69
|
+
metadata: { engineId: 'spec-writer' },
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
id: 'spec-publish',
|
|
74
|
+
designId: 'astrolabe.spec-publish',
|
|
75
|
+
upstream: ['spec-writer'],
|
|
76
|
+
givens: { planId: '${yields.plan-init.planId}' },
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
id: 'seal',
|
|
80
|
+
designId: 'seal',
|
|
81
|
+
upstream: ['spec-publish'],
|
|
82
|
+
givens: { abandon: true },
|
|
83
|
+
},
|
|
84
|
+
],
|
|
85
|
+
resolutionEngine: 'spec-writer',
|
|
86
|
+
};
|
|
87
|
+
//# sourceMappingURL=three-phase-planning.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"three-phase-planning.js","sourceRoot":"","sources":["../src/three-phase-planning.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,MAAM,CAAC,MAAM,qBAAqB,GAAgB;IAChD,OAAO,EAAE;QACP;YACE,EAAE,EAAE,WAAW;YACf,QAAQ,EAAE,qBAAqB;YAC/B,QAAQ,EAAE,EAAE;YACZ,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;SAC5B;QACD;YACE,EAAE,EAAE,OAAO;YACX,QAAQ,EAAE,OAAO;YACjB,QAAQ,EAAE,CAAC,WAAW,CAAC;YACvB,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;SAC5B;QACD;YACE,EAAE,EAAE,QAAQ;YACZ,QAAQ,EAAE,eAAe;YACzB,QAAQ,EAAE,CAAC,OAAO,CAAC;YACnB,MAAM,EAAE;gBACN,IAAI,EAAE,uBAAuB;gBAC7B,MAAM,EAAE,qCAAqC;gBAC7C,GAAG,EAAE,sBAAsB;gBAC3B,IAAI,EAAE,SAAS;gBACf,QAAQ,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE;aACjC;SACF;QACD;YACE,EAAE,EAAE,iBAAiB;YACrB,QAAQ,EAAE,2BAA2B;YACrC,QAAQ,EAAE,CA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|
4
|
+
* Merges the reader and analyst stages into a single `reader-analyst`
|
|
5
|
+
* anima-session, producing inventory, scope, decisions, and observations
|
|
6
|
+
* in one pass. Stages: plan-init → draft → reader-analyst →
|
|
7
|
+
* inventory-check → decision-review → spec-writer → spec-publish → seal.
|
|
8
|
+
*/
|
|
9
|
+
import type { RigTemplate } from '@shardworks/spider-apparatus';
|
|
10
|
+
export declare const twoPhaseRigTemplate: RigTemplate;
|
|
11
|
+
//# sourceMappingURL=two-phase-planning.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"two-phase-planning.d.ts","sourceRoot":"","sources":["../src/two-phase-planning.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAEhE,eAAO,MAAM,mBAAmB,EAAE,WAkEjC,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Two-phase planning rig template.
|
|
3
|
+
*
|
|
4
|
+
* Merges the reader and analyst stages into a single `reader-analyst`
|
|
5
|
+
* anima-session, producing inventory, scope, decisions, and observations
|
|
6
|
+
* in one pass. Stages: plan-init → draft → reader-analyst →
|
|
7
|
+
* inventory-check → decision-review → spec-writer → spec-publish → seal.
|
|
8
|
+
*/
|
|
9
|
+
export const twoPhaseRigTemplate = {
|
|
10
|
+
engines: [
|
|
11
|
+
{
|
|
12
|
+
id: 'plan-init',
|
|
13
|
+
designId: 'astrolabe.plan-init',
|
|
14
|
+
upstream: [],
|
|
15
|
+
givens: { writ: '${writ}' },
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
id: 'draft',
|
|
19
|
+
designId: 'draft',
|
|
20
|
+
upstream: ['plan-init'],
|
|
21
|
+
givens: { writ: '${writ}' },
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
id: 'reader-analyst',
|
|
25
|
+
designId: 'anima-session',
|
|
26
|
+
upstream: ['draft'],
|
|
27
|
+
givens: {
|
|
28
|
+
role: 'astrolabe.sage-reading-analyst',
|
|
29
|
+
prompt: 'Plan ID: ${yields.plan-init.planId}',
|
|
30
|
+
cwd: '${yields.draft.path}',
|
|
31
|
+
writ: '${writ}',
|
|
32
|
+
metadata: { engineId: 'reader-analyst' },
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
id: 'inventory-check',
|
|
37
|
+
designId: 'astrolabe.inventory-check',
|
|
38
|
+
upstream: ['reader-analyst'],
|
|
39
|
+
givens: { planId: '${yields.plan-init.planId}' },
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
id: 'decision-review',
|
|
43
|
+
designId: 'astrolabe.decision-review',
|
|
44
|
+
upstream: ['inventory-check'],
|
|
45
|
+
givens: { planId: '${yields.plan-init.planId}' },
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
id: 'spec-writer',
|
|
49
|
+
designId: 'anima-session',
|
|
50
|
+
upstream: ['decision-review'],
|
|
51
|
+
givens: {
|
|
52
|
+
role: 'astrolabe.sage-writer',
|
|
53
|
+
prompt: 'Plan ID: ${yields.plan-init.planId}\n\n' +
|
|
54
|
+
'Decision summary:\n${yields.decision-review.decisionSummary}',
|
|
55
|
+
cwd: '${yields.draft.path}',
|
|
56
|
+
writ: '${writ}',
|
|
57
|
+
metadata: { engineId: 'spec-writer' },
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
id: 'spec-publish',
|
|
62
|
+
designId: 'astrolabe.spec-publish',
|
|
63
|
+
upstream: ['spec-writer'],
|
|
64
|
+
givens: { planId: '${yields.plan-init.planId}' },
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
id: 'seal',
|
|
68
|
+
designId: 'seal',
|
|
69
|
+
upstream: ['spec-publish'],
|
|
70
|
+
givens: { abandon: true },
|
|
71
|
+
},
|
|
72
|
+
],
|
|
73
|
+
resolutionEngine: 'spec-writer',
|
|
74
|
+
};
|
|
75
|
+
//# sourceMappingURL=two-phase-planning.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"two-phase-planning.js","sourceRoot":"","sources":["../src/two-phase-planning.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,MAAM,CAAC,MAAM,mBAAmB,GAAgB;IAC9C,OAAO,EAAE;QACP;YACE,EAAE,EAAE,WAAW;YACf,QAAQ,EAAE,qBAAqB;YAC/B,QAAQ,EAAE,EAAE;YACZ,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;SAC5B;QACD;YACE,EAAE,EAAE,OAAO;YACX,QAAQ,EAAE,OAAO;YACjB,QAAQ,EAAE,CAAC,WAAW,CAAC;YACvB,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;SAC5B;QACD;YACE,EAAE,EAAE,gBAAgB;YACpB,QAAQ,EAAE,eAAe;YACzB,QAAQ,EAAE,CAAC,OAAO,CAAC;YACnB,MAAM,EAAE;gBACN,IAAI,EAAE,gCAAgC;gBACtC,MAAM,EAAE,qCAAqC;gBAC7C,GAAG,EAAE,sBAAsB;gBAC3B,IAAI,EAAE,SAAS;gBACf,QAAQ,EAAE,EAAE,QAAQ,EAAE,gBAAgB,EAAE;aACzC;SACF;QACD;YACE,EAAE,EAAE,iBAAiB;YACrB,QAAQ,EAAE,2BAA2B;YACrC,QAAQ,EAAE,CAAC,gBAAgB,CAAC;YAC5B,MAAM,EAAE,EAAE,MAAM,EAAE,4BAA4B,EAAE;SACjD;QACD;YACE,EAAE,EAAE,iBAAiB;YACrB,QAAQ,EAAE,2BAA2B;YACrC,QAAQ,EAAE,CAAC,iBAAiB,CAAC;YAC7B,MAAM,EAAE,EAAE,MAAM,EAAE,4BAA4B,EAAE;SACjD;QACD;YACE,EAAE,EAAE,aAAa;YACjB,QAAQ,EAAE,eAAe;YACzB,QAAQ,EAAE,CAAC,iBAAiB,CAAC;YAC7B,MAAM,EAAE;gBACN,IAAI,EAAE,uBAAuB;gBAC7B,MAAM,EACJ,yCAAyC;oBACzC,8DAA8D;gBAChE,GAAG,EAAE,sBAAsB;gBAC3B,IAAI,EAAE,SAAS;gBACf,QAAQ,EAAE,EAAE,QAAQ,EAAE,aAAa,EAAE;aACtC;SACF;QACD;YACE,EAAE,EAAE,cAAc;YAClB,QAAQ,EAAE,wBAAwB;YAClC,QAAQ,EAAE,CAAC,aAAa,CAAC;YACzB,MAAM,EAAE,EAAE,MAAM,EAAE,4BAA4B,EAAE;SACjD;QACD;YACE,EAAE,EAAE,MAAM;YACV,QAAQ,EAAE,MAAM;YAChB,QAAQ,EAAE,CAAC,cAAc,CAAC;YAC1B,MAAM,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;SAC1B;KACF;IACD,gBAAgB,EAAE,aAAa;CAChC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shardworks/astrolabe-apparatus",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.191",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -20,20 +20,23 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"zod": "4.3.6",
|
|
23
|
-
"@shardworks/
|
|
24
|
-
"@shardworks/clerk-apparatus": "0.1.
|
|
25
|
-
"@shardworks/
|
|
26
|
-
"@shardworks/
|
|
27
|
-
"@shardworks/fabricator-apparatus": "0.1.
|
|
28
|
-
"@shardworks/
|
|
23
|
+
"@shardworks/stacks-apparatus": "0.1.191",
|
|
24
|
+
"@shardworks/clerk-apparatus": "0.1.191",
|
|
25
|
+
"@shardworks/tools-apparatus": "0.1.191",
|
|
26
|
+
"@shardworks/spider-apparatus": "0.1.191",
|
|
27
|
+
"@shardworks/fabricator-apparatus": "0.1.191",
|
|
28
|
+
"@shardworks/loom-apparatus": "0.1.191"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "25.5.0",
|
|
32
|
-
"@shardworks/nexus-core": "0.1.
|
|
32
|
+
"@shardworks/nexus-core": "0.1.191"
|
|
33
33
|
},
|
|
34
34
|
"files": [
|
|
35
35
|
"dist",
|
|
36
|
-
"sage.md",
|
|
36
|
+
"sage-reader.md",
|
|
37
|
+
"sage-analyst.md",
|
|
38
|
+
"sage-writer.md",
|
|
39
|
+
"sage-reading-analyst.md",
|
|
37
40
|
"pages"
|
|
38
41
|
],
|
|
39
42
|
"scripts": {
|