Unclassified

Gateway Service Binding Audit

Date: 2026-07-31
Source: services/gateway/wrangler.toml vs services/gateway/src/index.ts Env interface


1. Env Interface vs Actual Bindings

BindingRequiredDevTestProdStatus
CONNECTOR✅connectorconnector-testconnector-prod✅
MCP_CONNECTOR✅mcp-connectormcp-connector-testmcp-connector-prod✅
PIPELINE✅pipelinepipeline-testpipeline-prod✅
INTELLIGENCE✅intelligenceintelligence-testintelligence-prod✅
KNOWLEDGE✅knowledgeknowledge-testknowledge-prod✅
BFF✅workflowworkflow-testworkflow-prod✅
AGENT_RUNTIME✅iw-agent-runtimeiw-agent-runtime-testiw-agent-runtime⚠️ PROD = DEV
HUB_CONTROLLER✅hub-controller-apihub-controller-apihub-controller-api❌ SAME ALL ENV
ADMIN✅integratewise-adminintegratewise-admin-stagingintegratewise-admin✅
BILLING✅integratewise-billingintegratewise-billing-stagingintegratewise-billing✅
TENANTS✅integratewise-tenantsintegratewise-tenants-stagingintegratewise-tenants✅
CONNECTOR_SYNCoptconnector-syncconnector-sync-testconnector-sync-prod✅
SPINEoptintegratewise-spineintegratewise-spine-testintegratewise-spine-prod✅
MCP_POOLoptintegratewise-mcp-poolintegratewise-mcp-poolintegratewise-mcp-pool❌ SAME ALL ENV
MARKETPLACE_INSTALLATIONoptintegratewise-marketplace-installation...-test...-prod✅
WEBHOOK_INGRESSoptintegratewise-webhook-ingresswebhook-ingress-testintegratewise-webhook-ingress✅
FOLDER_WATCHERopt—folder-watcher-testfolder-watcher-prod✅

2. Services with wrangler.toml but NO Gateway Binding

ServiceHas codeIn ROUTESVerdict
hermes⚠️ Points to dead Worker❌❌ UNREACHABLE — stage 11 of frozen sequence
agent-registryMinimal scaffold❌⚠️ Orphan
continuitySession event log❌⚠️ Via mcp-connector chain
loaderConnector data loader❌⚠️ Via connector chain
storeConnector data store❌⚠️ Via connector chain
signalsSignal processing❌⚠️ Orphan
telemetryObservability❌⚠️ Orphan
twin-orchestrator3,470 LOC❌❌ DEAD CODE — zero consumers
integration-management-mcpMCP server❌⚠️ Orphan
provider-management-mcpMCP server❌⚠️ Orphan
schema-aiAI schema mgmt❌⚠️ Orphan
task-managementTask CRUD❌⚠️ Orphan
vercel-mcpVercel integration❌⚠️ Orphan

3. Isolation Leaks (S3)

BindingDev → Test → ProdRisk
HUB_CONTROLLERhub-controller-api = hub-controller-api = hub-controller-api❌ CRITICAL — unauthenticated /api catch-all same Worker
MCP_POOLintegratewise-mcp-pool = integratewise-mcp-pool = integratewise-mcp-pool❌ HIGH — capability control plane shared
AGENT_RUNTIMEiw-agent-runtime → iw-agent-runtime-test → iw-agent-runtime⚠️ MEDIUM — prod = dev

4. Priority Fixes

#FixImpact
1Close HUB_CONTROLLER /api bypass OR create per-env WorkersSecurity
2Create per-env MCP_POOL WorkersIsolation
3Create iw-agent-runtime-prodIsolation
4Wire or retire hermesArchitecture
5Classify 8 orphan services (needed/chain/dead)Cleanup