Repository navigation
Releases
CrawlX 0.2.0
Second source release. Distribution is unchanged: the GitHub repository and the tagged source
archive, with a CycloneDX SBOM and SHA256SUMS; 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 (no soak, flake window,
restore drill, severity-classified findings or model calibration was run for it), so do not treat it
as qualified for production use.
Highlights
- AI-native features, off by default and advisory only: a model-egress policy, natural-language crawl
specifications, a plan-first research agent, schema extraction with exact field evidence, passive
surface triage and grounded summaries (docs/ai.md). - A native, capability-scoped MCP surface with scoped API keys and a hash-chained audit log
(docs/mcp.md). - Shared-instance backends: namespacing for PostgreSQL, the object store and Valkey/Redis, delivery to
OpenSearch, Elasticsearch, ClickHouse, Kafka and RabbitMQ, and a guard against two deployments
deleting each other's artifacts (docs/ops/backends.md). - A local key-encryption-key file for browser checkpoints, so durable deployments need no cloud key
service. - CI runs on self-hosted runners for code owners only, and no update bot is configured.
Added
- Local key-encryption-key file for browser checkpoints (
CRAWLX_CHECKPOINT_KEK_FILE): durable
API and worker deployments without a cloud service can rundynamicandhybridcrawls on
PostgreSQL, MariaDB or SQLite with any artifact store. One<key-id>:<64 hex>per line, mode0600/0400
(or0440with a group of the process, as a Kubernetes secret volume underfsGrouppresents it;
other modes and foreign groups are refused with the mode and gid named), first key primary, older keys
still unwrap for rotation. Exclusive withCRAWLX_CHECKPOINT_KMS_KEY_ID; checked bycrawlx config check.
Deployable as an optional secret file:docker/compose.checkpoint-kek.ymland Helm
capabilities.checkpointEncryption.kekFileSecret(the chart refuses both providers). See
docs/design/data-and-secrets.mdanddocs/ops/README.md.
The provider is tested end to end on SQLite and MariaDB, each with filesystem and S3-compatible
artifact stores (crates/crawlx-worker/tests/checkpoint_kek_durable.rs). - Backends guide (
docs/ops/backends.md): support matrix, per-family namespacing and shared-instance
setup.- Delivery destinations for OpenSearch and Elasticsearch (
opensearch,elasticsearch: engine
and version detection, a versioned index template, stable document ids), ClickHouse
(clickhouse: versioned migrations, insert deduplication), Kafka (kafka: topic creation,
SASL/PLAIN, TLS, keyed records) and RabbitMQ (amqp: publisher confirms, mandatory publish,
message_id). Pure-Rust clients, no native libraries. Kafka is at-least-once: the client has no
idempotent producer, so consumers deduplicate on the record key. - Namespacing for shared instances:
database.schema(PostgreSQL schema, validated, refused for
other engines),CRAWLX_S3_PREFIX(object-store key prefix) andCRAWLX_REDIS_KEY_PREFIX
(Valkey/Redis key prefix, defaultcrawlx:so existing keys are unchanged), plus the index,
database and topic/exchange prefixes of the new destinations.crawlx config checkvalidates them. ci/backend-services.shstarts throwaway search, analytics, broker and self-hosted S3 containers
for the real-service tests; theself-hostedobject-store profile is verified against RustFS and
MinIO.
- Delivery destinations for OpenSearch and Elasticsearch (
- AI-native features, off by default and advisory only (see
docs/ai.md):- A uniform untrusted-content and model-egress policy (
intel.policy): an operator switch for
external processing, approved providers per purpose with a retention capability, typed input and
output envelopes, projection of secrets out of every prompt and reply, bounded schemas without
remote references, finite per-call and per-run budgets, tenant- and revision-keyed caching, and
digest-only audit rows.GET /v1/capabilities/aireports the policy in force. - Natural-language specifications compiled to native configurations:
POST /v1/crawl-specs/validate,
/compile,GET /v1/crawl-specs/{id}, operator approval (/approve) and creation from an
approved spec (/create), with a deterministic narrowing-only compiler, diff, unsupported-intent
reporting, native admission and a single-use digest-bound approval token. - Plan-first research agent:
POST /v1/agent-plans, approval, cancel and/execute. Plans are
validated deterministically, approved by an operator and executed confined to the plan's tools and
URLs; deviations are recorded on the job result and the plan. - Schema extraction with exact field evidence (
POST /v1/crawls/{id}/extractions): byte spans
computed by CrawlX, observed, inferred, conflicting, rejected and unknown field states, and no
ungrounded value in the result. - Passive endpoint and vulnerability-surface triage (
POST|GET /v1/crawls/{id}/triage) from retained
pages, static forms and traffic, with evidence ids, name-only hypotheses and an optional cited
explanation. - Grounded run and findings summaries (
POST|GET /v1/crawls/{id}/summaries) with a deterministic
fallback, claim validation against the evidence, and operator-reviewed findings
(PUT|GET /v1/crawls/{id}/findings) as the only source of confirmed status.
- A uniform untrusted-content and model-egress policy (
- A native, capability-scoped MCP surface (
crawlx mcp --surface native) with read-only inspection by
default, explicit control, create, export, interact, erase and operator capabilities, structured
results, untrusted-content labelling, resources and operator-granted upload handles; seedocs/mcp.md. - Scoped bootstrap API keys:
crawlx serve --api-key TENANT=KEY:SCOPESlimits a key to theagent
preset (read and create runs, read authorization records; noapprovals:decide,
authorizations:write, sensitive artifacts or metrics), theoperatorpreset (all scopes) or a
comma-separated scope list. The plainTENANT=KEYform still holds every scope. Unknown or empty
scope lists are refused at startup. This makes the least-privilege agent key ofdocs/mcp.md
creatable. crawlx mcp --audit-log PATH(CRAWLX_MCP_AUDIT_LOG): an append-only, hash-chained JSON Lines audit
log of every MCP tool call and resource read (intent before, result after; digests and sizes only,
refusals recorded). The server refuses to start, and refuses a call, when the log cannot be written.
crawlx mcp audit-verify PATHchecks the chain; seedocs/mcp.md.
Changed
- Dependency and base-image updates are made by maintainers by hand:
.github/dependabot.ymlis removed, and the base-image digest comments in the Dockerfiles say so. Advisories for the locked Rust dependencies are checked bycargo denyin the CI workflow, and the self-hostedsecurityworkflow reviews dependency changes in pull requests (dependency-review) and runs the OpenSSF Scorecard. ci/lint-runners.sh(run by theworkflow-lintjob, with a self-test) fails when a job'sruns-onlacks theself-hostedlabel or an update bot configuration exists, so no job can fall back to a hosted runner.- Cleaned for the newest stable toolchain: iterator forms in the XPath axis walks, removal of unused dependencies, and explicit handling of the exit codes tests ignored.
Fixed
- The object-store prefix claim retries a transport failure of its marker requests a bounded number of times before refusing the write, and the profile tests assert the claim's request shape (no checksum where the profile forbids it, a checksum where object lock requires it).
- Every command now selects its configuration file like
crawlx config check:CRAWLX_CONFIG, else
./crawlx.toml. Before,migrate,crawl,worker,serve,export,replayand the operator
commands read only./crawlx.toml, sodatabase.schemawas ignored (a URL from the environment migrated
intopublic) anddatabase.url_filewas not read. ACRAWLX_CONFIGthat names a missing or invalid file
is an error, also for the[ocr]table.export,replayandcrawlalso readdatabase.url_fileand
apply the[database]pool, timeout and schema settings. crawlx config checkacceptsCRAWLX_ZDR_REDIS_URL_FILE(file must be readable and not empty; refused
together withCRAWLX_ZDR_REDIS_URL) and reports the object-store bucket and prefix from
CRAWLX_S3_BUCKETandCRAWLX_S3_PREFIXinstead of an empty bucket.docs/ops/object-storage.mdno longer saysCRAWLX_S3_BUCKETis ignored byserve,workerand
crawl: with a database they write through the bucket; only the in-memoryserveandcrawlwithout
--database-urluse the filesystem.crawlx servenow reads[intel.policy]fromcrawlx.toml(camelCase keys, unknown keys and inline
credentials refused), so the native AI endpoints can be enabled; before, no way to set the policy
existed and they always answered403 external_processing_disabled.crawlx config checkvalidates
and reports it without secrets (docs/ai.md).- The browser DevTools URL, a bearer token, no longer has to travel on the command line:
--cdp-ws-url-file(0600regular file),CRAWLX_CDP_WS_URL_FILEandCRAWLX_CDP_WS_URLfor
crawlandworker; one source only.--cdp-ws-urlstill works with a deprecation warning, and the
URL no longer appears inDebugoutput. - A run the worker refuses over its configuration (for example a browser run without a checkpoint
key provider) now says why:GET /v1/crawls/{id}carriesfailure: {code, message}
(checkpoint_keys_required,config_refused) next toterminalReason: fatal_error, recorded as a
run.refusedevent, and the worker logs the reason. - ClickH...
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.