MCPcopy Create free account
hub / github.com/SethGammon/Citadel / verificationPlanFor

Function verificationPlanFor

scripts/next-action.js:155–203  ·  view source on GitHub ↗
(action)

Source from the content-addressed store, hash-verified

153}
154
155function verificationPlanFor(action) {
156 const command = String(action?.command || '').trim();
157 if (command === '/autopilot') {
158 return [
159 'Inspect the generated campaign or brief before implementation starts.',
160 'Run `node scripts/dashboard.js --json` and confirm intake count changed as expected.',
161 'Confirm the resulting campaign has claimed scope, phases, and exit evidence.',
162 ];
163 }
164 if (command === '/do continue') {
165 return [
166 'Run the verification command selected by the campaign or changed subsystem.',
167 'Run `node scripts/dashboard.js --json` and confirm the campaign advanced or produced a new repair.',
168 'Record the changed files, evidence, and remaining next action in the campaign file.',
169 ];
170 }
171 if (command === '/merge-review') {
172 return [
173 'Inspect every queued merge package before accepting a merge order.',
174 'Run the merge-review recommended verification after applying any branch.',
175 'Confirm dashboard merge-review queue count falls or the remaining blocker is documented.',
176 ];
177 }
178 if (isSetupCommand(command)) {
179 return [
180 'Run `node scripts/dashboard.js --json` and confirm `.planning/` exists.',
181 'Confirm generated project guidance paths point at the current project root.',
182 "Run the target project's declared verification command if setup changed project files.",
183 ];
184 }
185 if (command === '/telemetry') {
186 return [
187 'Inspect the actionable hook problems and classify each as fixed, stale, or still blocked.',
188 'Run `node scripts/dashboard.js --json` and confirm actionable problem count is understood.',
189 ];
190 }
191 if (command.startsWith('git status')) {
192 return [
193 'Inspect every changed file and separate current-task work from unrelated user changes.',
194 'Package, commit, or deliberately leave changes in place with a written handoff.',
195 'Run `git status --short` again before starting unrelated work.',
196 ];
197 }
198 return [
199 'Run the command only after confirming scope and expected side effects.',
200 'Run `node scripts/dashboard.js --json` after the action and inspect the next action.',
201 'Record the result in the relevant campaign, review package, or handoff.',
202 ];
203}
204
205function approvalRequestFor(action) {
206 const command = String(action?.command || '').trim();

Callers 1

buildApprovalCapsuleFunction · 0.85

Calls 1

isSetupCommandFunction · 0.85

Tested by

no test coverage detected