Repository navigation
Fix module and shed_relpath to read effective_arrival(row) - #1081
Conversation
Lane: openxfactory-5 (openXfactory-5) Sibling of #1062/#1077: carved_reach.module() (line 663) and shed_relpath() (lines 700-701) read row["destination"]/row["destination_path"] directly instead of effective_arrival(row), so a re_destined row would resolve at its original destination instead of the effective one a ruling moved it to; both now route through effective_arrival(row), on source()'s own precedent and the shape #1077 applied to shed_commit_object, with one regression per function against a re-destined fixture row whose original and effective legs differ. Refs #1079 Co-Authored-By: Claude Fable 5.1 <[email protected]> Co-Authored-By: Claude Sonnet 5 <[email protected]>
There was a problem hiding this comment.
Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days.
You can request another review in 12 hours and 22 minutes by commenting @sourcery-ai review. Upgrade to get a review now.
Reviewer's GuideThis PR fixes two carved-reach resolvers that bypassed effective-arrival handling, ensuring re-destined rows resolve against their ruling-selected destination rather than their original one, with targeted regression tests and the reported full validation suites passing. Flow diagram for effective arrival resolutionflowchart LR
Row[Manifest row]
EffectiveArrival["effective_arrival(row)"]
Module["module(path)"]
ShedRelpath["shed_relpath(path)"]
Destination[Effective destination and relative path]
Original[Original destination]
Row --> EffectiveArrival
EffectiveArrival --> Module
EffectiveArrival --> ShedRelpath
Original -. bypassed for re_destined rows .-> Module
Original -. bypassed for re_destined rows .-> ShedRelpath
Module --> Destination
ShedRelpath --> Destination
File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
🟢 Approval recommended
Only minor documentation and test wording nits remain; no blocking issues were identified.
Pull request overview
Updates module and shed-relative path resolution to honor effective destinations for re-destined rows.
Changes:
- Route
module()andshed_relpath()througheffective_arrival(row). - Add regression tests for cross-leg re-destination handling.
File summaries
| File | Description |
|---|---|
tests/carve_manifest/test_carve_manifest.py |
Adds regression coverage for both resolvers. |
scripts/carved_reach.py |
Resolves modules and relative paths using effective arrivals. |
Review details
Suppressed comments (1)
tests/carve_manifest/test_carve_manifest.py:2813
- The regression docstring has a subject–verb agreement error:
module()is singular, so this should saymodule() reads ....
"""Regression, `#1079`. `module()` read `row["destination_path"]` directly
- Files reviewed: 2/2 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Lane: openxfactory-5 (openXfactory-5) module()'s docstring still described the dotted name as derived from a MOVED row's own destination_path, inaccurate now that the previous commit routes the read through effective_arrival(row); the docstring now says a re_destined row's to_path wins instead, on shed_commit_object()'s own docstring fix in #1077. Refs #1079 Co-Authored-By: Claude Fable 5.1 <[email protected]> Co-Authored-By: Claude Sonnet 5 <[email protected]>
|
|
Lane: openxfactory-5 (openXfactory-5) LANDING — lane openXfactory-5, session 651195c7-1854-491e-894a-e6542ef5e9f4@Eagle, 2026-09-17T13:34:19Z, PR #1081 into opensoft/openxFactory main |



Lane: openxfactory-5 (openXfactory-5)
What
Sibling of #1062/#1077. In
scripts/carved_reach.py,module()(line 663)and
shed_relpath()(lines 700-701) readrow["destination"]/row["destination_path"]directly instead ofeffective_arrival(row). Are_destinedrow (RULED Q6) would therefore resolve at its ORIGINALdestination instead of the effective one a ruling moved it to; latent today
because no
re_destinedrow currently names a shed member either function'scallers reach. Both now route through
effective_arrival(row), onsource()'s own precedent (line 616) and the exact shape #1077 applied toshed_commit_object():module():destination, relative = effective_arrival(row)replacesrelative = row["destination_path"].shed_relpath():destination, destination_path = effective_arrival(row)replaces the two raw reads (
MOUNTS[row["destination"]]androw["destination_path"]in the return expression).Regression
One regression per function, in the shape of #1077's
test_the_exact_commit_resolver_reads_the_effective_arrival_of_a_re_destined_row:a fixture row re-destined from
openxdox_codeto a DIFFERENT leg(
opendox_code) entirely, asserting each function resolves at the EFFECTIVEleg, not the original.
Failing against unfixed code (both fail):
Passing after the fix:
Full suites, post-fix:
python3 -m pytest tests/carve_manifest -q→183 passed in 56.56spython3 -m pytest tests/carve_arrival/test_verify_carve_arrival.py -q→158 passed in 38.61spython3 -m pytest tests/doc-health/test_release_inventory.py -q→37 passed in 0.29spython3 -m pytest tests/hermes_runtime_contracts/test_release_inventory.py -q→73 passed in 54.66spython3 scripts/validate-carve-manifest.py --repo .→ exit 0 (OK … 456 row(s) … verified at c6997f125b8e)python3 scripts/validate-manifest-digests.py→ exit 0 (OK contracts/manifest.yaml: 184 per-file digest(s) verify)Not widened
row["destination"]/row["destination_path"]read: the only other hit is line 474, insideeffective_arrival(row)itself (the base-case fallback when nore_destinedblock is present): the canonical definition, not a bug.Nothing else reads a row's raw arrival.
shed_destination()andsources_under()already resolve throughsource(), which already readseffective_arrival(row)(fixed shapesince before this repo's history began tracking it); untouched here.
module()andshed_relpath()are left as written: unlikeshed_commit_object()'s pre-Fix shed_commit_object to read effective_arrival, not raw destination #1077 docstring, which explicitly asserted"the row's own
destination_path", neither of these two docstrings makesan equivalently specific wrong claim about
re_destinedrows, so there wasno stale sentence to correct.
Refs #1079
Lane: openxfactory-5 (openXfactory-5)
🤖 Generated with Claude Code
Summary by Sourcery
Use effective arrivals when resolving module names and shed paths so re-destined files are located at their current destination.
Bug Fixes:
Documentation:
Tests: