@codyswann/lisa 4.23.25 → 4.23.27
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/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
- package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
- package/dist/core/upstream-evidence-manifest.js +7 -2
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/package.json +3 -3
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-github-sync/SKILL.md +54 -6
- package/plugins/lisa/.codex-plugin/skills/lisa-tracker-sync/SKILL.md +53 -1
- package/plugins/lisa/skills/lisa-github-sync/SKILL.md +54 -6
- package/plugins/lisa/skills/lisa-tracker-sync/SKILL.md +53 -1
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/skills/lisa-github-sync/SKILL.md +54 -6
- package/plugins/lisa-agy/skills/lisa-tracker-sync/SKILL.md +53 -1
- package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-agy/plugin.json +1 -1
- package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/skills/lisa-github-sync/SKILL.md +54 -6
- package/plugins/lisa-copilot/skills/lisa-tracker-sync/SKILL.md +53 -1
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/skills/lisa-github-sync/SKILL.md +54 -6
- package/plugins/lisa-cursor/skills/lisa-tracker-sync/SKILL.md +53 -1
- package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-agy/plugin.json +1 -1
- package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-agy/plugin.json +1 -1
- package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-agy/plugin.json +1 -1
- package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-agy/plugin.json +1 -1
- package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-agy/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-agy/plugin.json +1 -1
- package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-agy/plugin.json +1 -1
- package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/src/base/skills/lisa-github-sync/SKILL.md +54 -6
- package/plugins/src/base/skills/lisa-tracker-sync/SKILL.md +53 -1
package/package.json
CHANGED
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
"zod-validation-error": "^4.0.0"
|
|
162
162
|
},
|
|
163
163
|
"name": "@codyswann/lisa",
|
|
164
|
-
"version": "4.23.
|
|
164
|
+
"version": "4.23.27",
|
|
165
165
|
"description": "Claude Code governance framework that applies guardrails, guidance, and automated enforcement to projects",
|
|
166
166
|
"main": "dist/index.js",
|
|
167
167
|
"exports": {
|
|
@@ -300,6 +300,6 @@
|
|
|
300
300
|
"vite": "^8.0.16"
|
|
301
301
|
},
|
|
302
302
|
"type": "module",
|
|
303
|
-
"lisaReleaseCommit": "
|
|
304
|
-
"gitHead": "
|
|
303
|
+
"lisaReleaseCommit": "ecaa7c6d6b83e8405b4699a5c6512ee995586186",
|
|
304
|
+
"gitHead": "ecaa7c6d6b83e8405b4699a5c6512ee995586186"
|
|
305
305
|
}
|
|
@@ -114,14 +114,62 @@ If the `subIssues` field is unavailable (older GHES), fall back to body parentag
|
|
|
114
114
|
- **Run the shared classifier for every derived rollup state before writing the label or comment**, not only for `status:blocked`. Include the exact rendered state and child tally in the classifier input alongside the resolved child graph, so its fingerprint and `change.summary` deduplicate the complete rollup note for `status:in-progress`, every env-keyed `done`, and `status:blocked` alike:
|
|
115
115
|
|
|
116
116
|
```bash
|
|
117
|
-
|
|
118
|
-
|
|
117
|
+
run_rollup_classifier() {
|
|
118
|
+
local input_path="$1"
|
|
119
|
+
local attempted_paths=""
|
|
120
|
+
local seen_root=""
|
|
121
|
+
local candidate_suffix="scripts/rollup-blocker-classification.mjs"
|
|
122
|
+
local root root_real candidate candidate_real expected_candidate
|
|
123
|
+
local classifier_output
|
|
124
|
+
|
|
125
|
+
for root in "${CLAUDE_PLUGIN_ROOT:-}" "${PLUGIN_ROOT:-}"; do
|
|
126
|
+
[ -n "$root" ] || continue
|
|
127
|
+
[ "$root" != "$seen_root" ] || continue
|
|
128
|
+
seen_root="$root"
|
|
129
|
+
case "$root" in
|
|
130
|
+
/*) ;;
|
|
131
|
+
*) continue ;;
|
|
132
|
+
esac
|
|
133
|
+
case "$root" in
|
|
134
|
+
*/../*|*/..|*/./*|*/.) continue ;;
|
|
135
|
+
esac
|
|
136
|
+
|
|
137
|
+
candidate="${root%/}/$candidate_suffix"
|
|
138
|
+
if [ -z "$attempted_paths" ]; then
|
|
139
|
+
attempted_paths="$candidate"
|
|
140
|
+
else
|
|
141
|
+
attempted_paths="$attempted_paths, $candidate"
|
|
142
|
+
fi
|
|
143
|
+
|
|
144
|
+
root_real="$(realpath "$root" 2>/dev/null)" || continue
|
|
145
|
+
[ -f "$candidate" ] && [ -r "$candidate" ] || continue
|
|
146
|
+
candidate_real="$(realpath "$candidate" 2>/dev/null)" || continue
|
|
147
|
+
expected_candidate="${root_real%/}/$candidate_suffix"
|
|
148
|
+
[ "$candidate_real" = "$expected_candidate" ] || continue
|
|
149
|
+
|
|
150
|
+
if classifier_output="$(
|
|
151
|
+
node "$candidate" --input="$input_path" 2>/dev/null
|
|
152
|
+
)"; then
|
|
153
|
+
printf '%s\n' "$classifier_output"
|
|
154
|
+
return 0
|
|
155
|
+
fi
|
|
156
|
+
|
|
157
|
+
printf 'Rollup classifier failed at trusted path: %.4000s\n' \
|
|
158
|
+
"$candidate" >&2
|
|
159
|
+
return 1
|
|
160
|
+
done
|
|
161
|
+
|
|
162
|
+
printf 'No usable rollup classifier; attempted paths: %.4032s\n' \
|
|
163
|
+
"$attempted_paths" >&2
|
|
164
|
+
return 1
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
if ! CLASSIFIER_REPORT="$(run_rollup_classifier "<graph.json>")"; then
|
|
168
|
+
echo "Rollup classifier failed before any lifecycle or comment write." >&2
|
|
169
|
+
exit 1
|
|
170
|
+
fi
|
|
119
171
|
```
|
|
120
172
|
|
|
121
|
-
The current-directory `plugins/lisa` fallback is for a Lisa checkout where no
|
|
122
|
-
plugin-root variable is injected; it must be tried before declaring the shared
|
|
123
|
-
classifier absent.
|
|
124
|
-
|
|
125
173
|
When the derived state is blocked, its report names, per class, the blocking leaf, the path to it (`#1495 -> #1515 -> #1547`) and **who must act** — that text goes in the rollup comment verbatim. It exits non-zero when it classified nothing (unreadable graph, no children, no readable child): that is a strict **no-write** result. Do not change a label and do not post/update a rollup comment; report the classifier failure to the caller. Never fall through to "no blocked children", infer a class from prose, or apply the `spec_defect` marker from a flow — see `leaf-only-lifecycle` → **Classifying a hold**.
|
|
126
174
|
- **Least-advanced env wins** — the parent reaches an env only when every required child has reached at least that env; it never sits ahead of its laggard child. Native closure (`gh issue close --reason completed`) fires only when the resolved env is the production `status:done`, never at `status:on-dev`/`status:on-stg`.
|
|
127
175
|
- **"Required" children only** — a child labelled won't-do / optional does not hold the parent open; only leaves that must ship count toward the env-rollup check.
|
|
@@ -58,7 +58,59 @@ The state machine (first match wins, evaluated over the **required** leaves only
|
|
|
58
58
|
| else any leaf has **started** (claimed or in review, or shipped while a sibling has not) | active / in-progress | `claimed` (or `review` where supported) |
|
|
59
59
|
| else (leaves exist, none started) | unchanged | — |
|
|
60
60
|
|
|
61
|
-
- **Blocked dominates** — one blocked leaf surfaces blocked on the parent even while others progress. It never says *which* child or *which kind* of hold. Resolve the shared classifier
|
|
61
|
+
- **Blocked dominates** — one blocked leaf surfaces blocked on the parent even while others progress. It never says *which* child or *which kind* of hold. Resolve the shared classifier with the trusted-root ladder below, run it over the resolved child graph, and carry its per-class report — blocking leaf, path, and who must act — into the rollup note. A missing, unusable, or non-zero classifier is a strict **no-write** result: no lifecycle mutation and no rollup comment. Its bounded diagnostic names attempted paths only; it never prints environment values or child payloads. Report the failure, never an all-clear. See `leaf-only-lifecycle` → **Classifying a hold**.
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
run_rollup_classifier() {
|
|
65
|
+
local input_path="$1"
|
|
66
|
+
local attempted_paths=""
|
|
67
|
+
local seen_root=""
|
|
68
|
+
local candidate_suffix="scripts/rollup-blocker-classification.mjs"
|
|
69
|
+
local root root_real candidate candidate_real expected_candidate
|
|
70
|
+
local classifier_output
|
|
71
|
+
|
|
72
|
+
for root in "${CLAUDE_PLUGIN_ROOT:-}" "${PLUGIN_ROOT:-}"; do
|
|
73
|
+
[ -n "$root" ] || continue
|
|
74
|
+
[ "$root" != "$seen_root" ] || continue
|
|
75
|
+
seen_root="$root"
|
|
76
|
+
case "$root" in
|
|
77
|
+
/*) ;;
|
|
78
|
+
*) continue ;;
|
|
79
|
+
esac
|
|
80
|
+
case "$root" in
|
|
81
|
+
*/../*|*/..|*/./*|*/.) continue ;;
|
|
82
|
+
esac
|
|
83
|
+
|
|
84
|
+
candidate="${root%/}/$candidate_suffix"
|
|
85
|
+
if [ -z "$attempted_paths" ]; then
|
|
86
|
+
attempted_paths="$candidate"
|
|
87
|
+
else
|
|
88
|
+
attempted_paths="$attempted_paths, $candidate"
|
|
89
|
+
fi
|
|
90
|
+
|
|
91
|
+
root_real="$(realpath "$root" 2>/dev/null)" || continue
|
|
92
|
+
[ -f "$candidate" ] && [ -r "$candidate" ] || continue
|
|
93
|
+
candidate_real="$(realpath "$candidate" 2>/dev/null)" || continue
|
|
94
|
+
expected_candidate="${root_real%/}/$candidate_suffix"
|
|
95
|
+
[ "$candidate_real" = "$expected_candidate" ] || continue
|
|
96
|
+
|
|
97
|
+
if classifier_output="$(
|
|
98
|
+
node "$candidate" --input="$input_path" 2>/dev/null
|
|
99
|
+
)"; then
|
|
100
|
+
printf '%s\n' "$classifier_output"
|
|
101
|
+
return 0
|
|
102
|
+
fi
|
|
103
|
+
|
|
104
|
+
printf 'Rollup classifier failed at trusted path: %.4000s\n' \
|
|
105
|
+
"$candidate" >&2
|
|
106
|
+
return 1
|
|
107
|
+
done
|
|
108
|
+
|
|
109
|
+
printf 'No usable rollup classifier; attempted paths: %.4032s\n' \
|
|
110
|
+
"$attempted_paths" >&2
|
|
111
|
+
return 1
|
|
112
|
+
}
|
|
113
|
+
```
|
|
62
114
|
- **Least-advanced env wins** — a parent reaches an env only once all required leaves have reached at least that env (all `On Stg` → `On Stg`; mixed dev/staging → the dev value). Native terminal closure fires only at the production `done`, never at an intermediate env.
|
|
63
115
|
- **The parent never carries `ready`** — `ready` is a human "claim this leaf" signal; rollup only moves a parent between non-ready container states.
|
|
64
116
|
- **Rollup is recursive** — an Epic rolls up from its Stories, each of which rolls up from its own leaves. Evaluate bottom-up.
|
|
@@ -114,14 +114,62 @@ If the `subIssues` field is unavailable (older GHES), fall back to body parentag
|
|
|
114
114
|
- **Run the shared classifier for every derived rollup state before writing the label or comment**, not only for `status:blocked`. Include the exact rendered state and child tally in the classifier input alongside the resolved child graph, so its fingerprint and `change.summary` deduplicate the complete rollup note for `status:in-progress`, every env-keyed `done`, and `status:blocked` alike:
|
|
115
115
|
|
|
116
116
|
```bash
|
|
117
|
-
|
|
118
|
-
|
|
117
|
+
run_rollup_classifier() {
|
|
118
|
+
local input_path="$1"
|
|
119
|
+
local attempted_paths=""
|
|
120
|
+
local seen_root=""
|
|
121
|
+
local candidate_suffix="scripts/rollup-blocker-classification.mjs"
|
|
122
|
+
local root root_real candidate candidate_real expected_candidate
|
|
123
|
+
local classifier_output
|
|
124
|
+
|
|
125
|
+
for root in "${CLAUDE_PLUGIN_ROOT:-}" "${PLUGIN_ROOT:-}"; do
|
|
126
|
+
[ -n "$root" ] || continue
|
|
127
|
+
[ "$root" != "$seen_root" ] || continue
|
|
128
|
+
seen_root="$root"
|
|
129
|
+
case "$root" in
|
|
130
|
+
/*) ;;
|
|
131
|
+
*) continue ;;
|
|
132
|
+
esac
|
|
133
|
+
case "$root" in
|
|
134
|
+
*/../*|*/..|*/./*|*/.) continue ;;
|
|
135
|
+
esac
|
|
136
|
+
|
|
137
|
+
candidate="${root%/}/$candidate_suffix"
|
|
138
|
+
if [ -z "$attempted_paths" ]; then
|
|
139
|
+
attempted_paths="$candidate"
|
|
140
|
+
else
|
|
141
|
+
attempted_paths="$attempted_paths, $candidate"
|
|
142
|
+
fi
|
|
143
|
+
|
|
144
|
+
root_real="$(realpath "$root" 2>/dev/null)" || continue
|
|
145
|
+
[ -f "$candidate" ] && [ -r "$candidate" ] || continue
|
|
146
|
+
candidate_real="$(realpath "$candidate" 2>/dev/null)" || continue
|
|
147
|
+
expected_candidate="${root_real%/}/$candidate_suffix"
|
|
148
|
+
[ "$candidate_real" = "$expected_candidate" ] || continue
|
|
149
|
+
|
|
150
|
+
if classifier_output="$(
|
|
151
|
+
node "$candidate" --input="$input_path" 2>/dev/null
|
|
152
|
+
)"; then
|
|
153
|
+
printf '%s\n' "$classifier_output"
|
|
154
|
+
return 0
|
|
155
|
+
fi
|
|
156
|
+
|
|
157
|
+
printf 'Rollup classifier failed at trusted path: %.4000s\n' \
|
|
158
|
+
"$candidate" >&2
|
|
159
|
+
return 1
|
|
160
|
+
done
|
|
161
|
+
|
|
162
|
+
printf 'No usable rollup classifier; attempted paths: %.4032s\n' \
|
|
163
|
+
"$attempted_paths" >&2
|
|
164
|
+
return 1
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
if ! CLASSIFIER_REPORT="$(run_rollup_classifier "<graph.json>")"; then
|
|
168
|
+
echo "Rollup classifier failed before any lifecycle or comment write." >&2
|
|
169
|
+
exit 1
|
|
170
|
+
fi
|
|
119
171
|
```
|
|
120
172
|
|
|
121
|
-
The current-directory `plugins/lisa` fallback is for a Lisa checkout where no
|
|
122
|
-
plugin-root variable is injected; it must be tried before declaring the shared
|
|
123
|
-
classifier absent.
|
|
124
|
-
|
|
125
173
|
When the derived state is blocked, its report names, per class, the blocking leaf, the path to it (`#1495 -> #1515 -> #1547`) and **who must act** — that text goes in the rollup comment verbatim. It exits non-zero when it classified nothing (unreadable graph, no children, no readable child): that is a strict **no-write** result. Do not change a label and do not post/update a rollup comment; report the classifier failure to the caller. Never fall through to "no blocked children", infer a class from prose, or apply the `spec_defect` marker from a flow — see `leaf-only-lifecycle` → **Classifying a hold**.
|
|
126
174
|
- **Least-advanced env wins** — the parent reaches an env only when every required child has reached at least that env; it never sits ahead of its laggard child. Native closure (`gh issue close --reason completed`) fires only when the resolved env is the production `status:done`, never at `status:on-dev`/`status:on-stg`.
|
|
127
175
|
- **"Required" children only** — a child labelled won't-do / optional does not hold the parent open; only leaves that must ship count toward the env-rollup check.
|
|
@@ -58,7 +58,59 @@ The state machine (first match wins, evaluated over the **required** leaves only
|
|
|
58
58
|
| else any leaf has **started** (claimed or in review, or shipped while a sibling has not) | active / in-progress | `claimed` (or `review` where supported) |
|
|
59
59
|
| else (leaves exist, none started) | unchanged | — |
|
|
60
60
|
|
|
61
|
-
- **Blocked dominates** — one blocked leaf surfaces blocked on the parent even while others progress. It never says *which* child or *which kind* of hold. Resolve the shared classifier
|
|
61
|
+
- **Blocked dominates** — one blocked leaf surfaces blocked on the parent even while others progress. It never says *which* child or *which kind* of hold. Resolve the shared classifier with the trusted-root ladder below, run it over the resolved child graph, and carry its per-class report — blocking leaf, path, and who must act — into the rollup note. A missing, unusable, or non-zero classifier is a strict **no-write** result: no lifecycle mutation and no rollup comment. Its bounded diagnostic names attempted paths only; it never prints environment values or child payloads. Report the failure, never an all-clear. See `leaf-only-lifecycle` → **Classifying a hold**.
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
run_rollup_classifier() {
|
|
65
|
+
local input_path="$1"
|
|
66
|
+
local attempted_paths=""
|
|
67
|
+
local seen_root=""
|
|
68
|
+
local candidate_suffix="scripts/rollup-blocker-classification.mjs"
|
|
69
|
+
local root root_real candidate candidate_real expected_candidate
|
|
70
|
+
local classifier_output
|
|
71
|
+
|
|
72
|
+
for root in "${CLAUDE_PLUGIN_ROOT:-}" "${PLUGIN_ROOT:-}"; do
|
|
73
|
+
[ -n "$root" ] || continue
|
|
74
|
+
[ "$root" != "$seen_root" ] || continue
|
|
75
|
+
seen_root="$root"
|
|
76
|
+
case "$root" in
|
|
77
|
+
/*) ;;
|
|
78
|
+
*) continue ;;
|
|
79
|
+
esac
|
|
80
|
+
case "$root" in
|
|
81
|
+
*/../*|*/..|*/./*|*/.) continue ;;
|
|
82
|
+
esac
|
|
83
|
+
|
|
84
|
+
candidate="${root%/}/$candidate_suffix"
|
|
85
|
+
if [ -z "$attempted_paths" ]; then
|
|
86
|
+
attempted_paths="$candidate"
|
|
87
|
+
else
|
|
88
|
+
attempted_paths="$attempted_paths, $candidate"
|
|
89
|
+
fi
|
|
90
|
+
|
|
91
|
+
root_real="$(realpath "$root" 2>/dev/null)" || continue
|
|
92
|
+
[ -f "$candidate" ] && [ -r "$candidate" ] || continue
|
|
93
|
+
candidate_real="$(realpath "$candidate" 2>/dev/null)" || continue
|
|
94
|
+
expected_candidate="${root_real%/}/$candidate_suffix"
|
|
95
|
+
[ "$candidate_real" = "$expected_candidate" ] || continue
|
|
96
|
+
|
|
97
|
+
if classifier_output="$(
|
|
98
|
+
node "$candidate" --input="$input_path" 2>/dev/null
|
|
99
|
+
)"; then
|
|
100
|
+
printf '%s\n' "$classifier_output"
|
|
101
|
+
return 0
|
|
102
|
+
fi
|
|
103
|
+
|
|
104
|
+
printf 'Rollup classifier failed at trusted path: %.4000s\n' \
|
|
105
|
+
"$candidate" >&2
|
|
106
|
+
return 1
|
|
107
|
+
done
|
|
108
|
+
|
|
109
|
+
printf 'No usable rollup classifier; attempted paths: %.4032s\n' \
|
|
110
|
+
"$attempted_paths" >&2
|
|
111
|
+
return 1
|
|
112
|
+
}
|
|
113
|
+
```
|
|
62
114
|
- **Least-advanced env wins** — a parent reaches an env only once all required leaves have reached at least that env (all `On Stg` → `On Stg`; mixed dev/staging → the dev value). Native terminal closure fires only at the production `done`, never at an intermediate env.
|
|
63
115
|
- **The parent never carries `ready`** — `ready` is a human "claim this leaf" signal; rollup only moves a parent between non-ready container states.
|
|
64
116
|
- **Rollup is recursive** — an Epic rolls up from its Stories, each of which rolls up from its own leaves. Evaluate bottom-up.
|
|
@@ -114,14 +114,62 @@ If the `subIssues` field is unavailable (older GHES), fall back to body parentag
|
|
|
114
114
|
- **Run the shared classifier for every derived rollup state before writing the label or comment**, not only for `status:blocked`. Include the exact rendered state and child tally in the classifier input alongside the resolved child graph, so its fingerprint and `change.summary` deduplicate the complete rollup note for `status:in-progress`, every env-keyed `done`, and `status:blocked` alike:
|
|
115
115
|
|
|
116
116
|
```bash
|
|
117
|
-
|
|
118
|
-
|
|
117
|
+
run_rollup_classifier() {
|
|
118
|
+
local input_path="$1"
|
|
119
|
+
local attempted_paths=""
|
|
120
|
+
local seen_root=""
|
|
121
|
+
local candidate_suffix="scripts/rollup-blocker-classification.mjs"
|
|
122
|
+
local root root_real candidate candidate_real expected_candidate
|
|
123
|
+
local classifier_output
|
|
124
|
+
|
|
125
|
+
for root in "${CLAUDE_PLUGIN_ROOT:-}" "${PLUGIN_ROOT:-}"; do
|
|
126
|
+
[ -n "$root" ] || continue
|
|
127
|
+
[ "$root" != "$seen_root" ] || continue
|
|
128
|
+
seen_root="$root"
|
|
129
|
+
case "$root" in
|
|
130
|
+
/*) ;;
|
|
131
|
+
*) continue ;;
|
|
132
|
+
esac
|
|
133
|
+
case "$root" in
|
|
134
|
+
*/../*|*/..|*/./*|*/.) continue ;;
|
|
135
|
+
esac
|
|
136
|
+
|
|
137
|
+
candidate="${root%/}/$candidate_suffix"
|
|
138
|
+
if [ -z "$attempted_paths" ]; then
|
|
139
|
+
attempted_paths="$candidate"
|
|
140
|
+
else
|
|
141
|
+
attempted_paths="$attempted_paths, $candidate"
|
|
142
|
+
fi
|
|
143
|
+
|
|
144
|
+
root_real="$(realpath "$root" 2>/dev/null)" || continue
|
|
145
|
+
[ -f "$candidate" ] && [ -r "$candidate" ] || continue
|
|
146
|
+
candidate_real="$(realpath "$candidate" 2>/dev/null)" || continue
|
|
147
|
+
expected_candidate="${root_real%/}/$candidate_suffix"
|
|
148
|
+
[ "$candidate_real" = "$expected_candidate" ] || continue
|
|
149
|
+
|
|
150
|
+
if classifier_output="$(
|
|
151
|
+
node "$candidate" --input="$input_path" 2>/dev/null
|
|
152
|
+
)"; then
|
|
153
|
+
printf '%s\n' "$classifier_output"
|
|
154
|
+
return 0
|
|
155
|
+
fi
|
|
156
|
+
|
|
157
|
+
printf 'Rollup classifier failed at trusted path: %.4000s\n' \
|
|
158
|
+
"$candidate" >&2
|
|
159
|
+
return 1
|
|
160
|
+
done
|
|
161
|
+
|
|
162
|
+
printf 'No usable rollup classifier; attempted paths: %.4032s\n' \
|
|
163
|
+
"$attempted_paths" >&2
|
|
164
|
+
return 1
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
if ! CLASSIFIER_REPORT="$(run_rollup_classifier "<graph.json>")"; then
|
|
168
|
+
echo "Rollup classifier failed before any lifecycle or comment write." >&2
|
|
169
|
+
exit 1
|
|
170
|
+
fi
|
|
119
171
|
```
|
|
120
172
|
|
|
121
|
-
The current-directory `plugins/lisa` fallback is for a Lisa checkout where no
|
|
122
|
-
plugin-root variable is injected; it must be tried before declaring the shared
|
|
123
|
-
classifier absent.
|
|
124
|
-
|
|
125
173
|
When the derived state is blocked, its report names, per class, the blocking leaf, the path to it (`#1495 -> #1515 -> #1547`) and **who must act** — that text goes in the rollup comment verbatim. It exits non-zero when it classified nothing (unreadable graph, no children, no readable child): that is a strict **no-write** result. Do not change a label and do not post/update a rollup comment; report the classifier failure to the caller. Never fall through to "no blocked children", infer a class from prose, or apply the `spec_defect` marker from a flow — see `leaf-only-lifecycle` → **Classifying a hold**.
|
|
126
174
|
- **Least-advanced env wins** — the parent reaches an env only when every required child has reached at least that env; it never sits ahead of its laggard child. Native closure (`gh issue close --reason completed`) fires only when the resolved env is the production `status:done`, never at `status:on-dev`/`status:on-stg`.
|
|
127
175
|
- **"Required" children only** — a child labelled won't-do / optional does not hold the parent open; only leaves that must ship count toward the env-rollup check.
|
|
@@ -58,7 +58,59 @@ The state machine (first match wins, evaluated over the **required** leaves only
|
|
|
58
58
|
| else any leaf has **started** (claimed or in review, or shipped while a sibling has not) | active / in-progress | `claimed` (or `review` where supported) |
|
|
59
59
|
| else (leaves exist, none started) | unchanged | — |
|
|
60
60
|
|
|
61
|
-
- **Blocked dominates** — one blocked leaf surfaces blocked on the parent even while others progress. It never says *which* child or *which kind* of hold. Resolve the shared classifier
|
|
61
|
+
- **Blocked dominates** — one blocked leaf surfaces blocked on the parent even while others progress. It never says *which* child or *which kind* of hold. Resolve the shared classifier with the trusted-root ladder below, run it over the resolved child graph, and carry its per-class report — blocking leaf, path, and who must act — into the rollup note. A missing, unusable, or non-zero classifier is a strict **no-write** result: no lifecycle mutation and no rollup comment. Its bounded diagnostic names attempted paths only; it never prints environment values or child payloads. Report the failure, never an all-clear. See `leaf-only-lifecycle` → **Classifying a hold**.
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
run_rollup_classifier() {
|
|
65
|
+
local input_path="$1"
|
|
66
|
+
local attempted_paths=""
|
|
67
|
+
local seen_root=""
|
|
68
|
+
local candidate_suffix="scripts/rollup-blocker-classification.mjs"
|
|
69
|
+
local root root_real candidate candidate_real expected_candidate
|
|
70
|
+
local classifier_output
|
|
71
|
+
|
|
72
|
+
for root in "${CLAUDE_PLUGIN_ROOT:-}" "${PLUGIN_ROOT:-}"; do
|
|
73
|
+
[ -n "$root" ] || continue
|
|
74
|
+
[ "$root" != "$seen_root" ] || continue
|
|
75
|
+
seen_root="$root"
|
|
76
|
+
case "$root" in
|
|
77
|
+
/*) ;;
|
|
78
|
+
*) continue ;;
|
|
79
|
+
esac
|
|
80
|
+
case "$root" in
|
|
81
|
+
*/../*|*/..|*/./*|*/.) continue ;;
|
|
82
|
+
esac
|
|
83
|
+
|
|
84
|
+
candidate="${root%/}/$candidate_suffix"
|
|
85
|
+
if [ -z "$attempted_paths" ]; then
|
|
86
|
+
attempted_paths="$candidate"
|
|
87
|
+
else
|
|
88
|
+
attempted_paths="$attempted_paths, $candidate"
|
|
89
|
+
fi
|
|
90
|
+
|
|
91
|
+
root_real="$(realpath "$root" 2>/dev/null)" || continue
|
|
92
|
+
[ -f "$candidate" ] && [ -r "$candidate" ] || continue
|
|
93
|
+
candidate_real="$(realpath "$candidate" 2>/dev/null)" || continue
|
|
94
|
+
expected_candidate="${root_real%/}/$candidate_suffix"
|
|
95
|
+
[ "$candidate_real" = "$expected_candidate" ] || continue
|
|
96
|
+
|
|
97
|
+
if classifier_output="$(
|
|
98
|
+
node "$candidate" --input="$input_path" 2>/dev/null
|
|
99
|
+
)"; then
|
|
100
|
+
printf '%s\n' "$classifier_output"
|
|
101
|
+
return 0
|
|
102
|
+
fi
|
|
103
|
+
|
|
104
|
+
printf 'Rollup classifier failed at trusted path: %.4000s\n' \
|
|
105
|
+
"$candidate" >&2
|
|
106
|
+
return 1
|
|
107
|
+
done
|
|
108
|
+
|
|
109
|
+
printf 'No usable rollup classifier; attempted paths: %.4032s\n' \
|
|
110
|
+
"$attempted_paths" >&2
|
|
111
|
+
return 1
|
|
112
|
+
}
|
|
113
|
+
```
|
|
62
114
|
- **Least-advanced env wins** — a parent reaches an env only once all required leaves have reached at least that env (all `On Stg` → `On Stg`; mixed dev/staging → the dev value). Native terminal closure fires only at the production `done`, never at an intermediate env.
|
|
63
115
|
- **The parent never carries `ready`** — `ready` is a human "claim this leaf" signal; rollup only moves a parent between non-ready container states.
|
|
64
116
|
- **Rollup is recursive** — an Epic rolls up from its Stories, each of which rolls up from its own leaves. Evaluate bottom-up.
|
|
@@ -114,14 +114,62 @@ If the `subIssues` field is unavailable (older GHES), fall back to body parentag
|
|
|
114
114
|
- **Run the shared classifier for every derived rollup state before writing the label or comment**, not only for `status:blocked`. Include the exact rendered state and child tally in the classifier input alongside the resolved child graph, so its fingerprint and `change.summary` deduplicate the complete rollup note for `status:in-progress`, every env-keyed `done`, and `status:blocked` alike:
|
|
115
115
|
|
|
116
116
|
```bash
|
|
117
|
-
|
|
118
|
-
|
|
117
|
+
run_rollup_classifier() {
|
|
118
|
+
local input_path="$1"
|
|
119
|
+
local attempted_paths=""
|
|
120
|
+
local seen_root=""
|
|
121
|
+
local candidate_suffix="scripts/rollup-blocker-classification.mjs"
|
|
122
|
+
local root root_real candidate candidate_real expected_candidate
|
|
123
|
+
local classifier_output
|
|
124
|
+
|
|
125
|
+
for root in "${CLAUDE_PLUGIN_ROOT:-}" "${PLUGIN_ROOT:-}"; do
|
|
126
|
+
[ -n "$root" ] || continue
|
|
127
|
+
[ "$root" != "$seen_root" ] || continue
|
|
128
|
+
seen_root="$root"
|
|
129
|
+
case "$root" in
|
|
130
|
+
/*) ;;
|
|
131
|
+
*) continue ;;
|
|
132
|
+
esac
|
|
133
|
+
case "$root" in
|
|
134
|
+
*/../*|*/..|*/./*|*/.) continue ;;
|
|
135
|
+
esac
|
|
136
|
+
|
|
137
|
+
candidate="${root%/}/$candidate_suffix"
|
|
138
|
+
if [ -z "$attempted_paths" ]; then
|
|
139
|
+
attempted_paths="$candidate"
|
|
140
|
+
else
|
|
141
|
+
attempted_paths="$attempted_paths, $candidate"
|
|
142
|
+
fi
|
|
143
|
+
|
|
144
|
+
root_real="$(realpath "$root" 2>/dev/null)" || continue
|
|
145
|
+
[ -f "$candidate" ] && [ -r "$candidate" ] || continue
|
|
146
|
+
candidate_real="$(realpath "$candidate" 2>/dev/null)" || continue
|
|
147
|
+
expected_candidate="${root_real%/}/$candidate_suffix"
|
|
148
|
+
[ "$candidate_real" = "$expected_candidate" ] || continue
|
|
149
|
+
|
|
150
|
+
if classifier_output="$(
|
|
151
|
+
node "$candidate" --input="$input_path" 2>/dev/null
|
|
152
|
+
)"; then
|
|
153
|
+
printf '%s\n' "$classifier_output"
|
|
154
|
+
return 0
|
|
155
|
+
fi
|
|
156
|
+
|
|
157
|
+
printf 'Rollup classifier failed at trusted path: %.4000s\n' \
|
|
158
|
+
"$candidate" >&2
|
|
159
|
+
return 1
|
|
160
|
+
done
|
|
161
|
+
|
|
162
|
+
printf 'No usable rollup classifier; attempted paths: %.4032s\n' \
|
|
163
|
+
"$attempted_paths" >&2
|
|
164
|
+
return 1
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
if ! CLASSIFIER_REPORT="$(run_rollup_classifier "<graph.json>")"; then
|
|
168
|
+
echo "Rollup classifier failed before any lifecycle or comment write." >&2
|
|
169
|
+
exit 1
|
|
170
|
+
fi
|
|
119
171
|
```
|
|
120
172
|
|
|
121
|
-
The current-directory `plugins/lisa` fallback is for a Lisa checkout where no
|
|
122
|
-
plugin-root variable is injected; it must be tried before declaring the shared
|
|
123
|
-
classifier absent.
|
|
124
|
-
|
|
125
173
|
When the derived state is blocked, its report names, per class, the blocking leaf, the path to it (`#1495 -> #1515 -> #1547`) and **who must act** — that text goes in the rollup comment verbatim. It exits non-zero when it classified nothing (unreadable graph, no children, no readable child): that is a strict **no-write** result. Do not change a label and do not post/update a rollup comment; report the classifier failure to the caller. Never fall through to "no blocked children", infer a class from prose, or apply the `spec_defect` marker from a flow — see `leaf-only-lifecycle` → **Classifying a hold**.
|
|
126
174
|
- **Least-advanced env wins** — the parent reaches an env only when every required child has reached at least that env; it never sits ahead of its laggard child. Native closure (`gh issue close --reason completed`) fires only when the resolved env is the production `status:done`, never at `status:on-dev`/`status:on-stg`.
|
|
127
175
|
- **"Required" children only** — a child labelled won't-do / optional does not hold the parent open; only leaves that must ship count toward the env-rollup check.
|
|
@@ -58,7 +58,59 @@ The state machine (first match wins, evaluated over the **required** leaves only
|
|
|
58
58
|
| else any leaf has **started** (claimed or in review, or shipped while a sibling has not) | active / in-progress | `claimed` (or `review` where supported) |
|
|
59
59
|
| else (leaves exist, none started) | unchanged | — |
|
|
60
60
|
|
|
61
|
-
- **Blocked dominates** — one blocked leaf surfaces blocked on the parent even while others progress. It never says *which* child or *which kind* of hold. Resolve the shared classifier
|
|
61
|
+
- **Blocked dominates** — one blocked leaf surfaces blocked on the parent even while others progress. It never says *which* child or *which kind* of hold. Resolve the shared classifier with the trusted-root ladder below, run it over the resolved child graph, and carry its per-class report — blocking leaf, path, and who must act — into the rollup note. A missing, unusable, or non-zero classifier is a strict **no-write** result: no lifecycle mutation and no rollup comment. Its bounded diagnostic names attempted paths only; it never prints environment values or child payloads. Report the failure, never an all-clear. See `leaf-only-lifecycle` → **Classifying a hold**.
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
run_rollup_classifier() {
|
|
65
|
+
local input_path="$1"
|
|
66
|
+
local attempted_paths=""
|
|
67
|
+
local seen_root=""
|
|
68
|
+
local candidate_suffix="scripts/rollup-blocker-classification.mjs"
|
|
69
|
+
local root root_real candidate candidate_real expected_candidate
|
|
70
|
+
local classifier_output
|
|
71
|
+
|
|
72
|
+
for root in "${CLAUDE_PLUGIN_ROOT:-}" "${PLUGIN_ROOT:-}"; do
|
|
73
|
+
[ -n "$root" ] || continue
|
|
74
|
+
[ "$root" != "$seen_root" ] || continue
|
|
75
|
+
seen_root="$root"
|
|
76
|
+
case "$root" in
|
|
77
|
+
/*) ;;
|
|
78
|
+
*) continue ;;
|
|
79
|
+
esac
|
|
80
|
+
case "$root" in
|
|
81
|
+
*/../*|*/..|*/./*|*/.) continue ;;
|
|
82
|
+
esac
|
|
83
|
+
|
|
84
|
+
candidate="${root%/}/$candidate_suffix"
|
|
85
|
+
if [ -z "$attempted_paths" ]; then
|
|
86
|
+
attempted_paths="$candidate"
|
|
87
|
+
else
|
|
88
|
+
attempted_paths="$attempted_paths, $candidate"
|
|
89
|
+
fi
|
|
90
|
+
|
|
91
|
+
root_real="$(realpath "$root" 2>/dev/null)" || continue
|
|
92
|
+
[ -f "$candidate" ] && [ -r "$candidate" ] || continue
|
|
93
|
+
candidate_real="$(realpath "$candidate" 2>/dev/null)" || continue
|
|
94
|
+
expected_candidate="${root_real%/}/$candidate_suffix"
|
|
95
|
+
[ "$candidate_real" = "$expected_candidate" ] || continue
|
|
96
|
+
|
|
97
|
+
if classifier_output="$(
|
|
98
|
+
node "$candidate" --input="$input_path" 2>/dev/null
|
|
99
|
+
)"; then
|
|
100
|
+
printf '%s\n' "$classifier_output"
|
|
101
|
+
return 0
|
|
102
|
+
fi
|
|
103
|
+
|
|
104
|
+
printf 'Rollup classifier failed at trusted path: %.4000s\n' \
|
|
105
|
+
"$candidate" >&2
|
|
106
|
+
return 1
|
|
107
|
+
done
|
|
108
|
+
|
|
109
|
+
printf 'No usable rollup classifier; attempted paths: %.4032s\n' \
|
|
110
|
+
"$attempted_paths" >&2
|
|
111
|
+
return 1
|
|
112
|
+
}
|
|
113
|
+
```
|
|
62
114
|
- **Least-advanced env wins** — a parent reaches an env only once all required leaves have reached at least that env (all `On Stg` → `On Stg`; mixed dev/staging → the dev value). Native terminal closure fires only at the production `done`, never at an intermediate env.
|
|
63
115
|
- **The parent never carries `ready`** — `ready` is a human "claim this leaf" signal; rollup only moves a parent between non-ready container states.
|
|
64
116
|
- **Rollup is recursive** — an Epic rolls up from its Stories, each of which rolls up from its own leaves. Evaluate bottom-up.
|