You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
atlas memory slice 3: MCP query surface over the unified Atlas index (mcpx namespace) (#8567) #8625
Slice 3 of the Atlas memory integration (parent #8567; design record: pkgs/atlas-search/docs/memory-integration-design-8567.md, sections 3–4).
Expose the cross-agent query surface as an MCP server (an mcpx namespace) in front of atlas-core run_search — the design's decided access pattern. The MCP layer stamps the calling agent's identity, enforces its sensitivity ceiling and corpus scoping (filters inside the branch queries, never post-ranking), and audit-logs queries. Native library access stays Atlas-internal only.
Acceptance:
OpenClaw, an OpenCode session, OpenChamber, and a Muse lane can each query the unified index through the namespace with their own identity and ceiling.
A caller cannot retrieve chunks above its sensitivity ceiling or outside its corpus scope (negative tests named).
Every hit carries corpus + source_ref provenance; queries are audit-logged with agent identity.
Re-check: the queue re-checks these dependencies on its own clock; when both close, this task becomes claimable again and the MCP namespace work starts against the landed index.
Labels: queue/blocked + status/blocked added with this note; kind/design, epic/atlas stand.
Taking the hosted-transport slice of this issue under Drew's direct order (2026-11-22 ~20:32 CST): build the Atlas MCP server as a versioned Cloudflare deployment and wire it into the laptop's mcpx as a remote server.
Scope of this slice, precisely:
Extend the existing atlas-search Worker (pkgs/atlas-search/worker, fleet CF account) with an MCP Streamable HTTP endpoint (POST /mcp) exposing one tool, search, over the exact same gated path as POST /v1/search — same GATE_TOKEN gate, same per-query Durable Object cache, same pinned hosted-per-user context (atlas(worker): state the disclosure context on hosted search requests and key the result cache by it #12622) and personal ceiling. No new surface beyond search: cache purge is a write and cache inspect is an operator/audit surface, so both stay off MCP.
Deploy as a NEW Worker version via the sanctioned cf binary (cf workers versions create + deployments create), with the prior version retained for rollback.
Wire mcpx: native remote-server entry in home/common/mcpx-settings.nix with a bearer auth block whose token expands from the daemon environment (${ATLAS_SEARCH_GATE_TOKEN} — no secret in the repo); the daemon gets the variable through services.mcpx.environmentFile, provisioned from the fleet secrets route (atlas.search-worker-gate-token).
What this does NOT close in #8625's acceptance: per-calling-agent identity stamping, per-agent ceilings/corpus scoping inside the branch queries, and the query audit log. Callers through this endpoint share the one hosted identity (hosted-per-user, ceiling personal) — the same identity the existing /v1/search surface already serves. Those acceptance parts remain open and are the next slices.
Remaining acceptance, precisely: (1) per-agent sensitivity ceilings and corpus scoping enforced inside the branch queries (backend policy still uses the shared hosted-per-user / personal context); (2) the four caller surfaces (OpenClaw, OpenCode, OpenChamber, a Muse lane) configured with separate credentials; (3) the four-surface probe with negative tests (above-ceiling and out-of-scope retrieval must fail).
Blockers: none found.
Labels fixed this pass: added priority/high (was missing — an active Atlas-programme slice with deps cleared and implementation in flight) and area/atlas-search.
GAPS: None blocking. The slice-1 identity/audit work (PR feat(atlas): authenticate MCP callers for audit identity #15903: AGENT_TOKENS-derived identity, structured query audit log) covers part of the acceptance; the mcpx-namespace wiring per the design remains.
Felix lane 0640-AP claims the next slice of #8625 (drawn via fleet agent next, shortlist rank 3). Slice: per-agent policy in the atlas-search Worker — extend the AGENT_TOKENS identity (PR #15903) so each agent id carries a sensitivity ceiling and corpus scope, and enforce both inside the search execution (filters in the branch queries, never post-ranking), with the negative tests the acceptance names (a caller cannot retrieve chunks above its ceiling or outside its corpus scope). The four-surface credential configuration and the four-surface probe stay follow-on (they need the live surfaces). If a sibling lane is live on this slice, say so here and I will stand down.
Felix lane 0640-AP — claim released with a re-scope, after a firsthand read of the Worker on current main:
The ceiling half of my claimed slice is already landed.src/mcp_policy.ts (AGENT_POLICY per-agent ceilings) is wired through src/index.ts into handleMcp, the ceiling travels as key material / DO body / service call, and the acceptance's negative test exists: test/mcp.test.ts — "a result computed above the caller ceiling is refused, never served". Nothing to redo.
Priority check: priority/high stands — the surface is live and the missing scoping is the acceptance's remaining code gap; the blocked state does not lower its intrinsic band. #8625 stays open on #16880 + the surface configuration/probe.
agent-note claim + remainder disposition — lane 0322-AM (delta PRESS 2026-11-30 03:22 CST refill; successor to 0322-R / 0307-R staged record)
Claim-scan live this lane (transport verified: two consecutive gh api rate_limit rc=0): issue + all 16 comments read firsthand. No live claim — Felix 0640-AP claimed 2026-11-29T16:40:15Z and released-rescoped 16:42:02Z; no activity since.
Bullet 1 — OpenClaw, an OpenCode session, OpenChamber, and a Muse lane can EACH query through the namespace with their own identity and ceiling: NOT yet demonstrated. This is the sole remainder: per-surface credential configuration (distinct AGENT_TOKENS entries + each surface's mcpx wiring on a config generation that includes the atlas server — cf. the 2026-11-23 receipts: the laptop's installed mcpx generation lacked the atlas pool) and a four-surface probe including the named negative tests (above-ceiling and out-of-scope retrieval must fail per surface).
Disposition: the remainder is live-surface configuration + probing, not a Worker code slice. Per this issue's acceptance ("Follow-on work, if any remains, is filed as its own issue and linked here"), I am filing that follow-on as its own issue in this pass and linking it as a blocked_by edge; #8625 stays open on that edge alone. Wake: follow-on issue closes with probe evidence → #8625 closes.
Follow-on filed by lane 0322-AM: #17146 — #17146 (four-surface MCP credential configuration + probe with negative tests). Linked as a native blocked_by edge on this issue; #8625 remains open on that edge alone.
Activity
dezren39 commentedon Nov 17, 2026
🤖 Agent note · blocked (dependency)
dezren39 commentedon Nov 23, 2026
Claim — Lane BT (archer), 2026-11-22
Taking the hosted-transport slice of this issue under Drew's direct order (2026-11-22 ~20:32 CST): build the Atlas MCP server as a versioned Cloudflare deployment and wire it into the laptop's mcpx as a remote server.
Scope of this slice, precisely:
atlas-searchWorker (pkgs/atlas-search/worker, fleet CF account) with an MCP Streamable HTTP endpoint (POST /mcp) exposing one tool,search, over the exact same gated path asPOST /v1/search— same GATE_TOKEN gate, same per-query Durable Object cache, same pinnedhosted-per-usercontext (atlas(worker): state the disclosure context on hosted search requests and key the result cache by it #12622) andpersonalceiling. No new surface beyond search: cache purge is a write and cache inspect is an operator/audit surface, so both stay off MCP.cfbinary (cf workers versions create+deployments create), with the prior version retained for rollback.home/common/mcpx-settings.nixwith a bearer auth block whose token expands from the daemon environment (${ATLAS_SEARCH_GATE_TOKEN}— no secret in the repo); the daemon gets the variable throughservices.mcpx.environmentFile, provisioned from the fleet secrets route (atlas.search-worker-gate-token).What this does NOT close in #8625's acceptance: per-calling-agent identity stamping, per-agent ceilings/corpus scoping inside the branch queries, and the query audit log. Callers through this endpoint share the one hosted identity (
hosted-per-user, ceilingpersonal) — the same identity the existing /v1/search surface already serves. Those acceptance parts remain open and are the next slices.Merge pull request #12785 from developing-today/archer-lane-bt/atlas-mcp
Merge pull request #12790 from developing-today/archer-lane-bt/atlas-…
Merge pull request #12794 from developing-today/archer-lane-bt/atlas-…
17 remaining items
dezren39 commentedon Nov 29, 2026
🤖 Census note — 2026-11-29 (lane CEN-C06, Drew's full issue census)
Rechecked firsthand: body, all comments, dependency and PR states.
hosted-per-user/personalcontext); (2) the four caller surfaces (OpenClaw, OpenCode, OpenChamber, a Muse lane) configured with separate credentials; (3) the four-surface probe with negative tests (above-ceiling and out-of-scope retrieval must fail).priority/high(was missing — an active Atlas-programme slice with deps cleared and implementation in flight) andarea/atlas-search.developing-today-fleet commentedon Nov 29, 2026
Census 2026-11-29 (Felix):
developing-today-fleet commentedon Nov 29, 2026
Issue census — 2026-11-29
Gaps found: no
## Acceptance criteriasection.Strengths found: detailed body with context a picker-up can start from; linked to its epic/programme via epic/* labels; kind/* classification present.
Actions taken: appended
## Acceptance criteria(original body text unchanged).Priority:
priority/highretained/assigned — matches the work's urgency as evidenced on the issue; no band change.developing-today-fleet commentedon Nov 29, 2026
Felix lane 0640-AP claims the next slice of #8625 (drawn via fleet agent next, shortlist rank 3). Slice: per-agent policy in the atlas-search Worker — extend the AGENT_TOKENS identity (PR #15903) so each agent id carries a sensitivity ceiling and corpus scope, and enforce both inside the search execution (filters in the branch queries, never post-ranking), with the negative tests the acceptance names (a caller cannot retrieve chunks above its ceiling or outside its corpus scope). The four-surface credential configuration and the four-surface probe stay follow-on (they need the live surfaces). If a sibling lane is live on this slice, say so here and I will stand down.
developing-today-fleet commentedon Nov 29, 2026
Felix lane 0640-AP — claim released with a re-scope, after a firsthand read of the Worker on current main:
src/mcp_policy.ts(AGENT_POLICY per-agent ceilings) is wired throughsrc/index.tsintohandleMcp, the ceiling travels as key material / DO body / service call, and the acceptance's negative test exists:test/mcp.test.ts— "a result computed above the caller ceiling is refused, never served". Nothing to redo.Priority check: priority/high stands — the surface is live and the missing scoping is the acceptance's remaining code gap; the blocked state does not lower its intrinsic band. #8625 stays open on #16880 + the surface configuration/probe.
developing-today-fleet commentedon Nov 30, 2026
agent-note claim + remainder disposition — lane 0322-AM (delta PRESS 2026-11-30 03:22 CST refill; successor to 0322-R / 0307-R staged record)
Claim-scan live this lane (transport verified: two consecutive
gh api rate_limitrc=0): issue + all 16 comments read firsthand. No live claim — Felix 0640-AP claimed 2026-11-29T16:40:15Z and released-rescoped 16:42:02Z; no activity since.Verified live this lane:
src/mcp_policy.tswith the above-ceiling negative test (per 0640-AP's firsthand re-read).Acceptance map:
Disposition: the remainder is live-surface configuration + probing, not a Worker code slice. Per this issue's acceptance ("Follow-on work, if any remains, is filed as its own issue and linked here"), I am filing that follow-on as its own issue in this pass and linking it as a blocked_by edge; #8625 stays open on that edge alone. Wake: follow-on issue closes with probe evidence → #8625 closes.
Key: 0322-AM
developing-today-fleet commentedon Nov 30, 2026
Follow-on filed by lane 0322-AM: #17146 — #17146 (four-surface MCP credential configuration + probe with negative tests). Linked as a native blocked_by edge on this issue; #8625 remains open on that edge alone.
Key: 0322-AM