@esneiderbravo/speclaw 2.0.1 → 2.0.2

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.
@@ -13,6 +13,9 @@ Turn the explorer brief + user intent into a reviewable change under
13
13
  `lawbook/changes/<name>/` at the confirmed ceremony level. Prefer `draft` /
14
14
  `quick` skills.
15
15
 
16
+ A complete explorer brief is the code map. Do not re-investigate it. Call
17
+ Compass only for a gap the brief names.
18
+
16
19
  ## Questions
17
20
 
18
21
  If anything material is ambiguous, **stop**. Return numbered questions to the
@@ -3,6 +3,9 @@
3
3
  For the current Cortex stage (`cortex` action `brief` or `status`):
4
4
 
5
5
  1. Dispatch (spawn or adopt) the matching role with a clear handoff brief.
6
+ When the role is the planner, paste the explorer brief into the prompt
7
+ unchanged: symbols with files, callers and callees, blast radius, standards
8
+ already read, recommended approach, open questions, and gaps.
6
9
  2. On role completion, call the matching Cortex op:
7
10
  - exploring → `advance`
8
11
  - planning with questions → `advance` + `pauseForQuestions` + `openQuestions`
@@ -1,15 +1,18 @@
1
1
  # Understand the request and the code
2
2
 
3
- - **Refresh the index first.** Run `compass_index` before reasoning about the
4
- code — it is incremental (unchanged files are skipped by hash), so this is
5
- cheap and guarantees your decisions rest on the current graph, not a stale one.
3
+ - When the handoff includes a complete explorer brief (symbols with files,
4
+ callers and callees, blast radius, standards already read, recommended
5
+ approach, open questions, and gaps), that brief is the code map. Call
6
+ `compass_find` or `compass_explore` only for a gap the brief names. Re-read
7
+ a file under `docs/standards/` only when the brief does not cite it.
8
+ - When the handoff has no complete explorer brief, refresh the index with
9
+ `compass_index`, then use `compass_explore` and `compass_find` (mode:
10
+ concept) before grep/read to locate the code and its blast radius. Read the
11
+ governing standards in `docs/standards/`.
6
12
  - Clarify what the user wants (feature / fix / refactor) and confirm scope.
7
- - Use `compass_explore` and `compass_find` (mode: concept) (speclaw's code index) BEFORE
8
- grep/read to locate the real code the change touches and its blast radius.
9
13
  - **Propose a ceremony level** with `lawbook_level` (mode `propose`) using the
10
- paths/symbols you found; **confirm with the human** (mode `set`) before
11
- writing artifacts. For an obvious one-liner, offer `speclaw quick` instead.
12
- - Read the governing standards in `docs/standards/` (architecture, backend,
13
- frontend, testing) so the change complies with the project's law.
14
+ paths and symbols from the brief or from that locate pass; **confirm with the
15
+ human** (mode `set`) before writing artifacts. For an obvious one-liner,
16
+ offer `speclaw quick` instead.
14
17
 
15
18
  Next: read `steps/03-name-capabilities.md` and do only what it says.
@@ -1,7 +1,15 @@
1
1
  # Summarize
2
2
 
3
- Produce a concise summary: the problem as understood, the constraints, the
4
- recommended approach, and the open questions. When the direction is clear,
5
- offer to `draft` the change.
3
+ Produce a brief the planner can use as the code map. Include only these fields:
4
+
5
+ - symbols, each with its file
6
+ - callers and callees
7
+ - blast radius
8
+ - standards in `docs/standards/` already read
9
+ - recommended approach
10
+ - open questions
11
+ - gaps: the phrase "nothing unresolved", or each symbol that is still unresolved
12
+
13
+ When the direction is clear, offer to `draft` the change.
6
14
 
7
15
  No further steps remain — explore workflow complete.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esneiderbravo/speclaw",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },