Skip to content

feat(site,config,runtime,brand): rebuild docs and homepage, generate agent data, tighten provider configuration - #426

Merged
ofriw merged 138 commits into
mainfrom
docs/positioning
Nov 24, 2026
Merged

ofriw merged 138 commits into
mainfrom
docs/positioning

Conversation

@ofriw

@ofriw ofriw commented Sep 24, 2026 •

Copy link
Copy Markdown
Collaborator

Note: This PR was generated by an AI agent. If you'd like to talk with other humans, drop by our Discord!


Summary

This branch rebuilds chunkhound.ai and turns the docs into a generated product. It also closes the provider-configuration gaps and hardens browser startup and CI. Humans and agents now read the same story, because the site, the configurator, llms.txt, and llms-full.txt derive from shared inputs. Provider facts come from the backend, so the shipped catalog cannot drift. The agent files rebuild on every build, so published text cannot go stale.

This is not a site-only PR. It also changes backend runtime (Chrome launch), config validation, product identity (AGENTS.md, README.md, pyproject.toml), release notes, and adds a brand POC. Each is called out below.

Why this ships as one PR. The site work is the driver, but it exposed two blockers outside the site. First, the site's browser contracts made the Chrome launch flakiness visible; a bounded, owned launch was required before those tests could run reliably. Second, that same test work surfaced the suite failures that the CI split, the UTF-8 subprocess handling, and the shard rebalance fix. Both stay here because the site work is not verifiable without them: reverting either puts the site tests back to red. The brand POC and the identity wording travel with the same positioning update.

Behavior changes

Change Before After
rerank_format="voyage" with a non-VoyageAI provider Accepted Rejected at config load; set rerank_format or use VoyageAI
Malformed embedding.rerank_url Silently joined into a broken endpoint Rejected at load when reranking is active; dropped with a redacted warning when inactive
Chrome launch zd.start() with zendriver's 2.5 s connect ladder Owned browser: 20 s start cap, 2 s failed-start close, ≤10 s stop, process tree and temporary profile reaped
Config JSON with a UTF-8 BOM Decode error Accepted; legacy ANSI configs still load through the locale fallback
Product identity "codebase intelligence for AI assistants" "research engine for AI agents" in pyproject.toml, README.md, AGENTS.md

Review map

Area Main paths Review focus
Site rebuild site/src/**, site/astro.config.mjs New pages, homepage flow, hero terminal
Generated data scripts/generate_site_provider_catalog.py, site/scripts/** Determinism and drift guards
Configuration chunkhound/core/config/**, chunkhound/providers/** Provider facts and rerank validation
Backend runtime chunkhound/utils/websearch_core.py Chrome ownership, timeouts, zendriver coupling
CI and tests .github/**, tests/** Job split, shard balance, site test surface
Brand POC brand/** Print/sticker SVG sources, fontTools
Identity and release notes AGENTS.md, README.md, pyproject.toml, CHANGELOG.md Tagline wording, approval record, Unreleased entries

1. One story for humans and agents

Astro 7. The site moves from Astro 6.3 to 7.3. Astro 7 parses GitHub-Flavored Markdown directly, so remark-gfm and mermaid leave the dependency set. Astro 7 also compresses HTML with JSX rules by default, which glues inline siblings such as laptop.Build. compressHTML: true keeps render-affecting spaces. tests/site/test_inline_spacing_contract.py fails if the setting regresses.

New homepage. The page now argues one case in sequence: scale, locality, research sources, research questions, enterprise fit, setup, start. ProvenAtScale carries the origin story and the metrics. NothingLeaves states what the local index keeps. ResearchStory and ResearchQuestions connect repo sources with web sources. EnterpriseTeaser and StartHere close the path. Section banding derives from page position, so reordering sections cannot desynchronize the rhythm.

Hero terminal. The demo runs as a small state machine, split into session, run, typing, viewport, controls, and timing modules. Pacing, transcript, and narration each have one owner. The card reserves the settled transcript height and clips from the top, like a real scrollback. A Stop control satisfies WCAG 2.2.2 for the 19-second run. Reduced motion writes the full transcript with no sleeps and no CSS animation. Teardown is bfcache-aware, and every async write checks for a destroyed session.

Architecture page. /docs/architecture/ explains why the engine has this shape: chunking, retrieval, adaptive cutoff, token routing, and index freshness. Five diagram components render from site/src/lib/architecture.ts. A build-time length check stops a dropped connector from shipping. Prose claims and table-of-contents anchors have tests.

New guide pages. Workflows covers the workflow.* pi-schematic API and includes a live demo. Software Factory (pi-schematic) explains the control plane and the human checkpoints. Enterprise Setup covers remote configuration and usage analytics across a fleet. The old /enterprise/architecture route redirects to the new architecture page, so external links keep working.

Configurator. The monolithic component and its data file split into typed modules under site/src/components/configurator/: presets, requirements, builders, catalog facts, rerank validation, highlighting, and shell output. New visitors start with Pi and Vercel AI Gateway. A reranker editor validates URL, format, and model in the browser with the backend rules. The copy action stays disabled while the rerank configuration is invalid. Provider search counts query matches only, so a zero-match query announces "No providers found" and still keeps the checked row visible.

Navigation. site/src/lib/nav.ts owns guide groups, page metadata, and top-nav destinations. DocsNav renders the sidebar and the mobile menu from that model, so one edit reaches both. The filter matches whole groups, the drawer traps focus, and the search shortcut opens the drawer before it focuses the input.

Agent corpus. site/scripts/generate-llms-txt.mjs builds llms.txt and llms-full.txt from the same nav model, positioning.json, and the Markdown docs. Frontmatter goes, code spans stay literal, and presentation markup flattens to prose. .astro pages are .md-incompatible, so llms.txt links them instead. Both files are gitignored, and prebuild regenerates them. A --check mode exists for local use; CI relies on tests/site/test_generate_llms_txt.py, because the build already regenerates the files before any check could compare them.

Design system. DESIGN_SYSTEM.md now records the tokens, diagram rules, and terminal behavior that the new pages use. The Inter face ships with its OFL license, and sticker sources keep rendered PNGs out of version control.


2. Generated data with two guards

The backend owns provider identity and provider facts. The site does not retype them.

scripts/generate_site_provider_catalog.py reads LLMProviderLiteral, REMOVED_PROVIDERS, OPENAI_COMPATIBLE_PROVIDERS, LLMConfig.requires_explicit_model, and the embedding provider union. It writes site/src/components/configurator/provider-catalog.gen.json with sorted IDs, fixed field order, LF endings, and no timestamps. The committed file makes site builds independent of a Python run.

Two guards keep that file honest:

  1. test_committed_catalog_matches_backend_registry compares the committed bytes with a fresh render. --check exits with code 1 and prints the regeneration command when the file is stale or missing.
  2. catalogDrift checks the hand-authored presets against the catalog: every backend provider needs a preset, no preset may name an unknown provider, and any provider that needs a model must pin one. It also mirrors the custom-endpoint rule, including the lookalike api.openai.com.evil.com host.

Every failure names uv run python scripts/generate_site_provider_catalog.py. A copied key URL would create a second source of truth, so requirements.ts throws when a caller overrides a registry authUrl. Marketing copy stays in positioning.json; README.md receives a marker-delimited block from it, and CI runs that sync with --check.


3. Configuration

Vercel AI Gateway. provider: vercel joins the OpenAI-compatible registry with https://ai-gateway.vercel.sh/v1. The gateway routes to many upstream models, so structured output stays on the prompt-injection fallback and reasoning support is probed per model. The gateway documents max_tokens as optional, so provider-managed synthesis omits the cap, as it does for OpenRouter. Like every registry provider, Vercel needs an explicit model. The configurator pins deepseek/deepseek-v4.1-flash in both gateway presets, so a switch between them needs no model change.

Ollama. Ollama remains a local OpenAI-compatible endpoint, not a reranker host. Its embedding preset no longer bundles qwen3-reranker, and its setup hint pulls the embedding model only. Web search, fetch, and research need a reranker, so the configurator now shows that dependency as required for such presets. The docs state the same and show a separate vLLM service for local reranking.

Explicit models. LLMConfig.requires_explicit_model() reports when no baked-in default exists. The generator carries that fact to the site, and the drift guard makes each preset pin a model. Documentation repeats the rule per provider.

Frozen Voyage defaults. voyage-3.5 and rerank-2.5 stay as runtime fallbacks for configs that omit a model. Those values must not follow the site recommendation, because a changed fallback would rewrite existing indexes. The configurator instead emits voyage-4-lite and rerank-3-lite explicitly. The upgrade hint stays print-only, and the map now points voyage-3.5 at voyage-4-lite.

One rerank URL module. chunkhound/core/utils/rerank_url.py owns normalization, resolution, and redaction. EmbeddingConfig, the factory, and both HTTP providers use it. The module lowercases only the scheme and rejects backslashes, incomplete authorities, and whitespace, because browsers and HTTP clients disagree on those forms. Providers keep their own relative-path join rule. A relative URL without base_url, or an invalid URL, is dropped with a warning that names the sanitized endpoint. Credentials, query, and fragment never reach the log. An unused rerank_url no longer blocks config load, a blank rerank_model resolves to the provider default, and rerank_format="voyage" is limited to VoyageAI. The site mirror in rerank-validate.ts uses the same acceptance matrix, including Python whitespace semantics.


4. Runtime, CI, and test surface

Chrome. _managed_browser now starts one owned browser with a hard 20-second bound. The connection budget stays generous for a cold CI launch (0.5 s × 30 tries ≈ 15 s), and a failed start closes its CDP session within 2 seconds. A failed stop gets 10 seconds before the urllib fallback. Failure, cancellation, and a failed stop all reap the owned process tree and the temporary profile.

This is the code the site's browser contracts needed. Their failures exposed the launch path, and the old retry ladder plus exit-time cleanup net were replaced rather than patched. Cleanup reads zendriver's _process, _process_pid, and get_registered_instances, so zendriver stays pinned at 0.15.3. Chrome older than 124 still fails the version probe, because zendriver cannot parse its Response.charset events, and every unusable case warns before falling back to urllib.

BOM and legacy encodings. read_json_file decodes UTF-8 with an optional signature first, then retries with the platform locale. Config load, remote-config persistence, Code Mapper overrides, and the CLI timeout prompt use it. A file that neither encoding can read still fails, but with the friendly invalid-JSON message. Rewritten configs normalize to plain UTF-8. Subprocess output is pinned to UTF-8 with replacement, and a byte-exact test guards that rule.

CI. The site build now runs astro check and the README positioning check, then builds; prebuild generates the agent corpus. Unit and integration tests run without tests/site, so a browser dependency cannot slow them. A new site-tests job runs three shards on three operating systems with least_duration splitting and a 700-second per-test cap. CHUNKHOUND_REQUIRE_SITE=1 turns a missing toolchain into a failure, not a skip. The test jobs share a setup action, keep the flaky-annotation gate, and join the release gate. tests/unit/test_ci_site_split_contract.py holds the split.

Test surface. tests/site is 22 files and roughly 4.3k added lines, and it is why this PR's CI job was split. Each file guards a user-visible contract: rendered markup and spacing, terminal behavior and reduced motion, configurator output and rerank validation, generated llms.txt content, navigation and focus, color contrast, and build output. CHUNKHOUND_REQUIRE_SITE=1 keeps those tests honest: a missing toolchain fails instead of skipping.

Browser tests. Component behavior runs in happy-dom against the real built markup, with fakes only at browser boundaries such as IntersectionObserver, rAF, and media queries. Geometry, typography, contrast, theme, and keyboard contracts run in Playwright Chromium against a hermetic server that aborts external requests. Font fixtures come from the shipped face, so text metrics match the real page. The oversized-chunk reproduction left pytest and lives in tests/debug/ as a manual script.


5. Brand POC and product identity

Brand POC. brand/stickers/ replaces the deleted PNG-based brand assets with printable SVG sources. PNGs stay out of version control, so the SVG is the only source of truth. Both generators run from that directory: uv run --with fonttools python outline_text.py outlines Inter Bold text into glyph paths, and uv run python gen_showcases.py renders the lid showcases. fontTools is fetched per run, so it is not a project dependency. The showcases reproduce Apple, Lenovo, and ThinkPad badge geometry for placement preview only; any print or distribution needs a maintainer sign-off.

Identity. AGENTS.md changes three lines: the project tagline, the purpose line, and the lint command (make lint). Approved by @ofriw, the contributor who submitted this PR. README.md and pyproject.toml carry the same tagline, so the site, the package, and the agent context tell one story.

# Conflicts:
#	CHANGELOG.md
#	chunkhound/utils/websearch_core.py
#	site/src/components/configurator-data.ts
#	site/src/pages/docs/configuration.md
#	tests/conftest.py
#	tests/integration/test_websearch_fetch_page.py
#	tests/site/test_configurator_contract.py
@HananKavitzAmat

Copy link
Copy Markdown
Collaborator

Summary: The site and config work is sound and most earlier findings are fixed, but I'd still request changes. A Chrome-launch rewrite is bundled in with undisclosed behavior changes, AGENTS.md is edited without recorded approval, and the brand POC is still included.

I ran no tests; all four agents read code only. Site tests need Node ≥22.18, which I didn't confirm is available here. Local main is stale, so I used the GitHub diff of the PR rather than a local diff.

Grouping (no shared files): backend config, websearch and CI, configurator, site content and brand. This pass covered the changes up to head 011bb70, which is 261 files. CI is green at that head, but GitHub reports the PR as blocked, and one reviewer's "changes requested" is still on record.

Strengths

  • Rerank URL rules now live in one module, chunkhound/core/utils/rerank_url.py. The TS validator matches it, including Python whitespace semantics. A shared accept/reject test matrix covers both sides.
  • The provider catalog is generated from the backend, with a drift test. Shell quoting is safe for both POSIX and PowerShell, and the earlier voyage-format and focus-loss defects are fixed.
  • Chrome pipe-close cleanup is tested with a real grandchild process. Site tests skip locally with a clear message and fail only in CI. The brand POC is down to about 1.6 MB with no tracked PNGs. The "nothing leaves" and "20+ maintainers" claims are gone.

Issues

Major

  • AGENTS.md:3-6: The tagline and purpose worle forbids this without explicit approval.Neither the PR body nor the commit headlines record one, so link the approval or revert.
  • Scope, chunkhound/utils/websearch_core.py:
    • The Chrome-launch rewrite is still in a PR titled feat(site), although the PR body says it was reduced.
    • Worst case before the HTTP fallback is a.5 s on main.
    • CHANGELOG.md:25 describes it as a single bounded attempt.
    • Move it to its own PR, or correct the de
  • chunkhound/core/config/embedding_config.py:89-91:
    • rerank_format="voyage" is now rejected aageAI provider.
    • The CHANGELOG doesn't list it, and a config that loaded before can now fail.
  • CHANGELOG.md (~line 92): The released 6.0.t is rewritten. Put that wording underUnreleased. The Keep-a-Changelog header is also joined onto one line.
  • Brand POC (brand/stickers/, pyproject.toml
    • It is still bundled.
    • fontTools is undeclared while pillow>=11s PIL.
    • The showcase SVGs carry Apple, Lenovo and ThinkPad marks, which needs a maintainer or legal decision.
  • Site test volume:
    • tests/site is about 14–17k lines, depending on how the agents counted, against about 15.5k lines of site source.
    • The biggest files are test_hero_terminald test_configurator_contract.py (1,052).
    • Tests pin marketing copy (test_configurator_contract.py:885), hard-coded model IDs (:927), and docs prose
      (test_configurator_defaults_contract.py)
    • About 12 per-provider tests could be one parametrized test.
    • This conflicts with TESTING_PHILOSOPHY.

Minor

  • websearch_core.py:
    • Any TimeoutError is reported as "Chrome g ones from inside zendriver.
    • The code reads zendriver's private state (_process, _process_pid, get_registered_instances) with no test guarding
      a version bump.
    • The 15 s connect budget and 20 s start cap are separate constants.
  • site/src/scripts/configurator.ts:161-163: valid-looking config on screen without it.Copy is disabled, so the clipboard is safe.
  • site/src/scripts/copy-handler.js:46-48: Thd when a later click fails.
  • chunkhound/providers/embeddings/openai_provider.py (~2026-2043):
    • Rerank error handlers still log the raw
    • The CHANGELOG says OpenAI logs redact credentials.
    • I did not confirm httpx messages carry c
  • openai_provider.py (~1795): resolve_rerank_url can raise ValueError inside an except and mask the original httpx
    error. This is unlikely.
  • site/src/components/configurator/providers.ts:187: Rerank formats per preset are hand-typed, and the guard test
    names only three presets. A new OpenAI-comage.
  • rerank-validate.ts: It is stricter than Python on some hosts (WHATWG parsing). This is safe, but it contradicts the
    "parity" claim.
  • providers.ts:57: Only Pi gets a .gitignore entry, with no stated reason.
  • site/src/components/ProvenAtScale.astro:43is still unsourced.
  • Docstrings: rerank_url.py, _utils.py and embedding_config.py have docstring problems under PEP 257. The
    rerank_url.py and _utils.py ones refer to
  • Site-test duplication:
    • ROOT/DIST are defined in six test module
    • The reduced-motion guard is repeated at eight call sites in terminal-run.ts.
    • tests/test_rerank_url_contract.py assertnk_url and enumerates whitespace code pointsone by one.

Reusability

  • Drive the configurator's per-preset rerank catalog, for example with asupportsVoyageFormat flag.
  • Collapse the per-provider configurator tes, and the per-codepoint whitespace tests into one matrix.
  • Export ROOT/DIST once from tests/site/confated reduced-motion check in terminal-run.tswith a single predicate.
  • Tie the Chrome connect budget and start cao.timeout() and .expired() so a real timeoutinside zendriver isn't relabelled.

Decision: REQUEST CHANGES. Before merge:

  1. Link the AGENTS.md approval or revert the
  2. Split out the Chrome-launch rewrite, or correct the PR body and CHANGELOG to match the code.
  3. Add the voyage-format rejection to the CHsed 6.0.0 text.
  4. Remove the brand POC, or declare fontTools and drop the unused pillow, and get a decision on the trademarked marks.
  5. Cut the site tests back to real contracts

@ofriw ofriw changed the title feat(site): rebuild docs and homepage, generate agent data, and tighten provider configuration feat(site,config,runtime,brand): rebuild docs and homepage, generate agent data, tighten provider configuration Nov 12, 2026
@ofriw
ofriw requested a review from grzegorznowak November 13, 2026 07:17

@grzegorznowak grzegorznowak left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Given the scale of this PR I was only able to focus on some of the surfaces it touches, mostly around the core CH features, rather than the site/presentation layers.

Nothing terribly blocking but some areas are worth having some additional look into

return "\\" in value or any(char.isspace() for char in value)


def url_for_log(value: str) -> str:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Optional follow-up: this PR adds url_for_log for endpoint diagnostics, but some existing web-fetch/research diagnostics still print raw URLs:

  • chunkhound/utils/websearch_core.py:1185–1191: fetch progress and failure messages.
  • chunkhound/services/web_research_service.py:601,705,727,784: parse/refetch/replay warnings.

These messages reach CLI output and, for warnings, MCP responses without sanitization. URLs containing credentials or signed query parameters could
therefore be repeated in diagnostics, including for failed sources that never appear in the final citations.

Could we track applying the same redaction policy to these diagnostic fields? Redacting only the explicit URL may not suffice: some fetch exceptions also
embed URLs, so their formatting needs attention too. Actual request URLs and intentional source citations should remain unchanged.

These paths predate this PR, so I suggest a follow-up rather than blocking this change.

Comment thread .github/workflows/ci.yml

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

CI cost / over-building — potential problems

Static reading of .github/workflows/ci.yml at 011bb70 against base 5a01b27. No workflow runs were executed, so runtimes and billed minutes are not
verified. Counts describe a complete configured run, excluding retries and early failures.

Per-run work (build count unchanged from base, content increased)

  • Four full Astro builds per CI run: one artifact build (site-build, ci.yml:18-47) plus three validation builds on ubuntu/macos/windows
    (site-build-validation, ci.yml:49-81). Only the Ubuntu site-dist artifact is consumed downstream (ci-python-setup/action.yml:51-62, Pages at
    ci.yml:406-414); validation uploads no artifact, so its generated output is not transferred. Its status still gates deployment.
  • Repeated build-hook work across those four builds: prebuild runs prepare:site each time (site/package.json:14-18), so OG image generation,
    changelog sync, and llms-txt generation execute four times per run, in addition to separate generator-test invocations.
  • Seven live contributor-fetch sequences per run: one in the artifact build, plus precheck and prebuild on each of the three validation OSes
    (site/package.json:12,14,17). Pagination can multiply actual HTTP requests.
  • Thirteen npm ci installations per run: four build jobs plus nine site-test shards, which install through ci-python-setup/action.yml:41-43.
  • Nine site-test jobs each repeat environment setup: Python dependencies, native extension build (build-rust-extension/action.yml:40-44), and
    Chromium installation are redone per shard (ci-python-setup/action.yml:44-64).

Duplicated coverage

  • The three-OS validation rebuild validates static output deployed through one Pages deployment. OS-sensitive parts are covered elsewhere: dedicated site
    tests execute the OG generator cross-OS, and POSIX/PowerShell command generation selects the platform as an explicit argument
    (configurator/builders.ts:131-140), so an Astro rebuild on Windows generates those commands but does not execute them.
  • Cross-OS consumer coverage still exists in site-tests; the redundant part is the repeated build, not the OS matrix itself.

No dependency or path scoping

  • The workflow has no paths/paths-ignore filters (ci.yml:3-8), so the full site pipeline runs on every PR update, including changes that cannot
    affect site output. A naive docs-only filter would also be wrong: CHANGELOG feeds generated output, and site docs feed llms output. README positioning is
    checked separately rather than consumed by the build. Backend coupling is real for specific contracts, not every backend change.

Related gate risk

  • site-tests uses continue-on-error and delegates the failure decision to check_flaky_annotations.py. That script exits 0 for a well-formed JUnit
    report containing zero testcases, and for skipped-only reports. It does not fail missing or malformed files. There is also no freshness check across retry
    attempts: an earlier annotated-failure report can survive a retry killed before XML finalization and pass the gate. Unsplit collection runs beforehand, so
    zero-selection is a narrower case than it first appears.

Attribution

  • The four-build pattern and thirteen installs predate this PR; base also built four times. This PR adds three astro check runs, four build-hook llms
    generations, seven contributor fetches, and nine dedicated site matrix jobs. Per-run cost increases even though the build count does not; any comment on the
    four-build pattern concerns inherited structure, not a regression introduced here.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Rerank validation is not coherent between the configurator and the backend

The PR introduces a shared Python reranker-URL rule set (chunkhound/core/utils/rerank_url.py) and an independent TypeScript mirror
(site/src/components/configurator/rerank-validate.ts), tied together by a parity test. Comparing the two sides reveals at least two input classes the
configurator accepts and emits but the backend rejects at config load. Neither is covered by the current parity matrix.

  1. Unmatched [ in rerank URL userinfo
  • Site: rerank-validate.ts validates through WHATWG new URL, which accepts an unmatched [ inside userinfo (for example https://user:pass[@host/rerank);
    canonicalRerankUrl only lowercases the scheme, so builders.ts emits the raw bracket.
  • Backend: normalize_rerank_url → _validate_http_authority runs Python's urlsplit, which rejects an unmatched bracket anywhere in netloc, including
    userinfo. Active rerank validation (embedding_config.py's validate_rerank_configuration / validate_rerank_config) therefore raises at load.
  • Result: a configuration the site marks as valid cannot be loaded by the engine it configures.
  1. Whitespace-only model accepted by the UI, treated as unset by the backend
  • Site: model normalization uses JS .trim(), which does not strip U+0085 (NEL) or U+001C–U+001F. A cohere reranker whose model field contains only such
    characters passes rerank-validate.ts (hasModel is true) and is emitted.
  • Backend: embedding_config.py normalizes with v.strip() or None, which maps exactly those characters to unset, after which the missing-Cohere-model check
    raises.
  • Result: the same string is a valid model in the site and a missing model in the backend. Note the mirror deliberately replicates Python whitespace
    semantics for URL characters (PYTHON_WHITESPACE_RE) because JS \s differs, but the model-normalization path does not apply the same treatment.

Both are narrow edge cases, but they are the kind of cross-language acceptance drift the parity tests are intended to prevent, and neither is currently
covered: test_cohere_format_rejects_blank_model covers ASCII spaces only, and the URL acceptance matrix has no userinfo-bracket case. Verified against
pinned head 011bb70 by static read (no runtime probes).

@ofriw
ofriw requested a review from grzegorznowak November 18, 2026 06:57
@HananKavitzAmat

Copy link
Copy Markdown
Collaborator

Summary: The PR is large (GitHub reports 261 files, +35k/−12k) and mostly sound. Most of the earlier reviewers' blockers no longer reproduce at head 172e0d8, and what's left is process and scope: the AGENTS.md edit, the brand POC and test brittleness.

How I grouped it: I made four groups that share no files and reviewed them in parallel. The agents read code but did not run tests, ruff or mypy. I did not re-read the code myself.

  1. Python runtime and config (chunkhound/core, run.py, providers).
  2. Websearch Chrome launch (websearch_core.p
  3. Site configurator (validators, shell writers, tests/site/test_configurator_*).
  4. Docs claims, CI, AGENTS.md, CHANGELOG and

Caveat on scope: My local main is stale. gited 331 files, against GitHub's 261. Agent 4's scope-creep items may therefore already be on upstream main:

  • The MCP 2.x bump.
  • The alpha-release workflow.
  • The hatch dependency hook.
  • The chunkhound-native pin.

Re-check them against upstream/main before raising them with the author.

Strengths:

  • The Python runtime changes are tidy. read_ and falls back on decode errors. Vercelfollows the provider-registry pattern with a drift test. rerank_url.py and url_redaction.py centralize logic that
    was duplicated.
  • The Chrome launch is one bounded attempt, with wait_for at 20 s and process-tree cleanup. That is a simplification,
    and the CHANGELOG discloses it.
  • The configurator is solid. Shell quoting uses quoted heredocs and no injection path was found.
    test_reranker_intent_contract.py checks thnd agree.

Earlier findings that did not reproduce at h

  • Voyage default: The runtime default is unchanged (voyage-3.5, now frozen). Only the print-only upgrade hint now
    points at voyage-4-lite. Implicit-default andtest_index_built_with_the_frozen_fallback_needs_no_pin asserts this. The CHANGELOG mentions the hint.
  • Chrome fallback: There is no retry loop. Tlus cleanup, not the ~38 s claimed.
  • Reranker block: A VoyageAI reranker model with no URL is accepted by both the configurator and the backend.
  • Claims and docs: "Nothing leaves your machex stays on your machine". The contributingdocs cover make dev, rust-check and rust-test. Requesty is documented.
  • Rust claim: It is accurately scoped to Ducon path. The agent did not check that LanceDB lacks the pipeline flag.
  • Duplicated comment: The duplicated commentnot present.

Issues:

  • Major:
    • AGENTS.md was edited in three places: thin the purpose line, and make lint replacingthe ruff command. This needs explicit approval under its own rule, and I found none in the PR. Get the approval
      recorded or revert it.
    • The Python and configurator agents say the CHANGELOG discloses the voyage-3.5 hint and the Chrome change. The
      earlier reviewer said otherwise, and I delf. Reconcile the two before relying oneither.
  • Medium:
    • brand/ is an explicitly "POC — not final" sticker set, wired into make lint:

      • an 876 KB font blob;
      • a pillow dev dependency;
      • Apple and Lenovo lid mockups that need

      It belongs in its own PR.

    • ProvenAtScale.astro has an unsourced "180M lines" stat and a named employer quote ("months to days"). It sits next
      to a "not affiliated or endorsed" discla

    • tests/site/test_configurator_selection_contract.py:~60-130 pins CSS declarations (clamp(, dvh,
      overscroll-behavior). Copy strings are a_contract.py:1045 andtest_configurator_rendering.py:84-86. A user wouldn't notice these breaking, so by AGENTS.md they should be
      rewritten as browser-layout contracts or

    • CI adds a 9-shard site-tests matrix, with Chromium and npm ci per shard, and changes the concurrency group to
      ci-${{ github.run_id }}. That group lets so confirm the deploy and alpha-release jobs still can't race.

    • A crashed-Chrome fallback now has no tim

  • Minor:
    • rerank_format="voyage" with a non-voyage disclosed, but call it out as a behaviorchange.
    • chunkhound/init.py calls disable_pla time. That is an import side effect,unrelated to the PR's stated purpose.
    • CHANGELOG.md dropped the _quickresearch irm that is intentional.
    • The auth_url changes for deepseek, grok and openrouter are unrelated.
    • Two websearch_core tests call the privatescendant-holds-pipe case protects a realhang, but the rest is internal.
    • A https://:80 parity case would settle wex agrees with the backend. A model valuecontaining a newline plus CHUNKHOUND_EOF would escape the heredoc, but only for a programmatic caller.
    • Raw URLs are still logged at websearch_csting, so track it as a follow-up.

Reusability:

  • Replace per-provider copies in the configurator tests with one table-driven case matrix that runs each case through
    both the TS validator and EmbeddingConfig.//:80.
  • Reuse css_helpers.py in test_hero_terminal_behavior.py instead of re-implementing the CSS loader. This is the
    earlier reviewer's finding, which I did no
  • Consolidate generate-og-images.mjs onto repo-context.mjs in a follow-up.

Decision: REQUEST CHANGES.

  1. Record approval for the AGENTS.md edit, o
  2. Pull brand/ out into its own PR.
  3. Confirm the unrelated scope against the c
  4. Rewrite or drop the CSS and copy-pinning tests.
  5. Get sign-off on the "180M lines" and emplthe dropped CHANGELOG entry.

@ofriw
ofriw removed the request for review from HananKavitzAmat November 22, 2026 18:22
@ofriw
ofriw dismissed grzegorznowak’s stale review November 22, 2026 18:22

I'm dismissing the review since this PR isn't converging. Per our discussion on Discord, I'm merging this anyway

@ofriw
ofriw removed the request for review from grzegorznowak November 22, 2026 18:23
# Conflicts:
#	CHANGELOG.md
# Conflicts:
#	.github/workflows/ci.yml
#	chunkhound/providers/embeddings/voyageai_provider.py
#	tests/unit/test_docs_version_workflow_contract.py
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.

3 participants