Skip to content

Re-describe the four ASK-7 docstring lines for the lazy proxy (inside the declared-edit window) - #12

Merged
brettheap merged 1 commit into
mainfrom
docs/ask7-lazy-proxy-docstrings
Sep 12, 2026
Merged

brettheap merged 1 commit into
mainfrom
docs/ask7-lazy-proxy-docstrings

Conversation

@brettheap

@brettheap brettheap commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

Lane: openxfactory-4-opendox-extraction (formerly openxfactory-opendox)

Refs opensoft/openXfactory#656

RULED ASK-7 → 1 (openxFactory#656 comment 5635150678), verbatim: "the
four 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) made profile_openxfactory a lazy proxy
over the host's opendox.domain_profile.register(...), but left these four
lines 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 the cli.py and serve.py
carve-manifest rows).

Lands after openxFactory PR #995.

The four lines, one for one, same count

file:line before after
src/opendox/cli.py:867 The 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, the
src/opendox/serve.py:1368 THE 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 --stat is 2 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.py file, since a
line 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_openxfactory reference (still exactly how the code names it —
profile_openxfactory.SUBCOMMAND_EXTENSIONS / .ROUTE_EXTENSIONS are
unchanged, 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 deletes
rather than moves" and serve.py's own "THE DOCSTRING ABOVE STILL DESCRIBES
THE 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:

python3 scripts/verify-carve-arrival.py --destination opendox_code \
  --dest-root <this checkout> --phase B \
  --allow-created src/opendox/consumer_reach.py --allow-created src/opendox/defaults.py \
  --allow-created src/opendox/domain_profile.py --allow-created src/opendox/profile_proxy.py \
  --allow-created tests/test_consumer_reach.py --allow-created tests/test_profile_registration.py

→ 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-created flags are pre-existing, unrelated admission gaps —
consumer_reach.py and 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] and
src/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

🤖 Generated with Claude Code

Summary by Sourcery

Correct the lazy proxy documentation to reflect host-registered profiles and the current route-binding assembly.

Enhancements:

  • Update four stale comments and docstrings to accurately describe the profile as host-registered and identify the current route-binding assembler.

Documentation:

  • Correct documentation describing command and route profile registration and assembly.

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>
Copilot AI lite review requested due to automatic review settings September 12, 2026 02:20
@sourcery-ai

sourcery-ai Bot commented Sep 12, 2026

Copy link
Copy Markdown
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

This documentation-only PR updates exactly four stale lines so they accurately describe the host-registered lazy profile and route_extension.collect_bindings, while preserving all runtime code and validating both declared-edit compliance and regression safety.

File-Level Changes

Change Details Files
Correct four stale comments/docstring lines to describe the lazy proxy’s host-registered profile and current route-binding assembler.
  • Rename the profile framing from in-tree to host-registered for parser and server extension references.
  • Replace the obsolete profile module filename with route_extension.collect_bindings.
  • Preserve all code behavior, references, and surrounding ruled lines; change only the four declared lines.
src/opendox/cli.py
src/opendox/serve.py
Validate that the edits are permitted by the paired declared-edit manifest and do not affect the existing test suite.
  • Confirm the edits are rejected as undeclared against the pre-#995 manifest and accepted as declared against the updated manifest.
  • Run the targeted validation workflow with 71 tests passing.
src/opendox/cli.py
src/opendox/serve.py

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sonarqubecloud

Copy link
Copy Markdown

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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 performs opendox.domain_profile.register(...), while this function reads ROUTE_EXTENSIONS and 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.

@brettheap
brettheap marked this pull request as ready for review September 12, 2026 14:55

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@brettheap
brettheap merged commit 78d5e7a into main Sep 12, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants