fix: align presentation with complete Strategy narrative
Build and publish Eldorado documentation / build (pull_request) Successful in 48s

This commit is contained in:
jarvis-at-skic committed 2026-10-08 19:21:27 +00:00
1 parent eea14bf00f
commit c88f4dbc25
8 files changed
+505 -73

No files matched your search

@@ -0,0 +1,25 @@
// Presentation-sized views of the canonical topology, not a new operating model.
export const phases=['scope','architecture','ui-ux','planning','delivery','uat','security','releases'];
export const labels=['Scope','Architecture','UI/UX','Planning','Delivery','UAT','Security','Releases'];
export const topology={
lifecycle:phases.map((id,i)=>[id,phases[(i+1)%phases.length]]),
governance:phases.map(id=>['agent',id]),
contributions:phases.map(id=>[`code-${id}`,id]),
};
function cycle(portrait){
const key=portrait?'phone':'wide';
const w=portrait?540:1096,h=portrait?540:350;
const xs=portrait?[100,270,440]:[200,548,896],ys=portrait?[65,270,475]:[40,175,310];
const pos=[[xs[1],ys[0]],[xs[2],ys[0]],[xs[2],ys[1]],[xs[2],ys[2]],[xs[1],ys[2]],[xs[0],ys[2]],[xs[0],ys[1]],[xs[0],ys[0]]];
const bw=portrait?154:202,bh=52,cx=xs[1],cy=ys[1],cw=portrait?164:270,ch=portrait?112:94;
const edge=(a,b)=>{const dx=b[0]-a[0],dy=b[1]-a[1],t=Math.min(dx?bw/2/Math.abs(dx):Infinity,dy?bh/2/Math.abs(dy):Infinity);return [a[0]+dx*t,a[1]+dy*t]};
const path=(d,type,from,to)=>`<path d="${d}" class="${type}" data-from="${from}" data-to="${to}" marker-end="url(#${key}-${type})"/>`;
let lines=pos.map((a,i)=>{const b=pos[(i+1)%8],p=edge(a,b),q=edge(b,a);return path(`M${p} L${q}`,'cycle-edge',...topology.lifecycle[i])}).join('');
// Top and bottom share a center exit; side spokes enter the side phases.
lines+=pos.map(([x,y],i)=>{let d;if(y<cy)d=`M${cx},${cy-ch/2} V${(cy-ch/2+y+bh/2)/2} H${x+(x<cx?30:x>cx?-30:0)} V${y+bh/2}`;else if(y>cy)d=`M${cx},${cy+ch/2} V${(cy+ch/2+y-bh/2)/2} H${x+(x<cx?30:x>cx?-30:0)} V${y-bh/2}`;else d=`M${cx+(x>cx?cw/2:-cw/2)},${cy} H${x+(x>cx?-bw/2:bw/2)}`;return path(d,'govern-edge',...topology.governance[i])}).join('');
const nodes=pos.map(([x,y],i)=>`<g data-node="${phases[i]}"><rect x="${x-bw/2}" y="${y-bh/2}" width="${bw}" height="${bh}"/><text x="${x}" y="${y+8}">${labels[i]}</text></g>`).join('');
const center=portrait?['Autonomous','agent','Human-controlled']:['Autonomous agent','Human-controlled'];
return `<svg class="target-cycle ${key}" viewBox="0 0 ${w} ${h}" role="img" aria-label="Intended SDLC: Scope, Architecture, UI/UX, Planning, Delivery, UAT, Security, Releases and back to Scope. One human-controlled autonomous agent executes and governs all eight phases."><defs>${['cycle-edge','govern-edge'].map(t=>`<marker id="${key}-${t}" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="5" markerHeight="5" orient="auto-start-reverse"><path d="M0 0 L10 5 L0 10z" fill="${t==='cycle-edge'?'#14131a':'#936500'}"/></marker>`).join('')}</defs>${lines}${nodes}<g data-node="agent" class="central"><rect x="${cx-cw/2}" y="${cy-ch/2}" width="${cw}" height="${ch}"/>${center.map((t,i)=>`<text x="${cx}" y="${cy-(center.length-1)*14+i*28+8}" class="${i===center.length-1?'control-label':''}">${t}</text>`).join('')}</g></svg>`;
}
export const cycleFigure=cycle(false)+cycle(true);
export const contributionsFigure=`<div class="contribution-grid">${phases.map((id,i)=>`<div data-from="code-${id}" data-to="${id}"><span>AI Agent</span><i aria-label="contributes to">⇢</i><b>${labels[i]}</b></div>`).join('')}</div>`;