Skip to main content

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.

LoopWhat it evaluatesAutonomy boundaryHow changes take effect
Source health triageRecent 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 onlyUpdates 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 automaticallyCreates 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 automaticallyCreates 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 (read on semanticfed-agent-proposal) — inspect whether the workspace's scheduled sweep is enabled and registered.
  • semEnsureAgentSweep (create on semanticfed-agent-proposal) — ensure the workspace's scheduled sweep registration exists (idempotent).
  • semAgentProposals(filter) (read on semanticfed-agent-proposal) — list pending and resolved proposals (CACHE_POLICY and ACCESS_POLICY), including the rationale and referenced record IDs (inputRefs).
  • semResolveAgentProposal(id, outcome) (update on semanticfed-agent-proposal) — pass ACCEPT to apply the proposed cache policy or activate the draft access policy as the reviewing human, or REJECT to dismiss the proposal (and keep/deactivate any draft policy).

Kill switches​

Autonomous sweeps can be stopped at two independent levels:

  1. Per-workspace feature flag (semanticfed.agent-loop) — disabling the flag for a workspace stops all three loops on the next tick.
  2. 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, semEnsureAgentSweep and semResolveAgentProposal through 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:

SurfaceAuthentication & governanceCurrent statusGuide
GraphQL APIDual-token gateway auth + @rbac enforcement per operationAvailableGraphQL API
Read-only SQL EndpointDual-token gateway auth; read-only SELECT over governed catalog with row/column/entity policiesAvailableSQL Endpoint
Workspace Integrations (BYOK AI)Encrypted OpenAI or Anthropic connection stored in Workspace Integrations; configured in Query Console → AI assistance (semUpdateNlSettings)AvailableAsk and Review a Question
Node & Python SDKsTyped clients over the workspace and global GraphQL gatewaysAvailable (npm / PyPI verified)Node SDK, Python SDK
CLIOAuth2 device-code / gateway authPreview on npmCLI Reference
MCP ServerGateway auth, --read-only mode, and confirmation gates on destructive toolsAvailable on public npm as @burdenoff/semanticfed-mcpMCP 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.