arey-pi 0.6.2 → 0.6.3

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 CHANGED
@@ -37,23 +37,28 @@ Arey Pi is built around these guarantees:
37
37
  ## Package contents
38
38
 
39
39
  ```txt
40
- agents/ # Arey Pi subagent role definitions for pi-subagents
41
- extensions/ # Directory-style Pi extension for doctor, bootstrap, and workflows
42
- docs/ # Package documentation
43
- skills/ # On-demand Arey Pi workflows and instructions
44
- prompts/ # Reusable Pi prompt workflows
45
- rules/ # Arey Pi operating rules
46
- templates/ # Bootstrap templates for AGENTS.md, specs, ADRs, DBML, glossary, and reports
40
+ agents/ # Arey Pi subagent role definitions for pi-subagents
41
+ assets/ # Package assets, including the package image used by Pi
42
+ docs/ # Package documentation
43
+ extensions/ # Pi extension for doctor, bootstrap, workflow runtime, and guardrails
44
+ prompts/ # Reusable Pi prompt workflows
45
+ rules/ # Arey Pi operating rules
46
+ skills/ # On-demand Arey Pi workflows and instructions
47
+ templates/ # Bootstrap templates for AGENTS.md, specs, ADRs, DBML, glossary, and reports
47
48
  ```
48
49
 
49
50
  The rules are the policy layer.
50
- The skills and prompts make those policies usable inside Pi.
51
- The agents define the intended specialist roles for subagent-backed delivery.
52
-
53
- Arey Pi includes focused prompt templates and skills for feature specs,
51
+ The extension turns the policy into project setup commands,
52
+ always-on workflow context,
53
+ and safe mutation guardrails.
54
+ The skills and prompts provide focused entry points for targeted work.
55
+ The agents define specialist roles for subagent-backed delivery.
56
+
57
+ Arey Pi currently includes prompt templates and skills for project readiness,
58
+ feature specs,
54
59
  strict Red-Green-Refactor,
55
60
  spec drift repair,
56
- ADR assessment,
61
+ ADR review,
57
62
  and adversarial engineering review.
58
63
 
59
64
  ## Current subagent architecture
@@ -71,14 +76,12 @@ tech-lead
71
76
  └── project-evaluator
72
77
  ```
73
78
 
74
- The intended daily experience is natural language first:
75
-
76
- ```txt
77
- Implement password reset.
78
- ```
79
-
80
- The parent agent should act as the tech lead,
81
- then use specialist subagents when available for specs,
79
+ The intended daily experience is conversational.
80
+ Users describe the work they want done,
81
+ and the parent agent acts as the tech lead behind the scenes.
82
+ It classifies the request,
83
+ selects the matching Arey Pi workflow,
84
+ and uses specialist subagents when available for specs,
82
85
  TDD implementation,
83
86
  spec sync,
84
87
  and engineering review.
@@ -119,7 +122,9 @@ Or load the readiness skill directly:
119
122
  /skill:project-readiness
120
123
  ```
121
124
 
122
- Arey Pi also ships an extension with native setup commands and automatic natural-language harness activation.
125
+ Arey Pi also ships an extension with native setup commands,
126
+ always-on workflow context injection,
127
+ and simple protected-file guardrails.
123
128
 
124
129
  When the Arey Pi agents are available to `pi-subagents`, the project evaluator runtime name is:
125
130
 
@@ -129,34 +134,30 @@ arey-pi.project-evaluator
129
134
 
130
135
  ## Extension-backed workflow
131
136
 
132
- Arey Pi includes a polished extension-backed setup and natural-language workflow harness:
137
+ Arey Pi includes a polished extension-backed setup and runtime harness:
133
138
 
134
139
  ```txt
135
140
  /arey-doctor # check package, subagent, prompt, skill, and project readiness setup
136
141
  /arey-bootstrap # full safe bootstrap: agents, AGENTS.md, specs, docs, and templates
137
- /arey-bootstrap --agentsmd # also create a starter AGENTS.md if missing
142
+ /arey-bootstrap --agentsmd # create a starter AGENTS.md if missing
138
143
  /arey-bootstrap --specs # scaffold starter specs directories and glossary
139
144
  /arey-bootstrap --docs # scaffold starter docs directory
140
145
  /arey-bootstrap --full # explicit alias for the default full bootstrap
141
- /arey-bootstrap --force # full bootstrap and overwrite selected project-local files
142
- # Development workflows are natural-language first:
143
- # "Implementa password reset"
144
- # "Corrige este bug"
145
- # "Revisa el current diff"
146
+ /arey-bootstrap --force # overwrite selected project-local agents and scaffold files
146
147
  ```
147
148
 
148
- The goal is that users work naturally without development commands.
149
149
  When the package is installed,
150
150
  Arey Pi automatically injects quiet harness context behind the scenes on every agent turn.
151
151
  The parent agent infers the work mode,
152
152
  acts as orchestrator,
153
- use specialist subagents when available,
154
- inject the relevant delivery guidance,
155
- and apply simple event-based guardrails for protected paths.
153
+ uses specialist subagents when available,
154
+ applies the relevant delivery guidance,
155
+ and enforces simple event-based guardrails for protected env files.
156
156
 
157
157
  See:
158
158
 
159
- - `docs/commands.md` for setup commands and natural-language workflow behaviour;
159
+ - `docs/README.md` for the package documentation index;
160
+ - `docs/commands.md` for setup commands, runtime harness behaviour, and guardrails;
160
161
  - `docs/adoption.md` for adopting Arey Pi in an existing repository;
161
162
  - `docs/workflows.md` for workflow expectations;
162
163
  - `docs/workflow-diagram.md` for the visual framework workflow;
@@ -200,13 +201,14 @@ The policy layer,
200
201
  readiness workflow,
201
202
  documentation sync rule,
202
203
  core subagent role definitions,
203
- and professional setup extension commands exist.
204
-
205
- Arey Pi now includes always-on natural-language harness injection,
204
+ professional setup extension commands,
205
+ bootstrap scaffolding,
206
+ always-on workflow context injection,
206
207
  focused prompts,
207
208
  TDD/spec-sync/review skills,
208
- and extension-core tests.
209
+ protected env-file guardrails,
210
+ and extension-core tests exist.
209
211
 
210
- Next improvements include stronger bootstrap scaffolding,
211
- custom Arey Pi tools,
212
- and deeper enforcement through Pi extension events.
212
+ Next improvements include custom Arey Pi tools,
213
+ more granular workflow events,
214
+ and deeper enforcement through Pi extension hooks.
package/docs/README.md ADDED
@@ -0,0 +1,51 @@
1
+ # Arey Pi Documentation
2
+
3
+ This directory documents the Arey Pi package as it exists today.
4
+
5
+ ## Start here
6
+
7
+ - `commands.md` documents the Pi extension commands,
8
+ the always-on workflow runtime,
9
+ and protected env-file guardrails.
10
+ - `adoption.md` explains how to introduce Arey Pi into an existing repository.
11
+ - `workflows.md` describes the internal delivery workflows the runtime expects agents to follow.
12
+ - `workflow-diagram.md` provides a visual workflow map.
13
+ - `pi-subagents.md` explains how Arey Pi agents should be used with `pi-subagents`.
14
+ - `templates.md` documents every bootstrap template and its project-local target.
15
+
16
+ ## Current package surface
17
+
18
+ Arey Pi currently provides:
19
+
20
+ - a Pi extension at `extensions/arey-pi/`;
21
+ - setup commands `/arey-doctor` and `/arey-bootstrap`;
22
+ - automatic hidden workflow context injection before agent turns;
23
+ - env-file write/edit guardrails;
24
+ - six Arey Pi subagent role definitions;
25
+ - focused skills for readiness,
26
+ spec sync,
27
+ TDD,
28
+ and engineering review;
29
+ - focused prompt templates for assessment,
30
+ ADR review,
31
+ feature specs,
32
+ Red-Green-Refactor,
33
+ drift sync,
34
+ and engineering review;
35
+ - operating rules under `rules/`;
36
+ - bootstrap templates for `AGENTS.md`,
37
+ specs,
38
+ DBML,
39
+ ADRs,
40
+ glossary,
41
+ and project docs.
42
+
43
+ ## Maintenance rule
44
+
45
+ When package behaviour changes,
46
+ update the relevant docs in the same change:
47
+
48
+ - command or runtime changes: `commands.md`, `workflows.md`, and `README.md`;
49
+ - bootstrap target changes: `templates.md`, `commands.md`, tests, and `README.md`;
50
+ - subagent changes: `pi-subagents.md`, `agents/README.md`, and `README.md`;
51
+ - policy changes: `rules/README.md` and affected workflow docs.
package/docs/commands.md CHANGED
@@ -1,9 +1,8 @@
1
1
  # Arey Pi Commands
2
2
 
3
- Arey Pi ships a Pi extension that registers native setup slash commands.
4
- Development workflows are intentionally natural-language first:
5
- when the package is installed,
6
- the extension injects quiet harness guidance automatically on every agent turn.
3
+ Arey Pi ships a Pi extension that registers native setup slash commands and a runtime harness.
4
+ When the package is installed,
5
+ the extension injects quiet workflow guidance automatically before every agent turn and blocks unsafe env-file mutations.
7
6
 
8
7
  ## Command overview
9
8
 
@@ -137,8 +136,10 @@ Explicitly runs the same combined bootstrap path as `/arey-bootstrap` with no fl
137
136
  ```
138
137
 
139
138
  Overwrites existing project-local Arey Pi agent files and scaffold files selected by the other flags.
140
- When used alone, it applies to the default full bootstrap path.
141
- It also creates a starter `AGENTS.md` when one does not already exist.
139
+ When used alone,
140
+ it applies to the default full bootstrap path.
141
+ For `AGENTS.md`,
142
+ Arey Pi remains conservative: it creates the starter file when missing but does not replace an existing root `AGENTS.md`.
142
143
 
143
144
  Examples:
144
145
 
@@ -150,49 +151,75 @@ Examples:
150
151
 
151
152
  Use this command after installing Arey Pi and `pi-subagents` in a repository where you want the Arey Pi agents to be discoverable by `pi-subagents`.
152
153
 
153
- ## Natural-language development workflows
154
-
155
- Arey Pi is designed to work without development slash commands.
156
- When the package is installed,
157
- the extension injects quiet harness context automatically before every agent turn.
158
- Users can simply ask naturally:
159
-
160
- ```txt
161
- Implementa password reset
162
- Corrige este bug
163
- Revisa el current diff
164
- Evalúa este repo
165
- ```
166
-
167
- The harness is not meant to add ceremony for the user.
168
- It asks the agent to infer whether the request is a feature,
169
- bugfix,
170
- sync,
171
- review,
172
- assessment,
173
- or mixed task,
174
- then apply the corresponding Arey Pi posture.
175
- The parent agent should act as orchestrator,
176
- use specialist Arey Pi subagents when available,
177
- and continue conversationally while reporting evidence naturally.
178
-
179
- The injected harness guidance emphasises:
154
+ ## Runtime workflow harness
155
+
156
+ Arey Pi is designed to work without separate development slash commands.
157
+ The slash commands are for setup and diagnostics;
158
+ delivery work is handled by the always-on runtime harness.
159
+
160
+ On `before_agent_start`,
161
+ the extension injects hidden Arey Pi context that asks the parent agent to:
162
+
163
+ - infer whether the request is a feature,
164
+ bugfix,
165
+ sync,
166
+ review,
167
+ assessment,
168
+ or mixed task;
169
+ - act as the parent Arey Pi orchestrator;
170
+ - use canonical specs and strict Red → Green → Refactor for behaviour changes;
171
+ - reproduce bugs with meaningful failing regression tests before production changes;
172
+ - check drift across specs,
173
+ tests,
174
+ code,
175
+ DBML,
176
+ ADRs,
177
+ glossary,
178
+ README files,
179
+ docs,
180
+ `AGENTS.md`,
181
+ skills,
182
+ prompts,
183
+ rules,
184
+ agents,
185
+ commands,
186
+ templates,
187
+ and tooling instructions;
188
+ - delegate bounded work to Arey Pi subagents when available;
189
+ - use builtin `scout`,
190
+ `context-builder`,
191
+ `planner`,
192
+ `reviewer`,
193
+ and `oracle` agents when they fit discovery,
194
+ planning,
195
+ second-opinion,
196
+ or fresh-review needs;
197
+ - keep one writer in the active worktree;
198
+ - report final evidence and residual risks clearly.
199
+
200
+ The injected harness guidance references these Arey Pi agents:
180
201
 
181
202
  - `arey-pi.spec-author` for canonical specs;
182
203
  - `arey-pi.tdd-implementer` for Red → Green → Refactor;
183
204
  - `arey-pi.spec-syncer` for alignment;
184
205
  - `arey-pi.engineering-reviewer` for fresh review;
185
- - `arey-pi.project-evaluator` for readiness assessment;
186
- - builtin scout/planner/reviewer/oracle-style agents for discovery, planning, and second opinions.
206
+ - `arey-pi.project-evaluator` for readiness assessment.
207
+
208
+ ## Guardrails
187
209
 
188
- While Arey Pi is active,
189
- Arey Pi applies simple tool-call guardrails:
210
+ The extension listens for `tool_call` events and blocks write/edit operations targeting env files such as:
190
211
 
191
- - writes or edits to env files such as `.env` and `.env.local` are blocked; `.git/` and `node_modules/` remain readable and writable when the task genuinely requires them.
212
+ ```txt
213
+ .env
214
+ .env.local
215
+ .env.production
216
+ ```
192
217
 
218
+ This protection is intentionally narrow.
219
+ It prevents accidental secret or environment mutation while leaving normal repository files available for legitimate work.
193
220
 
194
221
  ## Prompt templates and skills
195
222
 
196
223
  Arey Pi still ships focused prompt templates and skills for targeted use,
197
224
  but they are optional.
198
- The intended default is natural language plus automatic harness injection.
225
+ The intended default is conversational work plus automatic runtime harness injection.
package/docs/workflows.md CHANGED
@@ -2,18 +2,12 @@
2
2
 
3
3
  See `docs/workflow-diagram.md` for a visual overview of the framework workflow.
4
4
 
5
- Arey Pi development workflows are natural-language first.
5
+ Arey Pi workflows are conversational at the user boundary and structured internally.
6
6
  When the package is installed,
7
7
  the extension injects quiet harness guidance automatically before every agent turn.
8
8
 
9
9
  ## Feature Workflow
10
10
 
11
- Example request:
12
-
13
- ```txt
14
- Implementa password reset
15
- ```
16
-
17
11
  Expected flow:
18
12
 
19
13
  ```txt
@@ -40,12 +34,6 @@ The workflow should:
40
34
 
41
35
  ## Bugfix Workflow
42
36
 
43
- Example request:
44
-
45
- ```txt
46
- Corrige el bug de verificación de email
47
- ```
48
-
49
37
  Use this when behaviour is wrong.
50
38
 
51
39
  Expected flow:
@@ -60,12 +48,6 @@ and it should live outside production source directories by default.
60
48
 
61
49
  ## Sync Workflow
62
50
 
63
- Example request:
64
-
65
- ```txt
66
- Sincroniza specs y docs para el current diff
67
- ```
68
-
69
51
  Use this before completing non-trivial work or when drift is suspected.
70
52
 
71
53
  The sync check covers:
@@ -100,12 +82,6 @@ or justified unaffected statuses.
100
82
 
101
83
  ## Review Workflow
102
84
 
103
- Example request:
104
-
105
- ```txt
106
- Revisa el current diff
107
- ```
108
-
109
85
  Use this for adversarial engineering review.
110
86
 
111
87
  Review should cover:
@@ -127,12 +103,6 @@ Findings should be classified by severity.
127
103
 
128
104
  ## Assessment Workflow
129
105
 
130
- Example request:
131
-
132
- ```txt
133
- Evalúa este repo
134
- ```
135
-
136
106
  Use this to assess project readiness.
137
107
 
138
108
  The assessment is read-only by default.
@@ -178,19 +148,21 @@ end the turn and wait for completion rather than polling repeatedly.
178
148
 
179
149
  See `docs/pi-subagents.md` for detailed guidance.
180
150
 
181
- ## Natural Language Workflow
151
+ ## Conversational Workflow Runtime
182
152
 
183
- Users do not need to memorise commands.
153
+ Users do not need to memorise development commands.
154
+ The extension provides hidden workflow context before every agent turn,
155
+ so the parent agent should act as tech lead,
156
+ select the appropriate workflow,
157
+ and use specialist subagents when available.
184
158
 
185
- This should work:
159
+ The runtime is intentionally quiet:
160
+ it should improve delivery quality without adding ceremony to normal conversation.
186
161
 
187
- ```txt
188
- Implement password reset.
189
- ```
162
+ ## Guardrails
190
163
 
191
- The parent agent should act as tech lead,
192
- select the appropriate workflow,
193
- and use specialist subagents when available.
164
+ The workflow runtime blocks write/edit operations to env files such as `.env` and `.env.local`.
165
+ This prevents accidental mutation of secrets or environment configuration while keeping the rest of the repository available for normal work.
194
166
 
195
167
  ## Evidence Standard
196
168
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arey-pi",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "description": "A Pi package for canonical Gherkin specs, non-negotiable TDD, spec synchronisation, AI harness readiness, and senior-quality software delivery.",
5
5
  "license": "MIT",
6
6
  "author": "Alejandro Rey Leyva",