Docs & rules

theexperiencecompany/gaiaGitHub

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

master394f669Last read Oct 31

Is this yours? Install to manage it

Once installed, Striff checks every pull request.

Documents
Rules
49
36
24
1 broken24
9
9
1
1
2
1
1
1
1
1
1
1
1
1
1
1
12
391 docs
theexperiencecompany/gaiaOpen repository

theexperiencecompany/gaia — documented rules

49 of 49 rules, printed November 6, 2026.

The sentence in your docs
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
Broken bychecks “app/config/”
Brokenconfig 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.
3 rules from this sentence
BaseBotAdapter depends on BotServer
Holds
BaseBotAdapter has dispatchCommand
checks “BaseBotAdapter (libs/shared/ts/src/bots/adapter/base.ts) owns dispatchCommand”
Holds
BaseBotAdapter has buildContext
checks “BaseBotAdapter”
Holds
stop() is the only shutdown hook.
BaseBotAdapter has a stop method
Holds
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.
GraphManager has a get_graph method
Holds
apps/api/app/agents/core/subagents/base_subagent.py — SubAgentFactory.create_provider_subagent().
SubAgentFactory has a create_provider_subagent method
Holds
Each entry has subagent_config=SubAgentConfig(has_subagent, agent_name, tool_space, domain, capabilities, use_cases, system_prompt, use_direct_tools, disable_retrieve_tools, auto_bind_tools, include_finish_task).
OAuthIntegration has subagent_config
Holds
libs/shared/ts/src/bots/adapter/base.ts — BaseBotAdapter abstract class. Lifecycle: constructor → boot(commands) → initialize → registerCommands → registerEvents → start → stop. Exposes dispatchCommand, buildContext, handleStreamingChat.
3 rules from this sentence
BaseBotAdapter is declared abstract
checks “BaseBotAdapter abstract class”
Holds
BaseBotAdapter has dispatchCommand
checks “Exposes dispatchCommand”
Holds
BaseBotAdapter has buildContext
checks “Exposes”
Holds
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.
2 rules from this sentence
ToolRegistry is in apps/api/app/agents/tools/core
checks “apps/api/app/agents/tools/core/registry.py — ToolRegistry”
Holds
DynamicToolDict is in apps/api/app/agents/tools/core
checks “apps/api/app/agents/tools/core/registry.py”
Holds
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
OAUTH_INTEGRATIONS is in apps/api/app/config
Holds
49 rules from 7 docs

More open-source reports

Every report →

Other public repositories whose docs Striff read and checked against their code.