arreio 1.0.0-dev.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.
Files changed (81) hide show
  1. package/README.md +81 -0
  2. package/package.json +42 -0
  3. package/scripts/postinstall.js +50 -0
  4. package/skills/arreio-init/SKILL.md +214 -0
  5. package/skills/arreio-init/references/architecture-template.md +85 -0
  6. package/skills/arreio-init/references/learn-index-template.md +15 -0
  7. package/skills/arreio-init/references/plan-index-template.md +29 -0
  8. package/skills/arreio-init/references/tasks-index-template.md +15 -0
  9. package/skills/learn/SKILL.md +151 -0
  10. package/skills/learn/modules/capture.md +108 -0
  11. package/skills/learn/modules/index.md +94 -0
  12. package/skills/learn/modules/maintain.md +116 -0
  13. package/skills/learn/modules/refine.md +104 -0
  14. package/skills/learn/references/dedup-rules.md +129 -0
  15. package/skills/learn/references/entry-schema.md +152 -0
  16. package/skills/learn/references/error-handling.md +178 -0
  17. package/skills/learn/references/id-generation.md +114 -0
  18. package/skills/learn/references/index-format.md +140 -0
  19. package/skills/learn/references/interaction-mode-propagation.md +89 -0
  20. package/skills/learn/references/migration-bootstrap.md +142 -0
  21. package/skills/learn/references/templates/artifacts/captured-entry.md +172 -0
  22. package/skills/learn/references/templates/artifacts/index-update.md +135 -0
  23. package/skills/learn/references/templates/artifacts/learn-input.md +100 -0
  24. package/skills/learn/references/templates/artifacts/maintain-log.md +142 -0
  25. package/skills/learn/references/templates/artifacts/refined-entry.md +168 -0
  26. package/skills/plan/SKILL.md +129 -0
  27. package/skills/plan/modules/design.md +140 -0
  28. package/skills/plan/modules/generate.md +156 -0
  29. package/skills/plan/modules/research.md +122 -0
  30. package/skills/plan/modules/scope.md +121 -0
  31. package/skills/plan/modules/tasks.md +190 -0
  32. package/skills/plan/references/design-complexity-assessment.md +118 -0
  33. package/skills/plan/references/error-handling.md +155 -0
  34. package/skills/plan/references/external-research-guidance.md +61 -0
  35. package/skills/plan/references/high-risk-detection.md +111 -0
  36. package/skills/plan/references/id-generation.md +55 -0
  37. package/skills/plan/references/interaction-mode-propagation.md +75 -0
  38. package/skills/plan/references/learnings-gate-logic.md +93 -0
  39. package/skills/plan/references/plan-tier-selection.md +174 -0
  40. package/skills/plan/references/task-slicing-rules.md +220 -0
  41. package/skills/plan/references/templates/artifacts/design.md +134 -0
  42. package/skills/plan/references/templates/artifacts/final-plan.md +265 -0
  43. package/skills/plan/references/templates/artifacts/research-findings.md +50 -0
  44. package/skills/plan/references/templates/artifacts/scoped-context.md +53 -0
  45. package/skills/plan/references/templates/artifacts/task.md +192 -0
  46. package/skills/plan/references/templates/artifacts/user-input.md +112 -0
  47. package/skills/review/SKILL.md +163 -0
  48. package/skills/review/modules/analyze.md +104 -0
  49. package/skills/review/modules/prepare.md +103 -0
  50. package/skills/review/modules/report.md +109 -0
  51. package/skills/review/modules/scope.md +126 -0
  52. package/skills/review/references/approval-criteria.md +101 -0
  53. package/skills/review/references/change-set-resolution.md +126 -0
  54. package/skills/review/references/error-handling.md +172 -0
  55. package/skills/review/references/id-generation.md +80 -0
  56. package/skills/review/references/interaction-mode-propagation.md +80 -0
  57. package/skills/review/references/review-categories.md +124 -0
  58. package/skills/review/references/scope-creep-detection.md +120 -0
  59. package/skills/review/references/severity-rubric.md +107 -0
  60. package/skills/review/references/templates/artifacts/findings.md +161 -0
  61. package/skills/review/references/templates/artifacts/review-input.md +116 -0
  62. package/skills/review/references/templates/artifacts/review-kit.md +135 -0
  63. package/skills/review/references/templates/artifacts/review-report.md +175 -0
  64. package/skills/review/references/templates/artifacts/review-scope.md +146 -0
  65. package/skills/work/SKILL.md +163 -0
  66. package/skills/work/modules/execute.md +109 -0
  67. package/skills/work/modules/prepare.md +140 -0
  68. package/skills/work/modules/review.md +164 -0
  69. package/skills/work/modules/triage.md +181 -0
  70. package/skills/work/references/ad-hoc-input-resolution.md +122 -0
  71. package/skills/work/references/error-handling.md +183 -0
  72. package/skills/work/references/execution-mode-selection.md +95 -0
  73. package/skills/work/references/id-generation.md +85 -0
  74. package/skills/work/references/interaction-mode-propagation.md +80 -0
  75. package/skills/work/references/review-checklist.md +94 -0
  76. package/skills/work/references/task-execution-rules.md +116 -0
  77. package/skills/work/references/templates/artifacts/execution-log.md +123 -0
  78. package/skills/work/references/templates/artifacts/execution-plan.md +111 -0
  79. package/skills/work/references/templates/artifacts/work-input.md +78 -0
  80. package/skills/work/references/templates/artifacts/work-manifest.md +119 -0
  81. package/skills/work/references/templates/artifacts/work-report.md +143 -0
@@ -0,0 +1,143 @@
1
+ ---
2
+ title: Work Report Artifact
3
+ description: Template for the Work Report produced by the Review phase. Carries the final task-outcome rollup, simplification/consolidation summary, regression check, scope-creep findings, learnings to capture, and work-state; appended to the task index as the closing status block.
4
+ type: template
5
+ version: 1.0
6
+ timestamp: "2026-08-07"
7
+ ---
8
+
9
+ # Work Report Artifact
10
+
11
+ The product of the **Review** phase is the Work Report — the Work skill's final deliverable. It rolls up task outcomes, the simplification/consolidation summary, the regression check, scope-creep findings, learnings to capture (handed to `/learn`), and the final `work-state`. A closing `## Work Report — <review-id>` block is appended to `docs/tasks/<work-id>/index.md`.
12
+
13
+ ## Schema
14
+
15
+ ```yaml
16
+ review-id: YYYY-MM-DD-NNN-review
17
+ execute-id: YYYY-MM-DD-NNN-execute
18
+ prepare-id: YYYY-MM-DD-NNN-prepare
19
+ triage-id: YYYY-MM-DD-NNN-triage
20
+ work-id: YYYY-MM-DD-NNN
21
+ work-branch: work/<short-description> | null # inherited from the Work Manifest
22
+ input-shape: plan-based | task-file | ad-hoc
23
+ interactionMode: detailed | smart | autopilot
24
+ executionMode: inline | serial | parallel
25
+ status: complete
26
+ timestamp: ISO-8601 timestamp
27
+
28
+ task-outcome-rollup:
29
+ total: <N>
30
+ completed: <N>
31
+ for-review: <N>
32
+ blocked: <N>
33
+ skipped: <N>
34
+
35
+ gate-decision: "[summary of gate outcome; e.g., 'Gate passed: clean regression check, no scope creep' OR 'Gate blocked: regressions-found (3 new failures) + scope-creep in 2 files']"
36
+
37
+ simplification-summary: "[what was simplified/clipped across completed tasks' changed files]"
38
+ consolidations: "[shared logic extracted / abstractions introduced, or 'none']"
39
+
40
+ regression-check:
41
+ state: clean | regressions-found
42
+ failing-tests: [test-path or test-id, ...] # present only when state == regressions-found
43
+ baseline-state: green | snapshot-and-continue
44
+
45
+ scope-creep: none | [ { task-id, file, why-exceeds-ac } ]
46
+
47
+ learnings-to-capture:
48
+ - title: "[working title]"
49
+ domain: [primary domain]
50
+ source: { task-id, gate }
51
+ summary: "[1-2 sentence summary]"
52
+ type: confirmed-pattern | refuted-assumption | gotcha | forced-decision
53
+
54
+ learning-gaps:
55
+ - gap_name: "[Domain] — [what's missing]"
56
+ domain: [primary domain]
57
+ suggested_action: "Research external resource" | "Document post-implementation"
58
+
59
+ work-state: for-review | complete | partial | nothing-done
60
+
61
+ index-block-appended: true # the ## Work Report — <review-id> block was appended to docs/tasks/<work-id>/index.md (idempotent on review-id)
62
+ ```
63
+
64
+ Also save the Work Report to `docs/plans/.work/.review/<review-id>.md`.
65
+
66
+ ## Closing Index Block (appended to docs/tasks/<work-id>/index.md)
67
+
68
+ ```markdown
69
+ ## Work Report — <review-id>
70
+
71
+ - **Status:** complete | partial | for-review | nothing-done
72
+ - **Work branch:** work/<short-description> | null
73
+ - **Tasks:** <completed>/<total> completed, <for-review> for-review, <blocked> blocked, <skipped> skipped
74
+ - **Gate decision:** [summary of regression/scope-creep gate outcome]
75
+ - **Regression check:** clean | regressions-found (<N>)
76
+ - **Scope creep:** none | <count> finding(s)
77
+ - **Learnings to capture:** <count> (run `/learn` to persist)
78
+ - **Work Report:** docs/plans/.work/.review/<review-id>.md
79
+ ```
80
+
81
+ The block is **append-only** and **idempotent on `review-id`**: a re-run overwrites the block with the same `review-id`, never duplicates it.
82
+
83
+ ## Validation Rules
84
+
85
+ - **review-id:** Required. Format `YYYY-MM-DD-NNN-review`.
86
+ - **execute-id, prepare-id, triage-id, work-id, work-branch, input-shape:** Required, inherited (cross-phase consistency).
87
+ - **interactionMode, executionMode:** Both required, identical across Prepare/Execute/Review (orchestrator quality gate #2).
88
+ - **task-outcome-rollup:** Required. Matches the Execution Log's aggregator counts. Now includes `for-review` count (new status).
89
+ - **gate-decision:** Required. Brief summary of the gate outcome (e.g., "Gate passed: clean regression check, no scope creep" OR "Gate blocked: regressions-found (3 failures) + scope-creep in 2 files").
90
+ - **simplification-summary, consolidations:** Required (consolidations may be `none`).
91
+ - **regression-check.state:** Required. `clean` or `regressions-found`; `failing-tests` present only when `regressions-found`. **Binary threshold**: any test failure = gate blocks.
92
+ - **scope-creep:** Required. `none` or a list of per-task findings. Any scope-creep = gate blocks.
93
+ - **learnings-to-capture:** Required (may be empty). Each candidate has title/domain/source/summary/type. Work does not write `docs/learn/` directly — these are handed to `/learn`.
94
+ - **learning-gaps:** Required (may be empty). Carries forward the Work Manifest's gaps plus any Review revealed.
95
+ - **work-state:** Required. `for-review` (gate blocked by regressions/scope-creep; tasks await Standalone Review approval) | `complete` (all tasks completed + gate passed) | `partial` (some blocked/skipped, gate passed for non-blocked) | `nothing-done` (empty run or all blocked early).
96
+ - **index-block-appended:** Required, must be `true`.
97
+ - **status:** Required. `complete`.
98
+
99
+ ## Example (partial — one blocked task, regression-clean, scope-creep none)
100
+
101
+ ```yaml
102
+ review-id: 2026-08-07-004-review
103
+ execute-id: 2026-08-07-003-execute
104
+ prepare-id: 2026-08-07-002-prepare
105
+ triage-id: 2026-08-07-001-triage
106
+ work-id: 2026-07-10-001
107
+ work-branch: work/redis-session-store
108
+ input-shape: plan-based
109
+ interactionMode: smart
110
+ executionMode: serial
111
+ status: complete
112
+ timestamp: 2026-08-07T15:45:00Z
113
+ task-outcome-rollup:
114
+ total: 2
115
+ completed: 1
116
+ blocked: 1
117
+ skipped: 0
118
+ simplification-summary: "Extracted shared retry config into src/lib/redis-config.ts (used by T01)."
119
+ consolidations: "src/lib/redis-config.ts (retry pattern shared; DRY)"
120
+ regression-check:
121
+ state: clean
122
+ failing-tests: []
123
+ baseline-state: green
124
+ scope-creep: none
125
+ learnings-to-capture:
126
+ - title: "Redis TTL must be propagated to the SET command, not just the key"
127
+ domain: data-storage
128
+ source: { task-id: 2026-07-10-001-T02a, gate: green }
129
+ summary: "TTL test failed because TTL was set on the key separately; SET ... EX must carry the TTL."
130
+ type: gotcha
131
+ learning-gaps:
132
+ - gap_name: "Redis failover in production — no learning yet"
133
+ domain: infrastructure
134
+ suggested_action: "Document post-implementation"
135
+ work-state: partial
136
+ index-block-appended: true
137
+ ```
138
+
139
+ ## Notes
140
+
141
+ - The Work Report is the primary deliverable of the Work Skill. The Orchestrator marks the workflow complete and may chain to `/learn` when `learnings-to-capture` is non-empty.
142
+ - Task-status coherence is re-verified at Review Step 0 (the `task-outcome-rollup` must match the Execution Log and the task files / index).
143
+ - The closing index block lets a future `/work <work-id>` resume or a glance at `docs/tasks/<work-id>/index.md` show how the run ended without re-reading the Work Report file.