Creating AI agent solutions for warehouse data access and security
Meta is reworking access control for its offline data warehouse around a multi-agent system. Data-user agents suggest less-restricted alternatives, enable low-risk exploration and draft permission requests. Data-owner agents follow owner-written SOPs to process requests and proactively configure access rules. The warehouse hierarchy is exposed to LLMs as a text folder structure, with context management (automatic, static, dynamic) and explicit role-based or implicit activity-inferred intention. In the partial data preview flow, an LLM judges requests using user activity, query shape and resource metadata, bounded by daily data-access budgets and a rule-based risk guardrail, with daily evals on historical requests and an owner feedback loop.
Related posts
- Privacy-Aware Infrastructure in the AI-Native Era: An Asset Classification Case Study
Meta Engineering mediumAdeptMeta classifies data assets for privacy enforcement with a hybrid pipeline: it builds structured evidence briefs from code resolution, lineage, ownership and annotations, uses LLMs only for novel or ambiguous assets, and distills stable patterns into versioned, human-reviewed deterministic rules. About 85% of requests resolve on the deterministic path in single-digit milliseconds. The ~15% LLM fallback takes seconds and costs roughly 400x the compute. Key lessons are that context matters more than prompt tuning, that circular label fields must be masked from both the LLM and rule distillation, and that evaluation must stay independent of optimization, using frozen human-reviewed reference sets and calibrated confidence scores.
- How to set up ClickHouse for agentic analytics
ClickHouse mediumAdept
Preparing a ClickHouse Cloud warehouse for AI agents comes down to classic warehousing discipline: isolate workloads on separate compute services over shared storage, expose only curated marts, and enforce guardrails through roles and resource limits. The suggested setup uses four services (read/write ingestion, transformation and development, plus a read-only LLM service) and raw/staging/marts databases. An LLM role restricted to SELECT on marts is capped with settings such as readonly, max_execution_time, max_memory_usage, max_rows_to_read and max_threads. Incremental materialized views handle staging and refreshable materialized views produce consistent marts before the agent connects via MCP using read-only credentials.
- How we built enterprise search to be secure and private
Slack Engineering easyNoviceSlack's enterprise search, which brings Google Drive and GitHub results into Slack search and AI Answers, uses a federated, real-time design instead of an index. Queries go to partner search APIs at request time using per-user OAuth tokens, so no external data is stored server-side and results and permissions can't go stale. The system reuses Slack AI's model: LLMs hosted in an escrow VPC on AWS, RAG with the user's ACL rather than training on customer data, and Search Answers discarded after display. Admins and users must each opt in per source, and only read-only OAuth scopes are requested.
- Connections: managed credentials and per-caller identity for Managed Deep Agents
LangChain mediumAdeptConnections in Managed Deep Agents (v0.7.0+) store named credentials in the LangSmith workspace instead of `.env` or the build, and tools fetch them at run time by slug via `connections.get()`. Each connection has an owner (agent or caller) and a credential type (static secret or OAuth grant), chosen independently. Agent-owned secrets suit shared capabilities like web search and can be rotated without redeploying. User-owned OAuth connections resolve per caller, so actions such as filing a GitHub issue carry the requesting user's identity. When grants are missing, the platform pauses the run with a single interrupt, so the project needs no callback route, token store or refresh logic, and MCP servers with dynamic client registration need only a URL.
- An Organizational Second Brain: Building an AI That Learns From Experts
Meta Engineering mediumAdeptMeta built a domain-expert AI agent for a compliance domain that separates declarative knowledge files (positions, taxonomies, routing indexes, gateway tests with YAML dependency graphs) from imperative composable "recipes" that encode expert reasoning workflows. Dense, frequently used knowledge lives in a curated wiki while sparse reference material is served via RAG. Restructuring into recipe-driven stages with progressive disclosure cut tokens per turn by about 80%. A self-improvement loop diagnoses expert corrections as recipe flaws, knowledge gaps or genuine ambiguity, compiles them into minimal edits checked by an adversarial reviewer agent and a deterministic linter, and validates them with replay and regression tests, improving the agent without retraining the model while keeping humans in control through checkpoints and escalations.