Repository navigation
Re-describe the four ASK-7 docstring lines for the lazy proxy (inside the declared-edit window) - #12
Conversation
RULED ASK-7 → 1 (opensoft/openXfactory#656 comment 5635150678) left these four lines standing after § 4.3 (#11) made profile_openxfactory a lazy proxy over the host's opendox.domain_profile.register(...): each still described it as an in-tree module. The paired openxFactory PR (opensoft/openXfactory#995) declares these exact four lines in docs/opendox-carve-manifest.yaml (carve-commit lines 834 / 155 / 725 / 1338), opening the declared-edit window the ruling named; this PR is the fix inside it. One line for one line, same count, no other change: cli.py:867 "The IN-TREE PROFILE (...) is" -> "The HOST-REGISTERED PROFILE (...) is" serve.py:166 "`profile_openxfactory.py` and dispatched BY NAME ..." -> "`route_extension.collect_bindings` and dispatched BY NAME ..." (the file no longer exists at this destination; this is where the routes are actually flattened into one consult order, already named two lines above in the same comment) serve.py:755 "(`profile_openxfactory.ROUTE_EXTENSIONS` — the gate console, the" -> "(`profile_openxfactory.ROUTE_EXTENSIONS` — now host-registered — the gate console, the" serve.py:1368 "THE IN-TREE PROFILE (...) is registered" -> "THE HOST-REGISTERED PROFILE (...) is registered" Verified with openxFactory's own arrival verifier (scripts/verify-carve-arrival.py --destination opendox_code --phase B), run from the paired branch against this one: all four edits report DECLARED (0 undeclared), and — as a negative control — the same edits against the UNEDITED (pre-995) manifest refuse arrival-undeclared-edit, naming exactly carve-commit lines [834] (cli.py) and [155, 725, 1338] (serve.py), confirming the mapping. validate (tests/test_leg_shape.py tests/test_consumer_reach.py tests/test_profile_registration.py --noconftest): 71 passed, matching #11's own reported count — docstring/comment-only edits change no test-observed behavior. Lane: openxfactory-4-opendox-extraction Refs opensoft/openXfactory#656 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis documentation-only PR updates exactly four stale lines so they accurately describe the host-registered lazy profile and File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
There was a problem hiding this comment.
🟢 Approval recommended
Documentation-only changes remain, with only minor non-blocking nits noted.
Pull request overview
Updates four stale docstring/comment lines to reflect host-registered profiles and the current route-binding assembler.
Changes:
- Corrects outdated profile ownership wording.
- Replaces the obsolete assembler reference with
route_extension.collect_bindings.
File summaries
| File | Summary |
|---|---|
src/opendox/serve.py |
Updates route assembly and profile registration descriptions. |
src/opendox/cli.py |
Clarifies that the profile is host-registered. |
Review details
Suppressed comments (2)
src/opendox/serve.py:1369
build_server()does not register the profile: the host performsopendox.domain_profile.register(...), while this function readsROUTE_EXTENSIONSand assembles the bindings. Saying the host-registered profile “is registered HERE” therefore misstates the registration boundary; describe the profile's routes as being assembled here instead.
THE HOST-REGISTERED PROFILE (`profile_openxfactory.ROUTE_EXTENSIONS`) is registered
HERE, ahead of the caller's tuple, and is NOT passed in by `main()` — the
src/opendox/serve.py:755
- This edit leaves the enclosing sentence as “the in-tree profile (
profile_openxfactory.ROUTE_EXTENSIONS— now host-registered …)”, so the comment still describes the deleted in-tree source while simultaneously calling it host-registered. Please make the label and parenthetical use one origin consistently; otherwise this correction remains self-contradictory.
# (`profile_openxfactory.ROUTE_EXTENSIONS` — now host-registered — the gate console, the
- Files reviewed: 2/2 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
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 2 days and 2 hours by commenting @sourcery-ai review. Upgrade to get a review now.



Lane: openxfactory-4-opendox-extraction (formerly openxfactory-opendox)
Refs opensoft/openXfactory#656
RULED ASK-7 → 1 (
openxFactory#656comment5635150678), verbatim: "thefour stale docstring/comment lines (openDox-code
cli.py:867;serve.py:166 / :755 / :1368) are LEFT; the in-tree comments beside the binding carry
the correction; they are fixed at the next declared-edit window." § 4.3
(#11, already merged into
main) madeprofile_openxfactorya lazy proxyover the host's
opendox.domain_profile.register(...), but left these fourlines describing the old in-tree module. This PR is the fix, inside the
now-declared window opened by the paired openxFactory PR
(opensoft/openXfactory#995, which declares these exact four lines —
carve-commit
834/155/725/1338— on thecli.pyandserve.pycarve-manifest rows).
Lands after openxFactory PR #995.
The four lines, one for one, same count
src/opendox/cli.py:867The IN-TREE PROFILE (\profile_openxfactory.SUBCOMMAND_EXTENSIONS`) is`The HOST-REGISTERED PROFILE (\profile_openxfactory.SUBCOMMAND_EXTENSIONS`) is`src/opendox/serve.py:166`profile_openxfactory.py` and dispatched BY NAME against the live handler —`route_extension.collect_bindings` and dispatched BY NAME against the live handler —src/opendox/serve.py:755(`profile_openxfactory.ROUTE_EXTENSIONS` — the gate console, the(`profile_openxfactory.ROUTE_EXTENSIONS` — now host-registered — the gate console, thesrc/opendox/serve.py:1368THE IN-TREE PROFILE (\profile_openxfactory.ROUTE_EXTENSIONS`) is registered`THE HOST-REGISTERED PROFILE (\profile_openxfactory.ROUTE_EXTENSIONS`) is registered`No other line touched —
git diff --statis2 files changed, 4 insertions(+), 4 deletions(-).serve.py:166's fix names the actual assembler (route_extension.collect_bindings,already the correct name two lines above it in the same by-function-split
comment) rather than the nonexistent
profile_openxfactory.pyfile, since aline naming a file that no longer assembles anything is the one of the four
whose falsehood is fully self-contained. The other three keep the
profile_openxfactoryreference (still exactly how the code names it —profile_openxfactory.SUBCOMMAND_EXTENSIONS/.ROUTE_EXTENSIONSareunchanged, byte-identical call sites) and correct only the "in-tree" framing
to "host-registered", consistent with the neighboring lines this window does
not touch (e.g.
cli.py's "It is also the one line the § 3 carve deletesrather than moves" and
serve.py's own "THE DOCSTRING ABOVE STILL DESCRIBESTHE IN-TREE PROFILE... and is NOT corrected here" comment) — those stay
exactly as RULED, for a later declared-edit window, same posture BUILD slice
2b already took.
The arrival verifier's DECLARED result (proved both ways)
Run from the openxFactory branch that declares the four lines
(
chore/ask7-declared-edit-window, PR #995) against this branch:→
OK ... opendox_code (opensoft/openDox-code) at opensoft/openxFactory@b075fd91dc8f (opendox-carve-0), phase B — 123 row(s) arrived, 61 digest(s) verified, 61 declared-edit row(s) within their lines, 1 unapplied; ... 138 file(s) under src/opendox, tests with none undeclared ...— 0 undeclared. (The six--allow-createdflags are pre-existing, unrelated admission gaps —consumer_reach.pyand friends — that predate ASK-7 and this PR; same flags,same result, with or without this PR's four lines.)
Negative control, the same edits against the manifest as it stood
BEFORE #995 (
origin/main, no declared lines at 834/155/725/1338):refuses
arrival-undeclared-edit, naming exactly the same lines —src/opendox/cli.py was edited at carve-commit line(s) [834]andsrc/opendox/serve.py was edited at carve-commit line(s) [155, 725, 1338]—both times "which the row ... does not declare". This confirms the mapping
in both directions: undeclared without #995, DECLARED with it.
Verification
pip install -e ".[test]";python -m pytest -q tests/test_leg_shape.py tests/test_consumer_reach.py tests/test_profile_registration.py --noconftest(the exactvalidateworkflow step) → 71 passed,matching § 4.3: profile_openxfactory becomes a lazy proxy registered by the host at process start, read by BOTH composition points (RULED ASK-2; routes half RULED ASK-6 → 1) #11's own reported count for this same command — a
docstring/comment-only change asserts nothing new and breaks nothing old.
🤖 Generated with Claude Code
Summary by Sourcery
Correct the lazy proxy documentation to reflect host-registered profiles and the current route-binding assembly.
Enhancements:
Documentation: