Skip to content

refactor: split site_explorer into focused modules - #2

Merged
ifuri-validator-agent[bot] merged 4 commits into
mainfrom
refactor/site-explorer-split
Sep 1, 2026
Merged

refactor: split site_explorer into focused modules#2
ifuri-validator-agent[bot] merged 4 commits into
mainfrom
refactor/site-explorer-split

Conversation

@tom-sapletta-com

Copy link
Copy Markdown
Contributor

Summary

  • Extract site_explorer_types.py (dataclasses, constants, platform URL helpers)
  • Extract site_explorer_page.py (page analysis mixin)
  • Slim site_explorer.py facade (~1050 lines)
  • Fix find_content fast-path (content_type vs undefined intent)

Test plan

  • CI passes
  • from nlp2cmd.web_schema.site_explorer import SiteExplorer works

Made with Cursor

Extract HF browser automation and shared check types from the 1388-line
doctor command module (STARTER-008); keep doctor.py as CLI facade.
Extract types/constants and page-analysis helpers from the 1700-line
site_explorer module. Fix find_content fast-path using content_type
instead of undefined intent variable.
subactor-subllm requires Python >=3.11; align requires-python and CI
matrix so dependency install succeeds on all jobs.
is_configured delegates to available_routes; stub it in the unit test so
CI does not depend on live route credentials.

@ifuri-validator-agent ifuri-validator-agent Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Deterministic Validator approval for exact head 1ffd4ba3d8d5579e871571e2b4e1c4c6fa36f97e.

Ticket: ticket-000
Correlation ID: nlp2cmd-pr-2-ticket-000
Model: zai/glm-5.3
Advisory LLM review: LLM_UNAVAILABLE
Reason: advisory_review_budget_exceeded: full review requires 12 chunks; limit is 8
This approval rests on the deterministic checks alone; no advisory opinion was recorded for this head.
Merge will be attempted after this approval when explicitly authorized.

Decision record (recomputable)

DECISION D-000-0519
TICKET ticket-000
HEAD_SHA 1ffd4ba3d8d5579e871571e2b4e1c4c6fa36f97e
CORRELATION_ID nlp2cmd-pr-2-ticket-000
ACTOR agent:ifuri-validator-agent[bot]
APPLIED_RULE P-CORE-015
INPUT author_login = "tom-sapletta-com"
INPUT observed_checks = ["test (3.12)=PASS","test (3.11)=PASS"]
INPUT required_checks = ["test (3.11)","test (3.12)"]
INPUT required_checks_source = "protected registry + GitHub applied rules (env/request)"
INPUT reviewer_login = "ifuri-validator-agent[bot]"
INPUT superseded_checks = []
VERDICT APPROVE AUTHORITY DETERMINISTIC
REJECTED REQUEST_CHANGES BECAUSE NO_UNSAFE_CHANGE_REASON_FOUND
ADVISORY llm_verdict = "" MODEL "zai/glm-5.3"
ASSERT VERDICT_AUTHORITY != "ADVISORY"

@ifuri-validator-agent
ifuri-validator-agent Bot merged commit 64a5124 into main Sep 1, 2026
2 checks passed
@ifuri-validator-agent
ifuri-validator-agent Bot deleted the refactor/site-explorer-split branch September 1, 2026 11:36
@tom-sapletta-com
tom-sapletta-com restored the refactor/site-explorer-split branch September 1, 2026 15:05
@tom-sapletta-com
tom-sapletta-com deleted the refactor/site-explorer-split branch September 1, 2026 23:11
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.

1 participant