chain-rdeveloper portal
build

Website knowledge sources

A knowledge source of type web keeps a set of website pages current and searchable, and keeps every version of each page it has seen. Agents granted the source (through a repository) retrieve from the newest version of each page; the older versions are the audit trail of what the platform knew, and when.

What a source crawls

A website source's source_config is validated on every create and edit by svc-core/app/services/knowledge/web_config.py (WebSourceConfig):

FieldDefaultMeaning
scopesectionpage: only the listed URLs. section: those pages and anything under their path on the same host (/docs reaches /docs/*). site: anything on the same host.
max_pages25Pages fetched per crawl, 1–200. Sitemaps do not count.
max_depth2Links followed away from a listed URL, 0–5.
include / excludenonePath globs (/blog/*). With any include set, only matching pages beyond the seeds are crawled; an exclude always wins.
refreshweeklyhourly, daily, weekly or manual.
use_sitemaptrueAlso read the host's /sitemap.xml when the scope is wider than a page. Pages it lists still have to be in scope.
skip_low_valuetrueSkip action, account, asset and feed links (see Which links a crawl follows), and stop fetching a kind of page that keeps coming back empty or behind a login.
follow_externalfalseAlso read the pages on other sites that crawled pages link to — the articles an aggregator lists, the sources a post cites. One hop only.
max_external_pages20Linked pages per crawl, 1–100, separate from max_pages.
feed_contentautoWhen a URL is a feed, how its entries become pages — see Feeds.
max_age_daysnoneA rolling window: pages older than this are removed with their snapshots — see A rolling window. None keeps everything.
attributionnoneThe credit every passage from this source carries into a citation — what the site's licence asks for.
licence_urlnoneThe licence, linked beside the attribution.

The older {urls, depth} shape fe-core used to write still validates (depth becomes max_depth), and so does {}. A source with no URLs simply has nothing to crawl until somebody adds some. A generated source arrives with URLs a web search found and svc-core checked (see Generated sources below), never ones a model wrote.

Only https:// URLs are accepted, because svc-ai's fetcher refuses anything else; a URL the crawler will always refuse is rejected where it is typed.

Unlike a database or API source, a website source's config holds no credentials, so it is part of the resource's edit history (Knowledge.audit_excluded_fields_for). Which URLs an agent could read is exactly what an audit needs to see change.

How a crawl runs

fe-core "Refresh now" ─┐
scheduler (due) ───────┼─► svc-core claim ─► crawl pool ─► per page ─► svc-ai POST /knowledge/web/fetch
create / edit URLs ────┘   (running row)     (2 threads)              (SSRF guard, robots.txt,
                                                                       conditional GET, markdown)
  • svc-core never fetches the web. Every page goes through svc-ai's /knowledge/web/fetch (svc-ai/app/knowledge/web.py), which reuses the url_fetch tool's UrlFetcher: https only, every redirect hop re-resolved and refused if it lands on a private, loopback or link-local address, and a byte cap. svc-core's only egress stays the dashboard feed network.

  • robots.txt is honoured (RFC 9309) against the product token WEB_KNOWLEDGE_ROBOTS_TOKEN (CHAINR-Agent): a 4xx robots.txt means no rules, a 5xx or unreachable one means "assume everything is disallowed". Crawl-delay is respected, clamped at 10s. rel="nofollow" links are not followed.

  • Politely paced. At least one second between two requests to the same host, more if robots.txt asks.

  • One crawl per source at a time. A crawl is claimed by committing a running row to knowledge_crawls; the partial unique index uq_knowledge_crawls_one_running refuses a second, so the scheduler and a manual refresh cannot both crawl. A crawl still running after three hours is taken to have died with its process and is closed.

  • Off the request path. Crawls run on a two-thread pool (web_crawl._executor); the API answers 202 with the running crawl and the page polls GET /web/crawls for its outcome.

  • One page svc-ai could not fetch is that page's failure. A slow page (a PDF through docling) can outlast svc-core's 90 s fetch call; it is recorded as failed ("could not be fetched in time") and the crawl goes on. Three such failures in a row, or a crawl in which svc-ai answered no fetch at all, mean svc-ai is down, and the crawl fails with its reason (web_crawl.MAX_FETCH_ERRORS_IN_A_ROW).

The first crawl starts as soon as a source is saved with URLs, and again whenever its URLs or settings change. After that, the web_knowledge_refresh scheduler job starts one when the cadence comes round — measured from the last crawl started, whatever its outcome, so a site that is down is retried on its cadence rather than on every tick.

Feeds

A URL may be an RSS (0.9x, 1.0, 2.0) or Atom feed. svc-ai recognises one and answers with its entries instead of content (feed_entries: url, title, published, summary, author). It parses with lxml, with entity resolution, DTD loading and network access off, so a hostile feed cannot expand entities or reach anything. A feed is a listing like a sitemap: its entries are pages, read once and never followed, newest first, capped by max_pages, and filtered by include / exclude.

A feed also says things about each entry, and feed_content decides how much of that is used:

feed_contentAn entry becomes
entryOnly what the feed says. The linked page is never fetched.
articleAlways the linked page.

Three rules hold in every mode:

  • Another site's page is never fetched because a feed listed it. Only the feed's host and its subdomains are fetched (science.nasa.gov for a www.nasa.gov feed). In auto, another publisher's entry is kept from the feed; in article it is skipped.

  • The feed's facts win. A fetched page takes the entry's title, publication date and author. A page's extracted title is often the site's navigation ("Main navigation"); the feed's is the publisher's own.

  • An entry already stored is not read again until the feed re-dates it. News does not change after publication, so a quiet hour costs one request, the feed.

Fetching as an article (article: true on /knowledge/web/fetch) tells svc-ai the page is one article, so trafilatura's article text wins whenever it found real content. The usual test, which keeps the whole page when trafilatura drops links, protects listings. On an article the links it drops are the site's navigation, which the structural conversion would otherwise index into every page, cookie banner and all.

Each page records published, author, feed_published (the date that decides re-reading) and from_feed (its text came from the feed, not the page).

A rolling window

max_age_days keeps a window rather than an archive. At the end of each crawl, every page published more than that many days ago is removed: chunks, stored snapshots and rows. A page with no publication date ages from when it was first stored. An entry the feed lists but which is already older than the window is never stored. Otherwise it would be stored, removed and fetched again every crawl for as long as the feed lists it. Removals are counted on the crawl (pages_expired).

Without max_age_days nothing is removed, the default for a source kept as a record. Removing a page's history is the source's stated policy, never a platform default. It is right for news; it would be wrong for a policy site an audit may ask about.

Credit on every passage

attribution and licence_url, with each page's published and author, are written onto every chunk the page is indexed as. svc-ai carries them into each citation (RetrievedPassage.citation()), and fe-core shows them on the citation card: a byline ("Published 30 Sep 2026 · by …") and the credit with a link to the licence. The model sees each passage's publication date beside its snapshot date. The built-in News repository sets both fields on every source (News).

trafilatura extracts an article's prose well but treats link-dense regions as boilerplate. On a listing, index or aggregator page (a blog index, a docs contents page, the Hacker News front page) it used to keep every title and drop every URL, so an agent could only cite the listing. Extraction now (svc-ai/app/knowledge/web_extract.py):

  • uses trafilatura, with links on, when it captures the page's content and keeps at least a quarter of its content links: prose pages, docs;

  • otherwise converts the page's structure directly (LinkedMarkdown). Every content link becomes [text](absolute url), and each table row becomes one line, so an item's title, source and score stay together:

    1. [F-Droid 2.0](https://f-droid.org/2026/09/24/…) (f-droid.org)
    620 points by daveoc64 [4 hours ago](…/item?id=…) | [186 comments](…/item?id=…)

Action links lose their text as well as their URL ("hide", "vote" are interface, not content). Account and feed links keep their words ("daveoc64") but not the link. Tracking parameters (utm_*, fbclid, …) are stripped from every URL.

svc-ai classifies every link from its URL alone. classify_link is conservative: only a clear signal makes a link anything but content.

CategorySignalExamples
accountfirst path segment leads into accounts/user?id=…, /login, /settings, /wp-login.php
asseta media, script, font or archive extension.png, .js, .zip
feedan RSS / Atom path or extension/rss, /feed, .atom
contentanything else/item?id=…, /docs/user-guide

With skip_low_value on, the crawler follows only content links, and:

  • fetches best-first rather than breadth-first. A link scores higher for being in the page's content rather than its <nav> / header / footer, and for having real anchor text. It scores lower for query parameters, depth, and a URL template already queued many times (the thirtieth /item?id=). Ties keep page order, so a listing's top entries come first;

  • learns what not to fetch. URLs are grouped by template, ids blanked (/user?id={…}, /item/{id}). A template whose first two pages come back empty, thin, failed or login-walled, with none good, is not fetched again this crawl. The crawl note names it;

  • spots login walls. A page that redirects to an account or action URL reports auth_required instead of being stored as the sign-in form.

Each page's links are stored on its record. A later crawl that gets a 304 Not Modified (no body) still follows them, so an unchanged index page keeps leading the crawl to the pages beneath it.

Linked pages and deep citations

With follow_external on, a crawled page's links to other sites are read too: one hop, up to max_external_pages, never following the linked page's own links. Each is stored as an ordinary page with origin: linked and linked_from (the crawled pages that link to it, up to five).

Two pieces of provenance ride on every indexed chunk:

Payload fieldMeans
viafor a linked page, the crawled page(s) it was reached from ({url, title})

Retrieval carries both into each citation, and the evidence an agent reads shows Linked from: [Hacker News](…) above a linked page's passage. The synthesis prompt asks agents to cite the original, not the listing:

[4] [F-Droid 2.0](https://f-droid.org/…) — via [Hacker News](https://news.ycombinator.com/)

The evaluator's source ledger (app/agents/source_ledger.py) lists both kinds (knowledge_link, knowledge_referrer) with their parent, so a deep citation verifies. A URL that merely resembles a linked one does not. In fe-core the citation card shows the chain, News › Hacker News › F-Droid 2.0, and a passage's links; a linked page in the pages list shows what it was linked from.

Verified live against news.ycombinator.com: a front-page crawl with four linked pages read the top four stories in page order, recorded "via Hacker News" on each, and skipped 89 action / account links. A whole-site crawl skipped 779 and fetched no /vote, /user or /hide page.

What a crawl keeps

Each page is one KnowledgeDocument, keyed on its canonical URL (fragment dropped, host lower-cased) so its id — and every citation of it — is stable across crawls. For each page the crawl asks one question: did its text change?

OutcomeWhat happens
UnchangedNothing new is stored. The page's ETag / Last-Modified are sent back, so most of these are a 304 that downloads nothing.
404 / 410The page is marked gone and leaves the index. Its versions stay.
robots.txt refuses itMarked blocked, not fetched. Its last snapshot stays searchable.
Any other failureMarked failed with the reason. Its last snapshot stays searchable.

"Changed" means the extracted text, hashed after normalising trailing whitespace — not the HTML bytes — so a rotated CSRF token, ad slot or build id does not make a new version.

Only the newest version of a page is in the vector store: indexing a page replaces its chunks. Each chunk carries url, page_title and fetched_at, so a citation links to the page and the rendered evidence says page as of 2026-09-20. Older versions are for people, not retrieval — the product decision was an audit trail, not "what did this page say in March?". Adding that later would mean indexing versions alongside each other and filtering on fetched_at; the payload already carries it.

How a source is kept, at a glance

The source's Content tab opens on How it is kept (knowledge). It shows each of the last 20 finished crawls' pages by what became of them (unchanged, changed, new, failed), how recently its pages' text last changed (a page never seen to change counts from when it was first stored; gone pages are left out), and the sites its pages come from. All of it is drawn from the crawls and pages this section already lists. The Up to date trust signal reads the last successful crawl against the cadence: within 1.5× the interval is met; up to 2×, or a last crawl that failed or waited for budget, is slipping; past that, or never crawled, is behind.

Looking back at a crawl

A page gets a new version only when its text changes, and the pages list shows each page's newest. So a site whose crawls mostly find new URLs (a news section, a listing, a feed) shows most pages at version 1, each first stored by a different crawl, and the list alone cannot say what the source held at an earlier crawl. The list says "First stored" rather than "Changed" for a page with one version.

Each version names the crawl that wrote it (crawl_id), which is enough to rebuild the source as any crawl left it (services/knowledge/web_as_of.py, GET /web/crawls/{crawl}/pages). The version in force after a crawl is the newest one that crawl or an earlier one wrote. Only one crawl of a source runs at a time, so another crawl's version fetched before this one started is an earlier crawl's. For every page with a version, the route returns:

FieldMeans
nowThe newest version.
writtenWhat the crawl itself stored: new (the page's first version), changed, or null.
sincenow against then: added, changed or unchanged.

expired_since counts the pages later crawls removed under max_age_days. Those went with their versions, so they are counted, not listed.

In fe-core every crawl in the history, and the latest crawl's Pages from this crawl, opens that view (WebCrawlModal). It filters by what the crawl stored, what has changed or been added since, and every page it held. A page opens its history on the version it was then. Compare with current diffs that version against the newest. The history's Compare with picker diffs any snapshot against any other, older to newer either way. Closing a page's history goes back to the crawl it was opened from.

Generated sources

Knowledge → Generate (Repositories or Sources) designs sources on real material (October 2026). svc-core runs it in the background (services/knowledge/generation_job.py), because it takes longer than a request may (svc-bff and Cloudflare cut long ones):

POST /app/knowledge/generate → 202 {generation_id}   (run running, stage queued)
  planning   svc-ai /knowledge/discover/plan    a model writes up to 8 web searches
  searching  svc-ai /knowledge/discover/search  they run; results merged in turn,
                                                deduplicated, at most 3 per site
  checking   svc-ai /knowledge/discover/check   each result probed: robots.txt, status,
                                                what it is (page, feed, document), title
  designing  svc-ai /knowledge/generate-config  the design, choosing among what passed
GET /app/knowledge/generate/{id} → {status, stage, progress, proposal?, error?}
  • An address is never a model's. The design sees each checked result by a handle (p1, d2) with its title, site and snippet, never its URL, and its schema offers only those handles. svc-core maps the handles back to its own copy (knowledge/candidates.py): a page or feed only for a website source, a document only for a file source, anything else dropped with a warning. A database, API or graph source takes none.

  • A search for documents asks for documents. svc-ai adds filetype:pdf to a search the plan marked as looking for documents; Brave honours it, ddgs only partly.

  • Discovery degrades, never fails. No plan, no search provider, nothing found or nothing usable: the design runs on stubs and a warning says so.

  • One at a time. A second generation while one runs for the same person in the same workspace is a 409 naming it, and fe-core follows that one. A run that has not reported for eight minutes went with its process and is failed when read (generation.is_stale).

  • The proposal is kept on the run (generation_runs.proposal, migration 102), so a reload or another tab comes back to it (fe-core pages/knowledge/generationStore.ts).

  • The review is the person's. Every link can be dropped, any can be added (validated as a hand-made source's, normalise_seed_url), and the results no source took are offered under Also found.

  • Create (create-from-config, a proposed run only) gives a website source web_config.generated_config(urls, scope, refresh, category=) — the chosen scope and cadence, at most 25 pages at depth 2 — and starts its first crawl once committed. A file source's documents are imported (below).

Generating by kind of knowledge (26 October 2026)

A generation starts from the kind of knowledge it is for (knowledge): POST /app/knowledge/generate takes category, the run's arguments keep it, and the proposal echoes it. The wizard opens on the category picker, each kind with its own starter descriptions.

  • What the searches look for depends on the kind (categories.Behaviour.looking_for, svc-ai). Domain looks for sites and documents, Temporal for feeds and sites, Reasoning for documents and sites. The plan's schema offers only those (discovery.plan_schema), so a search of another kind is dropped, not the plan. A search for feeds gains "RSS feed" unless it names a feed already (FEED_WORDS). Sources found for an agent's proposal name no kind, and look for every one.

  • The design is told the kind and what it wants of the material (Behaviour.design_note): feeds and updates pages for dated knowledge, methods and criteria for a framework.

  • Only sources that may join it are offered to the design (repositories.joinable): one held by a repository of another kind would be refused at create.

  • The server holds a website source to its kind, whatever the designer chose (web_config.refresh_for, CATEGORY_REFRESH):

    KindRead when nobody choseHeld to
    Temporaldailyat least daily, pages kept TEMPORAL_MAX_AGE_DAYS (30)
    Reasoningonly when askedwhat was chosen

    The review shows each source's cadence as it will be. Find sources on an empty source sets it up for the kind of the repositories holding it.

  • Keep it current. After a Domain or Reasoning repository is created, the done screen offers Generate its updates: the same description, as a fresh run for a Temporal repository.

  • Agent setup offers the built-in News by reference (built_in, while BUILT_IN_NEWS_ENABLED), never the user guide. Each catalogued repository names its kind, and each proposed repository has one: its category is a Literal the model fills, clamped by svc-core and editable on the Knowledge step. A proposed member already held as another kind is left out with a warning. A new website source is set up for the kind of the new repository holding it. The step says that granting News starts its hourly reading at the platform's cost.

Finding sources for knowledge that exists or was proposed

The same search fills sources it did not design (flow source_discovery, 22 October 2026), on the same pool and inside the same metered run:

  • In the agent wizard. When an agent proposal lands, fe-core starts POST /app/knowledge/discover for its proposed website and file sources (for_generation_id names the agent generation, whose description is the search's context). By the time the person reaches the Knowledge step, each source shows the links found for it, to keep, drop or add to; the agent's create-from-config takes them as knowledge setup's does (urls, scope, refresh, documents) and marks the search applied to the agent (source_discovery_id). A database, API or graph source is never searched for.

  • On an empty source's page. A website source with no URLs, or a file source with no documents, offers Find sources to whoever may change it (POST /app/knowledge/{id}/discover, from its name and description). What is kept is added with POST /app/knowledge/{id}/discover/{run}/apply: a website source's URLs after its own (capped at 20), crawled at once; a file source's documents imported. The edit's version names the search.

Instead of a design, the last step asks svc-ai which candidates fill which given source (/knowledge/discover/assign): sources and candidates by handle (s1, p2, d1), a schema built per request, and svc-core's candidates.resolve keeping only the kinds each type holds. A search for the same proposal or source already running is a 409 naming it; a person runs at most three at once (429). GET /app/knowledge/discover/{id} is polled, and knowledge/source_links.py is the one place a source's links are validated, stored and started, for all three paths.

Deleting a source

DELETE /app/knowledge/{id} (services/knowledge/deletion.py) deletes a source with what it holds: its documents, pages and page versions (they cascade), its place in every repository (each records an updated version), then its vector collection, graph and stored files (knowledge/{id}/ in MinIO), best-effort after the commit. Its own deleted version keeps the documents it held by name. It is its own workspace's to delete (verify_change_here): an editor of Knowledge or the writer who created it, never a built-in, never what a project inherits; a 409 while a crawl is writing to it. The source's page shows Delete — and Edit, upload, Add from URL and Find sources — only when GET /app/knowledge/{id} says can_change.

A file source can take documents by their links: generated ones on create, and anyone's with Add from URL on the source's page (POST /app/knowledge/{id}/documents/from-url, up to 10 links; 409 on a website source, 422 on any other non-file type). Each link is a document row at once, importing; services/knowledge/imports.py then has svc-ai download it (POST /knowledge/web/document: the same SSRF guard and robots.txt as a crawl, a login redirect refused, the type read from the bytes, 25 MB at most), stores it in MinIO and indexes it as an upload. The row keeps where it came from (source_url, title, publisher), and every passage carries the link into its citation. A link that cannot be had fails its row with the reason. An import is failed as abandoned when it is still importing 30 minutes after its download started (import_started_at), or two hours after it was asked for when it never started: the pool is two workers, and a queue of documents outlasts 30 minutes. Reindexing an imported document whose stored file is missing imports it again. A document still importing is never reindexed (409; the bulk reindex leaves it out), since a second import would download and index it twice. The embedding-model rebuild never takes an import that stored nothing: it has nothing to rebuild from, and the rebuild used to overwrite the import's reason with "upload it again".

A document docling cannot read (and that is not text) now fails as unreadable. It used to be decoded as text and indexed as noise.

docling-serve's reply (23 October 2026). No PDF or Office document, uploaded or imported, had indexed since that change. svc-core asked /v1/convert/source/file, which docling-serve v1 does not have, then /v1/convert/file with no options. It then looked for the content at the top of the reply, where docling-serve never puts it: v1 answers {"document": {"json_content", "md_content", …}, "status", "errors"}. Now app/util/docling_client.py makes one request to /v1/convert/file, asks for json and md with pictures as placeholders (the default embeds each as base64 in the markdown), and reads document. The DoclingDocument is read in the body's order, tables included as cell | cell rows: a table is under tables, not texts, and page headers and footers are not in the body. A file named without an extension (an import's download) is sent with its type's, and a failure logs docling's status and errors. A conversion may take 300 s, and docling-serve's own wait matches it (DOCLING_SERVE_MAX_SYNC_WAIT). svc-ai's copy, which reads a PDF for url_fetch and read_document, had the same fault. Both services' tests use docling-serve's real reply shape. The tests had passed only because their invented shapes were what the client read. Two first documents of a new source can create its Qdrant collection side by side; the one that loses the race carries on with the collection the other made.

The API

All under /app/knowledge/{id}, all ownership-checked, all 404 for a source that is not a website:

Route
GET /web/crawlsCrawls, newest first, with per-outcome page counts and a note (a page limit reached, the first few failures).
GET /web/crawls/{crawl}/pagesThe source as that crawl left it: each page's version then beside its newest. See Looking back at a crawl.
GET /web/pagesEvery page with its status, version count and when it last changed.
GET /web/graphThe link graph: stored pages as nodes, the links between them as edges. See below.
GET /web/pages/{doc}/versionsA page's snapshots, newest first.
GET /web/pages/{doc}/versions/{version}One snapshot with the markdown that was indexed.
GET /web/pages/{doc}/versions/{version}/htmlThe HTML as served — an attachment, sandboxed and nosniff, never rendered on the app's origin.
GET /web/pages/{doc}/versions/{version}/previewThe same HTML sanitised for preview, as JSON (html, truncated). Data, never a document.
GET /web/pages/{doc}/diff?to_version=&from_version=A line diff between any two snapshots (default: the newest against the one before), long unchanged runs folded to a skip line.

The pages list says what a crawl stored; the Link graph view beside it (Pages → Link graph) shows how the crawl got there. GET /web/graph joins what each page's record already holds, so it fetches nothing and costs no crawl (services/knowledge/web_graph.py):

  • Nodes are the stored pages, with status, origin, whether the page is a starting URL, and depth: the shortest link path from a starting URL, or null for a page no stored link reaches (found in a sitemap, or its linking page has since gone).

  • Edges come from each page's stored links wherever they point at another stored page, plus a linked page's linked_from referrers. So the hop behind a deep citation is drawn even if the listing that made it has since moved on. kind is internal, or external for a hop off-site. URLs are matched without their fragment or trailing slash, and a redirected page is found by its final_url as well.

  • A page's links to anything the source did not store are counted (unfollowed_links) rather than drawn, so a front page's 300 links do not become 300 dead ends.

It is capped at 400 nodes (starting URLs and the shallowest pages are kept) and 2,000 edges (the edges that reached each page first are kept), with truncated set when either cap applies.

fe-core draws it with React Flow as a radial tree (webLinkGraphLayout.ts). Starting URLs sit at the centre and each link hop is one ring further out, so distance from the middle is crawl depth. A page sits at the mean angle of the pages that link to it, which keeps a listing's children beside it. Rings are ellipses twice as wide as they are tall, because the canvas and the labels are both wide. A crowded ring pushes the inner rings out proportionally, so they do not bunch at the centre. Unreached pages form one outer ring.

  • A node's outline is its status, in the same tones as its badge. A dashed outline marks a linked page on another site, and a dashed indigo edge marks an off-site link.

  • Crawl paths (the default) draws only the links that reached each page. All links adds every other link between stored pages, which on a site whose pages all link home is most of them.

  • Selecting a page dims everything it is not linked to, and opens a strip with its link counts, the page itself and its history.

Measured on a live crawl of Hacker News (site scope, 12 pages, depth 2, 8 linked pages): 19 nodes, 18 crawl-path edges and 109 links in all.

Previewing a snapshot's page

The page history's Page as captured tab shows what a snapshot's page said, laid out. Its HTML is somebody else's markup (scripts, trackers, forms and all), so the preview trusts none of it. There are four independent layers, each sufficient on its own for the threat it covers:

LayerWhereStops
<iframe sandbox=""> rendered from srcdocfe-core, SnapshotPreviewFrameScript execution, and any access to the app. Every sandbox flag is off, so the frame has an opaque origin: no cookies, storage or parent DOM, no forms, popups or top navigation.
CSP default-src 'none', first in the frame's <head>fe-coreEvery fetch: trackers, fonts, stylesheets, frames.
neutraliseNavigation (inert DOMParser pass)fe-coreLinks, <meta refresh> and <base>. A navigated frame no longer carries the CSP.

This was verified in Chromium with the sanitiser deliberately bypassed: raw hostile markup ran no script, and no request reached a listening server. Before the navigation layer was added, a clicked link was the one request that got out. A hygiene test fails any other srcDoc in fe-core, and any frame given both allow-scripts and allow-same-origin.

The site's own styling is not reproduced. Its stylesheets were never captured, and fetching them live would leak the viewer to the site and show the page as it is now rather than as it was. The raw HTML is still available as a download (/html).

Uploading, moving and deleting documents are refused (409) on a website source: its pages are the crawl's. Change the URLs or patterns instead.

Limits worth knowing

  • No JavaScript. Pages are read as served; a site that renders its content client-side yields little text. There is no headless browser in the stack, deliberately — it would be a much larger egress surface. When such a site publishes a feed, feed_content auto or entry keeps what the feed says instead.

  • Documents keep text only. A linked PDF or Office file is converted by docling and its text stored; the original bytes are not kept.

  • https only, and only public addresses — an intranet site cannot be a website source.

  • Crawling costs embedding calls for changed pages only. Each crawl records what it cost on its own row (knowledge_crawls.usage, shown in the crawl history). It is also on the usage ledger when the source has a user to attribute it to.

  • A new embedding model never re-fetches a page. The knowledge_reindex job re-embeds each page's newest stored snapshot, and waits while a source is being crawled (scheduler.md).

Citation site icons

A citation card shows its site's icon. These used to come from google.com/s2/favicons?domain=…, which told Google every domain a user opened a citation for. Icons are now the platform's own:

fe-core <img> ─▶ svc-core GET /app/favicons/{domain} ─▶ MinIO favicons/{domain}  (hit)
                                                     └▶ svc-ai POST /knowledge/web/favicon (miss)
  • svc-ai (knowledge/favicon.py) finds the icon: the home page's <link rel="icon">, small PNGs first, then /favicon.ico. Every request goes through the url_fetch SSRF guard with a 100 KB cap. The icon is identified by its bytes (PNG, ICO, GIF, JPEG, WebP), never its declared type. SVG is refused outright, since it can carry script.

  • svc-core (services/favicons.py) accepts only a bare public host name, re-checks svc-ai's answer (allowed type, size, valid base64), and caches it in MinIO: an icon for 7 days, "no icon" for 1 day. An svc-ai outage is not cached. The route serves the image with nosniff, a sandbox CSP and a private one-day browser cache.

  • fe-core (SiteIcon) falls back to a generic globe when there is no icon. A hygiene test fails any third-party icon service in the source.

The cited site sees at most one request a week from the platform, and never learns which user is reading.