GLOBALGRID2050 / EXPLORE CODE

Part of: Explore Code / Electricity markets and data pipelines / pipelinenews / archive/202608261547-pipelinenews/newsv5/modules

PipelineNews — News v7 Page and 10 more files

A web page that reads inputs for news, county and sort projects (units: MW), covering the Renewable Energy Planning Database (REPD) register, solar and battery storage (BESS). Published at https://ventusltd.github.io/pipelinenews/archive/202608261547-pipelinenews/newsv7/.

518 lines of JavaScript and HTML and Shell from pipelinenews, in 11 files. Topic: Electricity markets and data pipelines. Section 988 of 2044.

Cut 2026-12-06T03:07:51+00:00. A copy for reading; the repository at the stated commit is the source.

In the State lines below, domain stage, users and canonical status are rule-based first approximations from code and path evidence (rules explore-agent-rules-v1), not observed facts: the rules.

In this section

  1. Market Pain Vocabulary energy-data · pipelinenews / archive/202608261547-pipelinenews/newsv5/modules/market-pain-vocabulary.mjs lines 1–21
  2. Build Reason Decisions storage · pipelinenews / archive/202608261547-pipelinenews/newsv5/scripts/build-reason-decisions.mjs lines 1–128
  3. Check News v5 test · pipelinenews / archive/202608261547-pipelinenews/newsv5/tests/check_newsv5.mjs lines 1–61
  4. Run News v5 test · pipelinenews / archive/202608261547-pipelinenews/newsv5/tests/run_newsv5.sh lines 1–7
  5. Data Centre Identity transform · pipelinenews / archive/202608261547-pipelinenews/newsv6/modules/data-centre-identity.mjs lines 1–3
  6. Source Policy transform · pipelinenews / archive/202608261547-pipelinenews/newsv6/modules/source-policy.mjs lines 1–3
  7. Build Data Centre Evidence storage · pipelinenews / archive/202608261547-pipelinenews/newsv6/scripts/build-data-centre-evidence.mjs lines 1–25
  8. Check News v6 test · pipelinenews / archive/202608261547-pipelinenews/newsv6/tests/check_newsv6.mjs lines 1–21
  9. Run News v6 test · pipelinenews / archive/202608261547-pipelinenews/newsv6/tests/run_newsv6.sh lines 1–6
  10. PipelineNews — News v7 Page render · pipelinenews / archive/202608261547-pipelinenews/newsv7/index.html lines 1–195
  11. App News v7 ingest · pipelinenews / archive/202608261547-pipelinenews/newsv7/scripts/app-newsv7.js lines 1–48

Market Pain Vocabulary

A JavaScript module in PipelineNews.

energy-datapipelinenews / archive/202608261547-pipelinenews/newsv5/modules/market-pain-vocabulary.mjs · lines 1–21 of 21 · version 2026-08-26 15:47 · Not reached from any entry point (candidate for review)

What it does
It calculates its inputs. Defines buildMarketPainVocabulary.
Why it exists in the grid workflow
Domain stage experimental (path word 'archive'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow.
Downstream impact
Used directly by 1 file: Build Reason Decisions (pipelinenews).
What it achieves
Defines `buildMarketPainVocabulary`.
Why it matters
Imported by Build Reason Decisions.
Application
pipelinenews · archive/202608261547-pipelinenews/newsv5/modules · JavaScript module
Uses
none found
Used by
imported by Build Reason Decisions (import)
Produces
VOCABULARY_VERSION, buildMarketPainVocabulary
Defines here
buildMarketPainVocabulary
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
pipelinenews@45c944c8640a9d7ae65edb51d66032ba204f3f46 archive/202608261547-pipelinenews/newsv5/modules/market-pain-vocabulary.mjs:1-21 · blob cf857b50827e39b6689c65b118972d3a8b548285 · GitHub at these lines
State
achieves: name · context: readme_derived · stage: transform · effects: none found · domain stage: experimental · users: none · canonical: unreached_review
export const VOCABULARY_VERSION = "market-pain-vocabulary.v1";

export function buildMarketPainVocabulary(audit) {
  if (audit.purpose !== "Build a source-grounded search taxonomy, not a prospect or opportunity list.") {
    throw new Error("Theme audit usage contract changed");
  }
  return audit.themes.map((theme) => {
    if (theme.claim_status !== "THEME_ONLY_NOT_OPPORTUNITY" || theme.decision !== "INCLUDE_AS_SEARCH_TAXONOMY") {
      throw new Error(`Unsafe theme evidence: ${theme.theme_evidence_id}`);
    }
    return {
      theme_evidence_id: theme.theme_evidence_id,
      theme: theme.theme,
      search_terms: [...theme.search_terms],
      source_url: theme.episode_url,
      evidence_class: theme.evidence_class,
      claim_status: theme.claim_status,
      permitted_use: "SEARCH_VOCABULARY_ONLY"
    };
  });
}

Build Reason Decisions

A JavaScript module in the scripts folder of PipelineNews that reads material event assertions, organisation role evidence, health context and public sales theme audit, using SHA-256.

storagepipelinenews / archive/202608261547-pipelinenews/newsv5/scripts/build-reason-decisions.mjs · lines 1–128 of 128 · version 2026-08-26 15:47 · Not reached from any entry point (candidate for review) · pattern stableId (shared by 3 files)

What it does
It loads material event assertions, organisation role evidence, health context and public sales theme audit. Defines sha256, stableId. Uses libraries node:crypto, node:fs/promises. Side effects: reads or writes files.
Why it exists in the grid workflow
Domain stage experimental (path word 'archive'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow.
Inputs & outputs
In: JSON file material_event_assertions.json; JSON file organisation_role_evidence.json; JSON file source_health_context.json; JSON file public-source-sales-theme-audit.v1.json; JSON file hostile_reason_cases.v1.json; JSON file release.newsv5.json; JSON file reason_decision_ledger.json; JSON file reasons_browser.json.
What it achieves
It is built from the stable id helper (`stableId`). Its name says it builds reason decisions. Defines `sha256` and `stableId`.
Why it matters
No other file in the estate was found to import it.
Application
pipelinenews · archive/202608261547-pipelinenews/newsv5/scripts · JavaScript module
Uses
Event to Capability Rules (import), Market Pain Vocabulary (import), Evidence Reconciliation (import), Browser Projection (import), node:crypto, node:fs/promises
Used by
none found
Produces
sha256, stableId
Defines here
sha256, stableId
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
pipelinenews@45c944c8640a9d7ae65edb51d66032ba204f3f46 archive/202608261547-pipelinenews/newsv5/scripts/build-reason-decisions.mjs:1-128 · blob 63b39abd7131a3521bedffb0f10801de5506c85a · GitHub at these lines
State
achieves: name · context: readme_derived · stage: output · effects: filesystem · domain stage: experimental · users: none · canonical: unreached_review
import { createHash } from "node:crypto";
import { mkdir, readFile, writeFile } from "node:fs/promises";
import { EVENT_TO_CAPABILITY_RULES, RULE_VERSION, ruleForEvent } from "../modules/event-to-capability-rules.mjs";
import { VOCABULARY_VERSION, buildMarketPainVocabulary } from "../modules/market-pain-vocabulary.mjs";
import { RECONCILER_VERSION, reconcileHostileCase, reconcileReasonEvidence } from "../modules/evidence-reconciliation.mjs";
import { BROWSER_PROJECTION_VERSION, buildBrowserProjection } from "../modules/browser-projection.mjs";

const paths = {
  events: new URL("../../newsv2/data/material_event_assertions.json", import.meta.url),
  roles: new URL("../../newsv3/data/organisation_role_evidence.json", import.meta.url),
  context: new URL("../../newsv4/data/source_health_context.json", import.meta.url),
  themes: new URL("../../reports/public-source-sales-theme-audit.v1.json", import.meta.url),
  hostile: new URL("../fixtures/hostile_reason_cases.v1.json", import.meta.url),
  contract: new URL("../contracts/release.newsv5.json", import.meta.url),
  output: new URL("../data/reason_decision_ledger.json", import.meta.url),
  browser: new URL("../data/reasons_browser.json", import.meta.url),
  manifest: new URL("../data/build_manifest.json", import.meta.url)
};
const expected = {
  events: "329ae3cdbecfaa486bfca435100604aae08e2be14f2732ad2da78ad075304e31",
  roles: "03a258e0b90c1d95e8a8582ff203676651bfc7d5cd33f8652aef17ddfc04da75",
  context: "5aa7f2bef3d99d2cc50c81695da406ccdd3f315c88237ecf0de2c0568deefd0d",
  themes: "4649d6b4b8388e0f3ff816851094568869c267c0ae53d7405d8a477756700552",
  hostile: "964ee981c70c800a7695ef4a4ce75a7167c949fa86d2555b0370030811e42579"
};
const sha256 = (value) => createHash("sha256").update(value).digest("hex");
const stableId = (prefix, value) => `${prefix}-${sha256(value).slice(0, 20).toUpperCase()}`;
const inputKeys = ["events", "roles", "context", "themes", "hostile", "contract"];
const entries = await Promise.all(inputKeys.map(async (key) => [key, await readFile(paths[key])]));
const bytes = Object.fromEntries(entries);
for (const [key, hash] of Object.entries(expected)) if (sha256(bytes[key]) !== hash) throw new Error(`${key} input hash mismatch`);
const events = JSON.parse(bytes.events), roles = JSON.parse(bytes.roles), context = JSON.parse(bytes.context), themes = JSON.parse(bytes.themes), hostile = JSON.parse(bytes.hostile);
const vocabulary = buildMarketPainVocabulary(themes);
const themeById = new Map(vocabulary.map((theme) => [theme.theme_evidence_id, theme]));
const roleByEvent = new Map(roles.transaction_role_decisions.map((row) => [row.event_assertion_id, row]));
const currentContextCount = context.decisions.filter((row) => row.status === "CURRENT").length;

const reasonDecisions = events.assertions.map((event) => {
  const rule = ruleForEvent(event.event_type);
  if (!rule) throw new Error(`Missing event-to-capability rule: ${event.event_type}`);
  const theme = themeById.get(rule.theme_evidence_id);
  const roleDecision = roleByEvent.get(event.assertion_id);
  if (!theme || !roleDecision) throw new Error(`Missing reconciliation input: ${event.assertion_id}`);
  const reconciled = reconcileReasonEvidence({eventVerificationStatus: event.claim.verification_status});
  const reasonId = stableId("PN-REASON", `${event.assertion_id}|${RULE_VERSION}`);
  return {
    reason_decision_id: stableId("PN-REASON-DECISION", `${reasonId}|${RECONCILER_VERSION}`),
    reason_id: reasonId,
    rule_id: `${RULE_VERSION}:${event.event_type}`,
    rule_version: RULE_VERSION,
    source_display_order: event.display_order,
    project_id: event.project_id,
    repd_ref: event.repd_ref,
    event_assertion_id: event.assertion_id,
    transaction_role_decision_id: roleDecision.transaction_role_decision_id,
    capability: rule.capability,
    triggering_evidence_ids: [event.assertion_id, roleDecision.transaction_role_decision_id, theme.theme_evidence_id],
    evidence_classes: [event.claim.evidence_class, roleDecision.claim_class, theme.evidence_class],
    source_urls: [event.claim.article_url, theme.source_url],
    claim_status: "RESEARCH_HYPOTHESIS_EVENT_UNVERIFIED",
    explanation: `The ${event.event_type} headline claim matches the ${rule.capability} research vocabulary, but no direct public record verifies the event.`,
    limitations: [
      "The event is derived from a publisher headline and is not independently verified.",
      "Podcast-derived vocabulary is theme evidence only and does not establish an opportunity or relationship.",
      "No current market-context record exists in NewsV4 and context cannot verify a project event.",
      "No buyer, seller, lender, contractor, supplier, adviser, budget, intent, probability or deal stage is asserted."
    ],
    decision: reconciled.decision,
    decision_code: reconciled.code,
    protections: {
      opportunity_claimed: false,
      relationship_claimed: false,
      transaction_role_claimed: false,
      market_context_used_as_event_proof: false,
      private_sales_workflow_included: false
    }
  };
}).sort((a, b) => a.source_display_order - b.source_display_order || a.reason_decision_id.localeCompare(b.reason_decision_id));

const hostileDecisions = hostile.cases.map((testCase) => ({
  case_id: testCase.case_id,
  expected_decision: testCase.expected_decision,
  ...reconcileHostileCase(testCase.case_id),
  reason: testCase.reason
}));
const decisionValues = ["PUBLISH_REASON_TO_RESEARCH", "HOLD_FOR_VERIFICATION", "REJECT", "ABSTAIN"];
const decisionCounts = Object.fromEntries(decisionValues.map((decision) => [decision, reasonDecisions.filter((row) => row.decision === decision).length]));
const hostileCounts = Object.fromEntries(decisionValues.map((decision) => [decision, hostileDecisions.filter((row) => row.decision === decision).length]));
const product = {
  schema: "pipelinenews.reason-decision-ledger.v1",
  release: "newsv5",
  status: "CANDIDATE",
  generated_at: "2026-08-25T00:00:00Z",
  grain: "one row per NewsV2 event assertion and reason-rule version",
  primary_key: ["reason_decision_id"],
  source_usage: "PUBLIC_EVIDENCE_AND_SEARCH_VOCABULARY_NO_PRIVATE_WORKFLOW",
  module_versions: {rules: RULE_VERSION, vocabulary: VOCABULARY_VERSION, reconciliation: RECONCILER_VERSION, browser_projection: BROWSER_PROJECTION_VERSION},
  counts: {rows: reasonDecisions.length, decisions: decisionCounts, hostile_decisions: hostileCounts, current_context_rows: currentContextCount},
  event_to_capability_rules: EVENT_TO_CAPABILITY_RULES,
  market_pain_vocabulary: vocabulary,
  hostile_negative_decisions: hostileDecisions,
  reason_decisions: reasonDecisions
};
const productBytes = Buffer.from(`${JSON.stringify(product, null, 2)}\n`);
const browser = buildBrowserProjection(product);
const browserBytes = Buffer.from(`${JSON.stringify(browser, null, 2)}\n`);
const modulePaths = [
  "newsv5/modules/event-to-capability-rules.mjs",
  "newsv5/modules/market-pain-vocabulary.mjs",
  "newsv5/modules/evidence-reconciliation.mjs",
  "newsv5/modules/browser-projection.mjs",
  "newsv5/scripts/build-reason-decisions.mjs"
];
const moduleBytes = await Promise.all(modulePaths.map((path) => readFile(new URL(`../../${path}`, import.meta.url))));
const keys = reasonDecisions.map((row) => row.reason_decision_id);
const manifest = {
  schema: "pipelinenews.build-manifest.v1", release: "newsv5", status: "CANDIDATE", built_at: product.generated_at,
  modules: modulePaths.map((path, index) => ({path, sha256: sha256(moduleBytes[index])})),
  inputs: inputKeys.map((key) => ({path: key === "events" ? "newsv2/data/material_event_assertions.json" : key === "roles" ? "newsv3/data/organisation_role_evidence.json" : key === "context" ? "newsv4/data/source_health_context.json" : key === "themes" ? "reports/public-source-sales-theme-audit.v1.json" : key === "hostile" ? "newsv5/fixtures/hostile_reason_cases.v1.json" : "newsv5/contracts/releas  … [line shortened here: 446 characters; full line on GitHub]
  artifacts: [
    {path: "newsv5/data/reason_decision_ledger.json", sha256: sha256(productBytes), bytes: productBytes.byteLength, rows: reasonDecisions.length},
    {path: "newsv5/data/reasons_browser.json", sha256: sha256(browserBytes), bytes: browserBytes.byteLength, rows: browser.count}
  ],
  checks: {reason_decisions: {total_rows: reasonDecisions.length, distinct_declared_keys: new Set(keys).size, duplicate_key_groups: reasonDecisions.length - new Set(keys).size, required_null_key_rows: keys.filter((key) => !key).length}, independent_verifier: "newsv5/tests/check_newsv5.mjs"}
};
await mkdir(new URL("../data/", import.meta.url), {recursive: true});
await Promise.all([writeFile(paths.output, productBytes), writeFile(paths.browser, browserBytes), writeFile(paths.manifest, `${JSON.stringify(manifest, null, 2)}\n`)]);
console.log(`Built NewsV5: ${reasonDecisions.length} decisions; ${browser.count} published reasons`);

Check News v5

A JavaScript module in the tests folder of PipelineNews that tests material event assertions, organisation role evidence, health context and public sales theme audit, using SHA-256.

testpipelinenews / archive/202608261547-pipelinenews/newsv5/tests/check_newsv5.mjs · lines 1–61 of 61 · version 2026-08-26 15:47 · Not reached from any entry point (candidate for review) · pattern visit (shared by 13 files)

What it does
It tests material event assertions, organisation role evidence, health context and public sales theme audit. Defines json, sha256, visit. Uses libraries node:assert/strict, node:crypto, node:fs/promises. Side effects: reads or writes files.
Why it exists in the grid workflow
Domain stage experimental (path word 'archive'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow.
Inputs & outputs
In: JSON file material_event_assertions.json; JSON file organisation_role_evidence.json; JSON file source_health_context.json; JSON file public-source-sales-theme-audit.v1.json; JSON file hostile_reason_cases.v1.json; JSON file release.newsv5.json; JSON file reason_decision_ledger.json; JSON file reasons_browser.json.
What it achieves
Its name says it checks news. Defines `json`, `sha256` and `visit`.
Why it matters
No other file in the estate was found to import it.
Application
pipelinenews · archive/202608261547-pipelinenews/newsv5/tests · JavaScript module
Uses
Evidence Reconciliation (import), node:assert/strict, node:crypto, node:fs/promises
Used by
none found
Produces
json, sha256, visit
Defines here
json, sha256, visit
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
pipelinenews@45c944c8640a9d7ae65edb51d66032ba204f3f46 archive/202608261547-pipelinenews/newsv5/tests/check_newsv5.mjs:1-61 · blob bd59e15185bc7d6908e289aa28bf77382e32aad7 · GitHub at these lines
State
achieves: name · context: readme_derived · stage: ingest · effects: filesystem · domain stage: experimental · users: none · canonical: unreached_review
import assert from "node:assert/strict";
import { createHash } from "node:crypto";
import { readFile } from "node:fs/promises";
import { reconcileReasonEvidence } from "../modules/evidence-reconciliation.mjs";

const paths = {
  events: new URL("../../newsv2/data/material_event_assertions.json", import.meta.url), roles: new URL("../../newsv3/data/organisation_role_evidence.json", import.meta.url), context: new URL("../../newsv4/data/source_health_context.json", import.meta.url), themes: new URL("../../reports/public-source-sales-theme-audit.v1.json", import.meta.url), hostile: new URL("../fixtures/hostile_reason_cases.v  … [line shortened here: 704 characters; full line on GitHub]
};
const bytes = Object.fromEntries(await Promise.all(Object.entries(paths).map(async ([key, path]) => [key, await readFile(path)])));
const json = (key) => JSON.parse(bytes[key]);
const sha256 = (value) => createHash("sha256").update(value).digest("hex");
const contract = json("contract"), product = json("output"), browser = json("browser"), manifest = json("manifest");
for (const source of contract.inputs) {
  const key = Object.entries(paths).find(([, path]) => path.pathname.endsWith(source.path))?.[0];
  assert.ok(key, `contract input path must resolve: ${source.path}`);
  assert.equal(sha256(bytes[key]), source.sha256);
}
assert.equal(product.schema, "pipelinenews.reason-decision-ledger.v1");
assert.equal(product.status, "CANDIDATE");
assert.equal(product.counts.rows, 45);
assert.deepEqual(product.counts.decisions, {PUBLISH_REASON_TO_RESEARCH: 0, HOLD_FOR_VERIFICATION: 45, REJECT: 0, ABSTAIN: 0});
assert.deepEqual(product.counts.hostile_decisions, {PUBLISH_REASON_TO_RESEARCH: 0, HOLD_FOR_VERIFICATION: 2, REJECT: 1, ABSTAIN: 3});
assert.equal(product.counts.current_context_rows, 0);
assert.equal(product.event_to_capability_rules.length, 6);
assert.equal(product.market_pain_vocabulary.length, 6);
assert.ok(product.market_pain_vocabulary.every((row) => row.claim_status === "THEME_ONLY_NOT_OPPORTUNITY" && row.permitted_use === "SEARCH_VOCABULARY_ONLY"));

const keys = product.reason_decisions.map((row) => row.reason_decision_id);
assert.equal(keys.filter((key) => !key).length, 0);
assert.equal(new Set(keys).size, 45);
for (const row of product.reason_decisions) {
  assert.match(row.reason_decision_id, /^PN-REASON-DECISION-[A-F0-9]{20}$/);
  assert.match(row.reason_id, /^PN-REASON-[A-F0-9]{20}$/);
  assert.equal(row.decision, "HOLD_FOR_VERIFICATION");
  assert.equal(row.claim_status, "RESEARCH_HYPOTHESIS_EVENT_UNVERIFIED");
  assert.equal(row.source_urls.length, 2);
  assert.ok(row.source_urls.every((url) => /^https:\/\//.test(url)));
  assert.equal(row.triggering_evidence_ids.length, 3);
  assert.equal(row.limitations.length, 4);
  assert.deepEqual(row.protections, {opportunity_claimed: false, relationship_claimed: false, transaction_role_claimed: false, market_context_used_as_event_proof: false, private_sales_workflow_included: false});
}
assert.equal(product.reason_decisions.find((row) => row.repd_ref === "13599")?.project_id, "GG2050-REPD-13599");
assert.equal(product.reason_decisions.some((row) => row.repd_ref === "13600"), false);
for (const row of product.hostile_negative_decisions) assert.equal(row.decision, row.expected_decision);
assert.deepEqual(reconcileReasonEvidence({eventVerificationStatus: "DIRECT_PUBLIC_RECORD_VERIFIED"}), {decision: "PUBLISH_REASON_TO_RESEARCH", code: "DIRECT_EVENT_EVIDENCE_PRESENT"});
assert.equal(reconcileReasonEvidence({eventVerificationStatus: "HEADLINE_DERIVED_UNVERIFIED"}).decision, "HOLD_FOR_VERIFICATION");
assert.equal(reconcileReasonEvidence({podcastOnly: true, directProjectRecord: false}).decision, "ABSTAIN");
assert.equal(reconcileReasonEvidence({identityConflict: true}).decision, "REJECT");
assert.equal(browser.count, 0);
assert.deepEqual(browser.reasons, []);

const forbidden = new Set(["contact", "contact_details", "budget", "spend", "purchase_intent", "probability", "deal_stage", "relationship_state", "opportunity_score"]);
const visit = (value) => {
  if (Array.isArray(value)) return value.forEach(visit);
  if (value && typeof value === "object") for (const [key, child] of Object.entries(value)) { assert.equal(forbidden.has(key), false, `forbidden public field: ${key}`); visit(child); }
};
visit(product); visit(browser);
assert.equal(manifest.artifacts[0].sha256, sha256(bytes.output));
assert.equal(manifest.artifacts[1].sha256, sha256(bytes.browser));
assert.deepEqual(manifest.checks.reason_decisions, {total_rows: 45, distinct_declared_keys: 45, duplicate_key_groups: 0, required_null_key_rows: 0});
console.log("PASS NewsV5: 45 transparent HOLD decisions; 0 public reasons; 6 hostile negatives enforced");

Run News v5

A shell script in the tests folder of PipelineNews.

testpipelinenews / archive/202608261547-pipelinenews/newsv5/tests/run_newsv5.sh · lines 1–7 of 7 · version 2026-08-26 15:47 · Entry point

What it does
It tests its inputs. Side effects: starts processes.
Why it exists in the grid workflow
Domain stage experimental (path word 'archive'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow.
Downstream impact
It is itself an entry point (shell script); no other file was found loading it.
What it achieves
No statement of purpose was found in the file, a README line naming it, or its name.
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
pipelinenews · archive/202608261547-pipelinenews/newsv5/tests · shell script
Uses
none found
Used by
none found
Produces
none declared
Defines here
none
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
pipelinenews@45c944c8640a9d7ae65edb51d66032ba204f3f46 archive/202608261547-pipelinenews/newsv5/tests/run_newsv5.sh:1-7 · blob ec480d0b06af855c93884cf4407a371d07a119ca · GitHub at these lines
State
achieves: name · context: readme_derived · stage: unknown · effects: process · domain stage: experimental · users: none · canonical: production_core
#!/usr/bin/env bash
set -euo pipefail

newsv5_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
node "$newsv5_dir/scripts/build-reason-decisions.mjs"
node "$newsv5_dir/tests/check_newsv5.mjs"
bash "$newsv5_dir/../newsv4/tests/run_newsv4.sh"

Data Centre Identity

A JavaScript module in PipelineNews that works with link decision (`linkDecision`) and hostile decision (`hostileDecision`). It is built from the link decision helper (`linkDecision`) and the hostile decision helper (`hostileDecision`).

transformpipelinenews / archive/202608261547-pipelinenews/newsv6/modules/data-centre-identity.mjs · lines 1–3 of 3 · version 2026-08-26 15:47 · Not reached from any entry point (candidate for review)

What it does
It calculates its inputs. Defines linkDecision, hostileDecision.
Why it exists in the grid workflow
Domain stage experimental (path word 'archive'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow.
Downstream impact
Used directly by 2 files: Build Data Centre Evidence (pipelinenews); Check News v6 (pipelinenews).
What it achieves
Defines `linkDecision` and `hostileDecision`.
Why it matters
Imported by Build Data Centre Evidence. Checked by Check News v6.
Application
pipelinenews · archive/202608261547-pipelinenews/newsv6/modules · JavaScript module
Uses
none found
Used by
imported by Build Data Centre Evidence (import), imported by Check News v6 (import)
Produces
IDENTITY_RULE_VERSION, linkDecision, hostileDecision
Defines here
linkDecision, hostileDecision
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
pipelinenews@45c944c8640a9d7ae65edb51d66032ba204f3f46 archive/202608261547-pipelinenews/newsv6/modules/data-centre-identity.mjs:1-3 · blob 1f2cb5913d68209993b64913e74965a0ed4e0b86 · GitHub at these lines
State
achieves: name · context: readme_derived · stage: transform · effects: none found · domain stage: experimental · users: none · canonical: unreached_review
export const IDENTITY_RULE_VERSION = "PN-DC-IDENTITY-V1";
export const linkDecision = ({exactSharedSourceObject = false, atlasIdentityLost = false} = {}) => exactSharedSourceObject && !atlasIdentityLost ? "LINK_EXACT_SOURCE_OBJECT" : "ABSTAIN_INSUFFICIENT_IDENTITY_EVIDENCE";
export const hostileDecision = (caseId) => caseId === "CAPACITY_NUMBER_WITHOUT_TYPE" ? "ABSTAIN_UNTYPED_CAPACITY" : caseId === "OUTBOUND_DIRECTORY_IDENTITY" ? "ABSTAIN_SOURCE_NOT_ADMISSIBLE" : "ABSTAIN_INSUFFICIENT_IDENTITY_EVIDENCE";

Source Policy

A JavaScript module in PipelineNews. It is built from the allowed for observation helper (`allowedForObservation`) and the allowed for identity link helper (`allowedForIdentityLink`).

transformpipelinenews / archive/202608261547-pipelinenews/newsv6/modules/source-policy.mjs · lines 1–3 of 3 · version 2026-08-26 15:47 · Not reached from any entry point (candidate for review)

What it does
It calculates its inputs. Defines allowedForObservation, allowedForIdentityLink.
Why it exists in the grid workflow
Domain stage experimental (path word 'archive'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow.
Downstream impact
Used directly by 1 file: Build Data Centre Evidence (pipelinenews).
What it achieves
Defines `allowedForObservation` and `allowedForIdentityLink`.
Why it matters
Imported by Build Data Centre Evidence.
Application
pipelinenews · archive/202608261547-pipelinenews/newsv6/modules · JavaScript module
Uses
none found
Used by
imported by Build Data Centre Evidence (import)
Produces
SOURCE_POLICY_VERSION, allowedForObservation, allowedForIdentityLink
Defines here
allowedForObservation, allowedForIdentityLink
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
pipelinenews@45c944c8640a9d7ae65edb51d66032ba204f3f46 archive/202608261547-pipelinenews/newsv6/modules/source-policy.mjs:1-3 · blob 342e04e59274916b549af6697d1c7974d88108ca · GitHub at these lines
State
achieves: name · context: readme_derived · stage: transform · effects: none found · domain stage: experimental · users: none · canonical: unreached_review
export const SOURCE_POLICY_VERSION = "PN-DC-SOURCE-POLICY-V1";
export const allowedForObservation = (source) => ["STRUCTURED_DISCOVERY", "DIRECT_COMPANY_RECORD"].includes(source.evidence_class);
export const allowedForIdentityLink = (source) => source.identity_authority === "SOURCE_OBJECT_ONLY" && source.evidence_class !== "DISCOVERY_ONLY_IDENTITY_LOSS";

Build Data Centre Evidence

A JavaScript module in the scripts folder of PipelineNews that reads centre sources and release newsv6, using SHA-256.

storagepipelinenews / archive/202608261547-pipelinenews/newsv6/scripts/build-data-centre-evidence.mjs · lines 1–25 of 25 · version 2026-08-26 15:47 · Not reached from any entry point (candidate for review)

What it does
It loads centre sources and release newsv6. Defines sha256. Uses libraries node:crypto, node:fs/promises. Side effects: reads or writes files.
Why it exists in the grid workflow
Domain stage experimental (path word 'archive'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow.
Inputs & outputs
In: JSON file data_centre_sources.v1.json; JSON file release.newsv6.json; JSON file data_centre_evidence.json; JSON file build_manifest.json.
What it achieves
Its name says it builds data centre evidence. Defines `sha256`.
Why it matters
No other file in the estate was found to import it.
Application
pipelinenews · archive/202608261547-pipelinenews/newsv6/scripts · JavaScript module
Uses
Source Policy (import), Data Centre Identity (import), node:crypto, node:fs/promises
Used by
none found
Produces
sha256
Defines here
sha256
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
pipelinenews@45c944c8640a9d7ae65edb51d66032ba204f3f46 archive/202608261547-pipelinenews/newsv6/scripts/build-data-centre-evidence.mjs:1-25 · blob 57f377efb06d26f589264d8abfca361fde2baffd · GitHub at these lines
State
achieves: name · context: readme_derived · stage: output · effects: filesystem · domain stage: experimental · users: none · canonical: unreached_review
import {createHash} from "node:crypto";
import {mkdir, readFile, writeFile} from "node:fs/promises";
import {SOURCE_POLICY_VERSION, allowedForObservation} from "../modules/source-policy.mjs";
import {IDENTITY_RULE_VERSION, hostileDecision} from "../modules/data-centre-identity.mjs";
const fixturePath = new URL("../fixtures/data_centre_sources.v1.json", import.meta.url);
const contractPath = new URL("../contracts/release.newsv6.json", import.meta.url);
const outputPath = new URL("../data/data_centre_evidence.json", import.meta.url);
const manifestPath = new URL("../data/build_manifest.json", import.meta.url);
const fixtureBytes = await readFile(fixturePath);
const contractBytes = await readFile(contractPath);
const fixture = JSON.parse(fixtureBytes);
const contract = JSON.parse(contractBytes);
const sha256 = (value) => createHash("sha256").update(value).digest("hex");
if (contract.inputs[0].sha256 !== sha256(fixtureBytes)) throw new Error("fixture input hash mismatch");
const sourceById = new Map(fixture.sources.map((row) => [row.source_id, row]));
for (const observation of fixture.observations) if (!allowedForObservation(sourceById.get(observation.source_id))) throw new Error(`inadmissible observation source: ${observation.source_id}`);
const hostileDecisions = fixture.hostile_cases.map((row) => ({...row, decision: hostileDecision(row.case_id)}));
const product = {schema:"pipelinenews.data-centre-evidence.v1",release:"newsv6",status:"CANDIDATE",generated_at:fixture.pinned_at,grains:{sources:"one row per pinned source/licence record",observations:"one row per exact source observation",link_decisions:"one row per proposed cross-source identity link"},primary_keys:{sources:["source_id"],observations:["evidence_id"],link_decisions:["link_decisi  … [line shortened here: 872 characters; full line on GitHub]
const productBytes = Buffer.from(`${JSON.stringify(product,null,2)}\n`);
const modulePaths = ["newsv6/modules/source-policy.mjs","newsv6/modules/data-centre-identity.mjs","newsv6/scripts/build-data-centre-evidence.mjs"];
const moduleBytes = await Promise.all(modulePaths.map((p)=>readFile(new URL(`../../${p}`,import.meta.url))));
const manifest = {schema:"pipelinenews.build-manifest.v1",release:"newsv6",status:"CANDIDATE",built_at:fixture.pinned_at,inputs:[{path:"newsv6/fixtures/data_centre_sources.v1.json",sha256:sha256(fixtureBytes)},{path:"newsv6/contracts/release.newsv6.json",sha256:sha256(contractBytes)}],modules:modulePaths.map((path,i)=>({path,sha256:sha256(moduleBytes[i])})),artifacts:[{path:"newsv6/data/data_centr  … [line shortened here: 1,028 characters; full line on GitHub]
await mkdir(new URL("../data/",import.meta.url),{recursive:true});
await Promise.all([writeFile(outputPath,productBytes),writeFile(manifestPath,`${JSON.stringify(manifest,null,2)}\n`)]);
console.log(`Built NewsV6: ${product.counts.sources} sources; ${product.counts.observations} observations; ${product.counts.linked} links`);

Check News v6

A JavaScript module in the tests folder of PipelineNews that tests centre sources, release newsv6 and centre evidence, using SHA-256.

testpipelinenews / archive/202608261547-pipelinenews/newsv6/tests/check_newsv6.mjs · lines 1–21 of 21 · version 2026-08-26 15:47 · Not reached from any entry point (candidate for review)

What it does
It tests centre sources, release newsv6 and centre evidence. Defines read. Uses libraries node:assert/strict, node:crypto, node:fs/promises. Side effects: reads or writes files.
Why it exists in the grid workflow
Domain stage experimental (path word 'archive'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow.
Inputs & outputs
In: JSON file data_centre_sources.v1.json; JSON file release.newsv6.json; JSON file data_centre_evidence.json; JSON file build_manifest.json.
What it achieves
Its name says it checks news. Defines `read`. It reads `../fixtures/data_centre_sources.v1.json`.
Why it matters
No other file in the estate was found to import it.
Application
pipelinenews · archive/202608261547-pipelinenews/newsv6/tests · JavaScript module
Uses
Data Centre Identity (import), node:assert/strict, node:crypto, node:fs/promises
Used by
none found
Produces
read
Defines here
read
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
pipelinenews@45c944c8640a9d7ae65edb51d66032ba204f3f46 archive/202608261547-pipelinenews/newsv6/tests/check_newsv6.mjs:1-21 · blob c89ee44251fda6781a2317def89191460490c480 · GitHub at these lines
State
achieves: name · context: readme_derived · stage: ingest · effects: filesystem · domain stage: experimental · users: none · canonical: unreached_review
import assert from "node:assert/strict";
import {createHash} from "node:crypto";
import {readFile} from "node:fs/promises";
import {linkDecision, hostileDecision} from "../modules/data-centre-identity.mjs";
const read = async (p) => readFile(new URL(p,import.meta.url));
const [fixtureBytes,contractBytes,productBytes,manifestBytes] = await Promise.all([read("../fixtures/data_centre_sources.v1.json"),read("../contracts/release.newsv6.json"),read("../data/data_centre_evidence.json"),read("../data/build_manifest.json")]);
const product=JSON.parse(productBytes), manifest=JSON.parse(manifestBytes), sha256=(v)=>createHash("sha256").update(v).digest("hex");
const contract=JSON.parse(contractBytes); assert.equal(contract.inputs[0].sha256,sha256(fixtureBytes));
assert.equal(product.schema,"pipelinenews.data-centre-evidence.v1"); assert.equal(product.status,"CANDIDATE");
assert.deepEqual(product.counts,{sources:6,observations:2,link_decisions:2,linked:0,hostile_cases:5});
for (const [rows,key] of [[product.sources,"source_id"],[product.observations,"evidence_id"],[product.link_decisions,"link_decision_id"]]) {assert.ok(rows.every(x=>x[key]?.startsWith("PN-DC-"))); assert.equal(new Set(rows.map(x=>x[key])).size,rows.length);}
assert.ok(product.link_decisions.every(x=>x.decision==="ABSTAIN_INSUFFICIENT_IDENTITY_EVIDENCE"));
assert.equal(product.sources.find(x=>x.source_id.endsWith("ATLAS-V8")).identity_authority,"NONE_OSM_TYPE_AND_ID_DROPPED");
assert.equal(product.observations.find(x=>x.osm_id===86528807).osm_type,"way");
for (const row of product.observations) for (const key of ["it_load_mw","requested_grid_capacity_mw","contracted_grid_capacity_mw","operational_capacity_mw"]) assert.equal(row[key],null);
assert.ok(product.sources.filter(x=>["OUTBOUND_LINK_ONLY"].includes(x.licence)).every(x=>x.identity_authority==="NONE"));
assert.equal(linkDecision({exactSharedSourceObject:false,atlasIdentityLost:true}),"ABSTAIN_INSUFFICIENT_IDENTITY_EVIDENCE");
for (const row of product.hostile_decisions) assert.equal(row.decision,hostileDecision(row.case_id));
assert.equal(manifest.inputs[0].sha256,sha256(fixtureBytes)); assert.equal(manifest.artifacts[0].sha256,sha256(productBytes));
assert.equal(JSON.stringify(product).includes("GG2050-REPD-"),false);
console.log("PASS NewsV6: 6 sources; 2 exact observations; 0 identity links; 5 hostile abstentions enforced");

Run News v6

A shell script in the tests folder of PipelineNews.

testpipelinenews / archive/202608261547-pipelinenews/newsv6/tests/run_newsv6.sh · lines 1–6 of 6 · version 2026-08-26 15:47 · Entry point

What it does
It tests its inputs. Side effects: starts processes.
Why it exists in the grid workflow
Domain stage experimental (path word 'archive'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow.
Downstream impact
It is itself an entry point (shell script); no other file was found loading it.
What it achieves
No statement of purpose was found in the file, a README line naming it, or its name.
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
pipelinenews · archive/202608261547-pipelinenews/newsv6/tests · shell script
Uses
none found
Used by
none found
Produces
none declared
Defines here
none
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
pipelinenews@45c944c8640a9d7ae65edb51d66032ba204f3f46 archive/202608261547-pipelinenews/newsv6/tests/run_newsv6.sh:1-6 · blob f9759498ac6644a7480fb300b00b1ca25f378631 · GitHub at these lines
State
achieves: name · context: readme_derived · stage: unknown · effects: process · domain stage: experimental · users: none · canonical: production_core
#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")/../.."
node newsv6/scripts/build-data-centre-evidence.mjs
node newsv6/tests/check_newsv6.mjs
bash newsv5/tests/run_newsv5.sh

PipelineNews — News v7 Page

A web page that reads inputs for news, county and sort projects (units: MW), covering the Renewable Energy Planning Database (REPD) register, solar and battery storage (BESS). Published at https://ventusltd.github.io/pipelinenews/archive/202608261547-pipelinenews/newsv7/.

renderpipelinenews / archive/202608261547-pipelinenews/newsv7/index.html · lines 1–195 of 195 · version 2026-08-26 15:47 · Entry point

What it does
It draws the REPD register, solar and battery storage (BESS). Uses libraries styles/v7.css?v=newsv7. Side effects: changes the web page (DOM).
Why it exists in the grid workflow
Domain stage experimental (path word 'archive'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: the REPD register, solar, battery storage (BESS).
Inputs & outputs
In: form fields (user input). Out: web page.
Downstream impact
Used directly by 2 files: PipelineNews — PipelineNews Page (pipelinenews, https://ventusltd.github.io/pipelinenews/archive/202608261547-pipelinenews/202608251651-PipelineNews/); Check News v7 (pipelinenews). It is itself an entry point, published at https://ventusltd.github.io/pipelinenews/archive/202608261547-pipelinenews/newsv7/.
What it achieves
UK Renewables News V7. Its code works with 1 MW.
Why it matters
Loaded by the PipelineNews page at https://ventusltd.github.io/pipelinenews/archive/202608261547-pipelinenews/202608251651-PipelineNews/. Checked by Check News v7.
Application
pipelinenews · archive/202608261547-pipelinenews/newsv7 · page
Uses
Mobile (stylesheet), V9 3 (stylesheet), V9 4 (stylesheet), V9 5 1 (stylesheet), V9 6 1 (stylesheet), Performance News v7 (stylesheet), Intelligence News v7 (stylesheet), PipelineNews — News v1 Page (link), and 18 more, styles/v7.css?v=newsv7
Used by
linked from PipelineNews — PipelineNews Page (link), referenced by Check News v7 (new URL import.meta.url)
Produces
none declared
Defines here
none
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
pipelinenews@45c944c8640a9d7ae65edb51d66032ba204f3f46 archive/202608261547-pipelinenews/newsv7/index.html:1-195 · blob fa44aa0169310bc4fea1901bfece9caad93f4b91 · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: output · effects: dom · domain stage: experimental · 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">
  <title>Pipeline News | UK Renewables News V7</title>
  <link rel="stylesheet" href="styles/v7.css?v=newsv7">
  <link rel="stylesheet" href="styles/mobile.css?v=newsv7">
  <link rel="stylesheet" href="styles/v9-3.css?v=newsv7">
  <link rel="stylesheet" href="styles/v9-4.css?v=newsv7">
  <link rel="stylesheet" href="styles/v9-5-1.css?v=newsv7">
  <link rel="stylesheet" href="styles/v9-6-1.css?v=newsv7">
  <link rel="stylesheet" href="styles/performance-newsv7.css?v=newsv7">
  <link rel="stylesheet" href="styles/intelligence-newsv7.css?v=newsv7">
</head>
<body>
  <aside class="sidebar">
    <div class="brand">
      <b>GLOBALGRID2050</b>
      <small>UK RENEWABLES PIPELINE · NEWS V7</small>
    </div>
    <nav class="nav">
      <a class="active" href="#">NEWS V7 CUMULATIVE CANDIDATE</a>
      <a href="../newsv1/">NEWS V1 FROZEN APP</a>
      <a href="https://globalgrid2050.com/uk_renewables_pipeline/v9.7/">V9.7 FROZEN SOURCE</a>
      <a href="https://globalgrid2050.com/uk_renewables_pipeline/v9.6.2/">V9.6.2 LIVE VALIDATED</a>
      <a href="https://globalgrid2050.com/uk_renewables_pipeline/v9.6.1/">V9.6.1 FROZEN APP</a>
      <a href="https://globalgrid2050.com/uk_renewables_pipeline/v9.6/">V9.6 DISCONTINUED</a>
      <a href="https://globalgrid2050.com/uk_renewables_pipeline/v9.5.1/">V9.5.1 FROZEN APP</a>
      <a href="https://globalgrid2050.com/uk_renewables_pipeline/v9.5/">V9.5 FROZEN APP</a>
      <a href="https://globalgrid2050.com/uk_renewables_pipeline/v9.4/">V9.4 FROZEN APP</a>
      <a href="https://globalgrid2050.com/uk_renewables_pipeline/v9/">V9.3.1 FROZEN APP</a>
      <a href="https://github.com/Ventusltd/globalgrid2050/tree/eee4cf7d854bf44235c249d337c2aad3916bcdc0/uk_renewables_pipeline/v9" target="_blank" rel="noopener">V9.3 CHECKPOINT</a>
      <a href="https://github.com/Ventusltd/globalgrid2050/tree/77085a5dc8a8ce42cd4de7dad927eaf9aaf785ee/uk_renewables_pipeline/v9" target="_blank" rel="noopener">V9.2 CHECKPOINT</a>
      <a href="https://github.com/Ventusltd/globalgrid2050/tree/59f74e319fbaad62abdb995107dba5759d7f3ca2/uk_renewables_pipeline/v9" target="_blank" rel="noopener">V9.1 CHECKPOINT</a>
      <a href="https://globalgrid2050.com/uk_renewables_pipeline/v8/">V8.1 FALLBACK</a>
      <a href="https://globalgrid2050.com/uk_renewables_pipeline/v7/">V7 FALLBACK</a>
      <a href="https://globalgrid2050.com/uk_renewables_pipeline/dashboard_v6_live.html">V6</a>
      <a href="https://globalgrid2050.com/uk_renewables_pipeline/dashboard_v5_live.html">V5</a>
      <a href="https://globalgrid2050.com/uk_renewables_pipeline/dashboard_v4_live.html">V4</a>
      <a href="https://globalgrid2050.com/uk_renewables_pipeline/dashboard_v3_live_2026-08-22.html">V3</a>
      <a href="https://globalgrid2050.com/uk_renewables_pipeline/dashboard_v2_2026-08-22.html">V2</a>
      <a href="https://globalgrid2050.com/uk_renewables_pipeline/dashboard.html">V1 LEGACY</a>
      <a href="https://globalgrid2050.com/">DIRECTORY</a>
      <a href="https://globalgrid2050.com/repd_grid_atlasv8/">MAP ATLAS</a>
      <a href="#" id="export">EXPORT CSV</a>
    </nav>
  </aside>
  <main class="main">
    <div class="header">
      <h1>UK RENEWABLES PIPELINE NEWS V7</h1>
      <div class="status">● 133 HEADLINES · 45 UK · 45 GOVERNED EVENT ROWS · FULL ≥1 MW</div>
    </div>
    <div class="meta">
      <strong>NEWS V7 · CUMULATIVE POST-V9.7 LINEAGE · CANDIDATE · 25 August 2026</strong>
      <span>Canonical DESNZ REPD Q2 2026: 7,680 solar, BESS and wind records at ≥1 MW.</span>
      <span id="releaseMeta" class="release-meta">Loading canonical release contract…</span>
      <a href="https://www.gov.uk/government/publications/renewable-energy-planning-database-quarterly-extract" target="_blank" rel="noopener">Official REPD source</a>
    </div>

    <section class="newspaper">
      <div class="masthead">
        <h2>GLOBALGRID2050 <span>ENERGY DAILY</span></h2>
        <div class="strap">
          <span>UK requires canonical REPD binding · INTERNATIONAL is read from a committed build-time decision ledger · regional items never drive REPD project signals</span>
          <span id="newsMeta">loading daily edition…</span>
        </div>
      </div>
      <div class="news-tools" id="newsTools">
        <button class="active" data-news="ALL">ALL</button>
        <button data-news="UK">UK</button>
        <button data-news="INTERNATIONAL">INTERNATIONAL</button>
        <button data-news="US">US</button>
        <button data-news="EUROPE">EUROPE</button>
        <button data-news="SOLAR">SOLAR</button>
        <button data-news="BESS">BESS</button>
        <button data-news="CONSENT">CONSENT</button>
        <button data-news="CONSTRUCTION">CONSTRUCTION</button>
        <button data-news="OPERATIONAL">OPERATIONAL</button>
        <button data-news="FINANCE">FINANCE / M&amp;A</button>
        <input id="newsSearch" placeholder="SEARCH HEADLINES / PROJECT / OPERATOR">
      </div>
      <div class="paper">
        <div class="stories" id="stories">
          <div class="news-empty">Loading today’s major-project newspaper…</div>
        </div>
      </div>
    </section>

    <section class="intelligence" id="cumulativeIntelligence" aria-labelledby="intelligenceTitle">
      <div class="intelligence-head">
        <div>
          <h2 id="intelligenceTitle">CUMULATIVE INTELLIGENCE</h2>
          <p>NewsV2–NewsV6 evidence is presented without changing V9.7 project facts or promoting unsupported commercial claims.</p>
        </div>
        <span id="intelligenceStatus">Loading governed candidate evidence…</span>
      </div>
      <div class="intelligence-cards" id="intelligenceCards">
        <div class="intelligence-empty">Loading material events, organisation evidence, source health, research gates and data-centre evidence…</div>
      </div>
      <div class="intelligence-details">
        <details>
          <summary>SOURCE HEALTH · FAIL-CLOSED CONTEXT</summary>
          <div class="evidence-rows" id="sourceHealthRows"></div>
        </details>
        <details>
          <summary>UK DATA-CENTRE EVIDENCE · SEPARATE IDENTITY DOMAIN</summary>
          <div class="evidence-rows" id="dataCentreRows"></div>
        </details>
      </div>
    </section>

    <h2 class="section-title">REPD PIPELINE ANALYTICS</h2>
    <div class="gauges">
      <div class="card">
        <h3>FILTERED CAPACITY (MW)</h3>
        <div class="chart"><canvas id="g1"></canvas><div class="value" id="v1">0</div></div>
      </div>
      <div class="card">
        <h3>FILTERED PROJECTS (≥1MW)</h3>
        <div class="chart"><canvas id="g2"></canvas><div class="value" id="v2">0</div></div>
      </div>
      <div class="card">
        <h3>LARGEST SINGLE SITE (MW)</h3>
        <div class="chart"><canvas id="g3"></canvas><div class="value" id="v3">0</div></div>
      </div>
    </div>

    <div class="filters" id="tech">
      <button class="btn active" data-technology="all" aria-pressed="true">ALL TECH</button>
      <button class="btn" data-technology="solar" aria-pressed="false">SOLAR</button>
      <button class="btn" data-technology="bess" aria-pressed="false">BATTERY</button>
      <button class="btn" data-technology="wind_onshore" aria-pressed="false">ONSHORE</button>
      <button class="btn" data-technology="wind_offshore" aria-pressed="false">OFFSHORE</button>
    </div>
    <div class="filters" id="status">
      <button class="btn active" data-official-status="All" aria-pressed="true">ALL STATUS</button>
      <button class="btn" data-official-status="Operational" aria-pressed="false">OPERATIONAL</button>
      <button class="btn" data-official-status="Under Construction" aria-pressed="false">CONSTRUCTING</button>
      <button class="btn" data-official-status="Awaiting Construction" aria-pressed="false">AWAITING</button>
      <button class="btn" data-official-status="Application Submitted" aria-pressed="false">SUBMITTED</button>
    </div>
    <div class="filters">
      <select id="county"><option value="All">🌍 ALL COUNTIES</option></select>
      <select id="sortProjects" aria-label="Sort projects">
        <option value="capacity_desc">SORT: CAPACITY (DEFAULT)</option>
        <option value="updated_desc">SORT: REPD UPDATED — NEWEST</option>
        <option value="updated_asc">SORT: REPD UPDATED — OLDEST</option>
      </select>
      <input id="search" class="asset-search" placeholder="🔍 SEARCH PROJECT / REPD / GLOBALGRID / PLANNING..." autocomplete="off">
      <button class="btn clear-filters" id="clearFilters">CLEAR FILTERS</button>
      <button class="btn export-inline" id="exportInline">EXPORT FILTERED CSV</button>
      <span id="resultsMeta" class="results-meta">Loading all qualifying records…</span>
      <span id="exportMeta" class="export-meta">CSV contains the current filtered rows only</span>
    </div>
    <div class="meta">
      <strong>STATUS DISCIPLINE</strong>
      <span><b>DEFAULT:</b> every qualifying ≥1 MW record is loaded. Filters are user controls; they never redefine or truncate the pipeline.</span>
      <span><b>NEWS:</b> relevance scores are algorithmic screening only and never change an official REPD fact.</span>
      <span><b>ATLAS:</b> valid geometry resolves the exact REPD Ref. Missing geometry remains in search and CSV and is labelled NO MAP.</span>
    </div>
    <div class="tablewrap">
      <table>
        <thead>
          <tr>
            <th>SITE NAME</th>
            <th class="hide-mobile">COUNTY</th>
            <th class="hide-mobile">OPERATOR</th>
            <th>TECHNOLOGY</th>
            <th>OFFICIAL REPD STATUS</th>
            <th>OFFICIAL CAPACITY</th>
            <th class="hide-mobile">REPD REF</th>
            <th class="hide-mobile">GLOBALGRID REF</th>
            <th class="hide-mobile repd-updated-heading" id="repdUpdatedHeader" aria-sort="none">
              <button id="sortUpdated" type="button" aria-label="Sort by REPD updated date, newest first">
                REPD UPDATED <span id="updatedSortIndicator" aria-hidden="true">↕</span>
              </button>
            </th>
            <th>NEWS SIGNAL</th>
            <th>ACTIONS</th>
          </tr>
        </thead>
        <tbody id="tbody"></tbody>
      </table>
    </div>
    <nav class="project-pager" id="projectPager" aria-label="Project result pages">
      <button class="btn" id="projectPrev" type="button">← PREVIOUS</button>
      <span id="projectPageStatus" aria-live="polite">Loading project page…</span>
      <button class="btn" id="projectNext" type="button">NEXT →</button>
    </nav>
  </main>
  <script type="module" src="scripts/app-newsv7.js?v=newsv7"></script>
  <script type="module" src="scripts/plugins/capacity-presentation-v9-3.js?v=newsv7"></script>
</body>
</html>

App News v7

A JavaScript module in the scripts folder of PipelineNews that loads intelligence after newspaper (`loadIntelligenceAfterNewspaper`). It loads intelligence after newspaper (`loadIntelligenceAfterNewspaper`).

ingestpipelinenews / archive/202608261547-pipelinenews/newsv7/scripts/app-newsv7.js · lines 1–48 of 48 · version 2026-08-26 15:47 · Entry point

What it does
Defines loadIntelligenceAfterNewspaper.
Why it exists in the grid workflow
Domain stage experimental (path word 'archive'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow.
Downstream impact
Used directly by 1 file: PipelineNews — News v7 Page (pipelinenews, https://ventusltd.github.io/pipelinenews/archive/202608261547-pipelinenews/newsv7/). Reached from 1 other entry point, including PipelineNews — PipelineNews Page (pipelinenews, https://ventusltd.github.io/pipelinenews/archive/202608261547-pipelinenews/202608251651-PipelineNews/).
What it achieves
Defines `loadIntelligenceAfterNewspaper`.
Why it matters
Loaded by the News v7 page at https://ventusltd.github.io/pipelinenews/archive/202608261547-pipelinenews/newsv7/.
Application
pipelinenews · archive/202608261547-pipelinenews/newsv7/scripts · JavaScript module
Uses
Gauges V9 2 (import), Newspaper News v7 (import), Projects News v7 (import), Plugin Host (import), Intelligence News v7 (dynamic import)
Used by
loaded by PipelineNews — News v7 Page (script src)
Produces
loadIntelligenceAfterNewspaper
Defines here
loadIntelligenceAfterNewspaper
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
pipelinenews@45c944c8640a9d7ae65edb51d66032ba204f3f46 archive/202608261547-pipelinenews/newsv7/scripts/app-newsv7.js:1-48 · blob cd6aed35e282147cb7214f76f08c71652f1383df · GitHub at these lines
State
achieves: name · context: readme_derived · stage: transform · effects: none found · domain stage: experimental · users: none · canonical: production_core
import { initialiseGaugesV9_2, loadGaugeChartsNewsV7 } from "./plugins/gauges-v9-2.js";
import { bindNewspaperNewsV7, drawNewsNewsV7, loadNewsNewsV7 } from "./plugins/newspaper-newsv7.js";
import {
  bindProjectControlsNewsV7,
  loadProjectsNewsV7,
  refreshProjectsNewsV7,
} from "./plugins/projects-newsv7.js";
import { startPlugins } from "./core/plugin-host.js";

function loadIntelligenceAfterNewspaper() {
  setTimeout(async () => {
    try {
      const { loadCumulativeIntelligenceNewsV7 } = await import("./plugins/intelligence-newsv7.js");
      await loadCumulativeIntelligenceNewsV7();
      drawNewsNewsV7();
      refreshProjectsNewsV7();
    } catch (error) {
      console.error("News V7 background intelligence unavailable", error);
    }
  }, 0);
}

startPlugins([
  { id: "gauges", start: initialiseGaugesV9_2 },
  {
    id: "newspaper",
    dependsOn: ["gauges"],
    start() {
      bindNewspaperNewsV7(refreshProjectsNewsV7);
      const newsPromise = loadNewsNewsV7();
      Promise.resolve(newsPromise).then(() => {
        drawNewsNewsV7();
        refreshProjectsNewsV7();
        loadIntelligenceAfterNewspaper();
      });
    },
  },
  {
    id: "projects",
    dependsOn: ["gauges", "newspaper"],
    start() {
      bindProjectControlsNewsV7();
      loadProjectsNewsV7();
    },
  },
]);

loadGaugeChartsNewsV7();