Repository navigation
CrawlX 0.1.0
First public source release. Distribution is the GitHub repository and the tagged
source archive; no binaries, container images or crates.io packages are published.
Production qualification is still in progress: the release-gate checklist in
docs/ops/release-gates.md has not been measured for this release, so do not treat it as
qualified for production use.
Highlights
- A 21-crate Rust workspace with public design documentation (
docs/design/) and
enforced crate layering (ci/layering.toml). - URL and content plane: scope and robots admission, URL canonicalization and
query-parameter classification, static fetching with bounded acquisition (attempts,
requests, bytes, deadline), content extraction to Markdown, metadata and links, and
compatibility-API scrape, crawl, map, search, extract and parse behavior under
/compat/v2. - Bounded source discovery: HTML, RSS/Atom/JSON Feed, sitemaps, category pages and
opt-in conventional paths and external providers, with offline development replay. - Surface-discovery crawl options: scope fields, strategies, similarity filters, rate
limits, custom field extraction, secret detection, JavaScript endpoint mining
(off|regex|ast|both) and templated, JSONL and wordlist output. - Native response cache modes (
read_write,bypass,disabled,read_only,
write_only), validator checks, andcrawlx replay-response. - Scoped adaptive extraction descriptors with tenant isolation and ZDR-aware retention.
- Browser plane on a pinned Chromium (CDP): accessibility-tree discovery, versioned
semantic element identity, observation epochs, reversible state clustering, a
probabilistic enablement graph, interaction strategies, form handling, and an action
intent journal with unknown-outcome reconciliation after crashes. - Independent hard safety kernel with the
read_only,test_environmentand
authorized_security_testprofiles, SSRF and egress controls, and authorization
records with a create, verify, revoke and offline-sign lifecycle. - Zero-data-retention mode and secret boundaries, including redaction in
logs, traffic metadata and exports, and operator-controlled captcha solver key
references. - Persistence on PostgreSQL (tenant row-level security), MariaDB or SQLite, held to one
conformance suite, and filesystem or S3 artifact storage with standard, compatible, edge and
self-hosted object-store profiles. - Encrypted artifact custody: retained Content and Sensitive artifacts are
sealed under per-artifact data keys wrapped by cloud KMS (CRAWLX_ARTIFACT_KMS_KEY_ID) or
an operator key file (CRAWLX_ARTIFACT_KEY_FILE), and published only after an
epoch-checked recheck against the run-wide secret registry. CAPTCHA tokens are
registered run-wide before delivery to the page. - Process-wide HTML parse-memory budget (
CRAWLX_PARSE_MEMORY_BYTES, default 4 GiB for the
worker): every parse chargesinput bytes x 500without waiting; the factor is the
measured worst case (364 bytes per input byte) plus margin, enforced by
crawlx-extract/tests/parse_memory_ceiling.rs. Worker and API containers carry explicit
memory limits. - Scheduler and worker processes with leases, session actors, checkpoints and
crawlx worker --recover; REST/SSE API with OpenAPI schemas and API-key scopes. crawlxcommand-line interface:crawl,serve,worker,migrate,inspect,
replay,replay-response,extract,authz,mcp(MCP tools over
stdio),healthcheckand configuration checks.- Optional ONNX ranker support (
crawlx-model,onnxfeature), a typed-decision HTTP
adapter for an external decision service, language identification, and
OpenTelemetry/Prometheus telemetry. - Test and benchmark infrastructure: CrawlerGym fixtures, chaos and fault-injection
suites, fuzz targets, an upstream differential harness, a reference-driver
actionability oracle, and milestone gates. - Docker, Docker Compose, Helm, Kubernetes and systemd deployment files, alert rules
and operations runbooks.
Security
- Dependencies patched for seven RustSec advisories without suppressions (calamine,
ctutils, Hickory DNS, quick-xml, rustls-webpki, webpki-roots); Hickory is minimally
vendored to keep negative-response failover behavior.
Known limitations
- Strategies gated by milestone gate G1 (
state_novelty,enablement) and
dynamic.system1Modevalues aboveshadow(G3) are disabled unless the operator
provisions gate keys (CRAWLX_GATE_KEYS_FILE) and signed gate files. The gates are
unchanged and fail closed. The defaultdynamic.strategiesisinteraction_bfsand
event_driven, so a dynamic crawl runs without gate keys; a request that lists a
G1-gated strategy without G1 is rejected at admission (profile_conflict, before a run
is created), not mid-run. - HTML parsing memory is bounded by a measured per-input-byte ceiling (500 bytes charged
per input byte) and a process parse budget, not by fully fallible allocation. At the
default 4 GiB budget (CRAWLX_PARSE_MEMORY_BYTES) the largest HTML a worker parses is
about 8 MiB; larger pages fail terminally. Raise the budget together with the container
memory limit. - Encrypted artifact custody: every Content and
Sensitive artifact a worker retains is sealed before it reaches the object store and is
published only if the run's secret registry did not change since the bytes were checked, so
a CAPTCHA token registered while an upload is in flight can never be published or read
back. The cutover fails closed where it is not yet fenced. Raw presigned object-store URLs
are refused for sealed artifacts (the API serves decrypted bytes instead), retained browser
profiles are unavailable, and the run-wide secret authority lives at most 24 hours per run
with no mid-run renewal: after it expires, durable content writes of that run fail closed.
The registry holds at most 256 values and 1 MiB per run; exceeding it fails CAPTCHA
delivery closed. PostgreSQL workers needCRAWLX_ARTIFACT_KMS_KEY_IDor
CRAWLX_ARTIFACT_KEY_FILEplusCRAWLX_SECRET_REDIS_URL(a persistence-free Redis); the
API needs only the key provider. Secrets known at run start (request controls, role
credentials, the solver key) keep their existing per-producer scans and are not registered
run-wide. A local in-processcrawlx crawlseals its artifacts under a process-lifetime key:
itspages/*.md,metadata.jsonandreport.jsonare the readable output, and the sealed
objects underartifacts/are not readable after the process exits. - Browser background traffic: the stock pinned Chromium (Chrome-for-Testing
155.0.8059.84) attempts unsolicited browser-vendor background-service requests
(account, component-update, autofill and device-service hosts). Where the run's egress policy excludes them (a bounded scope
or an operator blocklist entry) the egress proxy denies each one before any connection and
logs it, so no foreign host is dialed, but the attempts are not prevented.
Zero-attempt isolation needs a patched, self-hosted Chromium (post-release; the source
build exists underci/build-chromium.py). See
data and secrets.
Detailed changes
Work completed after the 2026-11-07 release candidate, which was never tagged. Entries that
say changed describe differences from that candidate.
Fixed: extract urlTrace entries carry the required timing object
Every urlTrace entry of GET /v2/extract/{id} now has timing, which the compatibility
wire type declares required: discoveredAt (the URL joined the job's page list through
glob expansion or web search), scrapedAt (the scrape returned the page; absent on failed
pages) and completedAt (the job finished with its page list). Clients that read
timing.discoveredAt no longer find it undefined. The stamps come from the API clock; the
order of the entries still does not depend on them.
Security: backported the cache iterator aliasing fix to the pinned TLS-profile client
The pinned TLS-profile HTTP client requires lru 0.13, whose IterMut created a mutable
reference to every key that the cache's own index still pointed at (GHSA-rhfx-m35p-ff5j). The
client's idle-connection sweep walks that iterator, so the undefined behavior was reachable.
The fixed lru releases need a newer toolchain than the workspace pins, so vendor/lru carries
the upstream two-line fix on 0.13.0 and the workspace and fuzz builds select it through
[patch.crates-io]. A Miri run reports undefined behavior on the unpatched iterator and none on
the vendored one.
Fixed: runtime proof RSS gate counted database pool growth
The ten-minute RSS proof compared a baseline taken while the shared PostgreSQL pool held four
connections with a window in which it had grown to eight (sixteen at most). The heap did not
leak: live allocations stayed near 3 MiB, and RSS rose by about 130 KiB for each connection
the pool opened on a latency spike, because every connection keeps its own prepared-statement
cache and protocol buffers. The proof now saturates the pool before the baseline, asserts that
it holds every configured connection, and asserts that its size does not change during the
measured window. The 2 MiB first-window/last-window gate is unchanged, and the proof log now
prints the RSS series as 30-second means.
Fixed: origin admission waits instead of timing out under contention
Origin admission on PostgreSQL and MariaDB no longer fails a queued caller with a pool timeout.
Callers beyond the private pool bound wait without a connection or a deadline and leave by
dropping the request; the pool timeout now applies only to reaching the database, so an
unreachable server still fails. On MariaDB, a waiter for a held slot no longer parks a
metadata connection, so the holder's own pacing start cannot starve.
Fixed: word segmentation of combining marks, contractions and unspaced scripts
unicode_rules_v1 keeps Devanagari vowel signs, virama, nukta, Thai tone marks and other
combining marks inside their word, keeps letter-apostrophe-letter contractions as one word,
no longer reports the katakana middle dot as a word, and cuts Thai, Lao, Khmer and Myanmar
runs into dictionary words with the offline segmenter. Keyword output and Document.word_count
change for those scripts. Rules segmentation on the language corpus moves from macro F1 0.936
to 1.000, and its floors are raised.
Added: URL-plane transport controls
fetch.clientCertificate presents a TLS client certificate by credential reference under one
shared deadline; the key never appears in logs, errors or results. fetch.realmCredentials
answers Basic and Digest challenges only for the exact origin and realm, and the
credential is never sent across a cross-origin redirect or an https to http downgrade.
fetch.proxyRules adds ordered, named per-host proxy rules with stable first-match selection
and no direct fallback. source-import converts ordered proxy rules; an unsafe rule is
reported restricted and nothing is applied. The native crawl schema documents the three keys.
Added: adaptive crawling, recorded seeding and typed hops
dynamic.adaptive adds a seeded static/browser probe, paid from the request's effect budget,
with a recorded draw and predictor version that replay deterministically. adaptive is a
query-driven stop policy (page limit, saturation and confidence target) with versioned export
and import; it never reports exhaustive coverage. scope.seeding takes candidate URLs from
recorded archive-index, certificate-transparency, sitemap, robots, feed and homepage files:
every candidate passes scope, robots and the budget, and an optional HEAD live check runs
through the checked fetcher and governor. scope.hops and scope.queueCost type every hop
(link, embed, prerequisite, redirect), record it per page, end calendar traps with hop-chain
and repeated-segment limits, and order the queue by a stable cost. Endpoint discovery follows
the same hop kinds: an iframe, script or stylesheet that scope.hops declines is no longer
fetched as a link.
Added: blocked-resource provenance and recrawl completeness
dynamic.blockRules blocks browser-plane requests by URL pattern, child-frame document
pattern, URL text or an allow-only list. Every blocked resource is listed in the archive
manifest as an omission naming its rule kind and approved target. A revisit now reports
completeness: an unchanged document with a changed, added, skipped or unmeasured subresource
is incomplete and lists those resources (scheduling metadata and archive omissions), and a
revisit with no known subresources is document_only. A browser render under
orchestration.recrawl measures the page's images, stylesheets, scripts and fonts (a bounded
digest of each response, never the bytes) so a fully measured, unchanged revisit reports
complete.
Added: URL-plane referrer policy, URL length cap and run stop criteria
The static plane sends an outbound Referer under fetch.referrerPolicy (default
no-referrer) with credentials, fragment and secret query parameters removed, and judges the
policy again on every redirect hop. A link longer than scope.maxUrlLength (default 8192) is
refused as policy-blocked url_too_long and never fetched. New run stop criteria
limits.items, limits.errors, limits.idleSeconds and limits.diskPressurePermille end the
run when the first one holds and seal its producers; the idle criterion reads the run clock. The
completed event, the run report and the summary report carry terminalDetail
(urls_limit, items_limit, errors_limit, idle_timeout, deadline, disk_pressure,
seed_error, content_validation_failed, byte_limit, retries_exhausted). Discovery order is
the seed, the seed page's links, sitemap entries, then robots.txt paths, so a limits.urls
crawl keeps the seed's neighbours deterministically.
Added: batch append, extract URL trace and bounded actor scripts
Batch scrape accepts appendToId: the URLs join the unfinished batch's own queue under its
concurrency ceiling, repeating a request adds nothing, and an unknown, foreign or finished
batch answers 404 or 409. The batch status total counts appended URLs. Extract jobs report
urlTrace (opt-in), listing every attempted page, failed ones included, in a stable order.
Extension recipes accept a bounded actorScript (variables, a capped REPEAT, a compile-time
IF) that compiles to the existing actor actions. EVAL, direct SET, runtime conditions,
loops over the cap and unbound variables are refused before any run; the result still needs
registry approval and passes action admission per step.
Added: regex and sentence chunking, embedding clusters, image pipeline and a wider corpus
Chunking can cut the final privacy-projected text at a regular expression or at Unicode
sentence boundaries. Patterns are admitted in linear time: backreferences, look-around and
over-large patterns are refused. The scrape option clusters groups those chunks by embedding
similarity with a deterministic seeded k-means: it needs contentPolicy.chunks and the
operator's embedding model (intel.embeddings), caps the vector count before any call, returns
source-only ranges in data.clusters, and answers 503 embeddings_not_configured (or fails the
page as llm_not_configured) when no model is configured. Images have a per-scope pipeline:
scoped frontier re-entry, full-decode validation, checksum, store-once dedupe, CPU and byte
quotas, and optional thumbnails. The extraction corpus now holds the minimum fixture sets for
the article, focus, comments, metadata, language, sentence, selector and feed families, with a
gate per family; article selection improved on layout tables, recommendation strips and legal
notices.
Changed: fallible HTML tree construction
Parsing builds its tree through a metering sink that charges every allocation it sees to the
parse-memory reservation before it happens, reserves node storage fallibly, and returns the
typed parse-memory error (dropping the partial tree) instead of allocating past the
reservation. An allocation the process itself refuses is a terminal refusal, not transient
pressure. The ceiling test checks that the model never undercounts the measured peak. A
vendored tree crate adds the fallible node-storage reservation. The tokenizer's and tree
builder's own buffers stay covered by the measured allowance.
Added: FTP credentials, bounded recursion and passive-address checks
Native FTP can log in with credentials resolved by reference at registry load
(credentialRefs); secrets never appear in configuration, URLs, results, errors or logs, and a
credentialed origin never falls back to anonymous access. A registration with recursion
(maxDepth, maxEntries) admits directory targets, discovered with MLSD and bounded by
depth, entries, bytes and the shared request allowance; routes declare ftp_credential_login
and ftp_bounded_recursion. A passive reply naming any address other than the control peer is
refused before a data socket opens.
Fixed: compatibility-key serve test port race
The compatibility-key serve test retries on a fresh port only when another process took its
port between selection and bind.
Added: write requests with retained bodies
Native request append now accepts admitted POST, PUT, PATCH and DELETE requests with
retained bodies (text, JSON or base64, up to 1 MiB). Bodies are credential-bearing artifacts
referenced by a tenant-keyed digest; request identity covers method, body, media type and
principal. The worker decides each write with the safety profile, safety.destructiveActions
and the authorization record (read_only refuses write_read_only; reviewer approval is
carried per request and accepted only from a key with approvals:decide), journals a
request.write_intent event before sending, charges one non-refundable effect against
attempts.maxTotalEffects, and sends exactly once: no retry, no redirect, no replay. A row an
earlier holder journaled is never re-sent after a crash and ends write_outcome_unknown;
missing or altered bodies refuse.
Added: archive wire facts and completion callbacks
Archives record the observed protocol (for example h2), the true response status and the TLS
facts of the request's own connection. Natively fetched pages get a separate normalized HTTP
response record, labelled as not original wire bytes. Journal events get separate
request-header and protocol records with credential headers dropped. The fetch plane can export
the observed leaf certificate (capped DER and PEM) from the request's own connection, with no
extra socket. The archive completion callback references only a committed export, by package
hash and size, and is idempotent on retry. crawlx archive remove, cancel and commit map
each failure to a distinct exit code: 20 not found, 21 expired, 22 still recording, 23 export
failed, 24 already committed, 25 dependents present, 26 receipt unavailable.
Added: browser page options and a measured device matrix
Browser renders accept deviceScaleFactor, location.geolocation, resourceBlocking
(font, media and image types and named hosts) and flatten (open shadow roots and readable
iframes folded into the extraction text with per-frame origin provenance; the live DOM and
action identity are untouched). Results carry browserPage metadata: block-list version and
completeness (with gap codes), requested versus measured device pixel ratio and geolocation,
and frame provenance. The worker's startup probe measures a desktop, phone and tablet device
matrix on its own browser build and publishes it with its browser capability
(backends[].deviceMatrix). The capabilities endpoint reports the device preset catalogue and
how many fresh workers measured the matrix and found it coherent. The matrix makes no stealth
claim.
Added: report route keys, calibration drift monitor and IP admission
Report facts now carry an opaque route key, and a failed attempt records a redacted,
retention-bounded failure snapshot (stage, reason code, status, bounded detail). The repository
stamps the route from the request. Per-route counters are read from committed rows, and the
report APIs gain a routeKey filter. Adds migration 0092 for all three engines. A new
rolling-window calibration drift monitor for decision models publishes the gauges
crawlx.model.calibration.ece, crawlx.model.calibration.samples and
crawlx.model.abstention.rate, and the alert CrawlxModelCalibrationDrift (ECE above 0.05 for
15 minutes); see docs/ops/model-calibration.md. Deployment origin admission now also charges
one slot per checked physical IP (ip: key), so host aliases of one address cannot exceed the
cap across workers.
Added: operator tooling, CI coverage and importers
crawlx config check lists NUM_WORKERS_PER_QUEUE, MAX_CONCURRENT_JOBS,
BROWSER_POOL_SIZE and CRAWL_CONCURRENT_REQUESTS as unmapped, naming worker.max_sessions
and politeness.maxConcurrency. The Helm chart and deploy/k8s gain a daily audit-export
CronJob (object-lock bucket, dedicated database login), and deploy/object-store/lifecycle.json
adds per-prefix expiry with audit/ exempt. CI runs browser_robots in the blocking Chromium
job; the next-Chromium job and the upgrade report include the replay_chromium suite, and a
missing or failed log reports unmeasured or fail. Importers: a struct-tag manifest translates
to a versioned item loader and an unsupported type blocks conversion;
crawlx cache-import inspect screens an exported response cache, and screened entries can be
stored as pages of a retaining run of the same tenant. The output DSL condition language has
44 pure, bounded functions checked against a pinned reference; a function it lacks is refused
at parse time with its byte position and reason.
Fixed: same-seed action sequence depended on measured action latency
same_seed_same_action_sequence failed on a loaded host. The driver fed each action's
wall-clock duration into the ledger's per-kind latency average (the arbiter's latency_cost
utility term) and into the enablement graph's edge latency (path cost). A slow click could
outweigh the click over keyboard_activate ranking of the same control, so two runs with one
seed performed different actions. The utility function no longer has a latency term, the
exploration driver records no live latency on graph edges, and ActionOutcome no longer
carries a latency. The crawlx-graph TransitionObservation::latency_ms is now optional.
Fixed: terminal feed custody, cancelled-run admission and TEI validation deadline
Terminal feed batches are sealed artifacts that are written after the last session or URL
lease has ended, so finalization failed with artifact custody producer lease required.
Each run row now carries a fenced finalizer claim (migration 0090). A worker claims it,
renews it while it publishes, and releases it on failure; an expired claim is taken over
with a higher fence, and completing the finalization ends it. The claim is the sealed
writes' only producer authority, it survives a cancellation request or a reached
deadline, and purge, expiry or a lost authorization record still revoke it. A worker whose
session lease is fenced or cancelled while it admits a run now skips that lease and
releases the run's egress proxy instead of exiting with lease lost or fenced. The TEI
validator's per-document deadline is 60 seconds: every xmllint run first compiles the
full pinned schema (8 to 9 seconds on an idle host), which a loaded host pushed past the
previous 10-second cap.
The worker's delivery recovery deferred warning now carries the delivery error code, so a
receipt that stays pending (for example provider_egress_policy_denied) is diagnosable.
Fixed: extraction items and feed capability admission
Unchanged item fields now survive the extractor's privacy projection, while changed
values remain redacted. Offline extract configuration rejects positional arrays.
Missing offline inputs name their path, and stdin dataset export refusals identify
the one-based input row. Feed admission requires explicit compressed-byte support
on the same worker as its destination and retention capabilities, preventing an
unsupported compressed feed from terminating a worker.
Fixed: crawl discovery and local operator feedback
Inline URL lists now enter worker discovery through the same scope and robots admission
as feed candidates. A run deadline reached during child discovery now ends normally,
without converting an expected stopping limit into an access-denied failure.
JSON --config bodies can supply seedUrl without a redundant positional URL.
Parser-helper resource refusals identify the operator limits instead of displaying
synthetic maximum-integer budget values. Documentation clarifies dynamic Markdown
output, seed-path scope, local resume, acquisition controls and crawl-maze scoring.
Configuration validation now accepts the documented CRAWLX_PARSE_MEMORY_BYTES and
CRAWLX_PARSER_* parser-helper overrides instead of rejecting them as unknown keys.
Explicit HTTP protocol routes keep seeds, links, redirects and popups off the browser
plane, and an enabled LLM planner without an endpoint is refused rather than ignored.
Fixed: failed session startup isolation
Rejected local authorization and session-context admission now finalize the affected run
instead of leaving executable queued work. Workers isolate run-specific configuration
failures instead of exiting before unrelated work can proceed, and failed context startup
releases its run-owned proxy.
Fixed: authorization setup and approval review
Operator-signature verification now identifies missing API operator-key configuration.
Approval reviewer summaries no longer mislabel a principal role as an observed element role.
The local walkthrough names artifact custody and browser checkpoint prerequisites; authorization
documentation explains evidence upload and immutable record amendments.
Fixed: interstitial challenge responses stored as pages
A challenge page that arrives with a success status (a structural interstitial or an
authoritative challenge header) is now refused as content_validation_failed (crawl) or
unsupported_content (scrape) under the default report mismatch action too, instead of being
written as a successful page. report still keeps other rejected content as compatibility
documents.
Fixed: API deployment and operator surfaces
Restricted PostgreSQL API logins can read tenant-owned state membership without exposing
another tenant's rows. Database startup errors retain their source chains. Secret environment values and malformed bootstrap key
arguments no longer appear in help or validation errors.
Multipart parse options remain optional in OpenAPI without an invalid null default.
Configuration parse errors identify a line and column without echoing secret-bearing
source text. Operator help documents tenant-shared API rate limits, and in-memory API
startup warns that queued work cannot be executed by a separate worker.
Fixed: operational report joins and browser memory
Host identities now agree between DNS observations, host/frontier report rows and
URL-attempt facts, so a returned hostKey filters measured history consistently;
index and completion pipeline checkpoints now carry the attempt's host and URL keys.
Browser RSS sums live browser trees instead of showing the last sampled browser
forever after shutdown. Operations documentation explains separate process metrics
listeners, sampling and profiling limits. Dropped (stale) proposals no longer advance the
seeded decision stream, the d1 gym ticker is seed-deterministic (/d1/?live=1 keeps the
wall-clock variant), and g1-report logs the stale-dropped proposal count after each run.
Fixed: archive replay and operator diagnostics
Offline replay keeps the first representation at an equal capture timestamp, so an
adjacent Markdown rendition cannot replace its retained HTML entry point. Archive
downloads include a format-specific filename. Empty archive exports expose their
omission reasons and sealed-artifact requirements; missing output directories are
named before staging or browser launch. QA difference images require a baseline.
Replay reports count refusals of browser-owned background requests separately
(browser_background_denials), and archive QA compares only the remaining refusals,
so a launch-dependent background host no longer fails an otherwise identical replay.
The reference now documents retained-run export/import and the shared-process
requirement for interactive suppression streams.
Added: storage backend foundation
crawlx-storage opens PostgreSQL, MariaDB or SQLite from one Database::open(url, cfg) chosen by URL scheme, with typed startup refusals, per-engine SQL dialect fragments and concurrency strategies, and a conformance suite that runs on every engine. PostgreSQL behaviour is unchanged; MariaDB and SQLite repositories land in later changes and refuse unimplemented features with a typed error.
Added: core repositories and tenant isolation on every engine
The run, page, state, edge, ledger, safety, event, checkpoint, identity-alias and model-decision repositories, and the request surface (API keys, idempotency, approvals, transitions, webhooks, authorization records, intel jobs and monitors, trusted corpus, trail and inspect reads), run on PostgreSQL, MariaDB and SQLite from one generic implementation. The Rust side replaces the PostgreSQL triggers MariaDB and SQLite lack: terminal, cancelled and purged runs and revoked authorization records revoke credential-bearing artifacts, checkpoints and session bindings in the same transaction, and the confidential content of zero-data-retention runs is projected away before it is bound, on every engine (safety evidence included).
Engines without row-level security isolate tenants with an application predicate and a fail-closed request handle: a statement of the request surface runs only through ScopedQuery, which a resolved Scope (a request handle with a tenant scope) hands out, and a request without a tenant scope, also in a spawned task, is refused with AccessDenied. The crate's clippy.toml disallows the raw sqlx query functions and the execution methods of the unscoped statement type, the request-surface modules deny that lint, and a source gate and a mutation case (unscoped-for-test, a compile error in release builds) prove the guard. A MariaDB statement larger than the server's max_allowed_packet is refused before it is sent with a non-retryable typed error. Database::tenant_count_excluding counts tenants for the single-tenant SQLite refusal.
Added: MariaDB and SQLite deployments
crawlx migrate, crawl --database-url, serve, worker, inspect, admin, archive export, profiles, replay-response and reparse run on PostgreSQL, MariaDB and SQLite; the engine is chosen by the scheme of the database URL (postgres:, mysql:/mariadb:, sqlite:). The worker, the API and the CLI hold one engine-neutral store handle instead of a PostgreSQL pool, and crawlx archive export, profiles, replay-response and reparse no longer refuse MariaDB and SQLite. database.pool_max and database.statement_timeout_ms reach every engine (max_statement_time on MariaDB; SQLite refuses a non-default timeout instead of ignoring it); crawlx migrate runs without the statement timeout, and commands that open a database read only the CRAWLX_DATABASE__* overrides, so development variables such as CRAWLX_FAILPOINTS never stop them. Startup refusals print as refused: <code>: <message>: sqlite_second_worker, sqlite_not_local, sqlite_no_roles, sqlite_multi_tenant (staging and production, unless CRAWLX_SQLITE_ALLOW_MULTI_TENANT=1), sqlite_safety_auditor, the mariadb_* server checks, scheme and custody_missing. The S3-compatible artifact store (CRAWLX_S3_BUCKET, profiles standard, compatible, edge, self-hosted) is used by crawl --database-url, serve and worker on every engine.
Deployment: docker/compose.mariadb.yml and docker/compose.sqlite.yml overlay the PostgreSQL stack (docker/init-compose.sh --engine mariadb|sqlite writes the engine's secrets); the Helm chart selects the engine with storage.engine, renders the database network policy from networkPolicy.databaseSelector (renamed from postgresSelector) and storage.port, and refuses combinations an engine cannot serve (several SQLite workers or API replicas, the safety auditor off PostgreSQL). docs/ops/storage-backends.md lists engines, URLs, the statement timeout, refusals and the object-store profiles. The PostgreSQL-named configuration alias is gone: callers use StoreConfig.
Fixed: page capture expiry on SQLite and MariaDB
SQLite and MariaDB: retained page captures now carry the source run's expiry. SQLite crawls failed with "page capture expiry must equal the source run expiry", and MariaDB stored captures with no expiry, so retention never purged them.
Fixed: database errors in CLI output
CLI errors print the full cause chain (for example crawl failed: ...: error returned from database: ...) instead of only "database operation failed"; this covers crawl, serve, worker, migrate, inspect and admin, so a refusal such as refused: sqlite_multi_tenant: ... reaches the operator. CRAWLX_TEST_MARIADB_URL and CRAWLX_SQLITE_ALLOW_MULTI_TENANT are accepted by the configuration check like the other documented environment variables.
Fixed: restoring a retained browser profile
A retained profile created by a run could not be restored by the next: its expiry kept sub-microsecond precision the catalog drops, so the authenticated header never matched the stored row, and the restoring session's own end-of-run commit then failed its binding check. A restore-and-save run now completes and advances the generation.
Fixed: replay link harvest through the isolated parser
Replay parses the rendered HTML of each recorded observation through the same bounded, byte-admitted isolated parser pipeline as every other path, instead of a direct in-process link extraction. The static crawl-maze baseline now measures all 66 static-plane targets, including the five formerly unmeasured promotions.
Fixed: byte admission for retained browser captures
MHTML snapshots and rendered text are metered against the shared byte budget before they are allocated and move into their artifact without a copy. An MHTML above 1 MiB is retained up to its configured limit; one over the limit or the budget is refused with the typed memory error. Redaction of retained text and response bodies is bounded and charged stage by stage.
Added: offline extract options and regex built-ins in scrape
crawlx extract, corpus and protocol take --extract-config FILE with the request's outputs, decode and markup; crawlx scrape and shell accept regex built-in names (--regex-builtin NAME, builtin NAME, {"type":"builtin"}).
Added: bounded lifecycle execution and immutable recipes
Reviewed native extensions execute typed header, response, item, error, terminal,
checkpoint and browser lifecycle stages with bounded ordered receipts. Header
rejection stops body consumption. Immutable recipe pins cover start requests,
allowlisted actor actions and ordered HTML/sitemap discovery; every proposal retains
native authorization, scope, robots and budget admission. Result streams retain
committed item references under backpressure and close on cancellation.
Added: safe single-page scraping and stored-page shell
crawlx scrape supports explicit GET/HEAD, output formats and bounded declarative
extraction. crawlx shell acquires one admitted page, then evaluates only stored-page
CSS, XPath, regex and item recipes. Commands cannot execute code, spawn processes or
perform further network requests. Strict immutable configuration layers reject
unknown fields and JSON output without extraction.
Added: scoped operational history and offline migration contracts
Measured processor, DNS and wire facts remain distinct from unavailable observations.
Tenant-scoped URL graphs, bounded advisory queue fairness and adaptive revisit
policies preserve the existing governor and fenced frontier. Delivery completion
requires actual outbox acknowledgement. Offline neutral exports and pinned contract
fixtures report unsupported settings and unavailable external references explicitly.
Added: renewable custody and local interactive profile control
Renewable fenced use windows preserve the original absolute secret-retention ceiling;
Redis secret TTLs never extend. Structured encrypted profile custody checks owner,
generation, build and retention. Local authenticated control shares the exact worker
registry; unproven screencast frames are suppressed before capture. Namespace
launchers fail closed without verified isolation; privileged deployment proof remains
an operator requirement.
Encrypted artifact custody covers worker producers and terminal archives; authenticated operator
inputs remain in custody mode ReadOnly, with SecretFree, retention-gated plaintext writes and
catalog-mediated sealed reads. No API producer leases are introduced.
Added: shared parser admission and bounded model content strategies
Decoded input, parser admission and transient output share one byte budget, with
permits retained through blocking work and sink I/O. Text-only parsing avoids DOM
allocation. Bounded nested source traversal and static embedded-link discovery never
execute source content. Optional model table/content extraction enforces per-call
token and response-byte limits, privacy projection and explicit external-processing
consent; native defaults remain deterministic.
Added: acquisition service and digest-bound identity profiles
Registered acquisition adapters validate scoped attestations and finite response
budgets. Coherent identity selections bind the pinned Chromium build, profile digest
and session generation; provenance records artifact and transitive-notice hashes.
No exact wire equivalence, external-service acceptance or distribution approval is
claimed without the corresponding evidence.
Fixed: sensitive provider errors
Malformed decision responses expose a fixed schema-error category rather than
provider values in error display, debug output or source chains.
Fixed: browser observation and URL-work isolation
Dynamic page output records already-settled browser documents without adding navigation
proposals for rendered controls. Trusted interactions, planner recovery and opt-in page-hook
navigation retain their existing authority and traversal order.
Observed publication rows remain visible in frontier audit listings, but URL workers never
lease them and URL counters, queue status and resume statistics exclude them. Rendered
pages and append-only revisits remain available without a second document fetch.
Feed evidence chains preserve trusted artifact references after redacting source content.
Sessions now persist an explicit browser or HTTP-coordinator kind. Local reports expose
browser actors under sessions and HTTP custody coordinators under http_coordinators;
static runs retain their coordinator lease without reporting a browser session.
Context construction keeps large futures on the heap, and local orchestration uses an
owned task boundary with inherited tenant and producer custody and abort-on-drop cleanup.
Popup attachment failures leave graph cleanup to target-destruction events, preserving
browser-closed download evidence until its diagnostic close is journaled.
Fixed: interaction counters at browser publication failures
The worker counts returned action outcomes before publishing their settled browser pages.
A deadline, cancellation or publication error after the journal commit no longer leaves
interactions.succeeded one below the stored actions. Trail checks remain unchanged.
Fixed: terminal feed replay and canonical JSON Lines approval
Terminal feed recovery reuses validated staged manifests instead of minting new sealed-artifact identities.
JSON Lines approval checks every complete record with canonical article lineage and privacy rules while preserving exact bytes and full-stream registered-secret scanning.
Terminal JSON Lines batching supplies record separators even when direct generic fragments have no trailing newline.
The XZ codec produces valid empty-stream framing, reports correct codec memory accounting and reduces encoder stack use.
Added: crawl order aliases
Crawl strategies accept bfs / dfs and hyphenated or underscored long names
in CLI flags and native request/configuration files without changing canonical
serialization. Breadth-first remains the native default; the explicit
compatibility-defaults preset retains depth-first.
Browser discovery queues now honor the selected order in active, observe-only
and hybrid execution, using actual link depth rather than a fixed depth.
Added: anonymous archive staging and recoverable publication
Archive members, index spills, packages and sensitive artifact sources stage through anonymous file descriptors, without named plaintext scratch files. Native bundle publication writes fixity manifests last, refuses incomplete bundles on every read path, and uses a private per-user journal for deterministic rollback or verified roll-forward after a crash. Single-file packages retain atomic publication.
Added: committed payload revisits and sensitive archive custody
Opt-in collection or tenant archival deduplication preserves chronological captures while referencing only committed payloads in an exact security, representation and retention domain. Sensitive screenshot archives retain source-bound expiry and sensitive read scope across packages, shards, indexes and manifests. Revocation blocks publication and content access, and bounded retention cleanup erases invalid dependent exports. Portable migrations maintain deadline narrowing and the publication lookup index.
Added: signed native recipes and checked encrypted DNS
Offline flow inspection/conversion reports every source step and refuses unsupported behavior. Operator-signed, digest-pinned recipes bind tenant approval and timing, then execute through the existing safety-checked action journal. Zero-data-retention refuses recipe provenance. Deployment configuration can select a bounded HTTPS DNS adapter with approved bootstrap pins, checked peer/address policy and no unchecked fallback.
Added: strict named sessions and generation-bound transport pins
Named HTTP sessions lazily reuse only their owned cookies and connections under a real
scheduler fence. Strict URL requests retain native scope, robots and shared budgets.
Usage reservations survive cancellation, learned cookie secrets join run redaction, and
lost jars cannot silently restart empty. ProxyX HTTP/browser generations share an observed
pin with a durable route-keyed commitment; migration 0047 supplies all three SQL schemas.
Added: checked physical-target admission and runtime resource observations
Checked host aliases, ports and proxy routes share a process-wide physical-address cap
inside the existing origin authority. DNS TTL and seeded jitter decisions remain visible.
Adaptive dispatch now measures async timer lag, and bounded task records distinguish
elapsed time and observed process RSS from allocation attribution.
Fixed: confirmed session retirement and bounded final traffic drain
Browser count, age and inactivity retirement drains active actors before owned shutdown.
Explicit anonymous generation replacement requires cleanup, reconciled writes and the
admitted finite rotation budget without extending expiry. Attached uncertain resources
remain charged. Run teardown no longer waits on an unbounded flush before the exporter's
configured drain deadline.
Added: resumable data-plane imports and scoped source memory
crawlx feed-import streams bounded CSV/XML URL rows into authenticated frontier batches with a pinned durable cursor. crawlx dataset-import inspects safe exported JSON offline or applies it through an existing authorized request fence and typed artifact sink. Tenant/run/source/role/policy-scoped article memo and representation-bound category caching support explicit reset, exact worker-clock expiry and shared volatile zero-retention state.
Added: declarative feed selection and bounded terminal delivery
Feeds support bounded scalar filters, CSV column order, JSON indentation, explicit terminal batching and empty-feed emission. Terminal source manifests remain distinct from accepted item ranges; source sealing, stable staging and atomic terminal status preserve crash-safe retry identity. Fixed gzip, bzip2 and xz codecs run after plaintext approval on the shared bounded CPU pool. Local/stdout/S3 and approved HTTP-family delivery keep their existing destination authority and duplicate semantics.
Added: ordered item processor evidence
Versioned item loaders distinguish ordered input processors from output transforms. Field outcomes retain bounded value-free selector and processor evidence through privacy projection, including default, cardinality, transform and schema rejection outcomes.
Added: checked protocol acquisition and operational report pages
Operator-registered anonymous passive FTP reads validate independent control and data peers, reject passive-address bounce, and enforce byte, reply and cancellation bounds. crawlx protocol --probe reports local configured capabilities without claiming live attestation. Authenticated crawl report inventory and bounded JSON/JSONL search project retained frontier, capture and event facts; absent instrumentation is explicitly distinguished from withheld sensitive content.
Added: metadata-only requests and bounded WACZ rollover
Native request append/import accepts anonymous bodyless HEAD requests on static and hybrid HTTP queues without producing GET pages or items. Fenced receipts preserve volatile references without renewing their custody. Optional rolloverBytes and --rollover-bytes cap each encoded WARC file inside WACZ, never split a record, and preserve actual indexed ranges and package fixity.
Added: bounded browser evidence and retained capture
Opt-in capture.browser exposes URL-filtered response projections, bounded network and console diagnostics, policy-retained MHTML/PDF, and separate initial/final text and screenshot evidence. Explicit downloads use bounded in-memory interception, validated filenames and typed artifact storage without exposing host paths. Zero-data-retention and source privacy checks fail closed.
Fixed: browser metric fixtures and exchange fidelity
Real Chromium regressions exercise renderer crashes, connection loss and unmatched proxy-flow metrics. Capture conformance test names now match the browser CI selector. Exported exchanges label reconstructed representations and distinguish unavailable, omitted and truncated evidence instead of implying original wire fidelity.
Added: shared worker parser and extraction controls
Worker page extraction, settled browser input, retained-body replay and uploaded parsing use the versioned parser pipeline. Native fetch controls expose bounded HEAD preflight, response declarations and oversize refusal. URL admission applies extraction URL exclusions before robots or target requests, retains bounded unresolved endpoint outcomes, and scopes content dedupe to the tenant and run. Scrape requests can select content outputs, decoding diagnostics and retained markup; parser-produced previews remain subject to worker admission and acquisition budgets.
Added: retained archive QA differences and bounded range replay
Offline archive QA accepts --diff-images and retains bounded decoded-channel difference PNGs through the sensitive, tenant-scoped expiring artifact store. Missing evidence remains unevaluated. The isolated replay listener now serves authenticated single byte ranges with exact response digests, explicit unsatisfiable responses and no live-network fallback.
Added: streaming generic item export
crawlx dataset-export streams bounded JSONL objects through the shared explicit-options serializers. JSON, JSONL, single-header CSV and single-root XML preserve declared field order and safe formula/control-character policies without retaining the full input. Article exports keep their existing contracts.
Fixed: strict key-value content types
Versioned KV writes now validate HTTP media-type tokens and quoted parameters before committing content references. Malformed type/subtype or parameter values fail without mutating the current CAS version.
Fixed: consistent API coverage and fixture recall
Run resources and cancellation events now use the same trusted-reachability coverage rows and key classifier as /coverage, instead of counting raw trusted executions. A trusted server-side FixtureGroundTruthSource can supply fixture-manifest controls and independent exercise evidence; the API computes deduplicated ground-truth recall for /coverage and the run summary. Ordinary runs retain null ground truth. Deterministic regressions cover the 19-discovered/17-trusted case, fixture eligibility, profile filtering and equality with the benchmark's server-ledger calculation.
Added: Chromium upgrade reports and release evidence transfer
The candidate-browser CI job now generates an upgrade report from suite logs, golden differences, observed builds and artifact hashes, with explicit measurement gaps. Release checklists collect producer artifacts, mutation outcomes and raw flake histories; release tags also run the blocking checklist. Missing runtime, operational and paired-comparison evidence remains unmeasured and blocking.
Added: explicit compatibility defaults and offline curl conversion
crawlx serve --compat-mode strict|native_defaults selects compatibility defaults; the flag wins over CRAWLX_COMPAT_MODE, including an explicit strict. crawlx convert curl '<command>' admits a single-URL GET request without network access and prints a redacted review template. Unsupported flags, command substitution, file-backed arguments and methods requiring a journal are refused. Interactive shell and viewer execution remain unavailable pending a product decision.
Fixed: contact classification and obfuscated labels
Contact/message semantics now outrank incidental search words in submit labels or form metadata, preserving the sink requirement. Zero-width label characters are stripped instead of splitting words. Unit and adversarial benchmark regressions cover both behaviors.
Fixed: retention operations documentation and scheduled database regression
Retention documentation now describes crawlx admin sweep-retention --every; the operations index and runbooks link the object-storage guide. A paused-clock PostgreSQL regression checks immediate and periodic sweep-loop mutations and cancellation with one isolated table.
Fixed: bounded static-fetch futures and compatibility responses
Static fetches now isolate transport and decoder state behind one heap allocation per fetch. URL dispatch also isolates each acquisition backend, so unused scrape and protocol state machines do not inflate static execution. These boundaries keep nested robots and page acquisition off the executor stack without increasing thread stack limits, with future-size regression tests. Static and hybrid URL-plane tasks retain their crawl tracing span. Compatibility crawl status returns a next link only when more stored results exist; clients poll the status route itself for new results. Change tracking also blanks iframe source values in truncated tags and handles quoted tag delimiters without changing unrelated attributes.
Local URL-plane execution uses a structured child task so its polling stack does not nest inside local orchestration. Dropping the parent aborts the child, and crawl tracing plus producer custody follow the child.
Session actors also isolate command and recovery futures, preventing unused command variants from inflating every actor poll under a constrained executor stack.
Artifact admission, retention checks and in-memory artifact ownership checks now use the existing compact run metadata projection rather than cloning operational crawl configuration. Tenant ownership, terminal-credential refusal, expiry, custody and privacy checks remain unchanged.
Gym event reports and form submissions now reach the server ledger in handler order instead of racing independent requests. This keeps same-seed G24 ledgers deterministic while ordinary fixture API requests remain concurrent.
Fixed: PostgreSQL rejected actions finished with scripted-scroll fidelity
The action_fidelity enum lacked scripted_scroll, so finishing an action whose receipt reported a forced scroll failed on PostgreSQL (migration 0046). A property test now stores random action kinds and receipt fidelities through the journal and requires lane/fidelity to be present and consistent on every stored row, on the in-memory store and on PostgreSQL.
Fixed: lane_chromium no longer ends on a 20 s wall clock
The link-fixture lane regression ran into its harness deadline on slower hosts, so whether the url_plane fallback navigations appeared depended on machine speed. The run now ends on its interaction budget and the test states the contract: every non-url_plane action is on the trusted lane and every url_plane navigation follows a trusted click on the same route and element.
Added: release-gate checklist computed by CI
release-gate (crawlx_bench::release_gate, ci/release-gate.sh) evaluates the release-gate checklist from evidence files with per-item pass | fail | unmeasured | waived | not_applicable, writes a JSON and markdown report and exits 1 unless every applicable item passes. Only performance rows accept an expiring waiver with an owner and reason; release-gate record captures suite results. The release-checklist CI job runs it on demand and weekly. See docs/ops/release-gates.md.
Added: flake rerun and quarantine tooling
.config/nextest.toml (profiles ci, nightly) reruns a failing test once to classify it. flake-report (crawlx_bench::flake) records flaky tests from the junit output, quarantines a test to the nightly-only suite after 3 flake events in 14 days (ci/quarantine.toml), fails the check when a quarantine outlives 14 days, and writes the 30-day flake rate to bench/out/flake-report.json for the release gate. See docs/ops/flaky-tests.md.
Added: network-fault schedules for load and chaos runs
netfault is a standard tool: a FaultSchedule text spec (latency=50ms@0s..10s,blackhole@12s..15s,reset@20s,refuse@25s..27s) with seeded generation, Proxy::run_schedule, the netfault binary, and load --fault, --fault-seed and --allow-errors-during-fault, which split per-route results into in-fault and out-of-fault windows. Latency-only schedules keep the p99 gate and zero errors; connection kills may only fail requests inside their windows.
Added: storage Criterion benches
action_journal_insert, transition_write_batch (in-memory and PostgreSQL) and artifact_key_derive are registered in ci/bench-gate.sh with committed baselines; a registry test keeps every crawlx-storage bench in the gate.
Added: browser-plane throughput in crawl-bench
crawl-bench has hybrid and browser-only profiles (Chromium required; skipped with a message without it), new interactions and pps columns, and a table of each profile's pages per second relative to static on the same target.
Added: test coverage for recorded audit gaps
Mid-transaction PostgreSQL statement failures recovered through unknown and reconcile, and a cancelled outcome transaction; CDP-versus-proxy capture parity on per-epoch and background views; Standard-versus-Stealth discovery parity over G01–G30 within 1 pp; named oracle-comparator tests; HTTP 422 profile_conflict for stealth under read_only; crawl-level OTLP exporter failure (unreachable and silent collector); the V2 and dual identity checks pinned by a registry test and run by name in CI; crawlx_bench::query_identity with a session-value artifact grep gate and the G12 gate metrics; API coverage against an offline recount; run-twice determinism of the G24 value partitions; an adversarial-label fixture; a browser-free G25 wrong_element_actions gate; the production arbiter over the production safety kernel; recorded deferred_reason for every deferred crawl-maze target with the second-click reveals, hash router and denied destructive click guarded in the manifest and both runs.
Added: object-storage profiles
CRAWLX_S3_PROFILE (standard, compatible, edge, self-hosted; default standard, the previous behavior) selects per-service defaults and capabilities for the S3 backend: endpoint requirement, signing region (auto on edge), addressing style, plain-http policy, server-side encryption, object lock and checksum mode. CRAWLX_S3_CHECKSUM, CRAWLX_S3_OBJECT_LOCK, CRAWLX_S3_ALLOW_HTTP and CRAWLX_S3_ALLOW_KMS are new; the existing CRAWLX_S3_* variables override profile defaults. A configuration the profile cannot serve (encryption or object lock on edge, kms on compatible without the opt-in, a missing endpoint, plain http to an untrusted host, when_supported checksums outside standard) is a typed S3ConfigError when the configuration is built, never a silent downgrade. Uploads larger than one PutObject (5 GiB) are refused with a typed error. See docs/ops/object-storage.md.
Changed: S3 configuration is validated and stricter
S3Blobs::new and S3Blobs::with_credentials return Result<_, S3ConfigError> and validate the configuration. S3Config gains profile, checksum, object_lock, allow_http and allow_kms; S3Config::from_lookup, from_lookup_for_bucket and from_env_for_bucket build a validated configuration from an environment lookup. CRAWLX_S3_PATH_STYLE and the other boolean variables now reject an unrecognized value instead of reading it as false, and CRAWLX_S3_KMS_KEY_ID without CRAWLX_S3_SSE=kms is an error instead of being ignored.
Added: streaming feed rows with a durable cursor
crawlx_url::feed_stream::FeedRowStream streams XML item rows and CSV records through a fixed buffer with declarative templates (namespaced elements and attributes, CSV quoting, header mapping), typed per-row outcomes and a resumable StreamCursor (byte offset, row index, prefix digest). DOCTYPE and entity declarations are never expanded. See docs/reference.md.
Added: exact-byte item exporters with explicit CSV and XML policies
crawlx_extract::item_export::write_item_with fixes field order for JSON, JSONL, CSV and XML items and makes the CSV formula policy (PrefixEscape or Reject), forbidden XML scalar policy (Reject or Replace) and XML text mode (Escaped or Cdata) explicit, with explicit CSV columns for missing fields.
Added: declarative storefront recipe
crawlx_extract::recipe::StorefrontRecipeV1 emits one item per variant from locally supplied collection JSON with decimal-string prices (floating point prices are a typed fault), source ids and pagination as a DiscoveryIntentV1 that the extractor never fetches.
Added: link extractor options
crawlx_extract::link_options::LinkOptions adds allow/deny regexes, allow/deny domains, tag and attribute lists, CSS/XPath restriction, canonical form, unique and nofollow handling to link extraction; deny always wins over allow.
Added: one parser pipeline for markup and documents
ParserPipelineV1 (ordered detect, decode_input, parse, select, metadata, quality, transform, project stages, explicit per-format routes, input/node/depth/operation/child/output limits) is executed by crawlx_extract::pipeline::ParserPipeline::run, the single entry that routes HTML to the page extractor and PDF, Office, EPUB, text and CSV to the document parser and returns one PipelineOutput with per-stage counts. Limits refuse instead of truncating, an unrouted format is refused, and the pipeline digest is part of the output record version (parser_pipeline_v1/<digest>). See docs/reference.md.
Added: list discovery, URL substring filters and a ranking-only language hint
scope.sources: ["url_list"] with scope.discovery.urlList crawls an inline list of up to 10000 credential-free HTTP(S) URLs: bounded count and bytes, fragments dropped, duplicates removed in stable order, one listed_url intent per URL, no file path and no network in the core type, every URL still scope-, robots- and egress-checked. scope.discovery.urlLanguageHint orders candidates by URL language markers (language_rank) and never admits, denies or labels content. The settings importer translates the precision-text --url-filter to escaped literal scope.urlInclude patterns (explicit scope denies still win, the filter only narrows, the seed is exempt), accepts an inline manifest urlList, and reports every option without a native mapping with its pinned inventory rows in features (input-file, urls-from-file and urls-from-stdin are external_required).
Added: authored extraction corpus with gold spans and measured per-family floors
crates/crawlx-extract/tests/corpus/ holds 18 original pages in four families (article body, boilerplate, metadata, link discovery) with UTF-8 byte-span gold files and a manifest.json (license authored-for-this-repo, SHA-256 per file). cargo test -p crawlx-extract --test corpus verifies the digests and spans, runs the real extractor, computes token-level precision, recall and F1 per family and fails below floors set from the measured values.
Added: CSS pseudo-element projections, nested item groups and typed transforms
CSS selectors accept a trailing ::text or ::attr(name) on each comma-separated selector; any other pseudo-element fails admission as unsupported selector syntax instead of matching nothing. Item recipes gain a group projection with nested fields evaluated relative to each base element, next_sibling/previous_sibling sources, per-instance outcomes (groups, defaults marked defaulted) and recursive privacy projection, plus the attributes projection and the clean, regex, builtin, json_parse and limit transforms. crawlx_extract::handlers exposes the same operations as typed text and attribute handlers with identical output. See docs/reference.
Added: versioned built-in regex patterns and one regex admission gate
crawlx_extract::regex_builtins provides versioned built-in pattern names (email.v1, url.v1, uuid.v1, and others) and custom patterns on the linear-time engine. Backreferences and look-around are rejected at admission with typed errors (also for extract.customFields), and compiled size, capture groups, input bytes and match counts are bounded.
Added: bounded element search, similarity and selector generation
crawlx_extract::find adds tag/attribute/text/regex search, ancestor and sibling traversal, deterministic find_similar ranking, generated CSS/XPath paths and abstaining outcomes for ambiguous answers, all under the shared selector operation budget.
Added: byte decoding with diagnostics and a comment/CDATA-aware text view
crawlx_extract::decode::decode selects an encoding by byte-order mark, declared charset or early meta, and records the choice and the first 64 malformed sequences. markup_text separates cleaned text from collected comments and CDATA payloads and reports the digest of the decoded source. ExtractOptions::decode makes Extractor::extract_bytes use it (declared charset or the Content-Type charset) and report Document::decode; ExtractOptions::markup keeps comments and/or CDATA payloads in Document::markup without changing the cleaned text. Both are absent by default and leave the document and its serialized form unchanged.
Added: selectors.readMoreBase
An optional policy field chooses whether relative read-more targets resolve against the document base (default) or the acquired page URL. Omission leaves the serialized policy and its digest unchanged; the extractor still issues no request.
Added: opt-in content outputs (variants, fit content, citations, tables, link and media scores)
ExtractOptions::outputs adds Document::outputs without changing any existing field. It returns the raw input, the cleaned whole page, fit HTML/Markdown from two deterministic, versioned, budgeted filters (pruning_v1 from text density, link density, tag and class hints; bm25_v1 against a caller query with fixed-point arithmetic) and citation-style Markdown whose ⟨n⟩ markers resolve to retained references and Document::links positions. targetElements narrows text, Markdown and HTML while links and assets keep the declared discoveryScope (whole page by default). tables reports each table as data, layout or ambiguous with its score components and, for data tables, exact normalized rows with spans repeated and merged headers joined. linkMedia scores links, images and audio/video with intrinsic and contextual components kept apart, classifies links as internal, subdomain or external, and creates preview intents (PreviewIntentV1, refused for private, loopback, link-local, local and credentialed targets at creation) for a worker to fulfil; link_media::project_head projects fetched head bytes under the intent's byte budget. The extractor never fetches. See docs/reference.md.
Added: certificate evidence, independent body limits and per-request response controls in the fetch plane
Every live Fetcher response carries FetchEvidence (FetchResponse::evidence()): the leaf certificate fingerprint (SHA-256), validity period and self-issued flag read from the request's own TLS connection under a 32 KiB bound (certificateEvidence: observed), or the reason none was observed (not_tls, not_reported, too_large, malformed); absence is never reported as a successful check, and observation is separate from the verification mode. Tested on loopback TLS in both transports, with no second socket. Body reading is now bounded three independent ways: decoded bytes (default 8 MiB), wire bytes (FetchConfig::max_wire_bytes, FetchOptions::max_wire_bytes) and a decoded-per-wire expansion ratio (FetchConfig::max_expansion_ratio, default 250, never disabled) that refuses a decompression bomb with FetchError::BodyLimit; 0 is a zero-byte cap, never unlimited, and no cap exceeds 64 MiB. gzip, deflate and br are decoded by crawlx_fetch::codec (also decode_bytes for bytes already in memory), the original wire bytes keep a blake3 digest in the evidence, a corrupt or truncated stream is FetchError::BodyDecode, and FetchOptions::oversize = Reject refuses a response whose Content-Length exceeds the cap before reading its body. FetchResponse::text() decodes strictly in the selected encoding (override, byte-order mark, Content-Type charset, <meta>/XML declaration, UTF-8) and records where it came from; invalid bytes are an error unless text_lossy() is asked for. FetchOptions::declaration maps a declared MIME type, text encoding and allowed or denied HTTP error statuses onto the request: an allowed 429 is delivered and not retried but still reaches the governor, so it never bypasses a cooldown. FetchOptions::preflight adds a HEAD before the GET that passes the same egress check, admission and request allowance on every hop. FetchConfig::read_timeout adds an idle body timeout separate from the connect and whole-request timeouts. CachedValidators binds ETag/Last-Modified to a cache scope (never offered to another tenant or principal, withheld for no-store, Vary: * and zero-data-retention content) and interpret_revalidation accepts a 304 only when it agrees with the validator that was sent.
Added: robots decision on every media, feed and read-more hop; private networks only through authorized scope
RobotsCache::evaluate_hop(HopKind, &Url) gives media, feed, read-more and redirect hops the same verdict as a page (an unknown origin asks for its robots.txt and is never allowed). EgressPolicy::with_authorized_private_networks is the only way admission grants private access: exactly the record's authorized networks, and an empty list grants nothing.
Fixed: a 429/503 cooldown is demonstrated to hold back every worker on the origin
crates/crawlx-fetch/tests/cooldown_pg.rs runs two governors over one PostgreSQL origin admission store (skipped without CRAWLX_TEST_DATABASE_URL): a cooldown published by one worker is visible to the other before it leases work, delays its next start on that origin only, does not occupy run-global capacity while waiting, and expires.
Added: scheduled retention sweeper
crawlx admin sweep-retention --every <duration> keeps the retention sweeper running: one pass at start, then one per interval (at least one second), until SIGINT or SIGTERM. Passes never overlap and missed ticks are not replayed, a pass in flight is dropped on cancellation (a sweep is resumable) and one longer than an hour counts as a failure, a failed pass is logged (error text only), counted in crawlx.retention.sweep.failures and retried on the next tick. --passes <n> bounds the run. The loop is crawlx_storage::retention::run_sweep_loop (also RetentionSweeper::run_loop), tested with a paused clock and with cancellation. See docs/ops.
Added: CLI list, configuration and diagnostics rows
--resolvers accepts files of resolvers with commas, white space, # comments and repeats (at most 8 distinct, entries validated with the flag named). --known-files accepts all, robotstxt and sitemapxml and visits each file once. crawl --cache-mode sets the response-cache mode; crawl --print-config prints every seed's admitted, redacted request with a configuration digest and exits without crawling. The pprof listener serves /debug/pprof/ and a text form of the memory summary (/debug/pprof/heap?debug=1). crawlx extract --list prints discovery only; --backup-dir writes exclusive owner-only copies outside the source tree and --zero-retention refuses every disk sink. source-import of a Go-collector-style manifest accepts an exported env, reports every supported variable with its effective source, refuses unsafe or unlimited values with a complete report, and returns a configDigest for convertible imports. Exit codes, stream separation and the update policy are documented in docs/ops.
crawlx config features prints a versioned feature manifest for the crawl flag set: per baseline row the flags, compatibility spellings, policy (including intentional security deviations) and exercising tests, kept honest by a test that fails on a missing flag, spelling or test.
Added: extracted-content dedupe and pre-acquisition URL exclusion
extract.content.dedupe removes repeated normalized blocks from the selected output (first occurrence kept, repeats retained when opted out), records distinct raw, page, main and comment digests with their normalization and a similarity fingerprint, and adds a duplicate_main quality stage over the normalized title and body (SHA-256) that rejects ingestion of the same content at a second URL while keeping both acquisitions and their exact origins. A bounded, caller-scoped hash cache (tenant, run namespace, role, extractor/policy/normalization versions; deterministic eviction; no clock or global state) backs both stages. extract.content.excludedUrls drops URLs by substring or pattern before any request, with the reason code url_excluded distinct from author_excluded. Challenge validation is covered by tests that keep keyword-only pages and articles about interstitials valid while a structural 200 challenge is excluded with its signals.
Added: markdown normalization metrics in the differential scorer
bench/differential/sdk_shape_diff.py reports the block-level F1 and the ordered-subsequence ratio of
the normalized markdown of every page both systems returned (new markdown_metrics.py, standard library
only, with offline tests). docs/design/crawl-model.md lists the test files that exercise each acceptance
case (shared 429 cooldown, login expiry, trust failure, DNS rebind, at-most-once actions, cancellation
lease release) and the one known gap.
Added: pool gateway upstream for the proxy tiers
- Optional ProxyX pool gateway as the upstream of the
basicandenhancedproxy tiers ([fetch.proxyx],--fetch-proxyx-*,CRAWLX_FETCH_PROXYX_*):
a typed, locally validated username (kind, country, city, provider, ttl, rotation), one sticky
exit identity per run (sidderived from the run id, separate per tier,rotation = eachfor a
fresh identity per tunnel),CONNECT-only transport that tunnels plainhttp://targets too on
both the fetch plane and the browser plane, the pool session id and exit IP recorded as connection
evidence (connection.proxyRoute = "proxyx_pool",poolSession,poolExitIp), typed gateway
refusals (proxy_refusedfor terminal causes,unreachablefor transient ones) and bounded,
asynchronous block feedback to the control API (429, challenges, repeated403, resets; honors
Retry-After; never blocks a fetch). The org key is anenv://orfile://reference or a
literal, redacted everywhere; the gateway and control hosts stay under the egress policy. New
metricscrawlx.proxyx.block_signalsandcrawlx.proxyx.tunnel_refusals.
Changed: neutral names (breaking)
Features, identifiers, files, configuration and documentation now use neutral names. Every
integration keeps working; only exact strings that existing clients or services send or expect
(headers, the fc- key prefix, route shapes, MCP tool names, provider API fields) are unchanged.
Rename these in deployments and scripts:
| Area | Old | New |
|---|---|---|
| API mount | /compat/<name>/v2 |
/compat/v2 |
| Prefixed keys | compat.<name>Keys, --<name>-keys, CRAWLX_COMPAT_<NAME>_KEYS |
compat.prefixedKeys, --compat-keys, CRAWLX_COMPAT_KEYS |
| Tenant engine | crawlx admin engine --set <name> |
--set upstream (migration 0045 rewrites stored rows) |
| LLM settings | the provider-named *_BASE_URL and *_API_KEY variables, MODEL_NAME, MODEL_EMBEDDING_NAME, the local model server's *_BASE_URL |
CRAWLX_LLM_BASE_URL, CRAWLX_LLM_API_KEY, CRAWLX_LLM_MODEL, CRAWLX_EMBEDDING_MODEL, CRAWLX_LOCAL_LLM_BASE_URL |
| Transcription | the provider-named *_TRANSCRIBE_ENDPOINT, TRANSCRIBE_MODEL_NAME |
CRAWLX_TRANSCRIBE_ENDPOINT, CRAWLX_TRANSCRIBE_MODEL |
| Search | provider values for the metasearch and hosted search backends; their *_ENDPOINT/*_ENGINES/*_CATEGORIES/*_API_KEY/*_ENGINE variables |
metasearch, serp; CRAWLX_SEARCH_ENDPOINT, CRAWLX_SEARCH_ENGINES, CRAWLX_SEARCH_CATEGORIES, CRAWLX_SEARCH_API_KEY, CRAWLX_SEARCH_API_ENGINE |
| Captcha | provider value for the task-based solver | task-api |
| Compatibility flags | --<name>-defaults / config key |
--compat-defaults / compat-defaults; default wordlist directory field_wordlists |
| Source import | product-named source ids |
input-format ids: python-spider, js-actor, py-actor, go-collector, compat-api, adaptive-py, llm-py, seedlist-batch, topology-stream, bean-config, browser-yaml, text-precision, news-article, surface-flags; inventory row ids TP-, NA-, SR- |
| Request identity / pacing dialects | product-named values | js_actor_3_18, py_actor_1_11, python_spider_2_19, go_collector_2_2; latency-target-v1, adaptive-concurrency-v1 |
| NLP capability | punkt_model |
sentence_model |
| Discovery connectors | provider-named values | news_search, trends_search, web_archive_index |
| Delivery sinks | product-named kind values |
search_update, search_index, stream_rest_v2, queue_http_v1, object_json_upload |
| Secrets | aws-sm:// references |
cloud-sm:// |
| Object store | CRAWLX_S3_SSE=aws_kms |
cloud_kms (kms and the S3 wire label stay accepted) |
| Differential harness | product-named flags, env variables and files | --upstream, --upstream-origin, UPSTREAM_*, CRAWLX_UPSTREAM_URL, bench/differential/*upstream* |
The extraction-import report no longer carries a sourceUrl. ci/lint-public.sh fails on
third-party product names outside the documented exceptions.
Added
- Compatibility API shape residuals: the crawl status carries a
warningstring (pages the site's
robots.txt disallowed, pointing at therobotsBlockedlist; a stopped crawl that found at most
one page) and, while the crawl runs,expiresAtand anextlink;POST /compat/v2/map
answers theidof its run and lists URLs without the trailing slash of non-root paths; the
htmlformat is a document (<!DOCTYPE html><html lang="…">, body); compat routes answer
cross-origin preflights and carryAccess-Control-Allow-Origin,ETag(a matching
If-None-Matchanswers304) andX-Response-Time; a compat409echoes the caller's
x-request-id;changeTrackingignores thesrcof<iframe>tags when it compares markdown. compat.mode(strict, the default, ornative_defaults; environment variable
CRAWLX_COMPAT_MODE):strictkeeps every query string of a compat crawl that leaves
ignoreQueryParametersunset and signs native webhook deliveries twice (Crawlx-Signatureand
the compat signature header);native_defaultsuses the native query policy and
Crawlx-Signatureonly.- A compat crawl or scrape produces
admission(API) and, per page,fetch,extractand
persist(worker) spans carryingcrawl_id. - Compat WebSocket watchers close a client that does not accept a frame within
Settings::ws_send_timeout(30 s, code 1008) and document their frame contract. - Golden construct matrix for header and HTML endpoint discovery (one fixture per construct with
the exact expected output;cargo test -p crawlx-extract --test endpoint_matrix) and
behavioral vectors for the JavaScript miner (--test endpoint_js_vectors). They pinned and fixed:
every URL of apinglist is an endpoint,applet archiveis split on commas, aLinkheader
target may contain commas,Refreshandmeta refreshaccept a bare target (0; /next),
data-hx-*attributes are read likehx-*,<form method=dialog>andformmethod=dialog
produce no endpoint, a button'sformmethodis honored (non-GET stays metadata only), a relative
<base href>resolves against the page instead of against itself, regex-mined text in an HTML
page resolves against its<base>, and JSON/JavaScript slash escapes (\/,\u002f) are decoded
before regex mining while a match that keeps another backslash is dropped (a\\host\xstring
used to switch the host). endpoints::discover_reportanddiscover_html_reportreturn aDiscoveryReport: the endpoints
plus a typedUnresolvedEndpoint(matcher, method, kindvariable|call|member|expression, byte
span, script origin,partial) for each URL expression of a request site that the AST pass cannot
resolve statically, instead of dropping the site or guessing silently. The list is bounded by
DiscoveryOptions::max_unresolved(default 1000) with an overflow count; scripts are still never
executed. Case conversions (toLowerCase) are no longer treated as transparent.- The JavaScript AST pass no longer aborts the process (stack overflow) on a hostile script with a
million nested brackets, prefix operators,x=x=…,?:or=>chains or a very longa+a+…
chain: it refuses scripts that exceed a lexical nesting bound and stops its own traversal at a
fixed depth; regex mining still runs inbothmode. - Unit tests for the browser crash-loop alerts (
deploy/alerts/crawlx-rules.test.yaml, run with
promtool test rules): the per-worker rule fires above 0.2 crashes/min for ten minutes, the
fleet-wide rule pages above 25 % of workers, and an occasional crash alerts on neither. The
telemetry catalog tests now pin the name, type, bounded labels and exported name of the
measurement metrics (identity, key coverage, traffic capture, revalidation, round-robin roles,
form partitions, trusted corpus) and assert that each moves in the registry.
Changed
-
EgressConfig::proxy_foris replaced byroute_for(aTierRoute: direct, URL or pool);
build_fetcher,build_fetcher_with_captureandserve_proxytake the run id that keys the sticky
identity;ProxyRoutesgains thebasic_poolandenhanced_poolfields. -
Dependencies moved to rand 0.10 / rand_chacha 0.10, sqlx 0.9, redis 1.8, quick-xml 0.42,
sha1/sha2 0.11 with hmac 0.13, html5ever 0.40 / scraper 0.29, oxc 0.156 and criterion 0.8. -
Seeded sampling changed with rand 0.10: for the same
--seed, retry and backoff jitter, scheduler
and frontier shuffle order, and the synthetic TLS ClientHello ordering differ from the release
candidate. Runs stay deterministic per seed within this version; a seed recorded with the
candidate does not reproduce the same
sampled values. Journaled actions and recorded-path replay are unaffected. -
Container base images are pinned by digest.
-
robots.txtCrawl-delay(capped at 10 seconds) now paces the origin for runs that obey robots:
once the robots.txt answer is recorded and on every allowed URL, the run'sOriginGovernorkeeps
spacing at or abovemax(politeness.delayMs, Crawl-delay)for HTTP and browser effects, across
back-off and decay. Only an explicit value (including0) changes the floor; a refetch that drops
the directive keeps the earlier one. A run that overrides robots does not apply it itself, and
other workers are only held back on the start that directly follows a floored start (process-wide
cap, deployment admission). Known limitation: the URL plane waits on the floor in process (up to
10 s), so rows behind it in the leased batch wait too (a429cooldown instead defers later rows
of that origin), and the acquisition budget counts the wait.
(#35, contributed in
#37)
Security
- CI only runs for code owners; a
requiredaggregate check fails for pull requests the workflow
gate refuses. Secrets moved into environments (gate-keysdeploys frommainonly and needs a
code owner's approval). Private-rule hits of the public-tree lint no longer print rule names or
matching text. - Every SQL string built at runtime is audited and marked for sqlx 0.9's injection check; values stay
bound parameters.
Documentation
- Positioning and intended use: the README, docs index,
SECURITY.md,CONTRIBUTING.mdand
CODE_OF_CONDUCT.mdnow state that crawlx is for security research and authorized testing only, and
describe the optional AI/LLM features and their guardrails. - README redesign with banner, animated terminal demo, install options, quick starts, output examples and
an architecture diagram; reference material moved todocs/reference.md, with a local-run
docs/walkthrough.mdand adocs/roadmap.md. SECURITY.mdgains response-time targets, safe-harbor terms, scope lists and release verification;
newCODE_OF_CONDUCT.md; YAML issue forms for bugs, feature requests and questions.