This is a public, read-only report. Striff reads this repository's docs, turns each sentence that makes a claim about the code into a rule, and checks the rule against the code on the default branch. How this works
No stdlib logging / bare loguru in app/ — enforced by the wide-events-logging lint (tools/lints/README).
nothing in apps/api/app may import logging
Holds
app/constants/ and app/config/ are leaves: import-linter contracts in apps/api/pyproject.toml[tool.importlinter] forbid them from reaching app.agents/app.services/app.api/app.db or langchain/langgraph/transformers, and forbid app/utils/ from reaching the model stack.
11 rules from this sentence
nothing in apps/api/app/config may depend on apps/api/app/services
nothing in apps/api/app/constants may depend on apps/api/app/agents
checks “app/constants/”
Holdsconstants → agents
nothing in apps/api/app/constants may depend on apps/api/app/services
checks “app/constants/”
Holdsconstants → services
nothing in apps/api/app/constants may depend on apps/api/app/api
checks “app/constants/”
Holdsconstants → api
nothing in apps/api/app/constants may depend on apps/api/app/db
checks “app/constants/”
Holdsconstants → db
nothing in apps/api/app/constants may import langchain
checks “app/constants/”
Holds
nothing in apps/api/app/constants may import langgraph
checks “app/constants/”
Holds
nothing in apps/api/app/constants may import transformers
checks “app/constants/”
Holds
nothing in apps/api/app/config may import langchain
checks “app/config/”
Holds
nothing in apps/api/app/config may import langgraph
checks “app/config/”
Holds
nothing in apps/api/app/config may import transformers
checks “app/config/”
Holds
There is one Settings class (app/config/settings.py);
Settings is in apps/api/app/config
Holds
ENV (production | development | selfhost) and AUTH_MODE build the deployment profile (settings.deployment, app/config/deployment.py), and every behaviour that differs between deployments reads a capability off it — never ENV itself.
3 rules from this sentence
Settings has deployment
Holds
Settings has ENV
Holds
Settings has AUTH_MODE
Holds
BLOB_STORE (where files live) is the third profile input.
Settings has BLOB_STORE
Holds
There is one Settings class (app/config/settings.py); every integration key on it is optional. ENV (production | development | selfhost) and AUTH_MODE build the deployment profile (settings.deployment, app/config/deployment.py), and every behaviour that differs between deployments reads a capability off it — never ENV itself.
Settings depends on DeploymentProfile
Holds
The capabilities are the boolean fields of DeploymentProfile (runtime_credentials, instance_toolkits, local_code_sandbox, local_workspace, hosted_models, requires_complete_config, ...): a new deployment difference is a new field there, never an ENV check.
6 rules from this sentence
DeploymentProfile has a runtime_credentials field
Holds
DeploymentProfile has an instance_toolkits field
Holds
DeploymentProfile has a local_code_sandbox field
Holds
DeploymentProfile has a local_workspace field
Holds
DeploymentProfile has a hosted_models field
Holds
DeploymentProfile has a requires_complete_config field
Holds
BaseBotAdapter (libs/shared/ts/src/bots/adapter/base.ts) owns dispatchCommand, buildContext, the GaiaClient, error handling, and the shared BotServer.
Markdown: each platform needs different syntax. Converters in bots/utils/formatters.ts (convertToTelegramMarkdown, convertToSlackMrkdwn, convertToWhatsAppMarkdown); all use applyOutsideCodeBlocks() to leave fenced code untouched. Discord uses native embeds via richMessageToEmbed.
convertToWhatsAppMarkdown depends on applyOutsideCodeBlocks
Holds
Inbound media (bots/utils/media.ts): processBotMedia, reached via BaseBotAdapter.resolveIncomingMedia, makes one cross-platform decision — video/sticker → polite reply (no download); audio/voice → gaia.transcribeAudio (Whisper) becomes the chat message; image/document → gaia.uploadFile referenced via fileIds/fileData.
BaseBotAdapter depends on processBotMedia
Holdsadapter → utils
The "link your account" prompt is one shared string (buildAuthLinkMessage) used by both the /auth command and every adapter's streaming onAuthError — never hardcode an auth message in an adapter.
authCommand depends on buildAuthLinkMessage
Holdscommands → utils
SentMessage is { id: string; edit: (text) => Promise<void> }.
2 rules from this sentence
SentMessage has id
Holds
SentMessage has edit
Holds
VoiceAgentSettings extends BaseAppSettings from gaia-shared.
VoiceAgentSettings extends BaseAppSettings
Holdsapps → libs
The first-run wizard is features/setup-wizard/ and reuses Settings → Providers & Tools (features/settings/components/providers/, FeatureProviderPicker) rather than its own pickers.
SetupWizard is in apps/web/src/features/setup-wizard
Holds
ChatBubbleBot is layout-only: it picks ImageBubble when image_data exists, else TextBubble, and wraps it in the avatar + actions chrome.
ChatBubbleBot depends on TextBubble
HoldsChatBubbleBot.tsx → TextBubble
Per-run values like user_id, active_todo_id and execution_mode live in config["configurable"] (AgentConfigurable), not in state.
3 rules from this sentence
AgentConfigurable has user_id
Holds
AgentConfigurable has active_todo_id
Holds
AgentConfigurable has execution_mode
Holds
apps/api/app/agents/core/graph_manager.py — GraphManager.get_graph(name) resolves graphs via lazy providers.
Observed shapes are scoped (ResolvedTool.shape_scope): global for catalog tools, mcp:<integration_id> for MCP — a private server's shapes never cross users; the resolver is the access gate.
ResolvedTool has shape_scope
Holds
apps/api/app/agents/tools/core/registry.py — ToolRegistry, DynamicToolDict (a Mapping[str, BaseTool] that lets tools added after graph compilation be visible to the agent), get_tool_registry() async singleton.
Where it lives, Code catalog OAUTH_INTEGRATIONS in apps/api/app/config/oauth_config.py, Instance toolkit Built at runtime by apps/api/app/services/composio/instance_toolkits.py