feat(e1): fix subjective metadata ownership and layer cycles#226
Open
agustif wants to merge 1 commit intopeteromallet:mainfrom
Open
feat(e1): fix subjective metadata ownership and layer cycles#226agustif wants to merge 1 commit intopeteromallet:mainfrom
agustif wants to merge 1 commit intopeteromallet:mainfrom
Conversation
This was referenced Mar 4, 2026
ab1db5d to
e6e4469
Compare
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.
Summary
Implements Epic #207 and sub-issues #211 #212 #213 #214.
This PR removes metadata ownership drift and scoring metadata cycles, and enforces base-layer isolation for subjective metadata definitions.
What Changed
1) Canonical subjective metadata catalog
desloppify/base/subjective_dimension_catalog.pyas single source for:DISPLAY_NAMESWEIGHT_BY_DIMENSIONRESET_ON_SCAN_DIMENSIONS2) Removed metadata/scoring cycle
intelligence/review/dimensions/metadata_legacy.pyno longer imports scoring core constants.3) Removed runtime cycle-break imports
engine/_scoring/subjective/core.pynow uses explicit metadata wiring via imports fromintelligence.review.dimensions.metadata.DISPLAY_NAMEScompatibility export by wiring it to canonical catalog.4) Removed upward imports from base subjective module
base/subjective_dimensions.pywith a base-only compatibility shim.intelligenceorlanguages.5) Architecture verification snapshot
Test Evidence
Executed with local venv (
.venv):python -m pytest desloppify/tests/review/policy/test_review_dimensions_direct.py desloppify/tests/commands/test_lifecycle_transitions.py desloppify/tests/commands/test_direct_coverage_priority_modules.py desloppify/tests/scoring/test_scoring.py -q116 passedpython -m pytest desloppify/tests/commands/test_cli.py -q97 passedTracking
Parent program: #206