Skip to content

v1.8.1

Latest

Choose a tag to compare

@github-actions github-actions released this 06 Dec 09:54

PageSift 1.8.1 Release Notes

Release Version: v1.8.1
Release Scope: Full-surface wiring of 1.8 Mesh, 1.9 Compute, and 2.0 Runtime across HTTP, CLI, MCP, C ABI, Python, and Node.js; remote HTTP MeshTransport and ScraperStepExecutor; 1.6 Context Track 2 and 1.7 Resolve deepening; macOS/cluster/OCR/runtime correctness fixes; and measured 1.8.1 container & benchmark baselines (v1.8.0 -> v1.8.1)

PageSift 1.8.1 completes end-to-end integration of the pagesift-mesh, pagesift-compute, and pagesift-runtime engines into every user-facing interface (HTTP, CLI, MCP, C ABI, Python, Node.js, and cluster gateway routing), delivers remote HTTP MeshTransport and concrete ScraperStepExecutor step execution, deepens 1.6 Context and 1.7 Resolve, resolves macOS/cluster/OCR/budget edge cases, and records reproducible 1.8.1 Docker and benchmark measurements across the 42-crate workspace.

Highlights

  • Full-Surface 1.8 Mesh, 1.9 Compute & 2.0 Runtime Integration (pagesift-engine, pagesift-api, pagesift, pagesift-mcp, pagesift-ffi, pagesift-py, pagesift-node):
    • Engine & Transport (pagesift-engine, pagesift-mesh, pagesift-runtime):
      • Implements Engine::mesh, Engine::compute, and Engine::runtime backed by pagesift-store ns=15 (m/k/w domain prefixes) with tenant isolation.
      • Adds remote HTTP MeshTransport (pagesift-engine::mesh::http_transport) with peer endpoint_url support in pagesift-mesh::link, SSRF-guarded peer requests, and signed bundle/event exchange.
      • Wires ScraperStepExecutor (pagesift-engine::runtime::step_executor) into pagesift-runtime::exec, dispatching compiled workflow steps across live scraping, Sync, Context, Resolve, Mesh, and Compute with crash-safe SIGKILL recovery and concurrency race tests (pagesift-runtime/tests/it/).
    • HTTP API & Cluster Gateway (pagesift-api, pagesift/src/cluster/gateway.rs):
      • Exposes /v2/mesh (and sub-routes /link/*, /match/*, /bundle/*, /memory/*, /events/*, /team/*, /trust/*, /learn/*), /v2/compute (/align, /calc, /update, /scenario, /recipes, /recipes/{id}, /run, /runs, /learn), and /v2/runtime (/compile, /route, /tasks, /compose, /learn, /templates, /events, /history, etc.) with per-key rate limiting and Cluster Gateway forwarding.
    • CLI, MCP & Language Bindings:
      • CLI: pagesift mesh, pagesift compute, and pagesift runtime subcommands.
      • MCP: pagesift_mesh, pagesift_compute, and pagesift_runtime tools alongside existing scrape/crawl/sync/graph/context/resolve/agent tools.
      • C ABI (pagesift-ffi/include/pagesift.h): pagesift_mesh, pagesift_compute, and pagesift_runtime.
      • Python (pagesift-py): Scraper.mesh/amesh, Scraper.compute/acompute, Scraper.runtime/aruntime.
      • Node.js / TypeScript (pagesift-node): Scraper.mesh, Scraper.compute, Scraper.runtime with typed request interfaces in index.d.ts and header.d.ts.
  • 1.6 Context Track 2 Deepening (pagesift-extract, pagesift-engine):
    • Adds cross-document unit clustering and deduplication (unit_cross_doc), two-hop hybrid retrieval (hybrid_retrieval), adaptive ContextPack budget tuning (pack_adapt), deterministic field verification (field_verify / field_verify_parse), bounded Action evaluation (action_eval), and closed-loop consumer feedback integration in pagesift-engine.
  • 1.7 Resolve Deepening (pagesift-extract, pagesift-engine):
    • Adds rule-based scope qualification (scope_rules), multi-hop numeric derivation & unit/currency parsing (numeric_chain, numeric_parse), normalized originRoot lineage export (origin_export), Howard VOI-driven incremental vs full revalidation scheduling (voi_schedule), and BudgetedOcr-guarded scanned-PDF evidence reverification (ocr_verify).
    • Tightens unified claim tokenization (tokenize_unified & decompose): strips sentence-ending ./!/?, validates identifier boundaries on dotted paths, and filters currency/numeric-unit tokens ($99/yr., $99.99/yr., 12.5ms) from sym: anchors so price contradictions reliably resolve as Refuted.
  • Platform, Cluster, OCR & Resource Governance Fixes (pagesift-net, pagesift-cluster, pagesift-policy, pagesift-engine, pagesift-cdp, pagesift-flow, docker/):
    • macOS Memory Telemetry & Cluster Admission: Implements macOS sysctl (HW_MEMSIZE) + Mach host_statistics64 (HOST_VM_INFO64) and proc_pidinfo RSS probing in pagesift-net::resources; updates pagesift-cluster::capabilities::admits() to enforce the 70% RAM gate when memory telemetry is known while avoiding task starvation when unknown.
    • Capability-Aware Shard Handover: Updates pagesift-cluster::ledger::shard::set_map() to pause handovers only when the previous owner actually held an active lease or eligible queued tasks under prior capabilities.
    • Explicit vs Environment GPU Budget Separation: Separates PAGESIFT_GPU=off / CUDA_VISIBLE_DEVICES="" environment guards from explicit set_execution_budget caps in pagesift-net::resources, routes pagesift::config_ocr through PdfOcr::new_with_budget, and enforces a 64 KiB minimum floor on BODY_CAP so transient budget pressure never silently truncates HTTP bodies to zero bytes.
    • Cgroup, CDP & Docker Hardening: Delegates pagesift-policy::topology::read_cpu_quota_cores() to pagesift-net::resources::cgroup_cpu_quota_cores() for nested cgroups, hardens pagesift-cdp::guard, pagesift-flow::ring, docker/healthcheck.sh, and docker/docker-stack.yml, and adds bounded retry for transient WouldBlock store opens in tests.

Measured 1.8.1 Container & Benchmark Results

All numbers below were measured locally on Linux 7.0.0-44-generic x86_64, Intel Core i7-10700 @ 2.90GHz (8C/16T), 15 GiB RAM, rustc 1.99.0, CPU-only (CUDA_VISIBLE_DEVICES="" PAGESIFT_GPU=off). Full context and reproduction commands are also recorded in docs/benchmarks.md.

  • Docker Release Image (bash docker/build.sh):
    • Compressed image size (docker image inspect .Size, lower is better): 88.66 MiB (92,969,777 bytes); unpacked size (docker images, lower is better): 341 MB.
    • Standalone container (UID 10001, PAGESIFT_GPU=off): cold start to /healthz 19 ms (lower is better), idle RSS 26.06 MiB (lower is better), scripts/docker-smoke.sh 11/11 passed (including Lightpanda render, SSRF block, 0.224 s mid-crawl restart + 6/6 resume, /metrics, and 0.137 s SIGTERM shutdown).
  • Content perf_gate (--release, lower is better):
    • blog 100KB: median 1.90 ms (gate 8 ms); wiki 250KB: median 7.50 ms (gate 30 ms).
  • Context context_eval (--profile release-fast):
    • Incremental ContextDelta speedup: 3.48x (higher is better; 60 resources / 180 units; 7-step HTML+PDF+DOCX verification passed; peak RSS 47.72 MiB, initial 5.34 MiB, lower is better).
    • Multi-core Search + Pack scaling (320 queries, QPS higher / latency & RSS lower is better): 1T 2,557.2 QPS (p50 375 µs, p99 448 µs) → 4T 9,265.6 QPS (p50 398 µs, p99 619 µs) → 8T 17,319.2 QPS (p50 392 µs, p99 631 µs) → 16T 23,255.9 QPS (p50 585 µs, p99 1,773 µs, RSS 33.0 MiB).
  • Resolve resolve_eval (--profile release-fast):
    • E1 (64 adversarial traps): false_support_rate = 0.0 (lower is better), supported_precision = 1.0, supported_recall = 1.0, refuted_recall = 1.0, citation_accuracy = 1.0 (higher is better); E2 mirror collapse: naive 1.0 → resolve 0.0 false support.
    • E6 incremental Live reconciliation (60 persisted conclusions): 6,312 µs vs 35,285 µs full recheck (5.59x speedup, higher is better; full_vs_incremental_agreement = 1.0, false_trigger_rate = 0.0).
    • E8 runtime throughput (400 checks): 7,506.9 QPS (higher is better), p50 129 µs, p95 168 µs, p99 211 µs, peak RSS 33.85 MiB (lower is better).
  • MCR HTTP End-to-End (Mesh / Compute / Runtime):
    • --release Docker standalone container (loopback sequential curl, N=200, RSS 26.06 MiB, latency lower is better): /healthz p50 0.39 ms / p99 0.52 ms; POST /v2/compute (calc) p50 1.18 ms / p99 2.36 ms; POST /v2/mesh (memory_put) p50 5.76 ms / p99 8.26 ms; POST /v2/runtime (compile) p50 6.42 ms / p99 9.98 ms.
    • Native standalone binary (quick profile opt-level=2, HTTP/1.1 keep-alive, idle RSS 33.33 MiB / post-load 54.71 MiB, throughput higher / latency lower is better): compute/calc 1T 720.6 req/s (p50 1.40 ms, p99 3.73 ms) / 8T 256.6 req/s (p50 31.67 ms, ledger write-lock serialized); mesh/memory_put 1T 142.4 req/s (p50 6.85 ms, p99 8.98 ms); mesh/memory_stats 1T 133.3 req/s → 8T 830.4 req/s (p50 9.04 ms, p99 13.22 ms); runtime/compile 1T 93.8 req/s (p50 10.53 ms) → 8T 571.1 req/s (p50 13.26 ms, p99 18.12 ms); runtime/tasks 1T 69.0 req/s (p50 14.05 ms).

Verification

  • Local release gate (CUDA_VISIBLE_DEVICES="" PAGESIFT_GPU=off CARGO_BUILD_JOBS=4 bash scripts/ci.sh --fast --bindings): release identity, wall-clock, workflow, cargo fmt --all --check, cargo clippy --workspace --all-targets (RUSTFLAGS="-D warnings"), Rust workspace test suite (1,982+ tests), aarch64-apple-darwin cross cargo check, Node.js binding tests (69/69, incl. mcr.test.mjs), and Python binding tests (87/87, incl. test_mcr.py).
  • Static & supply-chain checks: python3 -I scripts/check_release.py, python3 -I scripts/check_readme.py --release, bash scripts/check_links.sh, bash scripts/check_file_length.sh, bash scripts/check_literals.sh, python3 scripts/publish_crates.py --dry-run (all 37 publishable crates in topological order), and cargo deny --config .github/deny.toml check.
  • Reference documentation: docs/architecture.md · docs/resolve.md · docs/context.md · docs/benchmarks.md · docker/README.md
  • Community & feedback: https://discord.gg/esA3wMZVvA