Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Power Transformation Lab Policy Tracker

A public, English-language dataset of laws, regulations, decrees and plans on electricity, energy, clean technology supply chains and trade in Asia-Pacific, with China and the United States as reference economies, maintained by the Power Transformation Lab at the University of California San Diego. For each instrument it records what it does, which earlier instruments it amends, revokes or implements, and whether it is in force, with a link to the official source.

Site: https://power-lab.github.io/policy-tracker/

Status: under development (see docs/ROADMAP.md). Every entry is currently unverified: entries were compiled from desk research and secondary sources and have not yet been checked against the official text. Not legal advice.

Categories

Instruments are classified in four categories, each with a fixed set of topics applied identically in every economy (data/categories.csv, data/topics.csv):

Category Topics
Electricity framework law, power plans, grid codes and market rules, tariffs and PPA terms, renewable pricing and procurement, rooftop solar, wheeling and direct PPAs, captive power, coal phase-out, energy storage, cross-border electricity trade
Energy and climate energy strategy, energy efficiency, carbon pricing, coal supply, electric vehicle adoption
Supply chain and industrial policy critical minerals and downstreaming, local content requirements, manufacturing incentives, foreign investment rules
Trade import tariffs, trade remedies, import approvals and standards, export restrictions

Technology-specific instruments are also tagged by technology (solar PV, wind, batteries, electric vehicles, grid equipment, hydrogen).

Site

Page Path Contents
Home / Search, summary counts, categories and countries
Explore /rules/ Search and filters (category, country, topic, status, technology, document type, verification); filters are kept in the URL
Instrument /rules/<id>/ Summary, key facts, amendment history, implementing instruments, related instruments, citation, corrections
Countries /countries/<code>/ Legal hierarchy, sources searched, timeline by topic, instruments in force by topic
Topics /topics/ and /topics/<id>/ Topics by category; for each economy, the instruments in force and their history
Compare /compare/ Topic × economy table of instruments in force
Timeline /timeline/ All instruments by date of signature
Data /data/ Field definitions and allowed values; CSV and JSON downloads when enabled
About /about/ Scope, definitions, method, search protocol, limitations
Updates /updates/ Log of every change to the data, with an Atom feed
Reviewer view /review/ Queue and editor for reviewers

How it works

data/*.csv ──► scripts/build.py ──► scripts/render.py ──► _site/ ──► GitHub Pages
               validate, derive      Jinja2 templates,
               back-links            SVG charts, downloads
  • data/rules.csv is the single source of truth: one row per instrument. Field definitions are in data/fields.csv and on the Data page.
  • scripts/build.py validates the data and warns when a status contradicts the recorded links.
  • scripts/render.py generates every page into _site/ (not committed); scripts/check_site.py fails the build on broken links.
  • .github/workflows/pages.yml validates, tests, builds and deploys main to GitHub Pages.
  • .github/workflows/review-to-pr.yml turns review issues from the reviewer view into pull requests (docs/REVIEWING.md).
  • .github/workflows/portal-scan.yml checks registered official portals every Monday and opens a triage issue for new documents. With an ANTHROPIC_API_KEY repository secret, it also drafts an unverified entry for each new document; .github/workflows/accept-draft.yml adds a draft on a maintainer's /accept <id> comment.
  • The change log on each instrument page and the Updates page are generated from the git history of data/rules.csv.

Search framework

How instruments are identified, screened and recorded is set out in docs/SEARCH-PROTOCOL.md. The machine-readable parts are in data/search/: search modules (modules.csv), the source registry (sources.csv), the multilingual vocabulary (vocabulary.csv), scan adapter options (adapters.json), and the screening and search logs.

python3 scripts/search_plan.py supply-chain --country ID --topic local-content
python3 scripts/check_search.py

The first command prints a search plan (sources in tier order, queries in each language, instruments to use for citation chasing); the second checks the framework files and runs in CI.

Run locally

pip install -r requirements.txt
python3 scripts/render.py && python3 scripts/check_site.py
python3 -m http.server -d _site 8000
python3 -m unittest discover -s tests

Add or change an instrument

  1. Edit data/rules.csv (list fields are separated by ;).
  2. Link to earlier instruments by id in amends, revokes, implements or overrides; the reverse links are derived by the build.
  3. Run python3 scripts/build.py and resolve any errors or warnings.
  4. Open a pull request; the site rebuilds when it is merged into main.

Repository settings

  • Pages: Settings → Pages → Source: GitHub Actions.
  • Actions: Settings → Actions → General → Workflow permissions: read and write, and allow GitHub Actions to create and approve pull requests (needed by the review and draft workflows).
  • Optional secret: ANTHROPIC_API_KEY, for model-drafted entries in the weekly scan.

Visibility and downloads

config.json → site controls two settings:

  • listed (currently false): when false, every page carries a noindex robots tag and no sitemap is published, so search engines are asked not to list the site. The pages remain reachable by anyone with the address. This is not access control.
  • downloads (currently false): when false, the CSV files are not published and the Data page shows field definitions only. data/rules.json is still published because the reviewer view reads it.

The repository itself is public, so data/rules.csv can be read on GitHub regardless of these settings.

Documentation

Licence

Data, summaries and documentation: CC BY 4.0. Code: MIT. The official legal texts the tracker links to are not covered by either.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages