diff --git a/.github/workflows/atlas-search-pr.yml b/.github/workflows/atlas-search-pr.yml index f26dca8238..fbbfc39e2a 100644 --- a/.github/workflows/atlas-search-pr.yml +++ b/.github/workflows/atlas-search-pr.yml @@ -5,6 +5,9 @@ name: atlas-search # No `cargo fmt --check` step: the policy is that formatting is not a # merge gate (formatting is auto-fixed on main by auto-format.yml), so # this basic-tier job runs tests only. +# +# Despite the filename, there is no pull-request trigger: this runs +# nightly and on dispatch only (the -pr suffix is historical). on: schedule: diff --git a/.github/workflows/atlas-search-worker-tests.yml b/.github/workflows/atlas-search-worker-tests.yml index f641b3445b..4fe1cb9c28 100644 --- a/.github/workflows/atlas-search-worker-tests.yml +++ b/.github/workflows/atlas-search-worker-tests.yml @@ -12,10 +12,11 @@ name: atlas-search worker tests # workflow, flake check, or justfile recipe, only by hand via npm test. # # This workflow runs the suite (npm ci + npm test = vitest with -# @cloudflare/vitest-pool-workers) on pushes to main that touch -# pkgs/atlas-search/worker/ and on dispatch, following the house -# pattern for test workflows (id-hosted-worker-tests.yml). Main tier -# only: not a merge gate. +# @cloudflare/vitest-pool-workers) on dispatch and on the nightly +# schedule — there is no push trigger (nightly instead of on every +# push to main, Drew 2026-11-16; see .github/ci-policy.md) — following +# the house pattern for test workflows (id-hosted-worker-tests.yml). +# Main tier only: not a merge gate. # # The run step first fails if any suite file or the package manifest # or lockfile is missing, so a green run can never be a silently diff --git a/.github/workflows/fleet-search-parity-guard.yml b/.github/workflows/fleet-search-parity-guard.yml index 50b4974b57..39dc90ffbd 100644 --- a/.github/workflows/fleet-search-parity-guard.yml +++ b/.github/workflows/fleet-search-parity-guard.yml @@ -8,6 +8,9 @@ name: fleet-search-parity-guard # parity headers, or the fleet verb silently stops rendering service # envelopes byte-identically to atlas-search. Pure bash -- no nix, no # toolchain -- so this stays a seconds-long basic check. +# +# Dispatch-only: no push or schedule trigger runs this guard +# automatically. on: workflow_dispatch: diff --git a/doc/README.md b/doc/README.md index 7e35695d73..d8d3a14949 100755 --- a/doc/README.md +++ b/doc/README.md @@ -41,7 +41,7 @@ Folders are named `__`. The kinds in use are `feature` - [ID program investigation & build-out prompt](2026-11-23T12-06-42Z_design_id_program_investigation_prompt/2026-11-23T12-06-42Z_design_id_program_investigation_prompt.md) — the charter prompt for the ID program tracked in #13240: full investigation and design completion for the ID platform (epics #2056 and #9106), new designs for the obvious next steps, an ID book published under `/code/id/`, and a prioritized map of all ID issues with blockers marked. - [C8 Atlas ingestion and error-driven investigation](2026-11-22T01-48-21Z_design_c8_atlas_ingestion_investigation/2026-11-22T01-48-21Z_design_c8_atlas_ingestion_investigation.md) — design for #9576: source-authoritative report/page ingestion, versioned metadata and typed links, bounded explainable ranking boosts, and an evidence-first error investigation recipe integrated through #9091. -- [Atlas program — full investigation, next-steps design & build-out](2026-11-23T12-06-51Z_design_atlas_program_investigation/2026-11-23T12-06-51Z_design_atlas_program_investigation.md) — the program prompt for #13241 (under epic #8983): automatic ingest of all data sources, query planning, layered search characteristics on Snowflake Arctic, reranking, a recommender, fleet + ID search integration, and MCP/programmatic access. Program deliverables: the Atlas book (published under https://developing-today.github.io/code/atlas/) and the issue-by-issue map of all Atlas issues with blockers marked. +- [Atlas program — full investigation, next-steps design & build-out](2026-11-23T12-06-51Z_design_atlas_program_investigation/2026-11-23T12-06-51Z_design_atlas_program_investigation.md) — the program prompt for #13241 (under epic #8983): automatic ingest of all data sources, query planning, layered search characteristics on Snowflake Arctic, reranking, a recommender, fleet + ID search integration, and MCP/programmatic access. Program deliverables: the Atlas book (published under https://developing-today.github.io/code/atlas/) and the issue-by-issue map of all Atlas issues with blockers marked. Two corrections to the prompt text itself: its `pkgs/atlas-core` names no package — atlas-core is a crate inside `pkgs/atlas-search/crates/` — and its census figures are the 2026-10-31 snapshot, not a current count. - [MCPX program — full investigation, next-steps design & build-out](2026-11-23T12-40-29Z_design_mcpx_program_investigation_prompt/2026-11-23T12-40-29Z_design_mcpx_program_investigation_prompt.md) — the program prompt for #13264 (under epic #8993): server onboarding and lifecycle, per-client policy and capability ceilings, remote/hosted servers as versioned deployments, config-system completion (the 8-setting exemption tail), observability, library/embedding use, and the mcpx↔fleet↔Atlas↔ID integration surface. Program deliverables: the mcpx book extended from a mechanical coverage audit (published at https://developing-today.github.io/code/) and the issue-by-issue map of all mcpx issues with blockers marked. - [Atlas v2–v4: evidence, adaptation and corpus stewardship](2026-11-11T03-45-00Z_design_atlas_v2_v4/2026-11-11T03-45-00Z_design_atlas_v2_v4.md) — expansive design for #6020: the landed v1 contract inventory, personal-knowledge/provenance/retrieval surveys, dependency-tagged horizons and entry gates, and independently buildable evaluation and conformance follow-ons. @@ -84,6 +84,39 @@ Folders are named `__`. The kinds in use are `feature` - [Chat anchor data model](2026-11-09T01-27-00Z_design_chat_anchor_data_model/2026-11-09T01-27-00Z_design_chat_anchor_data_model.md) (decision record for #5870: typed conversation links, revision-bound part selectors, edit relocation, drift, orphan, and tombstone behavior) - [Atlas storage growth model](2026-11-08T11-18-02Z_design_atlas_storage_growth_model/2026-11-08T11-18-02Z_design_atlas_storage_growth_model.md) (design for #6061: per-source churn x retention growth model against the #6019 plan envelope, the ledger-fed calibration procedure, conservative v1 retention defaults for the #6026 rule engine, and staging modelled separately from the retained corpus) - [Per-source delta detection and non-doubling join semantics](2026-11-10T22-56-00Z_design_atlas_delta_detection_join/2026-11-10T22-56-00Z_design_atlas_delta_detection_join.md) (design for #6028 remainder: git tree-diff / hash-walk / watermark+row-hash detection with the cost ceiling against the 21 GB corpus, byte-anchored spans with the 0.9 occurrence ceiling, and join invariant J1 with cold/retired-version behavior) +- [Atlas as a Rust binary and a multi-client search service](2026-11-04T08-07-13Z_design_atlas_binary_service/2026-11-04T08-07-13Z_design_atlas_binary_service.md) — the Atlas design of record. Three of its statements are proposal-era and are corrected here rather than in the record: §4's package layout (the built package has extra top-level surface, `docs/` plural, and no package-local `doc/`); §2's seven-row endpoint table (the implemented dispatch adds `POST /v1/embed`, `POST`/`GET /v1/feedback` and the `GET /v1/search/jobs` list — the full route table is the Atlas book's service-api chapter); and its census figures (18,325 sessions / 122,124 messages / 107,639 chunks), which are the 2026-10-31 snapshot, not a current count. +- [Atlas / Turso data architecture — Scaler-era revision](2026-11-04T21-27-34Z_design_atlas_scaler_revision/2026-11-04T21-27-34Z_design_atlas_scaler_revision.md) +- [Atlas — schema-driven filter surface from the classification manifest](2026-11-05T13-03-49Z_design_atlas_manifest_filter_surface/2026-11-05T13-03-49Z_design_atlas_manifest_filter_surface.md) +- [Decision: Turso PITR is not Atlas corpus retention](2026-11-05T15-50-41Z_decision_atlas_pitr_vs_retention/2026-11-05T15-50-41Z_decision_atlas_pitr_vs_retention.md) +- [Atlas — license capture at ingest: per-repo license + D.6 flag in provenance](2026-11-08T09-15-51Z_design_atlas_license_capture_ingest/2026-11-08T09-15-51Z_design_atlas_license_capture_ingest.md) +- [Atlas — content versioning and retention](2026-11-08T10-26-00Z_design_atlas_content_versioning_retention/2026-11-08T10-26-00Z_design_atlas_content_versioning_retention.md) +- [Design: offset matching for delta-only ingestion (atlas)](2026-11-08T10-26-00Z_design_atlas_offset_matching/2026-11-08T10-26-00Z_design_atlas_offset_matching.md) +- [Decision: one embedding model for every Atlas tier — cross-tier comparability by construction](2026-11-08T10-44-00Z_decision_atlas_cross_tier_vector_comparability/2026-11-08T10-44-00Z_decision_atlas_cross_tier_vector_comparability.md) +- [Design: Atlas golden-set builder + eval gate](2026-11-08T10-45-00Z_design_atlas_golden_set_eval_gate/2026-11-08T10-45-00Z_design_atlas_golden_set_eval_gate.md) +- [Atlas — staging-shard ingest gate: write → classify → dedup → provenance-check → publish](2026-11-08T13-45-00Z_design_atlas_staging_shard_ingest_gate/2026-11-08T13-45-00Z_design_atlas_staging_shard_ingest_gate.md) +- [Design: Atlas Presidio NER pass — recognizer set, tier scoping, cost, review queue](2026-11-08T20-45-40Z_design_atlas_presidio_ner.md) +- [Design: Atlas deletion propagation — source deleted / repo privated → next-sync corpus purge](2026-11-09T00-42-59Z_design_atlas_deletion_propagation.md) +- [Atlas embedding cost ledger: per-batch token/$ accounting with a delta reuse-ratio alert](2026-11-09T01-07-20Z_design_atlas_embedding_cost_ledger/2026-11-09T01-07-20Z_design_atlas_embedding_cost_ledger.md) +- [Design: Atlas chunk-boundary policy v2 — structural first](2026-11-09T01-31-29Z_design_atlas_chunk_boundary_policy_v2/2026-11-09T01-31-29Z_design_atlas_chunk_boundary_policy_v2.md) +- [Design: Atlas classification revalidation cadence — rule-triggered rescans, sampled human audits, allowlist expiry](2026-11-09T05-10-38Z_design_atlas_revalidation_cadence.md) +- [Design: Atlas semi-automated ingestion operations — source set, usefulness filter, disk/IO + plan-spend guardrails](2026-11-09T05-12-00Z_design_atlas_ingestion_operations/2026-11-09T05-12-00Z_design_atlas_ingestion_operations.md) +- [Atlas — ingest attestation record: in-toto-shaped per-batch statement binding chunks to sources](2026-11-09T05-12-32Z_design_atlas_ingest_attestation/2026-11-09T05-12-32Z_design_atlas_ingest_attestation.md) +- [Atlas → ID-graph publication format: corpus objects + provenance/lineage relations as ID-graph objects](2026-11-09T07-20-00Z_design_atlas_id_publication/2026-11-09T07-20-00Z_design_atlas_id_publication.md) +- [Atlas — cold-tier shard format and restore path](2026-11-10T20-06-24Z_design_atlas_cold_tier_shard_format/2026-11-10T20-06-24Z_design_atlas_cold_tier_shard_format.md) +- [Design: Atlas retrieval statistics, result feedback, and query trace](2026-11-10T20-41-01Z_design_atlas_retrieval_stats_feedback.md) +- [Atlas secret-tier local embedder: model selection, fleet-hardware evaluation, no-egress invariant](2026-11-10T20-55-00Z_design_atlas_secret_tier_embedder/2026-11-10T20-55-00Z_design_atlas_secret_tier_embedder.md) +- [Atlas v1 — proto design](2026-11-12T23-59-00Z_design_atlas_v1_proto/note.md) +- [Design (proto): ID/Atlas extensible primitives, federation, namespaces](2026-11-13T00-41-00Z_design_id-atlas-primitives-federation-namespaces/note.md) +- [Summit decisions, defaults and owner questions](2026-11-13T03-40-00Z_design_id-atlas-summit/answers.md) (ID/Atlas summit record) +- [Design: span-table schema for offset embeds (atlas)](2026-11-13T10-55-11Z_design_atlas_span_table_schema/2026-11-13T10-55-11Z_design_atlas_span_table_schema.md) +- [Research: CDC feasibility at embedding scale (#6040)](2026-11-14T12-20-00Z_research_atlas_cdc_feasibility_6040/README.md) +- [Atlas Layer 1 classification revalidation — scan report 2026-11-15](2026-11-15T00-50-00Z_report_atlas_layer1_revalidation.md) +- [Atlas retention rule engine — design record (#6041)](2026-11-17_design_atlas_retention_rule_engine.md) +- [Metadata schema v1 and evolution doctrine](2026-11-21T17-56-24Z_design_atlas_metadata_schema_v1/note.md) (Atlas metadata schema record) +- [Design: Atlas per-embed classification and disclosure model](2026-11-21T21-32-00Z_design_atlas_classification_model_v1.md) +- [Decision: embedded-replica integration shape for the atlas core shards](2026-11-23T04-10-00Z_decision_atlas_embedded_replica_integration/2026-11-23T04-10-00Z_decision_atlas_embedded_replica_integration.md) +- [Design: Atlas D1 tenant hot cache — admission, invalidation, Turso-hop skip](2026-11-23T08-06-00Z_design_atlas_d1_tenant_hot_cache/2026-11-23T08-06-00Z_design_atlas_d1_tenant_hot_cache.md) +- [Atlas search: Jaccard as a third signal (rescore + ingest dedup); SPLADE as a triggered follow-on](atlas-scratch-sweep-2026-11-14/atlas-jaccard-issue.md) (scratch sweep, 2026-11-14) - [One identity across the pm-stack: SSO propagation and roles](2026-11-10T23-58-00Z_design_pm_stack_identity/2026-11-10T23-58-00Z_design_pm_stack_identity.md) (design for #1253, epic #1184: Access JWT at the entry, short-lived stack tokens per layer, the four-role model with the mapping in the aggregator registry, per-agent identities with recorded-not-impersonated delegation, asserted-legacy migration, outage break-glass, and the Drew questions named) - [Writer sets v2: view-as-object, set algebra, federation, discovery v2](2026-11-08T11-10-00Z_design_id_writer_sets_v2/2026-11-08T11-10-00Z_design_id_writer_sets_v2.md) (design for #5789: pinned/tracking view references, derived sets with provenance and exclusions winning, federation claim discipline via #5675/#5672, inherited uncounted-side honesty, and the three v1 open questions answered) - [Curated-board submissions: intake queues, intake roles, notifications](2026-11-08T13-45-00Z_design_id5857_curated_board_submissions/2026-11-08T13-45-00Z_design_id5857_curated_board_submissions.md) (decision record for #5857: `open`/`curated` intake policy, a separate owner-granted `Intake` role, submission as a signed post plus a signed `IntakeDecision` with pending derived rather than stored, and intake events delivered through #5862's notification model) diff --git a/pkgs/atlas-search/README.md b/pkgs/atlas-search/README.md index 0413ad0d52..4a3475fb2c 100644 --- a/pkgs/atlas-search/README.md +++ b/pkgs/atlas-search/README.md @@ -38,7 +38,11 @@ package's front door. Atlas MCP server, with a per-query Durable Object cache and a D1 hot-cache tier. - `atlas_search.py` — the Python reference implementation the Rust - was certified against; kept for parity. + was certified against; kept for parity. This in-repo copy (1,639 + lines at 2026-11-23) is not the same file version as the + hatch-personal copy the design of record's 1,177-line figure + describes; "the Python reference" means this copy unless a copy + is named. - `eval/`, `schema/`, `tools/`, `fixtures/`, `test-vectors/` — the evaluation programme, the staging/gate schemas, and the operator tools. diff --git a/pkgs/atlas-search/docs/memory-integration-design-8567.md b/pkgs/atlas-search/docs/memory-integration-design-8567.md index cb3ea5dd23..4bdef39636 100644 --- a/pkgs/atlas-search/docs/memory-integration-design-8567.md +++ b/pkgs/atlas-search/docs/memory-integration-design-8567.md @@ -53,6 +53,14 @@ through the existing stage/registry ingestion path atlas-embed where a process is Atlas-internal; the embedding model identity is recorded per corpus so a model change is an explicit re-embed slice, never silent drift. + + Reconciliation (2026-11-23, #13285): as built, ingestion + embeddings are produced in-process by atlas-embed (ONNX) inside + the serve process, and the service's outward embedding surface is + `POST /v1/embed` on 127.0.0.1:18760. The port-18791 + openclaw-embedding service exists (home/openclaw) but is not part + of the Atlas pipeline; slice 2's port-18791 unification below was + not the shape built. - No new vector store is created. LanceDB remains OpenClaw's local store (its Phase-1 role); the Atlas index is built from it by the connector like any other corpus. If the LanceDB store and the @@ -144,7 +152,8 @@ composes with that track as follows: in the stage registry; build the memory-lancedb → Atlas staging connector (agent memory corpus live end-to-end). 2. **Embedding unification:** route all corpus ingestion through the - one embedding pipeline (port-18791 endpoint / atlas-embed); + one embedding pipeline (port-18791 endpoint / atlas-embed — see + the §5 reconciliation note: not built in this shape); record embedding-model identity per corpus; re-embed job for existing staged content. 3. **MCP query surface:** the mcpx namespace in front of diff --git a/pkgs/atlas-search/worker/README.md b/pkgs/atlas-search/worker/README.md index 65e87d8a65..423fb85f3c 100644 --- a/pkgs/atlas-search/worker/README.md +++ b/pkgs/atlas-search/worker/README.md @@ -133,6 +133,8 @@ new deployment at the previous version id — no upload needed. The miss path needs `POST /v1/embed` on the fleet search service (added in the same change as this Worker, in both `server.rs` copies under the #5433 parity guard). Deploying the service side -is a binary refresh of the laptop's `atlas-search.service`; the +is a binary refresh of the laptop's `atlas-search.service` — whose +ExecStart is `fleet serve search` (atlasSearchServeViaFleet, #5604), +so the binary refreshed is the fleet binary the unit runs; the Worker degrades to 502 (nothing cached) while the service is unreachable. diff --git a/pkgs/fleet/crates/fleet-search/src/lib.rs b/pkgs/fleet/crates/fleet-search/src/lib.rs index ac6a09be29..8afd940769 100644 --- a/pkgs/fleet/crates/fleet-search/src/lib.rs +++ b/pkgs/fleet/crates/fleet-search/src/lib.rs @@ -26,10 +26,14 @@ mod render; #[cfg(feature = "client")] pub use cli::{SEARCH_USAGE, run}; -// Verbatim copy of atlas-search's server.rs (parity-guarded): it keeps -// that crate's whole surface (e.g. `init_service_config`, which this -// role does not expose), so unused/visibility lints are allowed here -// rather than editing the copy. +// Copy of atlas-search's server.rs under the #5920 parity guard: +// byte-identical outside the pinned parity header and the one +// normalized binary-name diagnostic (#5640) — a maintained copy +// under parity discipline, not a whole-file byte identity (the two +// files differ in size). It keeps that crate's whole surface (e.g. +// `init_service_config`, which this role does not expose), so +// unused/visibility lints are allowed here rather than editing +// the copy. #[cfg(feature = "serve")] pub mod serve; #[cfg(feature = "serve")]