arreio 1.1.0 → 1.2.1
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/ARCHITECTURE.md +220 -0
- package/CHANGELOG.md +43 -0
- package/README.md +55 -2
- package/package.json +33 -10
- package/skills/arreio-init/SKILL.md +19 -24
- package/skills/learn/SKILL.md +20 -6
- package/skills/learn/modules/capture.md +3 -3
- package/skills/learn/modules/index.md +2 -2
- package/skills/learn/modules/maintain.md +2 -2
- package/skills/learn/modules/refine.md +2 -2
- package/skills/learn/references/id-generation.md +3 -1
- package/skills/learn/references/interaction-mode-propagation.md +21 -1
- package/skills/learn/references/templates/artifacts/captured-entry.md +1 -1
- package/skills/learn/references/templates/artifacts/index-update.md +1 -1
- package/skills/learn/references/templates/artifacts/maintain-log.md +1 -1
- package/skills/learn/references/templates/artifacts/refined-entry.md +1 -1
- package/skills/plan/SKILL.md +29 -4
- package/skills/plan/modules/design.md +9 -5
- package/skills/plan/modules/generate.md +9 -9
- package/skills/plan/modules/research.md +2 -2
- package/skills/plan/modules/scope.md +2 -2
- package/skills/plan/references/design-complexity-assessment.md +16 -7
- package/skills/plan/references/error-handling.md +1 -0
- package/skills/plan/references/id-generation.md +3 -1
- package/skills/plan/references/interaction-mode-propagation.md +25 -1
- package/skills/plan/references/plan-tier-selection.md +95 -48
- package/skills/plan/references/templates/artifacts/design.md +1 -1
- package/skills/plan/references/templates/artifacts/scoped-context.md +1 -1
- package/skills/review/SKILL.md +19 -4
- package/skills/review/modules/analyze.md +2 -2
- package/skills/review/modules/prepare.md +2 -2
- package/skills/review/modules/scope.md +3 -3
- package/skills/review/references/id-generation.md +3 -1
- package/skills/review/references/interaction-mode-propagation.md +21 -1
- package/skills/review/references/templates/artifacts/findings.md +1 -1
- package/skills/review/references/templates/artifacts/review-kit.md +1 -1
- package/skills/review/references/templates/artifacts/review-scope.md +1 -1
- package/skills/work/SKILL.md +19 -4
- package/skills/work/modules/execute.md +2 -2
- package/skills/work/modules/prepare.md +3 -3
- package/skills/work/modules/triage.md +2 -2
- package/skills/work/references/execution-mode-selection.md +21 -2
- package/skills/work/references/id-generation.md +3 -1
- package/skills/work/references/interaction-mode-propagation.md +21 -1
- package/skills/work/references/templates/artifacts/execution-log.md +1 -1
- package/skills/work/references/templates/artifacts/execution-plan.md +1 -1
- package/skills/work/references/templates/artifacts/work-manifest.md +1 -1
|
@@ -12,7 +12,7 @@ Shared ID algorithm for the `triage`, `prepare`, `execute`, and `review` phases,
|
|
|
12
12
|
|
|
13
13
|
## ID Format by Phase
|
|
14
14
|
|
|
15
|
-
| Phase | ID format | Saved to |
|
|
15
|
+
| Phase | ID format | Saved to (detailed only) |
|
|
16
16
|
| -------- | ----------------------------------- | -------------------------------- |
|
|
17
17
|
| Triage | `YYYY-MM-DD-NNN-triage` | `docs/plans/.work/.triage/<id>.md` |
|
|
18
18
|
| Prepare | `YYYY-MM-DD-NNN-prepare` | `docs/plans/.work/.prepare/<id>.md` |
|
|
@@ -35,6 +35,8 @@ The `work-id` is the key that ties all four phase artifacts together and locates
|
|
|
35
35
|
|
|
36
36
|
> **Work branch name:** the git branch for a run is `work/<short-description>` — a kebab-case slug derived from the plan name or work description (Triage Step 2d), **not** the `work-id` itself. The Work Manifest records the `work-branch` ↔ `work-id` pairing; see `skills/work/modules/triage.md` Step 2d.
|
|
37
37
|
|
|
38
|
+
> **Persistence by mode.** The "Saved to" column and the directory-listing algorithm below apply **only in `detailed` mode**. In `smart`/`autopilot` mode phase artifacts are not written, so no directory is listed: Triage/Prepare/Execute ids are `<work-id>-<phase>` (in-memory labels). Only the Work Report `review-id` is persisted, so it still counts existing files in `docs/plans/.work/.review/`. See [Artifact Persistence](interaction-mode-propagation.md#artifact-persistence).
|
|
39
|
+
|
|
38
40
|
## Algorithm (new phase artifact)
|
|
39
41
|
|
|
40
42
|
```
|
|
@@ -77,4 +77,24 @@ The two never override one another; the orchestrator's quality gate #2 cross-che
|
|
|
77
77
|
| Invalid mode value | Reject; re-prompt Orchestrator |
|
|
78
78
|
| Artifact missing mode field | Assume "smart"; log warning; continue |
|
|
79
79
|
| User selects "Abort" | Stop immediately; inform Orchestrator |
|
|
80
|
-
| Timeout/connection lost | Pause; ask user to retry or abort |
|
|
80
|
+
| Timeout/connection lost | Pause; ask user to retry or abort |
|
|
81
|
+
|
|
82
|
+
## Artifact Persistence
|
|
83
|
+
|
|
84
|
+
Phase artifacts (Triage, Prepare, Execute) are **handoff data between phases**, not deliverables. Whether they are written to disk depends on `interactionMode`:
|
|
85
|
+
|
|
86
|
+
| Mode | Phase artifacts (`docs/plans/.work/.triage/`, `.prepare/`, `.execute/`) | Phase handoff |
|
|
87
|
+
| ------------- | ---------------------------------------- | ---------------------------------------------- |
|
|
88
|
+
| **Detailed** | Written to the hidden directories (audit trail; creating the directory on first use) | Artifact is written, shown, then passed on |
|
|
89
|
+
| **Smart** | **Not written** | Artifact is held in context and passed in-memory to the next phase |
|
|
90
|
+
| **Autopilot** | **Not written** | Artifact is held in context and passed in-memory to the next phase |
|
|
91
|
+
|
|
92
|
+
**Always written, in every mode:** the Work Report in `docs/plans/.work/.review/<review-id>.md` (a cross-skill handoff read by `/review` and `/learn`), the task files/index in `docs/tasks/<work-id>/`, and the work branch.
|
|
93
|
+
|
|
94
|
+
**Rules:**
|
|
95
|
+
|
|
96
|
+
- The artifact schema, quality gates, cross-phase ID checks, and pause triggers are **unchanged** — only the disk write is skipped. Validate and pass the in-memory artifact exactly as you would the file.
|
|
97
|
+
- Never create the hidden directories in `smart`/`autopilot`; no placeholder or empty files.
|
|
98
|
+
- **ID allocation without files:** Triage/Prepare/Execute ids are `<work-id>-<phase>` (in-memory labels). Only the Work Report `review-id` is persisted, so it still counts existing files in `docs/plans/.work/.review/`.
|
|
99
|
+
- If the user switches to `detailed` mid-run, write the artifacts produced so far, then continue writing.
|
|
100
|
+
- Because nothing is on disk, **Edit & Retry** reuses the in-memory artifact and its id (no file to overwrite).
|
|
@@ -52,7 +52,7 @@ final-index-state:
|
|
|
52
52
|
uncompleted-rows: [<task-id>, ...] # rows still - [] (blocked/skipped)
|
|
53
53
|
```
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
In `detailed` mode only, also save the Execution Log to `docs/plans/.work/.execute/<execute-id>.md`. In `smart`/`autopilot` mode, do not write it; pass it to the next phase in context.
|
|
56
56
|
|
|
57
57
|
## Validation Rules
|
|
58
58
|
|
|
@@ -55,7 +55,7 @@ policy: # recorded read-only from task-executio
|
|
|
55
55
|
work-state: ready | nothing-ready # echoes the Work Manifest if carried through
|
|
56
56
|
```
|
|
57
57
|
|
|
58
|
-
|
|
58
|
+
In `detailed` mode only, also save the Execution Plan to `docs/plans/.work/.prepare/<prepare-id>.md`. In `smart`/`autopilot` mode, do not write it; pass it to the next phase in context.
|
|
59
59
|
|
|
60
60
|
## Validation Rules
|
|
61
61
|
|
|
@@ -56,7 +56,7 @@ dependency-warning: null | proceeded-without-upstream | expanded-to-upstream #
|
|
|
56
56
|
work-state: ready | nothing-ready # nothing-ready if no task is runnable
|
|
57
57
|
```
|
|
58
58
|
|
|
59
|
-
|
|
59
|
+
In `detailed` mode only, also save the manifest to `docs/plans/.work/.triage/<triage-id>.md` for future reference or reuse. In `smart`/`autopilot` mode, do not write it; pass it to the next phase in context.
|
|
60
60
|
|
|
61
61
|
## Validation Rules
|
|
62
62
|
|