Repository navigation
Incineration burns only waste that burns: metal and glass are landfilled - #132
Merged
Merged
Conversation
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>
There was a problem hiding this comment.
🟡 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
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

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_TYPESis metal and glass.DIVERSION_ELIGIBILITY["combustion"]is the other eight,otherincluded.dst_allocation.burnable_leftandmax_incinerationgive what is left to burn.incineration_mixburns the same share of every burnable type composting, digestion and recycling leave.mass_checker_math(written back by_check_masses_v2), and for a published share inload_csv_newandload_from_csv.divs.combustion, anddiv_component_fractions.combustionfromload_andre_params) have no metal or glass column. WasteMAP's cities table fills those columns with 0 (WasteMAP PR to follow).after_diversion).combustiondiversion takes no metal or glass.combustsdeposits 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 againstmain: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-sitehas incineration fixed at 0.Acceptance criteria
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
main)am-waste-flow)main)am-river)🤖 Generated with Claude Code