Skip to content

Incineration burns only waste that burns: metal and glass are landfilled - #132

Merged
HughRunyan merged 4 commits into
mainfrom
incineration-burns-only-what-burns
Nov 30, 2026
Merged

HughRunyan merged 4 commits into
mainfrom
incineration-burns-only-what-burns

Conversation

@HughRunyan

@HughRunyan HughRunyan commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

What changed

A share of incineration now counts only waste that burns. Metal and glass don't burn: the metal and glass a city doesn't recycle are landfilled, whether they were sorted out before the furnace or pulled from the ash. Recycling still takes its share first, and is read as counting any metal recovered from incinerator ash.

This reverses the reasoning merged in #129 (incineration burned all ten types in proportion, because reported shares count tonnes delivered to the plant). Hugh decided on 2026-11-19 that the incineration share should record what is actually burned.

  • constants.UNBURNABLE_TYPES is metal and glass. DIVERSION_ELIGIBILITY["combustion"] is the other eight, other included.
  • dst_allocation.burnable_left and max_incineration give what is left to burn. incineration_mix burns the same share of every burnable type composting, digestion and recycling leave.
  • A share above the burnable waste left, but within all the waste left, burns all the burnable waste left, and that is recorded as the incineration. The cities table therefore publishes what was burned.
    • This happens in mass_checker_math (written back by _check_masses_v2), and for a published share in load_csv_new and load_from_csv.
    • A share above all the waste left is refused, as before.
    • Osaka reports 90.3% incinerated and 9.7% recycled, and burns 85.9%.
  • The incineration frames (divs.combustion, and div_component_fractions.combustion from load_andre_params) have no metal or glass column. WasteMAP's cities table fills those columns with 0 (WasteMAP PR to follow).
  • A composition surveyed after diversion adds incineration's burn back onto burnable types only (after_diversion).
  • Advanced DST:
    • The combustion diversion takes no metal or glass.
    • A site that combusts deposits the metal and glass it receives, as ash.

What it does to the numbers (model-output change)

Baseline methane of the 32 incinerating cities in WasteMAP's June 2026 cities table, through the city DST's loader (load_csv_new), this branch against main:

2025 CH4
All 32 −3.6% (513,975 → 495,460 t)
London (47% incinerated) −21.6%
Budapest −16.2%
Stockholm −10.6%
Oslo −9.6%
21 others under 1%

None of the 32 had its share cut: their published recycling mixes leave enough to burn. Cutting shows up on the database rows, as with Osaka (90.3% → 85.9%) and Vienna (58.1% → 55.9%).

Climate TRACE sites are unaffected: ct-site has incineration fixed at 0.

Acceptance criteria

  • No path incinerates metal or glass.
  • A share above the burnable waste left, but within all the waste left, burns all the burnable waste left, and the city's recorded share says so. A share above all the waste left is refused.
  • The city DST's no-change scenario still equals its baseline.
  • A burning advanced DST site deposits its metal and glass and nothing else.
  • MODEL_DECISIONS.md (diversion-eligibility, diversion-split, combustion-reject, composition-after-diversion) and the November changelog describe the new rule.

Definition of done

Acceptance criteria met · tests and checks pass (879 locally) · docs updated · reviewed and merged · released, then WasteMAP's pin switched to the release.

Related

🤖 Generated with Claude Code

HughRunyan and others added 3 commits November 19, 2026 09:34
A share of incineration now counts only the eight burnable types. Incineration
burns the same share of every burnable type composting, digestion and recycling
leave; the metal and glass recycling leaves are landfilled. A baseline share above
the burnable waste left is cut to it and recorded as the city's incineration; a
city DST scenario asking for more is refused. A composition surveyed after
diversion adds incineration's burn back onto burnable types only. The advanced
DST's combustion diversion takes no metal or glass, and a site that combusts
deposits the metal and glass it receives.

On the June 2026 cities table's 32 incinerating cities, 2025 methane falls 3.6%;
London 21.6%, Budapest 16.2%.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A city DST scenario or a site tool's incinerator asking for more than the
burnable waste left, but no more than all the waste left, burns all the
burnable waste left instead of being refused: the rest is metal and glass sent
to the incinerator. A share above all the waste left is refused, as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@HughRunyan HughRunyan added the model-output-change Changes model OUTPUT values (expected progress, not breaking); results differ from prior runs label Nov 19, 2026
Copilot AI lite review requested due to automatic review settings November 19, 2026 18:36

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

A critical validation gap remains because the published loaders can silently accept an incineration share above the total waste-left limit instead of raising the required invalid-parameters error.

1 open issue
What changed in this PR

Updates SWEET’s incineration model so only burnable waste is incinerated, while metal and glass are recycled, landfilled, or retained as ash. The change propagates through city allocation, loaders, composition reconstruction, advanced DST behavior, tests, and documentation.

Changes:

  • Defines metal and glass as unburnable and limits combustion to the remaining eligible waste.
  • Caps modeled incineration at the burnable waste remaining after other diversions.
  • Updates advanced DST handling, regression tests, model decisions, and the November changelog.
File Description
tests/​test_waste_type_order.py Verifies that combustion-related frames exclude metal and glass.
tests/​test_mass_checker_integration.py Tests burnable-waste limits and incineration over-allocation boundaries.
tests/​test_incineration_burns_only_what_burns.py Adds end-to-end coverage for burnable-only incineration across loaders, composition, and advanced DST behavior.
tests/​test_dst_allocation.py Tests burnable mixing and maximum-incineration calculations.
tests/​test_composition_after_diversion.py Tests post-diversion composition reconstruction with combustion applied only to burnable waste.
tests/​test_city_dst_scenarios_match_the_baseline.py Verifies city DST combustion mixes and baseline scenario consistency.
SWEET_python/​MODEL_DECISIONS.md Documents the revised diversion eligibility, combustion split, rejection, and composition rules.
SWEET_python/​dst_allocation.py Adds burnable residual and maximum-incineration allocation calculations.
SWEET_python/​constants.py Defines metal and glass as unburnable and updates combustion eligibility.
SWEET_python/​city_params.py Applies burnable-only incineration caps and records actual burned shares in city parameters.
SWEET_python/​after_diversion.py Reconstructs post-diversion composition by adding incineration back only to burnable types.
SWEET_python/​advanced_dst_city.py Deposits metal and glass received by advanced DST facilities that combust waste.
changelog/​README.md Summarizes the burnable-only incineration model change.
changelog/​2026-11.md Provides detailed release notes for the revised incineration behavior.

Review effort: Lite

Comment thread SWEET_python/city_params.py Resolved
load_csv_new and load_from_csv cut any share above the burnable waste left to
it, so a share above all the waste left, metal and glass included, was cut too
instead of refused as mass_checker_math refuses it. _published_incineration now
raises INVALID_PARAMETERS for it. No city in WasteMAP's June cities table
(5,962 cities, 32 that burn waste) has such a share.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@HughRunyan
HughRunyan merged commit f570d76 into main Nov 30, 2026
2 checks passed
@HughRunyan
HughRunyan deleted the incineration-burns-only-what-burns branch November 30, 2026 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

model-output-change Changes model OUTPUT values (expected progress, not breaking); results differ from prior runs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants