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

Function blockerReasons

scripts/stack-plan.js:162–172  ·  view source on GitHub ↗
(report)

Source from the content-addressed store, hash-verified

160}
161
162function blockerReasons(report) {
163 const reasons = [];
164 if (!report.ready) reasons.push(`readiness status is ${report.status}`);
165 if (report.currentHead && report.head && report.currentHead !== report.head) {
166 reasons.push(`readiness head ${report.head} does not match current branch head ${report.currentHead}`);
167 }
168 for (const [gate, result] of Object.entries(report.gates || {})) {
169 if (!result.pass) reasons.push(`${gate} gate failed: ${result.detail}`);
170 }
171 return reasons;
172}
173
174function statusForStack(reports, blocked) {
175 if (reports.length === 0) return 'no-stack';

Callers 2

assessStackFunction · 0.85
test-stack-plan.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected