@shardworks/astrolabe-apparatus 0.1.220 → 0.1.222
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 +4 -4
- package/dist/astrolabe.js +5 -5
- package/dist/astrolabe.js.map +1 -1
- package/package.json +8 -8
- package/sage-analyst.md +26 -1
- package/sage-reader.md +16 -0
- package/sage-reading-analyst.md +26 -1
- package/sage-writer.md +11 -0
package/README.md
CHANGED
|
@@ -117,10 +117,10 @@ The Astrolabe declares one book in Stacks:
|
|
|
117
117
|
|
|
118
118
|
| Role | Qualified Name | Permissions | Strict | Used In |
|
|
119
119
|
|---|---|---|---|---|
|
|
120
|
-
| `sage-reader` | `astrolabe.sage-reader` | `astrolabe:read`, `astrolabe:write`, `clerk:read` | `true` | three-phase reader stage |
|
|
121
|
-
| `sage-analyst` | `astrolabe.sage-analyst` | `astrolabe:read`, `astrolabe:write`, `clerk:read` | `true` | three-phase analyst stage |
|
|
122
|
-
| `sage-writer` | `astrolabe.sage-writer` | `astrolabe:read`, `astrolabe:write`, `clerk:read` | `true` | spec-writer stage (both templates) |
|
|
123
|
-
| `sage-reading-analyst` | `astrolabe.sage-reading-analyst` | `astrolabe:read`, `astrolabe:write`, `clerk:read` | `true` | two-phase reader-analyst stage |
|
|
120
|
+
| `sage-reader` | `astrolabe.sage-reader` | `astrolabe:read`, `astrolabe:write`, `clerk:read`, `ratchet:read` | `true` | three-phase reader stage |
|
|
121
|
+
| `sage-analyst` | `astrolabe.sage-analyst` | `astrolabe:read`, `astrolabe:write`, `clerk:read`, `ratchet:read` | `true` | three-phase analyst stage |
|
|
122
|
+
| `sage-writer` | `astrolabe.sage-writer` | `astrolabe:read`, `astrolabe:write`, `clerk:read`, `ratchet:read` | `true` | spec-writer stage (both templates) |
|
|
123
|
+
| `sage-reading-analyst` | `astrolabe.sage-reading-analyst` | `astrolabe:read`, `astrolabe:write`, `clerk:read`, `ratchet:read` | `true` | two-phase reader-analyst stage |
|
|
124
124
|
|
|
125
125
|
### Engines (contributed to Fabricator)
|
|
126
126
|
|
package/dist/astrolabe.js
CHANGED
|
@@ -192,7 +192,7 @@ export function createAstrolabe() {
|
|
|
192
192
|
return {
|
|
193
193
|
apparatus: {
|
|
194
194
|
requires: ['stacks', 'clerk'],
|
|
195
|
-
recommends: ['spider', 'loom', 'fabricator', 'oculus'],
|
|
195
|
+
recommends: ['spider', 'loom', 'fabricator', 'oculus', 'ratchet'],
|
|
196
196
|
supportKit: {
|
|
197
197
|
books: {
|
|
198
198
|
plans: { indexes: ['status', 'codex', 'createdAt'] },
|
|
@@ -203,22 +203,22 @@ export function createAstrolabe() {
|
|
|
203
203
|
],
|
|
204
204
|
roles: {
|
|
205
205
|
'sage-reader': {
|
|
206
|
-
permissions: ['astrolabe:read', 'astrolabe:write', 'clerk:read'],
|
|
206
|
+
permissions: ['astrolabe:read', 'astrolabe:write', 'clerk:read', 'ratchet:read'],
|
|
207
207
|
strict: true,
|
|
208
208
|
instructionsFile: 'sage-reader.md',
|
|
209
209
|
},
|
|
210
210
|
'sage-analyst': {
|
|
211
|
-
permissions: ['astrolabe:read', 'astrolabe:write', 'clerk:read'],
|
|
211
|
+
permissions: ['astrolabe:read', 'astrolabe:write', 'clerk:read', 'ratchet:read'],
|
|
212
212
|
strict: true,
|
|
213
213
|
instructionsFile: 'sage-analyst.md',
|
|
214
214
|
},
|
|
215
215
|
'sage-writer': {
|
|
216
|
-
permissions: ['astrolabe:read', 'astrolabe:write', 'clerk:read'],
|
|
216
|
+
permissions: ['astrolabe:read', 'astrolabe:write', 'clerk:read', 'ratchet:read'],
|
|
217
217
|
strict: true,
|
|
218
218
|
instructionsFile: 'sage-writer.md',
|
|
219
219
|
},
|
|
220
220
|
'sage-reading-analyst': {
|
|
221
|
-
permissions: ['astrolabe:read', 'astrolabe:write', 'clerk:read'],
|
|
221
|
+
permissions: ['astrolabe:read', 'astrolabe:write', 'clerk:read', 'ratchet:read'],
|
|
222
222
|
strict: true,
|
|
223
223
|
instructionsFile: 'sage-reading-analyst.md',
|
|
224
224
|
},
|
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,OAAO,EACL,oBAAoB,EACpB,0BAA0B,EAC1B,0BAA0B,EAC1B,uBAAuB,GACxB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAElE,wEAAwE;AAExE,SAAS,sBAAsB;IAC7B,OAAO,KAAK,EAAE,CAAC,WAAW,EAAE,CAAC,SAAS,IAAI,EAAE,CAAC;AAC/C,CAAC;AAED,wEAAwE;AAExE,MAAM,UAAU,eAAe;IAC7B,IAAI,SAAwB,CAAC;IAE7B,kEAAkE;IAElE,MAAM,cAAc,GAAG,oBAAoB,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC;IAC7D,MAAM,oBAAoB,GAAG,0BAA0B,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC;IACzE,MAAM,oBAAoB,GAAG,0BAA0B,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC;IACzE,MAAM,iBAAiB,GAAG,uBAAuB,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC;IAEnE,kEAAkE;IAElE,MAAM,GAAG,GAAiB;QACxB,KAAK,CAAC,IAAI,CAAC,MAAc;YACvB,MAAM,IAAI,GAAG,MAAM,SAAS,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;YACzC,IAAI,CAAC,IA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,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,sEAAsE;AACtE,OAAO,EAAE,sBAAsB,EAAE,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.222",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -20,16 +20,16 @@
|
|
|
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/
|
|
28
|
-
"@shardworks/
|
|
23
|
+
"@shardworks/stacks-apparatus": "0.1.222",
|
|
24
|
+
"@shardworks/clerk-apparatus": "0.1.222",
|
|
25
|
+
"@shardworks/tools-apparatus": "0.1.222",
|
|
26
|
+
"@shardworks/spider-apparatus": "0.1.222",
|
|
27
|
+
"@shardworks/fabricator-apparatus": "0.1.222",
|
|
28
|
+
"@shardworks/loom-apparatus": "0.1.222"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "25.5.0",
|
|
32
|
-
"@shardworks/nexus-core": "0.1.
|
|
32
|
+
"@shardworks/nexus-core": "0.1.222"
|
|
33
33
|
},
|
|
34
34
|
"files": [
|
|
35
35
|
"dist",
|
package/sage-analyst.md
CHANGED
|
@@ -20,6 +20,13 @@ You also have access to Clerk read tools for reviewing writs and commissions:
|
|
|
20
20
|
- **`writ-list`** — list writs with optional filters
|
|
21
21
|
- **`writ-types`** — list registered writ types
|
|
22
22
|
|
|
23
|
+
You also have access to Ratchet read tools for resolving click references in the brief:
|
|
24
|
+
|
|
25
|
+
- **`click-extract`** — extract a click and its descendants as a narrative tree (primary command for subtree references)
|
|
26
|
+
- **`click-show`** — show a single click with its links, parent, and children summary
|
|
27
|
+
- **`click-tree`** — render the click forest view
|
|
28
|
+
- **`click-list`** — list clicks with filters
|
|
29
|
+
|
|
23
30
|
**Always** call `plan-show` before writing to understand the plan's current state. Your `planId` is provided in the prompt — pass it to every tool call.
|
|
24
31
|
|
|
25
32
|
You also have the standard file-reading tools (Read, Glob, Grep) for exploring the codebase. Use these extensively — your analysis is only as good as your reading.
|
|
@@ -29,11 +36,29 @@ You also have the standard file-reading tools (Read, Glob, Grep) for exploring t
|
|
|
29
36
|
## Process
|
|
30
37
|
|
|
31
38
|
1. Call `plan-show` to read the current plan state — the inventory has already been written by the reader. Read it for context.
|
|
32
|
-
2. Read the codebase as needed to supplement the inventory.
|
|
39
|
+
2. Read the codebase as needed to supplement the inventory. When the brief references clicks by id, resolve them (see *Click references* below) — they are first-class context for decision analysis.
|
|
33
40
|
3. Produce scope, decisions, and observations using the write tools.
|
|
34
41
|
|
|
35
42
|
---
|
|
36
43
|
|
|
44
|
+
### Click references
|
|
45
|
+
|
|
46
|
+
Briefs often reference clicks by id (long form `c-mo2e88aw-f4d5684cf385` or short form `c-mo301yp9`). Clicks are the guild's record of decisions and open inquiries, managed by the Ratchet apparatus. Treat click references as mandatory context — same priority as reading referenced source files.
|
|
47
|
+
|
|
48
|
+
- Use **`click-extract`** for subtree references (*"full design at c-..."*, *"design subtree at c-..."*). One call returns the whole subtree; do not walk it by repeated `click-show`.
|
|
49
|
+
- Use **`click-show`** only for single-click inspection or when you need link/parent context.
|
|
50
|
+
|
|
51
|
+
Respect click status when interpreting a reference — this is where clicks most directly shape your analysis:
|
|
52
|
+
|
|
53
|
+
- **`concluded`** — the question is answered. The conclusion is the decision, with the same authority as a prescription in the brief. **Do not re-open it as a decision record.** If the concluded click settles a question you would otherwise have surfaced, record the answer as a pre-empted decision (both `recommendation` and `selected` set, with the click id cited in `rationale`) — the *Pre-emption* rule under *The Razor* applies.
|
|
54
|
+
- **`parked`** — the concern is deliberately deferred and out of scope. **Do not generate scope items or decisions for it.** Parked clicks are scope fences; honor them. If you believe a parked concern should be pulled back in, surface the disagreement as an observation, not a decision.
|
|
55
|
+
- **`live`** — still open. If the brief's approach depends on its resolution, surface the dependency as a decision. Don't silently assume an answer.
|
|
56
|
+
- **`dropped`** — abandoned; context only, not load-bearing.
|
|
57
|
+
|
|
58
|
+
When citing click-derived reasoning in a decision's `rationale`, reference the click id so the patron can trace the lineage.
|
|
59
|
+
|
|
60
|
+
---
|
|
61
|
+
|
|
37
62
|
### Step 1: Scope Decomposition
|
|
38
63
|
|
|
39
64
|
Break the brief down into coarse, independently deliverable capabilities. Each scope item is something the patron might include or exclude from the commission.
|
package/sage-reader.md
CHANGED
|
@@ -18,6 +18,13 @@ You also have access to Clerk read tools for reviewing writs and commissions:
|
|
|
18
18
|
- **`writ-list`** — list writs with optional filters
|
|
19
19
|
- **`writ-types`** — list registered writ types
|
|
20
20
|
|
|
21
|
+
You also have access to Ratchet read tools for resolving click references in the brief:
|
|
22
|
+
|
|
23
|
+
- **`click-extract`** — extract a click and its descendants as a narrative tree (primary command for subtree references)
|
|
24
|
+
- **`click-show`** — show a single click with its links, parent, and children summary
|
|
25
|
+
- **`click-tree`** — render the click forest view
|
|
26
|
+
- **`click-list`** — list clicks with filters
|
|
27
|
+
|
|
21
28
|
**Always** call `plan-show` before writing to understand the plan's current state. Your `planId` is provided in the prompt — pass it to every tool call.
|
|
22
29
|
|
|
23
30
|
You also have the standard file-reading tools (Read, Glob, Grep) for exploring the codebase. Use these extensively — your inventory is only as good as your reading.
|
|
@@ -55,6 +62,15 @@ Your inventory feeds a downstream analyst and spec writer who produce **intent-b
|
|
|
55
62
|
**Doc/code discrepancies:**
|
|
56
63
|
- Note any places where documentation describes different behavior than the code implements. These may indicate bugs, stale docs, or unfinished migrations. Don't try to resolve them — just record them.
|
|
57
64
|
|
|
65
|
+
**Click references in the brief:**
|
|
66
|
+
- Briefs frequently reference clicks by id (long form `c-mo2e88aw-f4d5684cf385` or short form `c-mo301yp9`). Clicks are the guild's record of decisions and open inquiries, managed by the Ratchet apparatus. Treat click references as mandatory context — same priority as reading referenced source files.
|
|
67
|
+
- Use **`click-extract`** for subtree references (*"full design at c-..."*, *"design subtree at c-..."*). One call returns the whole subtree as markdown; do not walk it by repeated `click-show`. Use `click-show` only for single-click inspection or when you need link/parent context.
|
|
68
|
+
- Respect click status when folding references into the inventory:
|
|
69
|
+
- **`concluded`** — the question is answered; the conclusion carries the same authority as a prescription in the brief. Record the decision and its reasoning as established context.
|
|
70
|
+
- **`parked`** — the concern is deliberately deferred and out of scope. Note the parking in the inventory so downstream analysis knows the boundary; do not enumerate affected files as if the concern were in scope.
|
|
71
|
+
- **`live`** — still open. Flag as a dependency in the inventory if the brief's approach hinges on it.
|
|
72
|
+
- **`dropped`** — abandoned; context only, not load-bearing.
|
|
73
|
+
|
|
58
74
|
This is a working document — rough, thorough, and unpolished. Do not spend effort on formatting or prose quality. Its value is in completeness of *coverage* (every relevant system identified, every cross-cutting concern surfaced) and analytical orientation (downstream agents can form decisions from your map), not in transcribing code.
|
|
59
75
|
|
|
60
76
|
### Boundaries
|
package/sage-reading-analyst.md
CHANGED
|
@@ -21,6 +21,13 @@ You also have access to Clerk read tools for reviewing writs and commissions:
|
|
|
21
21
|
- **`writ-list`** — list writs with optional filters
|
|
22
22
|
- **`writ-types`** — list registered writ types
|
|
23
23
|
|
|
24
|
+
You also have access to Ratchet read tools for resolving click references in the brief:
|
|
25
|
+
|
|
26
|
+
- **`click-extract`** — extract a click and its descendants as a narrative tree (primary command for subtree references)
|
|
27
|
+
- **`click-show`** — show a single click with its links, parent, and children summary
|
|
28
|
+
- **`click-tree`** — render the click forest view
|
|
29
|
+
- **`click-list`** — list clicks with filters
|
|
30
|
+
|
|
24
31
|
**Always** call `plan-show` before writing to understand the plan's current state. Your `planId` is provided in the prompt — pass it to every tool call.
|
|
25
32
|
|
|
26
33
|
You also have the standard file-reading tools (Read, Glob, Grep) for exploring the codebase. Use these extensively — your analysis is only as good as your reading.
|
|
@@ -30,7 +37,7 @@ You also have the standard file-reading tools (Read, Glob, Grep) for exploring t
|
|
|
30
37
|
## Process
|
|
31
38
|
|
|
32
39
|
1. Call `plan-show` with your planId to read the plan and understand the brief.
|
|
33
|
-
2. Read the codebase — but let your growing understanding of the change guide which files you read. You do not need to do a full repo walk followed by a separate analysis turn. As you read, you will naturally form scope boundaries, identify decision points, and notice observations. Let that understanding steer your exploration.
|
|
40
|
+
2. Read the codebase — but let your growing understanding of the change guide which files you read. You do not need to do a full repo walk followed by a separate analysis turn. As you read, you will naturally form scope boundaries, identify decision points, and notice observations. Let that understanding steer your exploration. When the brief references clicks by id, resolve them (see *Click references* below) — they are first-class context for both inventory and decision analysis.
|
|
34
41
|
3. Write the codebase inventory using `inventory-write`. The inventory must meet the full quality bar described below.
|
|
35
42
|
4. Write scope items using `scope-write`. Break the brief into coarse, independently deliverable capabilities. Each item should be something the patron might include or exclude.
|
|
36
43
|
5. Write decisions using `decisions-write`. Be exhaustive — capture every design question including ones where the answer seems obvious from codebase conventions. Each decision needs: id, scope references, question, context, options, recommendation, rationale, and `selected` (see the pre-fill rule under Decision Analysis — leave unset only when the decision matches the razor and passes the Reach and Patch Tests; otherwise apply the three defaults and pre-fill with your choice). Never set `patronOverride` — that field is owned by the patron-review pass. When you feel uncertainty about a decision that does *not* match any razor criterion, treat that feeling as a cue to **investigate** — read more code, trace another caller, check the brief again — not as a cue to punt the decision to the patron.
|
|
@@ -42,6 +49,24 @@ The same quality bar applies as for dedicated reader and analyst stages. The dif
|
|
|
42
49
|
|
|
43
50
|
---
|
|
44
51
|
|
|
52
|
+
### Click references
|
|
53
|
+
|
|
54
|
+
Briefs often reference clicks by id (long form `c-mo2e88aw-f4d5684cf385` or short form `c-mo301yp9`). Clicks are the guild's record of decisions and open inquiries, managed by the Ratchet apparatus. Treat click references as mandatory context — same priority as reading referenced source files.
|
|
55
|
+
|
|
56
|
+
- Use **`click-extract`** for subtree references (*"full design at c-..."*, *"design subtree at c-..."*). One call returns the whole subtree; do not walk it by repeated `click-show`.
|
|
57
|
+
- Use **`click-show`** only for single-click inspection or when you need link/parent context.
|
|
58
|
+
|
|
59
|
+
Respect click status when interpreting a reference:
|
|
60
|
+
|
|
61
|
+
- **`concluded`** — the question is answered. The conclusion is the decision, with the same authority as a prescription in the brief. **Do not re-open it as a decision record.** If the concluded click settles a question you would otherwise have surfaced, record the answer as a pre-empted decision (both `recommendation` and `selected` set, with the click id cited in `rationale`) — the *Pre-emption* rule under *The Razor* applies.
|
|
62
|
+
- **`parked`** — the concern is deliberately deferred and out of scope. **Do not generate scope items or decisions for it.** Parked clicks are scope fences; honor them in the inventory too — note the parking rather than enumerating affected files as if the concern were in scope. If you believe a parked concern should be pulled back in, surface the disagreement as an observation, not a decision.
|
|
63
|
+
- **`live`** — still open. Flag as a dependency in the inventory; surface as a decision if the brief's approach hinges on the outcome. Don't silently assume an answer.
|
|
64
|
+
- **`dropped`** — abandoned; context only, not load-bearing.
|
|
65
|
+
|
|
66
|
+
When citing click-derived reasoning in a decision's `rationale`, reference the click id so the patron can trace the lineage.
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
45
70
|
### Codebase Inventory
|
|
46
71
|
|
|
47
72
|
**Goal:** Map the landscape the change operates in. Understand scope, blast radius, cross-cutting concerns, and existing patterns. Pure reading — no design thinking yet.
|
package/sage-writer.md
CHANGED
|
@@ -23,6 +23,13 @@ You also have access to Clerk read tools for reviewing writs and commissions:
|
|
|
23
23
|
- **`writ-list`** — list writs with optional filters
|
|
24
24
|
- **`writ-types`** — list registered writ types
|
|
25
25
|
|
|
26
|
+
You also have access to Ratchet read tools for resolving click references in the brief or decision rationales:
|
|
27
|
+
|
|
28
|
+
- **`click-extract`** — extract a click and its descendants as a narrative tree (primary command for subtree references)
|
|
29
|
+
- **`click-show`** — show a single click with its links, parent, and children summary
|
|
30
|
+
- **`click-tree`** — render the click forest view
|
|
31
|
+
- **`click-list`** — list clicks with filters
|
|
32
|
+
|
|
26
33
|
**Always** call `plan-show` before writing to understand the plan's current state. Your `planId` is provided in the prompt — pass it to every tool call.
|
|
27
34
|
|
|
28
35
|
You also have the standard file-reading tools (Read, Glob, Grep) for exploring the codebase. Use these to verify inventory claims and read source code referenced by decisions.
|
|
@@ -48,6 +55,10 @@ From `plan-show`, examine:
|
|
|
48
55
|
|
|
49
56
|
The **decision summary** in your prompt provides a quick-reference digest. When in doubt, the full decisions from `plan-show` are authoritative.
|
|
50
57
|
|
|
58
|
+
**Click references.** The original brief and the decisions' `rationale` fields may reference clicks by id (long form `c-mo2e88aw-f4d5684cf385` or short form `c-mo301yp9`). Clicks are the guild's record of decisions and open inquiries, managed by the Ratchet apparatus. **Resolve every click reference you encounter** using `click-extract` (for subtrees) or `click-show` (for single clicks) so you can faithfully absorb the reasoning behind the decisions you are translating.
|
|
59
|
+
|
|
60
|
+
**Do not preserve click ids in the generated brief.** The consumers of your output — the implementing artificer, reviewers, anyone reading the spec downstream — do not have click access. A click id in the final brief is a dead pointer that provides them no context. Instead, extract the substantive content from each referenced click (the decision, the supporting rationale, the constraint, the scope-fence reasoning) and **inline the relevant portions in your own prose**. The generated brief must be self-contained: every piece of reasoning the implementer needs to do the work correctly must be present in the brief itself, not behind a pointer the implementer cannot follow. Clicks are the sage's source material; the brief is the delivered artifact.
|
|
61
|
+
|
|
51
62
|
---
|
|
52
63
|
|
|
53
64
|
### Step 2: Gap Check
|