@shardworks/astrolabe-apparatus 0.1.242 → 0.1.244
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 +9 -26
- package/dist/astrolabe.d.ts.map +1 -1
- package/dist/astrolabe.js +1 -7
- package/dist/astrolabe.js.map +1 -1
- package/dist/engines/index.d.ts +0 -1
- package/dist/engines/index.d.ts.map +1 -1
- package/dist/engines/index.js +0 -1
- package/dist/engines/index.js.map +1 -1
- package/dist/engines/observation-lift.d.ts +4 -4
- package/dist/engines/observation-lift.js +4 -4
- package/dist/engines/plan-finalize.d.ts +6 -7
- package/dist/engines/plan-finalize.d.ts.map +1 -1
- package/dist/engines/plan-finalize.js +6 -7
- package/dist/engines/plan-finalize.js.map +1 -1
- package/dist/plan-and-ship.d.ts +1 -2
- package/dist/plan-and-ship.d.ts.map +1 -1
- package/dist/plan-and-ship.js +1 -2
- package/dist/plan-and-ship.js.map +1 -1
- package/dist/types.d.ts +6 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +9 -9
- package/dist/engines/spec-publish.d.ts +0 -23
- package/dist/engines/spec-publish.d.ts.map +0 -1
- package/dist/engines/spec-publish.js +0 -64
- package/dist/engines/spec-publish.js.map +0 -1
- package/dist/three-phase-planning.d.ts +0 -21
- package/dist/three-phase-planning.d.ts.map +0 -1
- package/dist/three-phase-planning.js +0 -103
- package/dist/three-phase-planning.js.map +0 -1
- package/dist/two-phase-planning.d.ts +0 -23
- package/dist/two-phase-planning.d.ts.map +0 -1
- package/dist/two-phase-planning.js +0 -92
- package/dist/two-phase-planning.js.map +0 -1
package/README.md
CHANGED
|
@@ -64,7 +64,7 @@ interface PlanDoc {
|
|
|
64
64
|
scope?: ScopeItem[]; // What's in and what's out
|
|
65
65
|
decisions?: Decision[]; // Architectural/design decisions with options
|
|
66
66
|
spec?: string; // The generated specification (implementation brief + task manifest)
|
|
67
|
-
generatedWritId?: string; // ID of the
|
|
67
|
+
generatedWritId?: string; // ID of a mandate produced by the retired spec-publish engine — may be present on historic plans; current rigs do not set this
|
|
68
68
|
createdAt: string;
|
|
69
69
|
updatedAt: string;
|
|
70
70
|
}
|
|
@@ -128,11 +128,11 @@ The Astrolabe declares one book in Stacks:
|
|
|
128
128
|
|
|
129
129
|
| Role | Qualified Name | Permissions | Strict | Used In |
|
|
130
130
|
|---|---|---|---|---|
|
|
131
|
-
| `sage-primer-reader` | `astrolabe.sage-primer-reader` | `astrolabe:read`, `astrolabe:write`, `clerk:read`, `ratchet:read` | `true` |
|
|
132
|
-
| `sage-primer-scoping` | `astrolabe.sage-primer-scoping` | `astrolabe:read`, `astrolabe:write`, `clerk:read`, `ratchet:read` | `true` |
|
|
133
|
-
| `sage-writer` | `astrolabe.sage-writer` | `astrolabe:read`, `astrolabe:write`, `clerk:read`, `ratchet:read` | `true` | spec-writer stage
|
|
134
|
-
| `sage-primer-solo` | `astrolabe.sage-primer-solo` | `astrolabe:read`, `astrolabe:write`, `clerk:read`, `ratchet:read` | `true` | `reader-analyst` slot
|
|
135
|
-
| `sage-primer-attended` | `astrolabe.sage-primer-attended` | `astrolabe:read`, `astrolabe:write`, `clerk:read`, `ratchet:read` | `true` | `reader-analyst` slot
|
|
131
|
+
| `sage-primer-reader` | `astrolabe.sage-primer-reader` | `astrolabe:read`, `astrolabe:write`, `clerk:read`, `ratchet:read` | `true` | reserved — no current rig template summons this role |
|
|
132
|
+
| `sage-primer-scoping` | `astrolabe.sage-primer-scoping` | `astrolabe:read`, `astrolabe:write`, `clerk:read`, `ratchet:read` | `true` | reserved — no current rig template summons this role |
|
|
133
|
+
| `sage-writer` | `astrolabe.sage-writer` | `astrolabe:read`, `astrolabe:write`, `clerk:read`, `ratchet:read` | `true` | spec-writer stage |
|
|
134
|
+
| `sage-primer-solo` | `astrolabe.sage-primer-solo` | `astrolabe:read`, `astrolabe:write`, `clerk:read`, `ratchet:read` | `true` | `reader-analyst` slot, when `astrolabe.patronRole` is unset — primer carries the razor itself |
|
|
135
|
+
| `sage-primer-attended` | `astrolabe.sage-primer-attended` | `astrolabe:read`, `astrolabe:write`, `clerk:read`, `ratchet:read` | `true` | `reader-analyst` slot, when `astrolabe.patronRole` is non-empty — primer pre-fills every decision, patron-anima principle-checks them all |
|
|
136
136
|
|
|
137
137
|
### Engines (contributed to Fabricator)
|
|
138
138
|
|
|
@@ -144,36 +144,19 @@ The Astrolabe declares one book in Stacks:
|
|
|
144
144
|
| `astrolabe.patron-anima` | Consults a configured Patron Anima to principle-check every decision the primer produced, under a tailored operational prompt that encodes the engine's mode discipline — one option per decision, principle-structural confidence calibration (`high` = one principle fires cleanly; `med` = multiple principles conflict and the anima resolves; `low` = no principle speaks, confirm the primer), narrow abstention by omission reserved for *irresolvable principle conflict* and *broken decision frame* only, and an explicit out-of-lane prohibition on codebase audit work. Reads the plan's reviewable decisions (those without `selected` already set — empty when the attended primer ran, non-empty when the solo primer surfaced razor matches), launches the configured `patronRole` via a single-pass anima session, parses a single structured emission, and applies each valid verdict to `Decision.selected` (plus records the full verdict — confirm / override / fill-in with selection, confidence, rationale — on `Decision.patron`). No-ops when `astrolabe.patronRole` is unset or empty, or when no reviewable decisions remain. Unparseable output, invalid verdicts, and abstained decisions are left unfilled — decision-review surfaces the remainder to the patron in the normal flow. |
|
|
145
145
|
| `astrolabe.decision-review` | Two-pass engine: blocks for patron review, then reconciles answers. Decisions with `selected` already pre-set by the primer or the patron anima are auto-accepted — they are excluded from the InputRequestDoc, and if nothing remains reviewable the engine fast-paths to `writing` without opening the gate. |
|
|
146
146
|
| `astrolabe.plan-finalize` | Transitions the plan to `completed` and yields the written `spec` downstream. Does not post any writ. Used inside `plan-and-ship` to hand the spec off to the implement engine on the same brief rig. |
|
|
147
|
-
| `astrolabe.
|
|
148
|
-
| `astrolabe.observation-lift` | Walks `plan.observations` after the planning-terminator engine has transitioned the plan to `completed` and calls `clerk.post({ type: 'brief', title, body, codex, parentId, draft: true })` once per record. Each created writ enters `new` (draft) phase, invisible to the Spider until a curator publishes it. Silently no-ops when `observations` is empty, absent, or a legacy string; fails fast on the first `clerk.post` error. Does not mutate the plan — the parent-child relationship on the Clerk side is the sole audit trail. Wired unconditionally into all three rig templates. |
|
|
147
|
+
| `astrolabe.observation-lift` | Walks `plan.observations` after `plan-finalize` has transitioned the plan to `completed` and calls `clerk.post({ type: 'brief', title, body, codex, parentId, draft: true })` once per record. Each created writ enters `new` (draft) phase, invisible to the Spider until a curator publishes it. Silently no-ops when `observations` is empty, absent, or a legacy string; fails fast on the first `clerk.post` error. Does not mutate the plan — the parent-child relationship on the Clerk side is the sole audit trail. Wired unconditionally into the plan-and-ship rig template. |
|
|
149
148
|
|
|
150
149
|
### Rig Templates (contributed to Spider)
|
|
151
150
|
|
|
152
151
|
| Template | Mapped Writ Type | Engines |
|
|
153
152
|
|---|---|---|
|
|
154
153
|
| `astrolabe.plan-and-ship` | `brief` (default) | plan-init → draft → reader-analyst → inventory-check → patron-anima → decision-review → spec-writer → plan-finalize → observation-lift → implement → review → revise → seal |
|
|
155
|
-
| `astrolabe.two-phase-planning` | — (opt-in) | plan-init → draft → reader-analyst → inventory-check → decision-review → spec-writer → spec-publish → observation-lift → seal |
|
|
156
|
-
| `astrolabe.three-phase-planning` | — (opt-in) | plan-init → draft → reader → inventory-check → analyst → decision-review → spec-writer → spec-publish → observation-lift → seal |
|
|
157
154
|
|
|
158
|
-
The `resolutionEngine` is `seal`
|
|
155
|
+
The `resolutionEngine` is `seal` — the brief writ reaches `completed` only after the final seal engine completes.
|
|
159
156
|
|
|
160
157
|
#### Rig Template Selection
|
|
161
158
|
|
|
162
|
-
The `brief` writ type maps to `astrolabe.plan-and-ship` by default. This single combined rig carries the brief through planning and implementation on one writ — the `plan-finalize` engine hands the written spec directly to the downstream `implement` engine via `${yields.plan-finalize.spec}`, and no separate mandate writ is posted. The `reader-analyst` slot is driven by the astrolabe-owned `astrolabe.reader-analyst` engine, which selects between the `sage-primer-attended` and `sage-primer-solo` roles at engine-run time from live guild config. The optional `patron-anima` stage between `inventory-check` and `decision-review` consults the configured `patronRole` under a tailored operational prompt (see `patron-anima-prompt.md` packaged with the plugin) whenever `astrolabe.patronRole` is set. The anima principle-checks every decision the primer produced and confirms (including first-class `low`-confidence confirms when no principle speaks), overrides, fills in, or abstains. Abstention is narrow — reserved for *irresolvable principle conflict* and *broken decision frame* only. Abstained decisions are left unfilled and flow through to decision-review in the normal path.
|
|
163
|
-
|
|
164
|
-
To use a legacy planning-only template (which posts a separate mandate writ and ends the brief's lifecycle at spec-writer), add a rig template mapping override in `guild.json`:
|
|
165
|
-
|
|
166
|
-
```json
|
|
167
|
-
{
|
|
168
|
-
"spider": {
|
|
169
|
-
"rigTemplateMappings": {
|
|
170
|
-
"brief": "astrolabe.two-phase-planning"
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
```
|
|
175
|
-
|
|
176
|
-
Substitute `astrolabe.three-phase-planning` for the split reader / scoping-primer variant (the `analyst` slot id is preserved for backward compatibility; the role it summons is `sage-primer-scoping`).
|
|
159
|
+
The `brief` writ type maps to `astrolabe.plan-and-ship` by default. This single combined rig carries the brief through planning and implementation on one writ — the `plan-finalize` engine hands the written spec directly to the downstream `implement` engine via `${yields.plan-finalize.spec}`, and no separate mandate writ is posted. The `reader-analyst` slot is driven by the astrolabe-owned `astrolabe.reader-analyst` engine, which selects between the `sage-primer-attended` and `sage-primer-solo` roles at engine-run time from live guild config. The optional `patron-anima` stage between `inventory-check` and `decision-review` consults the configured `patronRole` under a tailored operational prompt (see `patron-anima-prompt.md` packaged with the plugin) whenever `astrolabe.patronRole` is set. The anima principle-checks every decision the primer produced and confirms (including first-class `low`-confidence confirms when no principle speaks), overrides, fills in, or abstains. Abstention is narrow — reserved for *irresolvable principle conflict* and *broken decision frame* only. Abstained decisions are left unfilled and flow through to decision-review in the normal path.
|
|
177
160
|
|
|
178
161
|
### Tools
|
|
179
162
|
|
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;
|
|
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;AAOrE,OAAO,KAAK,EAEV,eAAe,EAGhB,MAAM,YAAY,CAAC;AAgBpB,iBAAS,sBAAsB,IAAI,eAAe,CAEjD;AAED;;;;;;;;GAQG;AACH,iBAAS,iBAAiB,IAAI,MAAM,CAGnC;AAID,wBAAgB,eAAe,IAAI,MAAM,CAqSxC;AAGD,OAAO,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,CAAC"}
|
package/dist/astrolabe.js
CHANGED
|
@@ -10,9 +10,7 @@
|
|
|
10
10
|
import { guild } from '@shardworks/nexus-core';
|
|
11
11
|
import { tool } from '@shardworks/tools-apparatus';
|
|
12
12
|
import { z } from 'zod';
|
|
13
|
-
import { createPlanInitEngine, createInventoryCheckEngine, createPatronAnimaEngine, createDecisionReviewEngine,
|
|
14
|
-
import { twoPhaseRigTemplate } from "./two-phase-planning.js";
|
|
15
|
-
import { threePhaseRigTemplate } from "./three-phase-planning.js";
|
|
13
|
+
import { createPlanInitEngine, createInventoryCheckEngine, createPatronAnimaEngine, createDecisionReviewEngine, createPlanFinalizeEngine, createObservationLiftEngine, createReaderAnalystEngine, } from "./engines/index.js";
|
|
16
14
|
import { planAndShipRigTemplate } from "./plan-and-ship.js";
|
|
17
15
|
// ── Config resolver ──────────────────────────────────────────────────
|
|
18
16
|
function resolveAstrolabeConfig() {
|
|
@@ -39,7 +37,6 @@ export function createAstrolabe() {
|
|
|
39
37
|
const inventoryCheckEngine = createInventoryCheckEngine(() => plansBook);
|
|
40
38
|
const patronAnimaEngine = createPatronAnimaEngine(() => plansBook);
|
|
41
39
|
const decisionReviewEngine = createDecisionReviewEngine(() => plansBook);
|
|
42
|
-
const specPublishEngine = createSpecPublishEngine(() => plansBook);
|
|
43
40
|
const planFinalizeEngine = createPlanFinalizeEngine(() => plansBook);
|
|
44
41
|
const observationLiftEngine = createObservationLiftEngine(() => plansBook);
|
|
45
42
|
const readerAnalystEngine = createReaderAnalystEngine();
|
|
@@ -261,14 +258,11 @@ export function createAstrolabe() {
|
|
|
261
258
|
'astrolabe.inventory-check': inventoryCheckEngine,
|
|
262
259
|
'astrolabe.patron-anima': patronAnimaEngine,
|
|
263
260
|
'astrolabe.decision-review': decisionReviewEngine,
|
|
264
|
-
'astrolabe.spec-publish': specPublishEngine,
|
|
265
261
|
'astrolabe.plan-finalize': planFinalizeEngine,
|
|
266
262
|
'astrolabe.observation-lift': observationLiftEngine,
|
|
267
263
|
'astrolabe.reader-analyst': readerAnalystEngine,
|
|
268
264
|
},
|
|
269
265
|
rigTemplates: {
|
|
270
|
-
'two-phase-planning': twoPhaseRigTemplate,
|
|
271
|
-
'three-phase-planning': threePhaseRigTemplate,
|
|
272
266
|
'plan-and-ship': planAndShipRigTemplate,
|
|
273
267
|
},
|
|
274
268
|
rigTemplateMappings: {
|
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;
|
|
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,6B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D;gBAED,YAAY,EAAE;oBACZ,eAAe,EAAE,sBAAsB;iBACxC;gBAED,mBAAmB,EAAE;oBACnB,KAAK,EAAE,yBAAyB;iBACjC;gBAED,KAAK,EAAE;oBACL,YAAY;oBACZ,YAAY;oBACZ,kBAAkB;oBAClB,cAAc;oBACd,kBAAkB;oBAClB,qBAAqB;oBACrB,aAAa;iBACd;gBAED,KAAK,EAAE;oBACL,EAAE,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,EAAE,iBAAiB,EAAE;iBAChE;aACF;YAED,QAAQ,EAAE,GAAG;YAEb,KAAK,CAAC,IAAoB;gBACxB,MAAM,MAAM,GAAG,KAAK,EAAE,CAAC,SAAS,CAAY,QAAQ,CAAC,CAAC;gBACtD,SAAS,GAAG,MAAM,CAAC,IAAI,CAAU,WAAW,EAAE,OAAO,CAAC,CAAC;YACzD,CAAC;SACF;KACF,CAAC;AACJ,CAAC;AAED,0FAA0F;AAC1F,OAAO,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,CAAC"}
|
package/dist/engines/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ export { createPlanInitEngine } from './plan-init.ts';
|
|
|
2
2
|
export { createInventoryCheckEngine } from './inventory-check.ts';
|
|
3
3
|
export { createPatronAnimaEngine } from './patron-anima.ts';
|
|
4
4
|
export { createDecisionReviewEngine } from './decision-review.ts';
|
|
5
|
-
export { createSpecPublishEngine } from './spec-publish.ts';
|
|
6
5
|
export { createPlanFinalizeEngine } from './plan-finalize.ts';
|
|
7
6
|
export { createObservationLiftEngine } from './observation-lift.ts';
|
|
8
7
|
export { createReaderAnalystEngine, selectPrimerRole, PRIMER_ATTENDED_ROLE, PRIMER_SOLO_ROLE, } from './reader-analyst.ts';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/engines/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/engines/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,EACL,yBAAyB,EACzB,gBAAgB,EAChB,oBAAoB,EACpB,gBAAgB,GACjB,MAAM,qBAAqB,CAAC"}
|
package/dist/engines/index.js
CHANGED
|
@@ -2,7 +2,6 @@ export { createPlanInitEngine } from "./plan-init.js";
|
|
|
2
2
|
export { createInventoryCheckEngine } from "./inventory-check.js";
|
|
3
3
|
export { createPatronAnimaEngine } from "./patron-anima.js";
|
|
4
4
|
export { createDecisionReviewEngine } from "./decision-review.js";
|
|
5
|
-
export { createSpecPublishEngine } from "./spec-publish.js";
|
|
6
5
|
export { createPlanFinalizeEngine } from "./plan-finalize.js";
|
|
7
6
|
export { createObservationLiftEngine } from "./observation-lift.js";
|
|
8
7
|
export { createReaderAnalystEngine, selectPrimerRole, PRIMER_ATTENDED_ROLE, PRIMER_SOLO_ROLE, } from "./reader-analyst.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/engines/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/engines/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,EACL,yBAAyB,EACzB,gBAAgB,EAChB,oBAAoB,EACpB,gBAAgB,GACjB,MAAM,qBAAqB,CAAC"}
|
|
@@ -11,16 +11,16 @@
|
|
|
11
11
|
*
|
|
12
12
|
* Behavior:
|
|
13
13
|
* - Validates that the plan exists and its status is `completed`.
|
|
14
|
-
* (Placement inside
|
|
15
|
-
* runs after plan-finalize
|
|
14
|
+
* (Placement inside the plan-and-ship rig guarantees this —
|
|
15
|
+
* observation-lift runs after plan-finalize, which transitions the
|
|
16
16
|
* plan to `completed`.)
|
|
17
17
|
* - Silently no-ops if `plan.observations` is not an array (legacy
|
|
18
18
|
* string-shaped plandocs) or is an empty array.
|
|
19
19
|
* - Otherwise, iterates the array in order and calls
|
|
20
20
|
* `clerk.post({ type: 'brief', title, body, codex, parentId, draft })`
|
|
21
21
|
* once per record. The brief writ must still be in a non-terminal
|
|
22
|
-
* phase at this point —
|
|
23
|
-
*
|
|
22
|
+
* phase at this point — the engine runs before seal, which is what
|
|
23
|
+
* finally transitions the brief to `completed`.
|
|
24
24
|
* - Fails fast on the first `clerk.post` error. Already-created
|
|
25
25
|
* drafts persist as `new`-status writs under the brief; they are
|
|
26
26
|
* invisible to the Spider until a curator publishes them.
|
|
@@ -11,16 +11,16 @@
|
|
|
11
11
|
*
|
|
12
12
|
* Behavior:
|
|
13
13
|
* - Validates that the plan exists and its status is `completed`.
|
|
14
|
-
* (Placement inside
|
|
15
|
-
* runs after plan-finalize
|
|
14
|
+
* (Placement inside the plan-and-ship rig guarantees this —
|
|
15
|
+
* observation-lift runs after plan-finalize, which transitions the
|
|
16
16
|
* plan to `completed`.)
|
|
17
17
|
* - Silently no-ops if `plan.observations` is not an array (legacy
|
|
18
18
|
* string-shaped plandocs) or is an empty array.
|
|
19
19
|
* - Otherwise, iterates the array in order and calls
|
|
20
20
|
* `clerk.post({ type: 'brief', title, body, codex, parentId, draft })`
|
|
21
21
|
* once per record. The brief writ must still be in a non-terminal
|
|
22
|
-
* phase at this point —
|
|
23
|
-
*
|
|
22
|
+
* phase at this point — the engine runs before seal, which is what
|
|
23
|
+
* finally transitions the brief to `completed`.
|
|
24
24
|
* - Fails fast on the first `clerk.post` error. Already-created
|
|
25
25
|
* drafts persist as `new`-status writs under the brief; they are
|
|
26
26
|
* invisible to the Spider until a curator publishes them.
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* plan-finalize clockwork engine.
|
|
3
3
|
*
|
|
4
|
-
* Planning-phase terminator for the combined plan-and-ship rig.
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* `writing` to `completed`.
|
|
4
|
+
* Planning-phase terminator for the combined plan-and-ship rig. Does NOT
|
|
5
|
+
* post a mandate writ and does NOT create any clerk links. It merely
|
|
6
|
+
* validates that the spec-writer stage produced a spec, yields the spec
|
|
7
|
+
* verbatim for downstream engines (specifically the `implement` engine,
|
|
8
|
+
* whose `prompt` given is wired to `${yields.plan-finalize.spec}`), and
|
|
9
|
+
* transitions the plan's status from `writing` to `completed`.
|
|
11
10
|
*
|
|
12
11
|
* Preconditions:
|
|
13
12
|
* - plan.status must be 'writing'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plan-finalize.d.ts","sourceRoot":"","sources":["../../src/engines/plan-finalize.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"plan-finalize.d.ts","sourceRoot":"","sources":["../../src/engines/plan-finalize.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAqC,MAAM,kCAAkC,CAAC;AACxG,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C,wBAAgB,wBAAwB,CAAC,YAAY,EAAE,MAAM,IAAI,CAAC,OAAO,CAAC,GAAG,YAAY,CA+CxF"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* plan-finalize clockwork engine.
|
|
3
3
|
*
|
|
4
|
-
* Planning-phase terminator for the combined plan-and-ship rig.
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* `writing` to `completed`.
|
|
4
|
+
* Planning-phase terminator for the combined plan-and-ship rig. Does NOT
|
|
5
|
+
* post a mandate writ and does NOT create any clerk links. It merely
|
|
6
|
+
* validates that the spec-writer stage produced a spec, yields the spec
|
|
7
|
+
* verbatim for downstream engines (specifically the `implement` engine,
|
|
8
|
+
* whose `prompt` given is wired to `${yields.plan-finalize.spec}`), and
|
|
9
|
+
* transitions the plan's status from `writing` to `completed`.
|
|
11
10
|
*
|
|
12
11
|
* Preconditions:
|
|
13
12
|
* - plan.status must be 'writing'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plan-finalize.js","sourceRoot":"","sources":["../../src/engines/plan-finalize.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"plan-finalize.js","sourceRoot":"","sources":["../../src/engines/plan-finalize.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAMH,MAAM,UAAU,wBAAwB,CAAC,YAAiC;IACxE,OAAO;QACL,EAAE,EAAE,yBAAyB;QAE7B,KAAK,CAAC,GAAG,CACP,MAA+B,EAC/B,QAA0B;YAE1B,MAAM,MAAM,GAAG,MAAM,CAAC,MAAgB,CAAC;YACvC,MAAM,IAAI,GAAG,YAAY,EAAE,CAAC;YAE5B,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;YACpC,IAAI,CAAC,IAAI,EAAE,CAAC;gBACV,MAAM,IAAI,KAAK,CAAC,SAAS,MAAM,cAAc,CAAC,CAAC;YACjD,CAAC;YAED,kBAAkB;YAClB,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS,EAAE,CAAC;gBAC9B,MAAM,IAAI,KAAK,CACb,0DAA0D,IAAI,CAAC,MAAM,eAAe,MAAM,IAAI,CAC/F,CAAC;YACJ,CAAC;YAED,uBAAuB;YACvB,IAAI,OAAO,IAAI,CAAC,IAAI,KAAK,QAAQ,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBAC5D,MAAM,IAAI,KAAK,CACb,SAAS,MAAM,2DAA2D,CAC3E,CAAC;YACJ,CAAC;YAED,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;YAEvB,qEAAqE;YACrE,qEAAqE;YACrE,mEAAmE;YACnE,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;YACrC,MAAM,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE;gBACvB,MAAM,EAAE,WAAW;gBACnB,SAAS,EAAE,GAAG;aACf,CAAC,CAAC;YAEH,OAAO;gBACL,MAAM,EAAE,WAAW;gBACnB,MAAM,EAAE,EAAE,IAAI,EAAE;aACjB,CAAC;QACJ,CAAC;KACF,CAAC;AACJ,CAAC"}
|
package/dist/plan-and-ship.d.ts
CHANGED
|
@@ -39,8 +39,7 @@
|
|
|
39
39
|
* worktree. The `seal` engine runs without `abandon: true` — the seal is
|
|
40
40
|
* real. `implement.givens.prompt` is wired to `${yields.plan-finalize.spec}`
|
|
41
41
|
* so the implementing anima works from the planning spec instead of the
|
|
42
|
-
* brief's raw body
|
|
43
|
-
* not used here).
|
|
42
|
+
* brief's raw body. No mandate writ is posted mid-rig.
|
|
44
43
|
*/
|
|
45
44
|
import type { RigTemplate } from '@shardworks/spider-apparatus';
|
|
46
45
|
export declare const planAndShipRigTemplate: RigTemplate;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plan-and-ship.d.ts","sourceRoot":"","sources":["../src/plan-and-ship.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"plan-and-ship.d.ts","sourceRoot":"","sources":["../src/plan-and-ship.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAEhE,eAAO,MAAM,sBAAsB,EAAE,WA4GpC,CAAC"}
|
package/dist/plan-and-ship.js
CHANGED
|
@@ -39,8 +39,7 @@
|
|
|
39
39
|
* worktree. The `seal` engine runs without `abandon: true` — the seal is
|
|
40
40
|
* real. `implement.givens.prompt` is wired to `${yields.plan-finalize.spec}`
|
|
41
41
|
* so the implementing anima works from the planning spec instead of the
|
|
42
|
-
* brief's raw body
|
|
43
|
-
* not used here).
|
|
42
|
+
* brief's raw body. No mandate writ is posted mid-rig.
|
|
44
43
|
*/
|
|
45
44
|
export const planAndShipRigTemplate = {
|
|
46
45
|
engines: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plan-and-ship.js","sourceRoot":"","sources":["../src/plan-and-ship.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"plan-and-ship.js","sourceRoot":"","sources":["../src/plan-and-ship.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AAIH,MAAM,CAAC,MAAM,sBAAsB,GAAgB;IACjD,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,0BAA0B;YACpC,QAAQ,EAAE,CAAC,OAAO,CAAC;YACnB,MAAM,EAAE;gBACN,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,cAAc;YAClB,QAAQ,EAAE,wBAAwB;YAClC,QAAQ,EAAE,CAAC,iBAAiB,CAAC;YAC7B,MAAM,EAAE;gBACN,MAAM,EAAE,4BAA4B;gBACpC,GAAG,EAAE,sBAAsB;gBAC3B,IAAI,EAAE,SAAS;aAChB;SACF;QACD;YACE,EAAE,EAAE,iBAAiB;YACrB,QAAQ,EAAE,2BAA2B;YACrC,QAAQ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AAE,SAAS,EAAE,IAAI,EAAE,cAAc,EAAE;SAClD;QACD;YACE,EAAE,EAAE,MAAM;YACV,QAAQ,EAAE,MAAM;YAChB,QAAQ,EAAE,CAAC,QAAQ,CAAC;YACpB,MAAM,EAAE,EAAE;SACX;KACF;IACD,gBAAgB,EAAE,MAAM;CACzB,CAAC"}
|
package/dist/types.d.ts
CHANGED
|
@@ -30,7 +30,12 @@ export interface PlanDoc {
|
|
|
30
30
|
decisions?: Decision[];
|
|
31
31
|
/** The generated specification. */
|
|
32
32
|
spec?: string;
|
|
33
|
-
/**
|
|
33
|
+
/**
|
|
34
|
+
* Legacy: writ id of a mandate produced by the retired `spec-publish`
|
|
35
|
+
* engine. Current rig templates do not set this field — it survives
|
|
36
|
+
* solely so historic plandocs stored from before the retirement
|
|
37
|
+
* continue to deserialise and render correctly in the Astrolabe page.
|
|
38
|
+
*/
|
|
34
39
|
generatedWritId?: string;
|
|
35
40
|
createdAt: string;
|
|
36
41
|
updatedAt: string;
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,WAAW,GAAG,WAAW,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAC;AAIpG,MAAM,WAAW,OAAO;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,uCAAuC;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,mCAAmC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,uBAAuB;IACvB,MAAM,EAAE,UAAU,CAAC;IAGnB,uEAAuE;IACvE,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB;;;;;;;OAOG;IACH,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;IAC7B,6CAA6C;IAC7C,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC;I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AO,CAAC,OAAO,EAAE,CAAC,CAAC;IAChD,kFAAkF;IAClF,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CAC/E"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shardworks/astrolabe-apparatus",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.244",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"zod": "4.3.6",
|
|
23
|
-
"@shardworks/stacks-apparatus": "0.1.
|
|
24
|
-
"@shardworks/tools-apparatus": "0.1.
|
|
25
|
-
"@shardworks/clerk-apparatus": "0.1.
|
|
26
|
-
"@shardworks/
|
|
27
|
-
"@shardworks/
|
|
28
|
-
"@shardworks/
|
|
29
|
-
"@shardworks/animator-apparatus": "0.1.
|
|
23
|
+
"@shardworks/stacks-apparatus": "0.1.244",
|
|
24
|
+
"@shardworks/tools-apparatus": "0.1.244",
|
|
25
|
+
"@shardworks/clerk-apparatus": "0.1.244",
|
|
26
|
+
"@shardworks/fabricator-apparatus": "0.1.244",
|
|
27
|
+
"@shardworks/loom-apparatus": "0.1.244",
|
|
28
|
+
"@shardworks/spider-apparatus": "0.1.244",
|
|
29
|
+
"@shardworks/animator-apparatus": "0.1.244"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "25.5.0",
|
|
33
|
-
"@shardworks/nexus-core": "0.1.
|
|
33
|
+
"@shardworks/nexus-core": "0.1.244"
|
|
34
34
|
},
|
|
35
35
|
"files": [
|
|
36
36
|
"dist",
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* spec-publish clockwork engine.
|
|
3
|
-
*
|
|
4
|
-
* Posts the generated specification as a mandate writ, links it back to
|
|
5
|
-
* the originating brief via a 'refines' link, records generatedWritId on
|
|
6
|
-
* the PlanDoc, and transitions the plan to 'completed'.
|
|
7
|
-
*
|
|
8
|
-
* The engine always posts the full spec verbatim — including any
|
|
9
|
-
* `<task-manifest>` block the spec-writer produced. The planning pipeline
|
|
10
|
-
* does not fan the manifest out into child `piece` writs; the implementing
|
|
11
|
-
* artificer (or a downstream tool) is responsible for acting on the
|
|
12
|
-
* manifest if it chooses to. This keeps spec-publish a pure "publish what
|
|
13
|
-
* was written" step with no hidden surgery on the mandate body.
|
|
14
|
-
*
|
|
15
|
-
* Preconditions:
|
|
16
|
-
* - plan.status must be 'writing'
|
|
17
|
-
* - plan.spec must be a non-empty string
|
|
18
|
-
*/
|
|
19
|
-
import type { EngineDesign } from '@shardworks/fabricator-apparatus';
|
|
20
|
-
import type { Book } from '@shardworks/stacks-apparatus';
|
|
21
|
-
import type { PlanDoc } from '../types.ts';
|
|
22
|
-
export declare function createSpecPublishEngine(getPlansBook: () => Book<PlanDoc>): EngineDesign;
|
|
23
|
-
//# sourceMappingURL=spec-publish.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spec-publish.d.ts","sourceRoot":"","sources":["../../src/engines/spec-publish.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAqC,MAAM,kCAAkC,CAAC;AACxG,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AAEzD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C,wBAAgB,uBAAuB,CAAC,YAAY,EAAE,MAAM,IAAI,CAAC,OAAO,CAAC,GAAG,YAAY,CA4DvF"}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* spec-publish clockwork engine.
|
|
3
|
-
*
|
|
4
|
-
* Posts the generated specification as a mandate writ, links it back to
|
|
5
|
-
* the originating brief via a 'refines' link, records generatedWritId on
|
|
6
|
-
* the PlanDoc, and transitions the plan to 'completed'.
|
|
7
|
-
*
|
|
8
|
-
* The engine always posts the full spec verbatim — including any
|
|
9
|
-
* `<task-manifest>` block the spec-writer produced. The planning pipeline
|
|
10
|
-
* does not fan the manifest out into child `piece` writs; the implementing
|
|
11
|
-
* artificer (or a downstream tool) is responsible for acting on the
|
|
12
|
-
* manifest if it chooses to. This keeps spec-publish a pure "publish what
|
|
13
|
-
* was written" step with no hidden surgery on the mandate body.
|
|
14
|
-
*
|
|
15
|
-
* Preconditions:
|
|
16
|
-
* - plan.status must be 'writing'
|
|
17
|
-
* - plan.spec must be a non-empty string
|
|
18
|
-
*/
|
|
19
|
-
import { guild } from '@shardworks/nexus-core';
|
|
20
|
-
export function createSpecPublishEngine(getPlansBook) {
|
|
21
|
-
return {
|
|
22
|
-
id: 'astrolabe.spec-publish',
|
|
23
|
-
async run(givens, _context) {
|
|
24
|
-
const planId = givens.planId;
|
|
25
|
-
const book = getPlansBook();
|
|
26
|
-
const plan = await book.get(planId);
|
|
27
|
-
if (!plan) {
|
|
28
|
-
throw new Error(`Plan "${planId}" not found.`);
|
|
29
|
-
}
|
|
30
|
-
// Validate status
|
|
31
|
-
if (plan.status !== 'writing') {
|
|
32
|
-
throw new Error(`spec-publish: expected plan status "writing" but got "${plan.status}" for plan "${planId}".`);
|
|
33
|
-
}
|
|
34
|
-
// Validate spec exists
|
|
35
|
-
if (typeof plan.spec !== 'string' || plan.spec.length === 0) {
|
|
36
|
-
throw new Error(`Plan "${planId}" has no spec — spec-writer stage did not produce output.`);
|
|
37
|
-
}
|
|
38
|
-
const clerk = guild().apparatus('clerk');
|
|
39
|
-
// Read the brief writ for its title
|
|
40
|
-
const briefWrit = await clerk.show(planId);
|
|
41
|
-
// Post the mandate with the full spec verbatim (task-manifest included if present).
|
|
42
|
-
const generatedWrit = await clerk.post({
|
|
43
|
-
type: 'mandate',
|
|
44
|
-
title: briefWrit.title,
|
|
45
|
-
body: plan.spec,
|
|
46
|
-
codex: plan.codex,
|
|
47
|
-
});
|
|
48
|
-
// Link: mandate (source) → brief (target), type 'refines'
|
|
49
|
-
await clerk.link(generatedWrit.id, planId, 'refines');
|
|
50
|
-
// Update PlanDoc
|
|
51
|
-
const now = new Date().toISOString();
|
|
52
|
-
await book.patch(planId, {
|
|
53
|
-
generatedWritId: generatedWrit.id,
|
|
54
|
-
status: 'completed',
|
|
55
|
-
updatedAt: now,
|
|
56
|
-
});
|
|
57
|
-
return {
|
|
58
|
-
status: 'completed',
|
|
59
|
-
yields: { generatedWritId: generatedWrit.id },
|
|
60
|
-
};
|
|
61
|
-
},
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
//# sourceMappingURL=spec-publish.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spec-publish.js","sourceRoot":"","sources":["../../src/engines/spec-publish.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAM/C,MAAM,UAAU,uBAAuB,CAAC,YAAiC;IACvE,OAAO;QACL,EAAE,EAAE,wBAAwB;QAE5B,KAAK,CAAC,GAAG,CACP,MAA+B,EAC/B,QAA0B;YAE1B,MAAM,MAAM,GAAG,MAAM,CAAC,MAAgB,CAAC;YACvC,MAAM,IAAI,GAAG,YAAY,EAAE,CAAC;YAE5B,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;YACpC,IAAI,CAAC,IAAI,EAAE,CAAC;gBACV,MAAM,IAAI,KAAK,CAAC,SAAS,MAAM,cAAc,CAAC,CAAC;YACjD,CAAC;YAED,kBAAkB;YAClB,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS,EAAE,CAAC;gBAC9B,MAAM,IAAI,KAA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
|
4
|
-
* Separates reading and scoping into distinct anima-session stages:
|
|
5
|
-
* the `reader` primer (inventory) and the `analyst` primer (scope,
|
|
6
|
-
* decisions, observations). The `analyst` slot id is preserved for
|
|
7
|
-
* backward compatibility with downstream yield references even though
|
|
8
|
-
* the role it summons is now `sage-primer-scoping`.
|
|
9
|
-
* Stages: plan-init → draft → reader → inventory-check → analyst →
|
|
10
|
-
* decision-review → spec-writer → spec-publish → observation-lift → seal.
|
|
11
|
-
*
|
|
12
|
-
* The `observation-lift` engine runs after `spec-publish` transitions the
|
|
13
|
-
* plan to `completed` but while the brief writ is still `open` (seal is
|
|
14
|
-
* what transitions the brief). It lifts each record in `plan.observations`
|
|
15
|
-
* into a draft child writ under the brief. The engine internally no-ops on
|
|
16
|
-
* empty or legacy-string observations, so it is wired unconditionally (no
|
|
17
|
-
* `when:` guard).
|
|
18
|
-
*/
|
|
19
|
-
import type { RigTemplate } from '@shardworks/spider-apparatus';
|
|
20
|
-
export declare const threePhaseRigTemplate: RigTemplate;
|
|
21
|
-
//# sourceMappingURL=three-phase-planning.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"three-phase-planning.d.ts","sourceRoot":"","sources":["../src/three-phase-planning.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAEhE,eAAO,MAAM,qBAAqB,EAAE,WAoFnC,CAAC"}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Three-phase planning rig template.
|
|
3
|
-
*
|
|
4
|
-
* Separates reading and scoping into distinct anima-session stages:
|
|
5
|
-
* the `reader` primer (inventory) and the `analyst` primer (scope,
|
|
6
|
-
* decisions, observations). The `analyst` slot id is preserved for
|
|
7
|
-
* backward compatibility with downstream yield references even though
|
|
8
|
-
* the role it summons is now `sage-primer-scoping`.
|
|
9
|
-
* Stages: plan-init → draft → reader → inventory-check → analyst →
|
|
10
|
-
* decision-review → spec-writer → spec-publish → observation-lift → seal.
|
|
11
|
-
*
|
|
12
|
-
* The `observation-lift` engine runs after `spec-publish` transitions the
|
|
13
|
-
* plan to `completed` but while the brief writ is still `open` (seal is
|
|
14
|
-
* what transitions the brief). It lifts each record in `plan.observations`
|
|
15
|
-
* into a draft child writ under the brief. The engine internally no-ops on
|
|
16
|
-
* empty or legacy-string observations, so it is wired unconditionally (no
|
|
17
|
-
* `when:` guard).
|
|
18
|
-
*/
|
|
19
|
-
export const threePhaseRigTemplate = {
|
|
20
|
-
engines: [
|
|
21
|
-
{
|
|
22
|
-
id: 'plan-init',
|
|
23
|
-
designId: 'astrolabe.plan-init',
|
|
24
|
-
upstream: [],
|
|
25
|
-
givens: { writ: '${writ}' },
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
id: 'draft',
|
|
29
|
-
designId: 'draft',
|
|
30
|
-
upstream: ['plan-init'],
|
|
31
|
-
givens: { writ: '${writ}' },
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
id: 'reader',
|
|
35
|
-
designId: 'anima-session',
|
|
36
|
-
upstream: ['draft'],
|
|
37
|
-
givens: {
|
|
38
|
-
role: 'astrolabe.sage-primer-reader',
|
|
39
|
-
prompt: 'Plan ID: ${yields.plan-init.planId}',
|
|
40
|
-
cwd: '${yields.draft.path}',
|
|
41
|
-
writ: '${writ}',
|
|
42
|
-
metadata: { engineId: 'reader' },
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
id: 'inventory-check',
|
|
47
|
-
designId: 'astrolabe.inventory-check',
|
|
48
|
-
upstream: ['reader'],
|
|
49
|
-
givens: { planId: '${yields.plan-init.planId}' },
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
id: 'analyst',
|
|
53
|
-
designId: 'anima-session',
|
|
54
|
-
upstream: ['inventory-check'],
|
|
55
|
-
givens: {
|
|
56
|
-
role: 'astrolabe.sage-primer-scoping',
|
|
57
|
-
prompt: 'Plan ID: ${yields.plan-init.planId}',
|
|
58
|
-
cwd: '${yields.draft.path}',
|
|
59
|
-
writ: '${writ}',
|
|
60
|
-
metadata: { engineId: 'analyst' },
|
|
61
|
-
},
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
id: 'decision-review',
|
|
65
|
-
designId: 'astrolabe.decision-review',
|
|
66
|
-
upstream: ['analyst'],
|
|
67
|
-
givens: { planId: '${yields.plan-init.planId}' },
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
id: 'spec-writer',
|
|
71
|
-
designId: 'anima-session',
|
|
72
|
-
upstream: ['decision-review'],
|
|
73
|
-
givens: {
|
|
74
|
-
role: 'astrolabe.sage-writer',
|
|
75
|
-
prompt: 'Plan ID: ${yields.plan-init.planId}\n\n' +
|
|
76
|
-
'Decision summary:\n${yields.decision-review.decisionSummary}',
|
|
77
|
-
cwd: '${yields.draft.path}',
|
|
78
|
-
writ: '${writ}',
|
|
79
|
-
metadata: { engineId: 'spec-writer' },
|
|
80
|
-
},
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
id: 'spec-publish',
|
|
84
|
-
designId: 'astrolabe.spec-publish',
|
|
85
|
-
upstream: ['spec-writer'],
|
|
86
|
-
givens: { planId: '${yields.plan-init.planId}' },
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
id: 'observation-lift',
|
|
90
|
-
designId: 'astrolabe.observation-lift',
|
|
91
|
-
upstream: ['spec-publish'],
|
|
92
|
-
givens: { planId: '${yields.plan-init.planId}' },
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
id: 'seal',
|
|
96
|
-
designId: 'seal',
|
|
97
|
-
upstream: ['observation-lift'],
|
|
98
|
-
givens: { abandon: true },
|
|
99
|
-
},
|
|
100
|
-
],
|
|
101
|
-
resolutionEngine: 'spec-writer',
|
|
102
|
-
};
|
|
103
|
-
//# sourceMappingURL=three-phase-planning.js.map
|
|
@@ -1 +0,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2B;YACrC,QAAQ,EAAE,CAAC,SAAS,CAAC;YACrB,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,kBAAkB;YACtB,QAAQ,EAAE,4BAA4B;YACtC,QAAQ,EAAE,CAAC,cAAc,CAAC;YAC1B,MAAM,EAAE,EAAE,MAAM,EAAE,4BAA4B,EAAE;SACjD;QACD;YACE,EAAE,EAAE,MAAM;YACV,QAAQ,EAAE,MAAM;YAChB,QAAQ,EAAE,CAAC,kBAAkB,CAAC;YAC9B,MAAM,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;SAC1B;KACF;IACD,gBAAgB,EAAE,aAAa;CAChC,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Two-phase planning rig template.
|
|
3
|
-
*
|
|
4
|
-
* Merges the reader and scoping-primer stages into a single
|
|
5
|
-
* `reader-analyst` slot, driven by the astrolabe-owned
|
|
6
|
-
* `astrolabe.reader-analyst` engine. The engine selects between the
|
|
7
|
-
* solo and attended primer variants at run time from live guild config:
|
|
8
|
-
* `sage-primer-attended` when `astrolabe.patronRole` is non-empty,
|
|
9
|
-
* `sage-primer-solo` otherwise. One pass produces inventory, scope,
|
|
10
|
-
* decisions, and observations. Stages: plan-init → draft →
|
|
11
|
-
* reader-analyst → inventory-check → decision-review → spec-writer →
|
|
12
|
-
* spec-publish → observation-lift → seal.
|
|
13
|
-
*
|
|
14
|
-
* The `observation-lift` engine runs after `spec-publish` transitions the
|
|
15
|
-
* plan to `completed` but while the brief writ is still `open` (seal is
|
|
16
|
-
* what transitions the brief). It lifts each record in `plan.observations`
|
|
17
|
-
* into a draft child writ under the brief. The engine internally no-ops on
|
|
18
|
-
* empty or legacy-string observations, so it is wired unconditionally (no
|
|
19
|
-
* `when:` guard).
|
|
20
|
-
*/
|
|
21
|
-
import type { RigTemplate } from '@shardworks/spider-apparatus';
|
|
22
|
-
export declare const twoPhaseRigTemplate: RigTemplate;
|
|
23
|
-
//# sourceMappingURL=two-phase-planning.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"two-phase-planning.d.ts","sourceRoot":"","sources":["../src/two-phase-planning.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAEhE,eAAO,MAAM,mBAAmB,EAAE,WAuEjC,CAAC"}
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Two-phase planning rig template.
|
|
3
|
-
*
|
|
4
|
-
* Merges the reader and scoping-primer stages into a single
|
|
5
|
-
* `reader-analyst` slot, driven by the astrolabe-owned
|
|
6
|
-
* `astrolabe.reader-analyst` engine. The engine selects between the
|
|
7
|
-
* solo and attended primer variants at run time from live guild config:
|
|
8
|
-
* `sage-primer-attended` when `astrolabe.patronRole` is non-empty,
|
|
9
|
-
* `sage-primer-solo` otherwise. One pass produces inventory, scope,
|
|
10
|
-
* decisions, and observations. Stages: plan-init → draft →
|
|
11
|
-
* reader-analyst → inventory-check → decision-review → spec-writer →
|
|
12
|
-
* spec-publish → observation-lift → seal.
|
|
13
|
-
*
|
|
14
|
-
* The `observation-lift` engine runs after `spec-publish` transitions the
|
|
15
|
-
* plan to `completed` but while the brief writ is still `open` (seal is
|
|
16
|
-
* what transitions the brief). It lifts each record in `plan.observations`
|
|
17
|
-
* into a draft child writ under the brief. The engine internally no-ops on
|
|
18
|
-
* empty or legacy-string observations, so it is wired unconditionally (no
|
|
19
|
-
* `when:` guard).
|
|
20
|
-
*/
|
|
21
|
-
export const twoPhaseRigTemplate = {
|
|
22
|
-
engines: [
|
|
23
|
-
{
|
|
24
|
-
id: 'plan-init',
|
|
25
|
-
designId: 'astrolabe.plan-init',
|
|
26
|
-
upstream: [],
|
|
27
|
-
givens: { writ: '${writ}' },
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
id: 'draft',
|
|
31
|
-
designId: 'draft',
|
|
32
|
-
upstream: ['plan-init'],
|
|
33
|
-
givens: { writ: '${writ}' },
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
id: 'reader-analyst',
|
|
37
|
-
designId: 'astrolabe.reader-analyst',
|
|
38
|
-
upstream: ['draft'],
|
|
39
|
-
givens: {
|
|
40
|
-
prompt: 'Plan ID: ${yields.plan-init.planId}',
|
|
41
|
-
cwd: '${yields.draft.path}',
|
|
42
|
-
writ: '${writ}',
|
|
43
|
-
metadata: { engineId: 'reader-analyst' },
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
id: 'inventory-check',
|
|
48
|
-
designId: 'astrolabe.inventory-check',
|
|
49
|
-
upstream: ['reader-analyst'],
|
|
50
|
-
givens: { planId: '${yields.plan-init.planId}' },
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
id: 'decision-review',
|
|
54
|
-
designId: 'astrolabe.decision-review',
|
|
55
|
-
upstream: ['inventory-check'],
|
|
56
|
-
givens: { planId: '${yields.plan-init.planId}' },
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
id: 'spec-writer',
|
|
60
|
-
designId: 'anima-session',
|
|
61
|
-
upstream: ['decision-review'],
|
|
62
|
-
givens: {
|
|
63
|
-
role: 'astrolabe.sage-writer',
|
|
64
|
-
prompt: 'Plan ID: ${yields.plan-init.planId}\n\n' +
|
|
65
|
-
'Decision summary:\n${yields.decision-review.decisionSummary}',
|
|
66
|
-
cwd: '${yields.draft.path}',
|
|
67
|
-
writ: '${writ}',
|
|
68
|
-
metadata: { engineId: 'spec-writer' },
|
|
69
|
-
},
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
id: 'spec-publish',
|
|
73
|
-
designId: 'astrolabe.spec-publish',
|
|
74
|
-
upstream: ['spec-writer'],
|
|
75
|
-
givens: { planId: '${yields.plan-init.planId}' },
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
id: 'observation-lift',
|
|
79
|
-
designId: 'astrolabe.observation-lift',
|
|
80
|
-
upstream: ['spec-publish'],
|
|
81
|
-
givens: { planId: '${yields.plan-init.planId}' },
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
id: 'seal',
|
|
85
|
-
designId: 'seal',
|
|
86
|
-
upstream: ['observation-lift'],
|
|
87
|
-
givens: { abandon: true },
|
|
88
|
-
},
|
|
89
|
-
],
|
|
90
|
-
resolutionEngine: 'spec-writer',
|
|
91
|
-
};
|
|
92
|
-
//# sourceMappingURL=two-phase-planning.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"two-phase-planning.js","sourceRoot":"","sources":["../src/two-phase-planning.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;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,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