Repository navigation
PL-0500: peer review V02 record and fixes (number checks, coverage-aware ERP mapping) - #115
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…re ERP mapping Reject bool and non-number mass/percentage/product mass with PackSustainabilityError; strip component ids for the duplicate check; add erp_sustainability() mapping figures to the erp_contract.spec_content sustainability dict, passing recycled_content_percent only when every component declares it and refusing ESTIMATE figures. No release-path caller wired: erp_spec arrives prebuilt in the client payload. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Scope: TASKS.md PL-0500 only. TASKS.md not edited; PL-0500 stays [ ].
coordination/sessions/M21-C001/CLAUDE_PEER_REVIEW_PL0500_SUSTAINABILITY_V02.md(review record, PASS_WITH_FIXES).core/src/packlab_core/pack_sustainability.py,tests/core/test_pack_sustainability.py):mass_g,recycled_content_pct,product_net_mass_greject bool and non-int/float withPackSustainabilityError(same style aserp_contractmaterial mass).erp_sustainability(figures)maps to thespec_content(sustainability=...)dict:mass_per_pack_galways;recycled_content_percentonly when every component declares recycled content (exact check, not the rounded coverage figure); ESTIMATE figures refused. Schema keys are optional, so omitting the key is valid.Wiring: no server/app code builds
spec_content;erp_speccomes intostore.releasealready built in the client payload, and nothing in the release path holds declared component masses. So the mapping isn't wired to a caller yet. What's missing is a producer of theerp_specpayload (Studio release UI or server builder) that holdsPackComponentdeclarations.Tests: test_pack_sustainability + test_erp_contract: 82 passed. ruff format/check clean, mypy clean (352 files), ci_data_safety PASS.
🤖 Generated with Claude Code