Skip to content

Wind/solar one-shot schemas - #615

Merged
ppinchuk merged 32 commits into
mainfrom
pp/schema_updates
Nov 23, 2026
Merged

ppinchuk merged 32 commits into
mainfrom
pp/schema_updates

Conversation

@ppinchuk

Copy link
Copy Markdown
Collaborator

Add support for wind and solar one-shot schemas

@ppinchuk ppinchuk added this to the New technologies milestone Nov 21, 2026
@ppinchuk ppinchuk self-assigned this Nov 21, 2026
@ppinchuk
ppinchuk requested a review from castelao as a code owner November 21, 2026 00:16
@ppinchuk ppinchuk added enhancement Update to logic or general code improvements new computation Update that adds a new computation method labels Nov 21, 2026
Copilot AI balanced review requested due to automatic review settings November 21, 2026 00:16
@ppinchuk ppinchuk added topic-python-llm Issues/pull requests related to LLMs p-high Priority: high labels Nov 21, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Conflicting omission rules, wind classification exclusions, and collection filters can discard supported evidence or produce schema-invalid output.

5 open issues
What changed in this PR

Adds wind and solar extraction plugins to COMPASS’s schema-driven one-shot pipeline, alongside updates to existing technology prompts and document selection.

Changes:

  • Registers wind-os and solar-os plugins with schemas, collection prompts, and extraction guidance.
  • Updates geothermal and oil/gas extraction guidance, adds oil/gas evidence excerpts, and adjusts document ranking and validation.
  • Expands tests for feature coverage, prompt compatibility, examples, and technology heuristics.
File Description
tests/​python/​unit/​plugin/​test_plugin_one_shot_base.py Adds wind/solar contract tests and expands schema export coverage.
compass/​validation/​graphs.py Adds model ordinances to proposal-stage indicators.
compass/​scripts/​download.py Prioritizes document year in ranking.
compass/​plugin/​ordinance.py Simplifies shared verbatim-extraction instructions.
compass/​plugin/​one_shot/​components.py Simplifies one-shot text-filtering instructions.
compass/​extraction/​wind/​plugin.py Revises legacy wind search queries.
compass/​extraction/​wind_os/​wind_schema.json5 Defines wind features, evidence rules, and examples.
compass/​extraction/​wind_os/​plugin_config.yaml Configures wind discovery, filtering, and extraction.
compass/​extraction/​wind_os/​__init__.py Registers the wind-os plugin.
compass/​extraction/​solar_os/​solar_schema.json5 Defines solar features, decision rules, and examples.
compass/​extraction/​solar_os/​plugin_config.yaml Configures solar discovery, filtering, and extraction.
compass/​extraction/​solar_os/​__init__.py Registers the solar-os plugin.
compass/​extraction/​oil_gas_wells/​plugin_config.yaml Refines collection criteria and adds a system prompt.
compass/​extraction/​oil_gas_wells/​oil_and_gas_wells_schema.json Adds verbatim evidence and revises scope and examples.
compass/​extraction/​geothermal_electricity/​plugin_config.yaml Refines collection criteria and adds a system prompt.
compass/​extraction/​geothermal_electricity/​geothermal_schema.json Moves scope guidance into a top-level field.
compass/​extraction/​__init__.py Exports the new wind and solar plugins.
compass/​__init__.py Exposes new plugins and existing natural-gas/transmission extractors.

Review effort: Balanced

@codecov-commenter

codecov-commenter commented Nov 21, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.90%. Comparing base (224e333) to head (234de21).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #615      +/-   ##
==========================================
+ Coverage   76.64%   76.90%   +0.25%     
==========================================
  Files          85       85              
  Lines        9870     9871       +1     
  Branches     1086     1086              
==========================================
+ Hits         7565     7591      +26     
+ Misses       2097     2070      -27     
- Partials      208      210       +2     
Flag Coverage Δ
unittests 76.90% <100.00%> (+0.25%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ppinchuk
ppinchuk merged commit 28d015c into main Nov 23, 2026
26 checks passed
@ppinchuk
ppinchuk deleted the pp/schema_updates branch November 23, 2026 21:43

This branch was previously deployed

2 inactive deployments
codecov — 234de216 Deployed Nov 23, 2026 by ppinchuk via Codecov #727
pypi — 234de216 Deployed Nov 23, 2026 by ppinchuk via Build, check, and optionally upload wheels #560
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Update to logic or general code improvements new computation Update that adds a new computation method p-high Priority: high topic-python-llm Issues/pull requests related to LLMs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants