import os index_content = """ Sri Lanka Coastal & Marine Natural Capital Accounting — Master Demonstration Portal
Ministry of Environment • Sri Lanka GEF-7 / IUCN ID: 10552 UN-SEEA EA 2027

Coastal & Marine Natural Capital Accounting — Master Demonstration Suite

IUCN Peer-Review Environment
Executive Technical Briefing & Navigation Portal

Operationalising Natural Capital Accounting From Theory to Treasury Execution

This portal serves as the unified evaluation hub for the five integrated applications developed to operationalise the Global Environment Facility Full-Sized Project (GEF ID: 10552) for Sri Lanka: "Natural Capital Values of Coastal and Marine Ecosystems in Sri Lanka Integrated into Sustainable Development Planning". It synthesises physical UN-SEEA ecosystem accounts, multi-agency Earned Value Management, and statutory Sri Lanka Government Public Financial Management (PFM) across 667,056 hectares.

Total Target Seascape 667,056 ha 4 Demonstration Sites
Consolidated Financing $19.16M GEF STAR + Co-Financing
Parliamentary Vote Head 160-02-04 Ministry of Environment
National Target Date Launch 2027 UN-SEEA EA Integration
Chronological Methodology & System Architecture

How We Navigated the Development of the Demonstration Suite

Transitioning Sri Lanka’s natural capital accounting from conceptual discussions into an auditable government operations system required a multi-phase, rigorous technical progression. Below is the exact developmental roadmap navigated across this project:

01

Establishing the Core UN-SEEA Accounting Architecture Foundation

Ecosystem Extent • Condition • SUT

We began by translating global standards (UN-SEEA Ecosystem Accounting 2021) to address Sri Lanka's critical policy need: moving "Beyond GDP" to account for nature's real depreciation. We modeled the complete five-module sequence—Extent Accounts, Ecosystem Condition Typology (ECT), Supply and Use Tables (SUT), biophysical modeling (InVEST Sediment Delivery Ratio and water yield), and macroeconomic bridge accounts to derive Environmentally-Adjusted Net Domestic Product (ea-NDP).

Result: Full biophysical & macroeconomic accounting engine validated across terrestrial & aquatic assets.
02

Bridging the "Ridge-to-Reef" Divide with the GEF-7 ProDoc (Annex 1) Integration

667,056 Hectares • 4 Demonstration Seascapes

Upon ingesting the formal Project Document for GEF ID: 10552, we grounded the framework in Sri Lanka's four designated coastal seascapes: Puttalam Lagoon (294,822 ha), Trincomalee Bay (213,769 ha), Mannar / South-East Palk Bay (122,150 ha), and Madu Ganga–Hikkaduwa (36,315 ha). We connected the Upper Mahaweli watershed hydrology directly to Koddiyar Bay in Trincomalee, linking upstream soil conservation to downstream coral and seagrass protection.

Result: Harmonised multi-biome spatial accounting across mangroves, coral reefs, seagrasses, and lagoons.
03

Puttalam Deep-Dive: Work Breakdown Structure & Earned Value (EVM) Operations

WBS Levels 1–4 • SPI (0.94) • CPI (1.02)

Recognizing that natural capital accounting fails without rigorous project execution, we operationalised the flagship seascape at Puttalam Lagoon & Barrier Estuary. We built a hierarchical 4-level Work Breakdown Structure (WBS) tied to open-source project management principles (OpenProject/ERPNext), incorporating Earned Value Management to monitor Planned Value (PV: $598k), Earned Value (EV: $560k), and Actual Cost (AC: $550k).

Result: Multi-agency field monitoring, procurement logs, and milestone deliverables unified in real time.
04

Resolving the Statutory PFM & Treasury Imprest Bottleneck Public Finance

Head 160-02-04 • FR 135/394 • CIGAS Ledger

Donor-funded environmental projects often collapse at the government accounting interface due to off-budget spending. We solved this by designing a complete Chart of Accounts crosswalk aligning project activities directly with the Ministry of Environment Parliamentary Budget Estimates (Head 160, Programme 02, Project 04). We built two distinct funding lines: Financing Source 11 (GOSL Counterpart: LKR 182.5M) and Financing Source 12 (Foreign Grants: LKR 352.2M) across Object Codes 1001–2501, backed by a formal Treasury Imprest Bank Reconciliation.

Result: 100% statutory compliance with Sri Lanka Public Financial Management (PFM) laws and National Audit standards.
05

Engineering the Unified Multi-Tenant SaaS Production Prototype Production SaaS

Multi-Role • Live Modals • Multi-Seascape • CIGAS Export

Finally, we synthesized all preceding discoveries into an interactive, zero-dependency SaaS web platform. The platform features four role-based access modes (Project Director, Treasury Officer, Field Coordinator, Auditor), live interactive modals to record FR 135 payment vouchers and WBS progress, dynamic recalculation of EVM curves, local storage persistence, and one-click CIGAS CSV and JSON data exports—accompanied by a comprehensive 30-page User Manual.

Result: A deployment-ready production prototype packaged for secure review by IUCN and the Ministry.
Interactive Demonstrations Portfolio

The Five Demonstration Applications

Each application is fully interactive, operates standalone in any modern browser, and can be launched directly for testing:

Zero dependencies • Pure Client-Side HTML5/JS
Module 01 • Scientific Core

Coastal & Marine SEEA-EA Framework

Operationalises UN-SEEA Ecosystem Accounting (2021) across four biomes: Mangroves, Coral Reefs, Seagrass Meadows, and Estuarine Lagoons. Grounds policy decisions for ADB financing, blue bond issuance, and blue carbon asset verification.

Scope: National Coastal
Focus: SEEA Extent & SUT
Launch Ecosystem Accounts
Module 02 • Project Scope

GEF-7 Multi-Module NCA Platform

Synthesises ecosystem extent, condition indices, SUT flows, marine pollution stressors (FLUX and SWAT sediment models), and macroeconomic accounting (ea-NDP) with interactive Payments for Ecosystem Services levers across all 4 project demonstration sites.

Area: 667,056 Hectares
Sites: 4 Seascapes
Launch Multi-Site Platform
Module 03 • Seascape Console

Puttalam Seascape Executive Console

Dedicated monthly portfolio stewardship console for the 294,822 ha demonstration seascape. Features physical and financial S-curves, WBS milestone tracking, procurement logs, Treasury Imprest reconciliations, and localized Gross Ecosystem Product (GEP).

Site: Puttalam Lagoon
EVM: SPI 0.94 | CPI 1.02
Launch Executive Console
Module 04 • Treasury & PFM

Coastal Operations & PFM Console

Integrated project planning and parliamentary vote treasury control for Head 160-02-04. Covers multi-agency procurement compliance (GOSL 2006 vs. IUCN fiduciary rules), multi-donor liquidity burn rates, and PES conservation revenue models.

Vote: Head 160-02-04
Audit: FR 135 / FR 394
Launch Operations Console
Module 05 • Flagship Production Prototype Fully Interactive & Editable

Ministry of Environment Coastal Seascape SaaS Platform (Production Prototype)

The complete, role-based platform designed for deployment across the Ministry of Environment, PMU, District Secretariats, and partner agencies. Features full multi-seascape switching (Puttalam, Madu Ganga, Mannar, Trincomalee), live editable modals to update WBS milestones and post FR 135/394 payment vouchers, dual procurement compliance checks, real-time EVM calculations, local browser persistence, and one-click CIGAS CSV and JSON export.

User Workspaces 4 Custom Roles
Seascapes 4 Active Baselines
Transaction Entry Live Modals
CIGAS Integration One-Click CSV
Launch Flagship Production Platform
Companion Analytical Models & Governance Manuals

Underlying Models & Technical Deliverables

These production prototypes are backed by complete, formula-audited analytical workbooks and operational manuals generated throughout the initiative:

Puttalam Seascape PFM Model (.xlsx)

Comprehensive 8-tab workbook modeling WBS physical tracking, 10 procurement packages, multi-donor disbursements, Head 160 vote ledger, Bank of Ceylon imprest reconciliation, and 8 automated audit checks.

Artifact: Puttalam_Seascape_GEF7_PFM_Model.xlsx

Planning & Control Manual (Report)

Institutional manual for the Ministry of Environment, Project Director, and multi-agency team detailing governance, EVM calculation formulas, FR 135 vouchering protocols, and risk registers.

Artifact: puttallam-project-control-manual.tailored-report.md

SaaS Platform User Manual (Report)

A 30-page comprehensive software manual defining system architecture, role-based workflows, step-by-step transaction walkthroughs, CIGAS export mapping, and IT deployment protocols.

Artifact: moe-saas-user-manual.tailored-report.md

Suggested "Tire-Kicking" Verification Protocol for IUCN Colleagues

Recommended 5-step test path to evaluate platform usability and compliance before our meeting

Test Track 1

Role-Based Workspaces

Launch Module 05 and switch user roles: Project Director, Treasury / Finance Officer, Field Coordinator, and IUCN / GEF Auditor. Verify how visible metrics and action buttons adapt dynamically.

Module 05 • Top Navigation
Test Track 2

Live FR 135 Vouchering & EVM

Open the "Record FR 135 Voucher" modal. Submit a synthetic payment under Object Code 1301 or 2101. Confirm that Actual Cost (AC) increases and immediately updates the Schedule Performance Index (SPI) and Cost Performance Index (CPI).

Module 05 • Quick Action Modal
Test Track 3

Multi-Seascape Switching

Switch the active seascape from Puttalam (294,822 ha) to Madu Ganga (36,315 ha), Mannar (122,150 ha), or Trincomalee (213,769 ha). Observe the immediate re-indexing of extent hectarage, condition, and WBS allocations.

Module 05 • Seascape Dropdown
Test Track 4

Dual Procurement Audit

Navigate to the Procurement tab. Review the 10 contract packages and inspect how national committee thresholds (DPC/MPC) reconcile seamlessly against IUCN/GEF prior-review no-objection milestones.

Module 04 & 05 • Procurement Tab
Test Track 5

CIGAS CSV & JSON Export

Click "Export CIGAS CSV" and "Export System JSON". Open the generated CSV in Excel to confirm that Vote Codes (Head 160-02-04-12-XXXX) format in standard Sri Lanka Treasury upload structure.

Module 05 • Header Controls
Test Track 6

Local State Persistence

After updating a WBS milestone or adding a voucher, refresh your Chrome browser. Confirm that the application loads all your edited values directly from browser LocalStorage without data loss.

Module 05 • Browser Engine
""" with open('/workspace/scratch/portal/index.html', 'w', encoding='utf-8') as f: f.write(index_content) print(f"Successfully wrote index.html ({len(index_content)} bytes)")