Skip to content

Releases

CrawlX 0.2.0

Choose a tag to compare

@github-actions github-actions released this 15 Nov 12:43
Immutable release. Only release title and notes can be modified.
e0b2e9a

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 run dynamic and hybrid crawls on
    PostgreSQL, MariaDB or SQLite with any artifact store. One <key-id>:<64 hex> per line, mode 0600/0400
    (or 0440 with a group of the process, as a Kubernetes secret volume under fsGroup presents it;
    other modes and foreign groups are refused with the mode and gid named), first key primary, older keys
    still unwrap for rotation. Exclusive with CRAWLX_CHECKPOINT_KMS_KEY_ID; checked by crawlx config check.
    Deployable as an optional secret file: docker/compose.checkpoint-kek.yml and Helm
    capabilities.checkpointEncryption.kekFileSecret (the chart refuses both providers). See
    docs/design/data-and-secrets.md and docs/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) and CRAWLX_REDIS_KEY_PREFIX
      (Valkey/Redis key prefix, default crawlx: so existing keys are unchanged), plus the index,
      database and topic/exchange prefixes of the new destinations. crawlx config check validates them.
    • ci/backend-services.sh starts throwaway search, analytics, broker and self-hosted S3 containers
      for the real-service tests; the self-hosted object-store profile is verified against RustFS and
      MinIO.
  • 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/ai reports 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 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; see docs/mcp.md.
  • Scoped bootstrap API keys: crawlx serve --api-key TENANT=KEY:SCOPES limits a key to the agent
    preset (read and create runs, read authorization records; no approvals:decide,
    authorizations:write, sensitive artifacts or metrics), the operator preset (all scopes) or a
    comma-separated scope list. The plain TENANT=KEY form still holds every scope. Unknown or empty
    scope lists are refused at startup. This makes the least-privilege agent key of docs/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 PATH checks the chain; see docs/mcp.md.

Changed

  • Dependency and base-image updates are made by maintainers by hand: .github/dependabot.yml is removed, and the base-image digest comments in the Dockerfiles say so. Advisories for the locked Rust dependencies are checked by cargo deny in the CI workflow, and the self-hosted security workflow reviews dependency changes in pull requests (dependency-review) and runs the OpenSSF Scorecard.
  • ci/lint-runners.sh (run by the workflow-lint job, with a self-test) fails when a job's runs-on lacks the self-hosted label 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, replay and the operator
    commands read only ./crawlx.toml, so database.schema was ignored (a URL from the environment migrated
    into public) and database.url_file was not read. A CRAWLX_CONFIG that names a missing or invalid file
    is an error, also for the [ocr] table. export, replay and crawl also read database.url_file and
    apply the [database] pool, timeout and schema settings.
  • crawlx config check accepts CRAWLX_ZDR_REDIS_URL_FILE (file must be readable and not empty; refused
    together with CRAWLX_ZDR_REDIS_URL) and reports the object-store bucket and prefix from
    CRAWLX_S3_BUCKET and CRAWLX_S3_PREFIX instead of an empty bucket.
  • docs/ops/object-storage.md no longer says CRAWLX_S3_BUCKET is ignored by serve, worker and
    crawl: with a database they write through the bucket; only the in-memory serve and crawl without
    --database-url use the filesystem.
  • crawlx serve now reads [intel.policy] from crawlx.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 answered 403 external_processing_disabled. crawlx config check validates
    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 (0600 regular file), CRAWLX_CDP_WS_URL_FILE and CRAWLX_CDP_WS_URL for
    crawl and worker; one source only. --cdp-ws-url still works with a deprecation warning, and the
    URL no longer appears in Debug output.
  • 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} carries failure: {code, message}
    (checkpoint_keys_required, config_refused) next to terminalReason: fatal_error, recorded as a
    run.refused event, and the worker logs the reason.
  • ClickH...
Read more

CrawlX 0.1.0

Choose a tag to compare

@github-actions github-actions released this 13 Nov 12:45
Immutable release. Only release title and notes can be modified.
7f6f27b

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, and crawlx 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_environment and
    authorized_security_test profiles, 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 charges input bytes x 500 without 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.
  • crawlx command-line interface: crawl, serve, worker, migrate, inspect,
    replay, replay-response, extract, authz, mcp (MCP tools over
    stdio), healthcheck and configuration checks.
  • Optional ONNX ranker support (crawlx-model, onnx feature), 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.system1Mode values above shadow (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 default dynamic.strategies is interaction_bfs and
    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 need CRAWLX_ARTIFACT_KMS_KEY_ID or
    CRAWLX_ARTIFACT_KEY_FILE plus CRAWLX_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-process crawlx crawl seals its artifacts under a process-lifetime key:
    its pages/*.md, metadata.json and report.json are the readable output, and the sealed
    objects under artifacts/ 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 under ci/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 ...

Read more