Work with autonomous loops and integrations
SemanticFed exposes governed automation and integration surfaces without granting any agent or external client a bypass around workspace RBAC, access policies or audit trails.
Autonomous agent loops (backend service)
SemanticFed includes three deterministic workspace-scoped autonomous loops triggered on schedule via FluidGrids or by workspace events. None of these loops call an LLM or bypass model validation.
| Loop | What it evaluates | Autonomy boundary | How changes take effect |
|---|---|---|---|
| Source health triage | Recent connection health probes in a 60-minute window (up to 10 probes per source; 3+ consecutive UNREACHABLE probes or 2+ consecutive HEALTHY recovery probes) | May transition source status through the validated data-source state machine only | Updates source connectivity status and sends an in-app notification to the workspace owner (never widens external delivery) |
Cache-tuning proposals (CACHE_POLICY) | Saved-query run history over the last 24 hours (hot queries with 5+ completed runs, average duration 3,000 ms or higher, and cache hit ratio 20% or lower; proposes TTL between 300 s and 3,600 s) | Proposes only — never modifies a saved query automatically | Creates a SemAgentProposal record; applied only when a human explicitly accepts it via semResolveAgentProposal |
PII access-policy proposals (ACCESS_POLICY) | Dimension names and expressions matched against deterministic sensitivity patterns (email address, phone number, government ID, payment card, date of birth) | Proposes only — never activates an access policy automatically | Creates a DRAFT (isActive: false) access policy linked to a SemAgentProposal; activated only when a human accepts it via semResolveAgentProposal |
Reviewing proposals and sweep status
Authorized callers manage the autonomous loops through the workspace GraphQL API:
semAgentSweepStatus(readonsemanticfed-agent-proposal) — inspect whether the workspace's scheduled sweep is enabled and registered.semEnsureAgentSweep(createonsemanticfed-agent-proposal) — ensure the workspace's scheduled sweep registration exists (idempotent).semAgentProposals(filter)(readonsemanticfed-agent-proposal) — list pending and resolved proposals (CACHE_POLICYandACCESS_POLICY), including the rationale and referenced record IDs (inputRefs).semResolveAgentProposal(id, outcome)(updateonsemanticfed-agent-proposal) — passACCEPTto apply the proposed cache policy or activate the draft access policy as the reviewing human, orREJECTto dismiss the proposal (and keep/deactivate any draft policy).
Kill switches
Autonomous sweeps can be stopped at two independent levels:
- Per-workspace feature flag (
semanticfed.agent-loop) — disabling the flag for a workspace stops all three loops on the next tick. - Service-level environment switch — operators can disable the loop fleet-wide without a per-workspace change.
UI boundary for Agents and Registry screens
In the web app, the Agents (/agents) and Registry (/registry) navigation screens currently render workspace-preview overview views backed by local interface state rather than live semAgentProposals or live asset-registration mutations. Do not interpret rows or status badges on those overview pages as proof of a deployed autonomous agent or a registered production connector.
Use the supported live paths instead:
- Agent proposals & sweeps:
semAgentProposals,semAgentSweepStatus,semEnsureAgentSweepandsemResolveAgentProposalthrough the authenticated GraphQL gateway. - Model and field registry: Query Console → Tables, Lineage, and the model/entity/dimension/metric/relationship GraphQL operations documented in Lineage and Model Catalog and Sources and Models.
Integration surfaces
SemanticFed integrates with external tools and AI workflows through five documented surfaces:
| Surface | Authentication & governance | Current status | Guide |
|---|---|---|---|
| GraphQL API | Dual-token gateway auth + @rbac enforcement per operation | Available | GraphQL API |
| Read-only SQL Endpoint | Dual-token gateway auth; read-only SELECT over governed catalog with row/column/entity policies | Available | SQL Endpoint |
| Workspace Integrations (BYOK AI) | Encrypted OpenAI or Anthropic connection stored in Workspace Integrations; configured in Query Console → AI assistance (semUpdateNlSettings) | Available | Ask and Review a Question |
| Node & Python SDKs | Typed clients over the workspace and global GraphQL gateways | Available (npm / PyPI verified) | Node SDK, Python SDK |
| CLI | OAuth2 device-code / gateway auth | Preview on npm | CLI Reference |
| MCP Server | Gateway auth, --read-only mode, and confirmation gates on destructive tools | Available on public npm as @burdenoff/semanticfed-mcp | MCP Server |
All external clients — including MCP-connected AI assistants — authenticate through the same API gateway as human users and inherit the caller's exact workspace roles, data-access policies, query quotas and audit logging.