Commit f27128f
Address #194 Copilot review comments (3)
1. hook: forward reconcile failure detail to stderr. The empty JSON.parse catch
swallowed spawn errors / timeouts / non-zero exits, and rec.stderr was never
forwarded — so the "See stderr for details" pointer was empty. Now track
spawnFailed (rec.error / non-zero status / signal) and a parsed flag, report
on STDERR only on actual failure (clean runs stay quiet — the hook fires on
every Skill use), and forward the child's stderr verbatim where
refresh-alm-plan-data.js already writes its per-phase error detail. Stays
non-blocking (validator's exit code unchanged). + test: malformed plan →
broken reconcile is surfaced AND exit code is unchanged; + quiet-on-success
assertion on the heal test.
2. render-alm-plan.js: COMPLETED_AT is optional, not required. Move it out of the
required-keys list into its own "optional lifecycle key" note — it's present
only once the plan reaches "Completed"; the renderer omits the footer line
otherwise.
3. powerpages-hook-utils.js: isAlmPlanSkill JSDoc said @PARAM {string} but the
function (and its tests) accept non-strings (null/undefined → false). Widen to
{*} and note the contract.
Full suite: 1247 pass. legacy-compat + alm-lint: clean.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 1f5ddd2 commit f27128f
4 files changed
Lines changed: 56 additions & 8 deletions
File tree
- plugins/power-pages
- hooks
- scripts
- lib
- tests
- skills/plan-alm/scripts
Lines changed: 25 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
74 | 79 | | |
75 | 80 | | |
| 81 | + | |
76 | 82 | | |
77 | 83 | | |
78 | 84 | | |
79 | 85 | | |
80 | | - | |
| 86 | + | |
| 87 | + | |
81 | 88 | | |
82 | 89 | | |
83 | 90 | | |
84 | 91 | | |
85 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
86 | 99 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
| 100 | + | |
| 101 | + | |
91 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
92 | 111 | | |
93 | | - | |
| 112 | + | |
94 | 113 | | |
95 | 114 | | |
96 | 115 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
130 | 132 | | |
131 | 133 | | |
132 | 134 | | |
| |||
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
87 | 109 | | |
88 | 110 | | |
89 | 111 | | |
| |||
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
12 | 17 | | |
13 | 18 | | |
14 | 19 | | |
| |||
0 commit comments