In this section
- GlobalGrid2050 — Estate Scan Page render · globalgrid2050 / estate_scan/202609021952/index.html lines 1–255
- Manifest docs-config · globalgrid2050 / feature_requests/000_v2_identity/manifest.yml lines 1–7
- Manifest docs-config · globalgrid2050 / feature_requests/001_extract_v2_css/manifest.yml lines 1–17
- Manifest docs-config · globalgrid2050 / feature_requests/002_extract_v2_config/manifest.yml lines 1–39
- Manifest docs-config · globalgrid2050 / feature_requests/002a_fix_config_load_order/manifest.yml lines 1–21
- Manifest docs-config · globalgrid2050 / feature_requests/003_extract_v2_helpers/manifest.yml lines 1–39
- Manifest docs-config · globalgrid2050 / feature_requests/003a_hide_number_arrows/manifest.yml lines 1–33
- Manifest docs-config · globalgrid2050 / feature_requests/004_extract_v2_state/manifest.yml lines 1–46
- Manifest docs-config · globalgrid2050 / feature_requests/006_add_v2_development_financials/manifest.yml lines 1–167
GlobalGrid2050 — Estate Scan Page
A map page that uses SHA-256. Published at https://globalgrid2050.com/estate_scan/202609021952/. It is built from the esc step (`esc`), the pad step (`pad`) and the rpad step (`rpad`).
renderglobalgrid2050 / estate_scan/202609021952/index.html · lines 1–255 of 255 · version 2026-09-02 19:52 · Entry point
- What it does
- It maps its content. Defines 15 functions or classes, including esc, pad, rpad, num, bars. Side effects: changes the web page (DOM); uses storage (browser storage, DuckDB or Parquet).
- Inputs & outputs
- Out: web page; interactive map.
- Downstream impact
- It is itself an entry point, published at https://globalgrid2050.com/estate_scan/202609021952/.
- What it achieves
- Estate log: measured git, code, CI and HTTP statistics across fifteen repositories. It responds to keydown and click events.
- Why it matters
- No other file in the estate was found to import it; it is an entry point.
- Application
- globalgrid2050 · estate_scan/202609021952 · page
- Uses
- https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&display=swap
- Used by
- none found
- Produces
- esc, pad, rpad, num, bars, secs, ageD, line, kv, T, CT, LT
- Defines here
- esc, pad, rpad, num, bars, secs, ageD, line, kv, T, CT, LT, ORD, all, step
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 estate_scan/202609021952/index.html:1-255 · blob dd333982daeafe37ba619cbd4e798124714c0430 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: output · effects: dom, storage · domain stage: unknown · users: none · canonical: production_core
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="index,follow">
<meta name="description" content="Estate log: measured git, code, CI and HTTP statistics across fifteen repositories.">
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 32 32%27%3E%3Crect width=%2732%27 height=%2732%27 fill=%27%2304060a%27/%3E%3Ctext y=%2723%27 x=%276%27 font-size=%2718%27 fill=%27%2335c9d9%27 font-family=%27monospace%27%3E%3E_%3C/text%3E%3C/svg%3E">
<title>Ventus Estate Log</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&display=swap">
<style>
:root{
color-scheme: dark;
--bg:#04060a;
--ink:#7d8f9c;
--hi:#d7e3ec;
--key:#4a5a66;
--cy:#35c9d9;
--ok:#3fbf5f;
--bad:#e2564d;
--am:#e8a33d;
}
*{box-sizing:border-box}
html,body{background:var(--bg)}
body{
margin:0;
color:var(--ink);
font-family:"IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
font-size:12.5px;
line-height:1.5;
font-variant-ligatures:none;
-webkit-font-smoothing:antialiased;
}
#scan{
padding:26px 20px 64px;
max-width:1180px;
margin:0 auto;
white-space:pre;
overflow-x:auto;
tab-size:2;
}
.k{color:var(--key)}
.v{color:var(--hi)}
.c{color:var(--cy)}
.o{color:var(--ok)}
.b{color:var(--bad)}
.a{color:var(--am)}
.r{color:#2b3742}
.hdr{color:var(--hi)}
#cur{
display:inline-block;width:7px;height:13px;background:var(--cy);
vertical-align:-2px;animation:bl 1.05s steps(2,start) infinite
}
@keyframes bl{50%{opacity:0}}
@media (prefers-reduced-motion: reduce){#cur{animation:none}}
</style>
</head>
<body>
<div id="scan"></div>
<script>
const D = {"generated_utc": "2026-09-02T19:34:14Z", "workers": 20, "elapsed_s": 41.9, "repos": [{"ref": "main", "head_iso": "2026-08-31T15:13:46+01:00", "first_iso": "2026-08-31T00:32:35+01:00", "span_days": 1, "commits": 73, "merges": 0, "per_day": 73.0, "c1": 0, "c7": 73, "c30": 73, "add_total": 498871, "del_total": 2570, "files_touched": 3297, "files_median": 1, "files_max": 3217, "gap_med_h": … [line shortened here: 37,022 characters; full line on GitHub]
/* ---------- formatting ---------- */
const esc = s => String(s).replace(/[&<>]/g, c => ({'&':'&','<':'<','>':'>'}[c]));
const pad = (s,n) => { s = String(s); return s.length >= n ? s : s + ' '.repeat(n - s.length); };
const rpad = (s,n) => { s = String(s); return s.length >= n ? s : ' '.repeat(n - s.length) + s; };
const num = n => (n === undefined || n === null) ? '-' : Number(n).toLocaleString('en-GB');
const BL = ['·','▁','▂','▃','▅','▆','▇','█'];
const bars = arr => { const m = Math.max(1, ...arr);
return arr.map(n => n ? BL[Math.min(7, 1 + Math.floor((n/m)*6))] : BL[0]).join(''); };
const secs = s => s >= 3600 ? (s/3600).toFixed(1)+'h' : s >= 60 ? (s/60).toFixed(1)+'m' : s+'s';
const ageD = iso => ((Date.now() - new Date(iso)) / 864e5).toFixed(1);
const L = []; // {h: html, pause?: n}
const line = (h='', pause=0) => L.push({h, pause});
const kv = (k, v, cls='v') =>
line(' <span class="k">' + pad(k,15) + '</span><span class="' + cls + '">' + v + '</span>');
const RULE = '─'.repeat(96);
/* ---------- header ---------- */
line('<span class="r">' + RULE + '</span>');
kv('scan', D.generated_utc.replace('T',' ').replace('Z','') + ' UTC', 'c');
kv('workers', D.workers);
kv('targets', D.repos.length + ' repositories');
kv('elapsed', D.elapsed_s + ' s');
line('', 260);
/* ---------- per repository ---------- */
let n = 0;
for (const r of D.repos) {
n++;
const idx = String(n).padStart(2,'0') + '/' + D.repos.length;
line('');
line('<span class="r">' + RULE + '</span>');
line('<span class="c">' + idx + '</span>', 150);
line('<span class="r">' + RULE + '</span>');
if (r.error) { kv('error', esc(r.error), 'b'); continue; }
kv('ref', r.ref);
kv('head', r.head_iso.replace('T',' ').slice(0,19));
kv('first', r.first_iso.replace('T',' ').slice(0,19) + ' span ' + r.span_days + ' d');
kv('commits', num(r.commits) + ' merges ' + num(r.merges) + ' per day ' + r.per_day);
kv('recent', '24h ' + num(r.c1) + ' 7d ' + num(r.c7) + ' 30d ' + num(r.c30));
kv('lines', '+' + num(r.add_total) + ' −' + num(r.del_total));
kv('touched', num(r.files_touched) + ' file changes median ' + r.files_median + ' max ' + r.files_max);
kv('interval', 'median ' + r.gap_med_h + ' h longest ' + r.gap_max_h + ' h');
kv('authors', num(r.authors_total));
r.authors.slice(0,5).forEach((a,ai) =>
line(' <span class="k">' + pad('author ' + String(ai+1).padStart(2,'0'), 36) + '</span>' + rpad(num(a.c), 6)));
kv('tree', num(r.tracked_files) + ' files ' + r.tracked_human +
' depth avg ' + r.depth_avg + ' max ' + r.depth_max);
kv('types', r.exts.slice(0,6).map(e => e.e + ' ' + e.n).join(' '), 'k');
r.biggest.slice(0,3).forEach((b,bi) =>
line(' <span class="k">' + pad('object ' + String(bi+1).padStart(2,'0'), 60) + '</span>' + rpad(b.b, 9)));
if (r.loc) {
kv('text', num(r.loc.text_files) + ' files ' + num(r.loc.lines_total) + ' lines');
kv('code', num(r.loc.files_codeish) + ' files ' + num(r.loc.lines_codeish) + ' lines ' +
(100 * r.loc.lines_codeish / Math.max(1, r.loc.lines_total)).toFixed(1) + '% of text');
kv('languages', r.loc.by_lang.slice(0,6).map(x => x.l + ' ' + num(x.n)).join(' '), 'k');
}
kv('branches', num(r.branches) + ' worktrees ' + num(r.worktrees) +
' workflow files ' + num(r.workflow_files));
(r.branch_rows||[]).slice(0,5).forEach((b,bi) =>
line(' <span class="k">' + pad('branch ' + String(bi+1).padStart(2,'0'), 48) + '</span>' + pad(b.d, 13) +
'<span class="' + (Number(b.ahead) ? 'a' : 'k') + '">+' + b.ahead + '</span>'));
const h = r.http || {};
const hc = h.status === 200 ? 'o' : (h.status ? 'b' : 'k');
kv('http', '<span class="' + hc + '">' + (h.status || 'ERR') + '</span> ' +
num(h.bytes || 0) + ' B ' + (h.ms || 0) + ' ms ' + esc(h.last_modified || '-'), 'k');
const c = r.ci || {};
if (c.sampled) {
kv('runs', num(c.sampled) + ' sampled of ' + num(c.total_count) +
' <span class="o">ok ' + c.success + '</span> <span class="' +
(c.failure ? 'b' : 'k') + '">fail ' + c.failure + '</span> cancel ' + c.cancelled);
kv('duration', 'median ' + secs(c.dur_med) + ' max ' + secs(c.dur_max) + ' total ' + secs(c.dur_sum));
kv('events', c.events.map(e => e.e + ' ' + e.n).join(' '), 'k');
kv('window', c.window[0].replace('T',' ').slice(0,16) + ' → ' + c.window[1].replace('T',' ').slice(0,16), 'k');
if (c.deploy_consec_fail)
kv('deploy', '<span class="b">JAMMED ' + c.deploy_consec_fail + ' consecutive</span> last ok ' +
(c.deploy_last_ok || '-').replace('T',' ').slice(0,16), 'k');
c.workflows.slice(0, 10).forEach((w, wi) => {
const st = w.lc === 'success' ? '<span class="o">OK </span>'
: w.lc === 'failure' ? '<span class="b">FAIL</span>'
: '<span class="a">' + pad(String(w.lc || '?').slice(0,4),4) + '</span>';
line(' ' + st + ' <span class="k">' + pad('workflow ' + String(wi+1).padStart(2,'0'), 56) + '</span>' +
rpad(w.t,4) + ' run' + rpad(w.f,5) + ' fail' + rpad(secs(w.med),7) +
' <span class="k">' + w.last.replace('T',' ').slice(0,16) + '</span>');
})
} else {
kv('runs', 'none sampled', 'k');
}
kv('hours', bars(r.hours) + ' 00→23 UTC', 'c');
kv('weekday', bars(r.dow) + ' Mon→Sun', 'c');
kv('30 days', bars(r.days30.map(x => x.n)), 'c');
line('', 120);
}
/* ---------- estate totals ---------- */
const T = k => D.repos.reduce((a,r) => a + (Number(r[k]) || 0), 0);
const CT = k => D.repos.reduce((a,r) => a + (Number(r.ci && r.ci[k]) || 0), 0);
line('');
line('<span class="r">' + RULE + '</span>');
line('<span class="hdr">E S T A T E T O T A L S</span>', 260);
line('<span class="r">' + RULE + '</span>');
kv('commits', num(T('commits')) + ' merges ' + num(T('merges')));
kv('lines', '+' + num(T('add_total')) + ' −' + num(T('del_total')));
kv('file changes', num(T('files_touched')));
kv('tracked', num(T('tracked_files')) + ' files ' +
(T('tracked_bytes')/1073741824).toFixed(2) + ' GB');
kv('branches', num(T('branches')) + ' worktrees ' + num(T('worktrees')));
kv('workflows', num(T('workflow_files')) + ' files ' + num(CT('total_count')) + ' lifetime runs');
kv('sampled', num(CT('sampled')) + ' runs <span class="o">ok ' + CT('success') +
'</span> <span class="b">fail ' + CT('failure') + '</span>');
kv('runner time', secs(CT('dur_sum')));
const LT = k => D.repos.reduce((a,r) => a + (Number(r.loc && r.loc[k]) || 0), 0);
kv('text', num(LT('text_files')) + ' files ' + num(LT('lines_total')) + ' lines');
kv('code', num(LT('files_codeish')) + ' files ' + num(LT('lines_codeish')) + ' lines ' +
(100 * LT('lines_codeish') / Math.max(1, LT('lines_total'))).toFixed(1) + '% of text');
const AG = {}, AF = {};
for (const r of D.repos) for (const x of (r.loc?.by_lang || [])) {
AG[x.l] = (AG[x.l] || 0) + x.n; AF[x.l] = (AF[x.l] || 0) + x.f;
}
line('');
for (const [l, n] of Object.entries(AG).sort((a,b) => b[1]-a[1]).slice(0,14))
line(' <span class="k">' + pad(l, 15) + '</span>' + rpad(num(n), 13) + ' lines' +
rpad(num(AF[l]), 9) + ' files');
const red = D.repos.flatMap(r => (r.ci?.workflows||[]).filter(w => w.lc === 'failure'));
kv('red now', '<span class="b">' + red.length + ' workflows failing</span>', 'k');
const ORD = r => String(D.repos.indexOf(r) + 1).padStart(2,'0');
const jam = D.repos.filter(r => r.ci?.deploy_consec_fail);
kv('jammed', jam.length ? '<span class="b">' + jam.map(r => ORD(r) + ' (' + r.ci.deploy_consec_fail + ')').join(' ') + '</span>' : 'none', 'k');
const p404 = D.repos.filter(r => r.http && r.http.status !== 200);
kv('http !200', p404.length ? '<span class="a">' + p404.map(r => ORD(r) + ' (' + r.http.status + ')').join(' ') + '</span>' : 'none', 'k');
line('', 200);
/* ---------- index ---------- */
line('');
line('<span class="r">' + RULE + '</span>');
line('<span class="hdr">I N D E X</span>');
line('<span class="r">' + RULE + '</span>');
const CW = [['id',6],['cmt',9],['30d',7],['files',9],['size',11],['code',10],['wf',6],['br',6],['ok',6],['fail',7],['runs',9],['http',6]];
line(' <span class="k">' + CW.map(([h,w]) => pad(h,w)).join('') + '</span>');
let IDX = '# estate-index v3 ' + D.generated_utc + '\n';
IDX += '# ' + CW.map(([h,w]) => pad(h,w)).join('') + '\n';
for (const r of D.repos) {
const c = r.ci || {}, h = r.http || {};
const cells = [pad(String(D.repos.indexOf(r)+1).padStart(2,'0'),6), pad(num(r.commits),9),
pad(num(r.c30),7), pad(num(r.tracked_files),9), pad(r.tracked_human||'-',11),
pad(num(r.loc?.lines_codeish),10),
pad(num(r.workflow_files),6), pad(num(r.branches),6), pad(num(c.success),6),
pad(num(c.failure),7), pad(num(c.total_count),9), pad(h.status||'-',6)];
line(' ' + cells.join(''));
IDX += ' ' + cells.join('') + '\n';
}
line('');
line('<span class="k"> EOF ' + D.generated_utc + '</span>');
line('<span id="cur"></span>');
/* ---------- vertical reveal ---------- */
const box = document.getElementById('scan');
const reduced = matchMedia('(prefers-reduced-motion: reduce)').matches;
let i = 0, done = false;
function all(){
if (done) return; done = true;
box.innerHTML = L.map(x => x.h).join('\n');
}
function step(){
if (done) return;
const t0 = performance.now();
let held = 0, chunk = '';
while (i < L.length && performance.now() - t0 < 7) {
chunk += (i ? '\n' : '') + L[i].h;
held = L[i].pause; i++;
if (held) break;
}
box.insertAdjacentHTML('beforeend', chunk);
if (i >= L.length) { done = true; return; }
held ? setTimeout(step, held) : requestAnimationFrame(step);
}
if (reduced) all(); else requestAnimationFrame(step);
addEventListener('keydown', all);
addEventListener('click', all);
</script>
</body>
</html>Manifest
A configuration file in the feature requests folder of GlobalGrid2050.
docs-configglobalgrid2050 / feature_requests/000_v2_identity/manifest.yml · lines 1–7 of 7 · Not reached from any entry point (candidate for review)
- What it achieves
- Confirms the V2 heading is already present.
- Why it matters
- No other file in the estate was found to import it.
- Application
- globalgrid2050 · feature_requests/000_v2_identity · configuration
- Uses
- none found
- Used by
- none found
- Produces
- none declared
- Defines here
- V2 identity check
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 feature_requests/000_v2_identity/manifest.yml:1-7 · blob a8e81d8108c92ace9d7182012f87afd2a4d59e17 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: none found · domain stage: unknown · users: none · canonical: unreached_review
name: V2 identity check
summary: Confirms the V2 heading is already present.
operations:
- type: assert_contains
file: solar-bess-topology-v2/indexforgis-sld-v2.html
text: "GIS SLD Sandbox V2"Manifest
A configuration file in the feature requests folder of GlobalGrid2050 covering solar and battery storage (BESS).
docs-configglobalgrid2050 / feature_requests/001_extract_v2_css/manifest.yml · lines 1–17 of 17 · Not reached from any entry point (candidate for review)
- Why it exists in the grid workflow
- Domain terms in the code: solar, battery storage (BESS).
- What it achieves
- Move inline CSS from the V2 GIS single-line diagram (SLD) Financial Sandbox into an external CSS file and connect it from the HTML head.
- Why it matters
- No other file in the estate was found to import it.
- Application
- globalgrid2050 · feature_requests/001_extract_v2_css · configuration
- Uses
- none found
- Used by
- none found
- Produces
- none declared
- Defines here
- Extract GIS SLD V2 CSS
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 feature_requests/001_extract_v2_css/manifest.yml:1-17 · blob fc2a077d20bef9c0c21224c7e33ed9f77fd1aaee · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: none found · domain stage: unknown · users: none · canonical: unreached_review
name: Extract GIS SLD V2 CSS
description: Move inline CSS from the V2 GIS SLD Financial Sandbox into an external CSS file and connect it from the HTML head.
operations:
- type: regex_replace
file: solar-bess-topology-v2/indexforgis-sld-v2.html
pattern: '<style[^>]*>[\s\S]*?<\/style>'
replace: '<link rel="stylesheet" href="gis-sld-v2.css">'
count: 1
- type: assert_contains
file: solar-bess-topology-v2/indexforgis-sld-v2.html
text: '<link rel="stylesheet"'
- type: assert_contains
file: solar-bess-topology-v2/gis-sld-v2.css
text: ':root'Manifest
A configuration file in the feature requests folder of GlobalGrid2050 covering grid substations, solar and battery storage (BESS).
docs-configglobalgrid2050 / feature_requests/002_extract_v2_config/manifest.yml · lines 1–39 of 39 · Not reached from any entry point (candidate for review)
- Why it exists in the grid workflow
- Domain terms in the code: solar, battery storage (BESS).
- What it achieves
- Moves `SUBSTATIONS_URL` and CONSTANTS into `gis-sld-v2-config.js` and loads it before the inline application script.
- Why it matters
- No other file in the estate was found to import it.
- Application
- globalgrid2050 · feature_requests/002_extract_v2_config · configuration
- Uses
- none found
- Used by
- none found
- Produces
- none declared
- Defines here
- Extract V2 config
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 feature_requests/002_extract_v2_config/manifest.yml:1-39 · blob dc34721b867f49bf23c41c5b6971bfbc8def723f · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: none found · domain stage: unknown · users: none · canonical: unreached_review
name: Extract V2 config
summary: Moves SUBSTATIONS_URL and CONSTANTS into gis-sld-v2-config.js and loads it before the inline application script.
operations:
- type: insert_after
file: solar-bess-topology-v2/indexforgis-sld-v2.html
marker: |
<script src="https://cdn.jsdelivr.net/npm/@turf/turf@6/turf.min.js" defer></script>
insert: |
<script src="gis-sld-v2-config.js" defer></script>
- type: regex_replace
file: solar-bess-topology-v2/indexforgis-sld-v2.html
pattern: |
// ============================================================
// CONFIGURATION
// ============================================================
[\s\S]*?
// ============================================================
// STATE
// ============================================================
replace: |
// ============================================================
// STATE
// ============================================================
flags: ms
- type: assert_contains
file: solar-bess-topology-v2/indexforgis-sld-v2.html
text: 'gis-sld-v2-config.js'
- type: assert_contains
file: solar-bess-topology-v2/gis-sld-v2-config.js
text: 'M2_PER_ACRE: 4046.86'
- type: assert_contains
file: solar-bess-topology-v2/gis-sld-v2-config.js
text: '/grid_substations.geojson'Manifest
A configuration file in the feature requests folder of GlobalGrid2050 covering solar and battery storage (BESS).
docs-configglobalgrid2050 / feature_requests/002a_fix_config_load_order/manifest.yml · lines 1–21 of 21 · Not reached from any entry point (candidate for review)
- Why it exists in the grid workflow
- Domain terms in the code: solar, battery storage (BESS).
- What it achieves
- Removes defer from `gis-sld-v2-config.js` so CONSTANTS is available before the inline application script runs.
- Why it matters
- No other file in the estate was found to import it.
- Application
- globalgrid2050 · feature_requests/002a_fix_config_load_order · configuration
- Uses
- none found
- Used by
- none found
- Produces
- none declared
- Defines here
- Fix V2 config load order
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 feature_requests/002a_fix_config_load_order/manifest.yml:1-21 · blob 3adfa4998fc8513f94c2eae3968c1656b5ea6d11 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: none found · domain stage: unknown · users: none · canonical: unreached_review
name: Fix V2 config load order
summary: Removes defer from gis-sld-v2-config.js so CONSTANTS is available before the inline application script runs.
operations:
- type: replace
file: solar-bess-topology-v2/indexforgis-sld-v2.html
find: '<script src="gis-sld-v2-config.js" defer></script>'
replace: '<script src="gis-sld-v2-config.js"></script>'
count: 1
- type: assert_contains
file: solar-bess-topology-v2/indexforgis-sld-v2.html
text: '<script src="gis-sld-v2-config.js"></script>'
- type: assert_contains
file: solar-bess-topology-v2/gis-sld-v2-config.js
text: 'M2_PER_ACRE: 4046.86'
- type: assert_contains
file: solar-bess-topology-v2/indexforgis-sld-v2.html
text: 'const state = {'Manifest
A configuration file in the feature requests folder of GlobalGrid2050 covering solar and battery storage (BESS).
docs-configglobalgrid2050 / feature_requests/003_extract_v2_helpers/manifest.yml · lines 1–39 of 39 · Not reached from any entry point (candidate for review)
- Why it exists in the grid workflow
- Domain terms in the code: solar, battery storage (BESS).
- What it achieves
- Moves small DOM, formatting, validation and status helpers into `gis-sld-v2-helpers.js`.
- Why it matters
- No other file in the estate was found to import it.
- Application
- globalgrid2050 · feature_requests/003_extract_v2_helpers · configuration
- Uses
- none found
- Used by
- none found
- Produces
- none declared
- Defines here
- Extract V2 helpers
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 feature_requests/003_extract_v2_helpers/manifest.yml:1-39 · blob 1b3306e1bb419072782c03a64007ed8dccf0c477 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: none found · domain stage: unknown · users: none · canonical: unreached_review
name: Extract V2 helpers
summary: Moves small DOM, formatting, validation and status helpers into gis-sld-v2-helpers.js.
operations:
- type: insert_after
file: solar-bess-topology-v2/indexforgis-sld-v2.html
marker: |
<script src="gis-sld-v2-config.js"></script>
insert: |
<script src="gis-sld-v2-helpers.js"></script>
- type: regex_replace
file: solar-bess-topology-v2/indexforgis-sld-v2.html
pattern: |
// ============================================================
// SMALL UTILITIES
// ============================================================
[\s\S]*?
// ============================================================
// MAP
// ============================================================
replace: |
// ============================================================
// MAP
// ============================================================
flags: ms
- type: assert_contains
file: solar-bess-topology-v2/indexforgis-sld-v2.html
text: 'gis-sld-v2-helpers.js'
- type: assert_contains
file: solar-bess-topology-v2/gis-sld-v2-helpers.js
text: 'function money'
- type: assert_contains
file: solar-bess-topology-v2/gis-sld-v2-helpers.js
text: 'function setFetchStatus'Manifest
A configuration file in the feature requests folder of GlobalGrid2050 covering solar and battery storage (BESS).
docs-configglobalgrid2050 / feature_requests/003a_hide_number_arrows/manifest.yml · lines 1–33 of 33 · Not reached from any entry point (candidate for review)
- Why it exists in the grid workflow
- Domain terms in the code: solar, battery storage (BESS).
- What it achieves
- Hides native browser number input spinner arrows in the V2 modular app while preserving typed numeric input.
- Why it matters
- No other file in the estate was found to import it.
- Application
- globalgrid2050 · feature_requests/003a_hide_number_arrows · configuration
- Uses
- none found
- Used by
- none found
- Produces
- none declared
- Defines here
- Hide V2 number input arrows
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 feature_requests/003a_hide_number_arrows/manifest.yml:1-33 · blob 583cd66d3c41538b70c3c945b874e182233fb146 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: none found · domain stage: unknown · users: none · canonical: unreached_review
name: Hide V2 number input arrows
summary: Hides native browser number input spinner arrows in the V2 modular app while preserving typed numeric input.
operations:
- type: insert_after
file: solar-bess-topology-v2/gis-sld-v2.css
marker: |
.input-group input:focus,
.input-group select:focus {
border-color: var(--text);
outline: none;
}
insert: |
/* Hide native number input arrows while preserving numeric typing */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
input[type="number"] {
-moz-appearance: textfield;
appearance: textfield;
}
- type: assert_contains
file: solar-bess-topology-v2/gis-sld-v2.css
text: 'Hide native number input arrows'
- type: assert_contains
file: solar-bess-topology-v2/gis-sld-v2.css
text: '-moz-appearance: textfield'Manifest
A configuration file in the feature requests folder of GlobalGrid2050 covering solar and battery storage (BESS).
docs-configglobalgrid2050 / feature_requests/004_extract_v2_state/manifest.yml · lines 1–46 of 46 · Not reached from any entry point (candidate for review)
- Why it exists in the grid workflow
- Domain terms in the code: solar, battery storage (BESS).
- What it achieves
- Moves the small shared V2 state object into `gis-sld-v2-state.js` without changing app logic.
- Why it matters
- No other file in the estate was found to import it.
- Application
- globalgrid2050 · feature_requests/004_extract_v2_state · configuration
- Uses
- none found
- Used by
- none found
- Produces
- none declared
- Defines here
- Extract V2 state
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 feature_requests/004_extract_v2_state/manifest.yml:1-46 · blob 798eb154fac793f439fadd379b796ccc36c68b38 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: none found · domain stage: unknown · users: none · canonical: unreached_review
name: Extract V2 state
summary: Moves the small shared V2 state object into gis-sld-v2-state.js without changing app logic.
operations:
- type: insert_after
file: solar-bess-topology-v2/indexforgis-sld-v2.html
marker: |
<script src="gis-sld-v2-helpers.js"></script>
insert: |
<script src="gis-sld-v2-state.js"></script>
- type: regex_replace
file: solar-bess-topology-v2/indexforgis-sld-v2.html
pattern: |
// ============================================================
// STATE
// ============================================================
const state = \{
activeTab: "string",
currentGeoJSON: \{ type: "FeatureCollection", features: \[\] \},
activeDrawCenter: null,
selectedSubstation: null,
subsVisible: true,
satActive: false,
activePopup: null,
lastStats: null,
lastFinance: \{ fin_string: null, fin_central: null \}
\};
replace: |
flags: ms
- type: assert_contains
file: solar-bess-topology-v2/indexforgis-sld-v2.html
text: 'gis-sld-v2-state.js'
- type: assert_contains
file: solar-bess-topology-v2/gis-sld-v2-state.js
text: 'const state = {'
- type: assert_contains
file: solar-bess-topology-v2/indexforgis-sld-v2.html
text: '// MAP'Manifest
A configuration file in the feature requests folder of GlobalGrid2050 covering solar and battery storage (BESS).
docs-configglobalgrid2050 / feature_requests/006_add_v2_development_financials/manifest.yml · lines 1–167 of 167 · Not reached from any entry point (candidate for review)
- Why it exists in the grid workflow
- Domain terms in the code: solar, battery storage (BESS).
- Inputs & outputs
- In: form fields (user input).
- What it achieves
- Removes duplicated CAPEX fields, renames the Gate 2 stage, updates the main header to clarify tool purpose, and introduces user-modifiable Operating Asset Net Present Value (NPV) £ per Megawatt peak (MWp) inputs, outputs, and export fields.
- Why it matters
- No other file in the estate was found to import it.
- Application
- globalgrid2050 · feature_requests/006_add_v2_development_financials · configuration
- Uses
- none found
- Used by
- none found
- Produces
- none declared
- Defines here
- Clean Development Financials and Add NPV
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 feature_requests/006_add_v2_development_financials/manifest.yml:1-167 · blob 802aa1b633b1fcdcc0ea9e5ee84753f9cc745dae · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: none found · domain stage: unknown · users: none · canonical: unreached_review
name: Clean Development Financials and Add NPV
summary: Removes duplicated CAPEX fields, renames the Gate 2 stage, updates the main header to clarify tool purpose, and introduces user-modifiable Operating Asset Net Present Value (NPV) £ per Megawatt peak (MWp) inputs, outputs, and export fields.
operations:
- type: replace
file: solar-bess-topology-v2/indexforgis-sld-v2.html
find: '<h2>GIS SLD Sandbox V2</h2>'
replace: '<h2>Solar Photovoltaic (PV) Development, Engineering Procurement Construction (EPC) and Grid Analysis</h2>'
- type: regex_replace
file: solar-bess-topology-v2/indexforgis-sld-v2.html
pattern: |
<div class="input-group"><label>Fixed CAPEX £</label><input type="number" id="fin_string_fixed_capex" value="1500000" step="50000" min="0"></div>[\s\S]{0,500}?<div class="input-group"><label>Contingency %</label><input type="number" id="fin_string_cont" value="7" step="0.5" min="0"></div>[\s\S]{0,500}?<h3>Loss Allowances</h3>
replace: |
<h3>Loss Allowances</h3>
flags: ms
- type: regex_replace
file: solar-bess-topology-v2/indexforgis-sld-v2.html
pattern: |
<div class="input-group"><label>Fixed CAPEX £</label><input type="number" id="fin_central_fixed_capex" value="1500000" step="50000" min="0"></div>[\s\S]{0,500}?<div class="input-group"><label>Contingency %</label><input type="number" id="fin_central_cont" value="7" step="0.5" min="0"></div>[\s\S]{0,500}?<h3>Loss Allowances</h3>
replace: |
<h3>Loss Allowances</h3>
flags: ms
- type: regex_replace
file: solar-bess-topology-v2/indexforgis-sld-v2.html
pattern: |
<option value="70000">Gate 2 Offer Accepted</option>
replace: |
<option value="70000">Grid Connection Terms Reviewed and Agreed</option>
flags: ms
- type: regex_replace
file: solar-bess-topology-v2/indexforgis-sld-v2.html
pattern: |
<option value="80000">Offtake Secured</option>
replace: |
<option value="80000">Buyer or Revenue Agreement Reviewed (PPA / Offtaker)</option>
flags: ms
- type: insert_after
file: solar-bess-topology-v2/indexforgis-sld-v2.html
marker: |
<div class="stat-row"><span>Target Exit Value</span><span class="stat-val" id="fin_string_dev_exit_value">£0</span></div>
insert: |
<div class="stat-row"><span>Operating Asset Net Present Value (NPV)</span><span class="stat-val" id="fin_string_dev_operating_npv">£0</span></div>
- type: insert_after
file: solar-bess-topology-v2/indexforgis-sld-v2.html
marker: |
<div class="stat-row"><span>Target Exit Value</span><span class="stat-val" id="fin_central_dev_exit_value">£0</span></div>
insert: |
<div class="stat-row"><span>Operating Asset Net Present Value (NPV)</span><span class="stat-val" id="fin_central_dev_operating_npv">£0</span></div>
- type: insert_after
file: solar-bess-topology-v2/indexforgis-sld-v2.html
marker: |
<div class="input-group"><label>Target Exit Value £/MWp</label><input type="number" id="fin_string_dev_exit_mwp" value="1350000" step="50000" min="0"></div>
insert: |
<div class="input-group"><label>Operating Asset Net Present Value (NPV) £ per Megawatt peak (MWp)</label><input type="number" id="fin_string_dev_npv_mwp" value="1200000" step="50000" min="0"></div>
- type: insert_after
file: solar-bess-topology-v2/indexforgis-sld-v2.html
marker: |
<div class="input-group"><label>Target Exit Value £/MWp</label><input type="number" id="fin_central_dev_exit_mwp" value="1350000" step="50000" min="0"></div>
insert: |
<div class="input-group"><label>Operating Asset Net Present Value (NPV) £ per Megawatt peak (MWp)</label><input type="number" id="fin_central_dev_npv_mwp" value="1200000" step="50000" min="0"></div>
- type: insert_after
file: solar-bess-topology-v2/indexforgis-sld-v2.html
marker: |
const devExitPerMwp = num(prefix + "_dev_exit_mwp");
insert: |
const devNpvPerMwp = num(prefix + "_dev_npv_mwp");
- type: insert_after
file: solar-bess-topology-v2/indexforgis-sld-v2.html
marker: |
const devExitValue = dc_mwp * devExitPerMwp;
insert: |
const devOperatingNpv = dc_mwp * devNpvPerMwp;
- type: regex_replace
file: solar-bess-topology-v2/indexforgis-sld-v2.html
pattern: |
devStage, devCostPerMw, devModulePerMwp, devEpcPerMw, devOwnerPerMw, devExitPerMwp, devSuccessPct, devYears,
replace: |
devStage, devCostPerMw, devModulePerMwp, devEpcPerMw, devOwnerPerMw, devExitPerMwp, devNpvPerMwp, devSuccessPct, devYears,
flags: ms
- type: regex_replace
file: solar-bess-topology-v2/indexforgis-sld-v2.html
pattern: |
devCapitalAtRisk, devModuleCost, devEpcCost, devOwnerCost, devTotalBuildCost, devExitValue,
replace: |
devCapitalAtRisk, devModuleCost, devEpcCost, devOwnerCost, devTotalBuildCost, devExitValue, devOperatingNpv,
flags: ms
- type: insert_after
file: solar-bess-topology-v2/indexforgis-sld-v2.html
marker: |
setText(prefix + "_dev_exit_value", money(fin.devExitValue));
insert: |
setText(prefix + "_dev_operating_npv", money(fin.devOperatingNpv));
- type: insert_after
file: solar-bess-topology-v2/indexforgis-sld-v2.html
marker: |
if (fin.devEpcPerMw > 850000) w.push("EPC cost is above typical non BESS UK benchmark range.");
insert: |
if (fin.devNpvPerMwp < 900000 && fin.devNpvPerMwp > 0) w.push("Operating asset Net Present Value (NPV) assumption is below current screening range.");
if (fin.devNpvPerMwp > 1400000) w.push("Operating asset Net Present Value (NPV) assumption is above current screening range and may require strong evidence.");
- type: insert_after
file: solar-bess-topology-v2/indexforgis-sld-v2.html
marker: |
fin_development_exit_value_gbp_mwp: fin.devExitPerMwp,
insert: |
fin_development_operating_npv_gbp_mwp: fin.devNpvPerMwp,
- type: insert_after
file: solar-bess-topology-v2/indexforgis-sld-v2.html
marker: |
fin_development_target_exit_value_gbp: Math.round(fin.devExitValue),
insert: |
fin_development_operating_npv_gbp: Math.round(fin.devOperatingNpv),
- type: assert_contains
file: solar-bess-topology-v2/indexforgis-sld-v2.html
text: '<h2>Solar Photovoltaic (PV) Development, Engineering Procurement Construction (EPC) and Grid Analysis</h2>'
- type: assert_contains
file: solar-bess-topology-v2/indexforgis-sld-v2.html
text: 'Grid Connection Terms Reviewed and Agreed'
- type: assert_contains
file: solar-bess-topology-v2/indexforgis-sld-v2.html
text: 'fin_string_dev_npv_mwp'
- type: assert_contains
file: solar-bess-topology-v2/indexforgis-sld-v2.html
text: 'fin_central_dev_npv_mwp'
- type: assert_contains
file: solar-bess-topology-v2/indexforgis-sld-v2.html
text: 'fin_string_dev_operating_npv'
- type: assert_contains
file: solar-bess-topology-v2/indexforgis-sld-v2.html
text: 'fin_central_dev_operating_npv'
- type: assert_contains
file: solar-bess-topology-v2/indexforgis-sld-v2.html
text: 'devOperatingNpv'
- type: assert_contains
file: solar-bess-topology-v2/indexforgis-sld-v2.html
text: 'fin_development_operating_npv_gbp'
- type: assert_contains
file: solar-bess-topology-v2/indexforgis-sld-v2.html
text: 'Operating Asset Net Present Value (NPV) £ per Megawatt peak (MWp)'
- type: assert_contains
file: solar-bess-topology-v2/indexforgis-sld-v2.html
text: 'Buyer or Revenue Agreement Reviewed (PPA / Offtaker)'