refactor: rename package from ai_company to synthorg#422
Conversation
Rename the Python package directory, all internal imports, logger names, env var prefix (AI_COMPANY_ → SYNTHORG_), Docker configs, CI workflows, docs, CLI templates, and .claude/ skill files. ~24K text replacements across 880 files + git mv for the directory. Closes #398
|
Too many files changed for review. ( |
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughSummary by CodeRabbit
WalkthroughMass rename/refactor: the package and namespace were changed from ai_company/AI_COMPANY_* to synthorg/SYNTHORG_* across source, docs, CI, Docker, CLI, and configuration; several package-level init.py exports were removed under Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
✨ Finishing Touches🧪 Generate unit tests (beta)
✨ Simplify code
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #422 +/- ##
=======================================
Coverage 93.67% 93.67%
=======================================
Files 469 469
Lines 22214 22214
Branches 2142 2142
=======================================
Hits 20809 20809
Misses 1094 1094
Partials 311 311 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull request overview
Refactors the codebase to rename the Python package and related configuration surface from ai_company to synthorg, including import paths, environment variable prefixes, and docs/CI references.
Changes:
- Renamed package namespace usages across Python modules and updated docstring cross-references to
synthorg.*. - Updated env var prefix to
SYNTHORG_across Docker configuration and Go CLI templates/tests. - Updated build/test tooling configuration (Hatch, Ruff, Coverage, CI) and documentation directives to point at
synthorg.
Reviewed changes
Copilot reviewed 280 out of 962 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| src/synthorg/memory/backends/mem0/mappers.py | Update imports to synthorg.* for mem0 mappers. |
| src/synthorg/memory/backends/mem0/config.py | Update imports to synthorg.* for mem0 backend config. |
| src/synthorg/memory/backends/mem0/adapter.py | Update imports to synthorg.* for mem0 adapter. |
| src/synthorg/memory/backends/mem0/init.py | Add mem0 backend public exports under synthorg. |
| src/synthorg/memory/backends/init.py | Update backend export import path to synthorg.*. |
| src/synthorg/memory/init.py | Update re-export surface to synthorg.memory and adjust docstring. |
| src/synthorg/hr/registry.py | Update imports to synthorg.* for HR registry. |
| src/synthorg/hr/reassignment_protocol.py | Update imports to synthorg.* for protocol types. |
| src/synthorg/hr/queue_return_strategy.py | Update imports to synthorg.* for reassignment strategy. |
| src/synthorg/hr/promotion/threshold_evaluator.py | Update imports to synthorg.* for promotion evaluator. |
| src/synthorg/hr/promotion/service.py | Update imports to synthorg.* for promotion service. |
| src/synthorg/hr/promotion/seniority_model_mapping.py | Update imports to synthorg.* for model mapping. |
| src/synthorg/hr/promotion/seniority_approval_strategy.py | Update imports to synthorg.* for approval strategy. |
| src/synthorg/hr/promotion/models.py | Update imports to synthorg.* for promotion models. |
| src/synthorg/hr/promotion/model_mapping_protocol.py | Update TYPE_CHECKING imports to synthorg.*. |
| src/synthorg/hr/promotion/criteria_protocol.py | Update TYPE_CHECKING imports to synthorg.*. |
| src/synthorg/hr/promotion/config.py | Update imports to synthorg.* for promotion config. |
| src/synthorg/hr/promotion/approval_protocol.py | Update TYPE_CHECKING imports to synthorg.*. |
| src/synthorg/hr/promotion/init.py | Update promotion package exports to synthorg.*. |
| src/synthorg/hr/persistence_protocol.py | Update imports to synthorg.* for persistence protocol. |
| src/synthorg/hr/performance/window_protocol.py | Update imports to synthorg.* for performance window protocol. |
| src/synthorg/hr/performance/trend_protocol.py | Update imports to synthorg.* for trend protocol. |
| src/synthorg/hr/performance/tracker.py | Update imports to synthorg.* for performance tracker and defaults. |
| src/synthorg/hr/performance/theil_sen_strategy.py | Update imports to synthorg.* for trend strategy. |
| src/synthorg/hr/performance/quality_protocol.py | Update imports to synthorg.* for quality protocol. |
| src/synthorg/hr/performance/multi_window_strategy.py | Update imports to synthorg.* for window strategy. |
| src/synthorg/hr/performance/models.py | Update imports to synthorg.* for performance models. |
| src/synthorg/hr/performance/config.py | Update imports to synthorg.* for performance config. |
| src/synthorg/hr/performance/collaboration_protocol.py | Update imports to synthorg.* for collaboration protocol. |
| src/synthorg/hr/performance/ci_quality_strategy.py | Update imports to synthorg.* for CI quality strategy. |
| src/synthorg/hr/performance/behavioral_collaboration_strategy.py | Update imports to synthorg.* for collaboration strategy. |
| src/synthorg/hr/onboarding_service.py | Update imports to synthorg.* for onboarding service. |
| src/synthorg/hr/offboarding_service.py | Update imports to synthorg.* for offboarding service. |
| src/synthorg/hr/models.py | Update imports to synthorg.* for HR models. |
| src/synthorg/hr/hiring_service.py | Update imports to synthorg.* for hiring service. |
| src/synthorg/hr/full_snapshot_strategy.py | Update imports to synthorg.* for archival snapshot strategy. |
| src/synthorg/hr/archival_protocol.py | Update imports to synthorg.* for archival protocol/config. |
| src/synthorg/engine/workspace/service.py | Update imports to synthorg.* for workspace isolation service. |
| src/synthorg/engine/workspace/protocol.py | Update TYPE_CHECKING imports to synthorg.*. |
| src/synthorg/engine/workspace/models.py | Update imports to synthorg.* for workspace models. |
| src/synthorg/engine/workspace/merge.py | Update imports to synthorg.* for merge orchestrator. |
| src/synthorg/engine/workspace/git_worktree.py | Update imports to synthorg.* for worktree strategy. |
| src/synthorg/engine/workspace/config.py | Update imports to synthorg.* for workspace config. |
| src/synthorg/engine/workspace/init.py | Update exports to synthorg.* for workspace package. |
| src/synthorg/engine/task_sync.py | Update imports to synthorg.* for task sync. |
| src/synthorg/engine/task_execution.py | Update imports and doc references to synthorg.*. |
| src/synthorg/engine/task_engine_version.py | Update imports to synthorg.* for version tracking. |
| src/synthorg/engine/task_engine_models.py | Update imports and doc references to synthorg.*. |
| src/synthorg/engine/task_engine_apply.py | Update imports to synthorg.* for mutation apply. |
| src/synthorg/engine/task_engine.py | Update imports to synthorg.* including deferred comm imports. |
| src/synthorg/engine/shutdown.py | Update imports to synthorg.* for shutdown manager. |
| src/synthorg/engine/run_result.py | Update imports to synthorg.* for run result model. |
| src/synthorg/engine/routing/topology_selector.py | Update imports to synthorg.* for selector. |
| src/synthorg/engine/routing/service.py | Update imports to synthorg.* for routing service. |
| src/synthorg/engine/routing/scorer.py | Update imports to synthorg.* for routing scorer. |
| src/synthorg/engine/routing/models.py | Update imports to synthorg.* for routing models. |
| src/synthorg/engine/routing/init.py | Update exports to synthorg.* for routing package. |
| src/synthorg/engine/resource_lock.py | Update imports to synthorg.* for resource lock. |
| src/synthorg/engine/recovery.py | Update imports to synthorg.* for recovery pipeline. |
| src/synthorg/engine/react_loop.py | Update imports to synthorg.* for ReAct loop. |
| src/synthorg/engine/prompt_template.py | Update doc and imports to synthorg.* for templates. |
| src/synthorg/engine/prompt.py | Update examples/imports to synthorg.* for prompt builder. |
| src/synthorg/engine/policy_validation.py | Update imports to synthorg.* for policy validation. |
| src/synthorg/engine/plan_parsing.py | Update imports to synthorg.* for plan parsing. |
| src/synthorg/engine/plan_models.py | Update imports to synthorg.* for plan models. |
| src/synthorg/engine/plan_execute_loop.py | Update imports to synthorg.* for plan-execute loop. |
| src/synthorg/engine/parallel_models.py | Update imports to synthorg.* for parallel models. |
| src/synthorg/engine/parallel.py | Update imports to synthorg.* for parallel executor. |
| src/synthorg/engine/metrics.py | Update imports to synthorg.* for metrics models. |
| src/synthorg/engine/loop_protocol.py | Update imports to synthorg.* for loop protocol. |
| src/synthorg/engine/loop_helpers.py | Update imports to synthorg.* for loop helpers. |
| src/synthorg/engine/errors.py | Update TYPE_CHECKING import to synthorg.*. |
| src/synthorg/engine/decomposition/service.py | Update imports to synthorg.* for decomposition service. |
| src/synthorg/engine/decomposition/rollup.py | Update imports to synthorg.* for rollup. |
| src/synthorg/engine/decomposition/protocol.py | Update TYPE_CHECKING imports to synthorg.*. |
| src/synthorg/engine/decomposition/models.py | Update imports to synthorg.* for decomposition models. |
| src/synthorg/engine/decomposition/manual.py | Update imports to synthorg.* for manual strategy. |
| src/synthorg/engine/decomposition/llm_prompt.py | Update imports to synthorg.* for LLM prompt builder. |
| src/synthorg/engine/decomposition/llm.py | Update imports to synthorg.* for LLM strategy. |
| src/synthorg/engine/decomposition/dag.py | Update imports to synthorg.* for dependency graph. |
| src/synthorg/engine/decomposition/classifier.py | Update imports to synthorg.* for classifier. |
| src/synthorg/engine/decomposition/init.py | Update exports to synthorg.* for decomposition package. |
| src/synthorg/engine/cost_recording.py | Update imports to synthorg.* for cost recording. |
| src/synthorg/engine/coordination/service.py | Update imports to synthorg.* for coordination service. |
| src/synthorg/engine/coordination/section_config.py | Update imports to synthorg.* for section config. |
| src/synthorg/engine/coordination/models.py | Update imports to synthorg.* for coordination models. |
| src/synthorg/engine/coordination/group_builder.py | Update imports to synthorg.* for group builder. |
| src/synthorg/engine/coordination/dispatchers.py | Update imports/comments to synthorg.* for dispatchers. |
| src/synthorg/engine/coordination/config.py | Update imports to synthorg.* for config. |
| src/synthorg/engine/coordination/init.py | Update exports to synthorg.* for coordination package. |
| src/synthorg/engine/context.py | Update imports and doc references to synthorg.*. |
| src/synthorg/engine/classification/pipeline.py | Update imports to synthorg.* for classification pipeline. |
| src/synthorg/engine/classification/models.py | Update imports to synthorg.* for classification models. |
| src/synthorg/engine/classification/detectors.py | Update imports to synthorg.* for detectors. |
| src/synthorg/engine/classification/init.py | Update exports to synthorg.* for classification package. |
| src/synthorg/engine/checkpoint/strategy.py | Update imports to synthorg.* for checkpoint strategy. |
| src/synthorg/engine/checkpoint/resume.py | Update imports to synthorg.* for checkpoint resume. |
| src/synthorg/engine/checkpoint/models.py | Update imports to synthorg.* for checkpoint models. |
| src/synthorg/engine/checkpoint/callback_factory.py | Update imports to synthorg.* for callback factory. |
| src/synthorg/engine/checkpoint/callback.py | Update import to synthorg.* for callback. |
| src/synthorg/engine/checkpoint/init.py | Update exports to synthorg.* for checkpoint package. |
| src/synthorg/engine/assignment/strategies.py | Update imports to synthorg.* for assignment strategies. |
| src/synthorg/engine/assignment/service.py | Update imports to synthorg.* for assignment service. |
| src/synthorg/engine/assignment/registry.py | Update imports to synthorg.* for strategy registry. |
| src/synthorg/engine/assignment/protocol.py | Update TYPE_CHECKING imports to synthorg.*. |
| src/synthorg/engine/assignment/models.py | Update imports to synthorg.* for assignment models. |
| src/synthorg/engine/assignment/init.py | Update exports to synthorg.* for assignment package. |
| src/synthorg/engine/approval_gate_models.py | Update imports to synthorg.* for gate models. |
| src/synthorg/engine/approval_gate.py | Update imports to synthorg.* for approval gate. |
| src/synthorg/engine/_validation.py | Update imports to synthorg.* for engine validation helpers. |
| src/synthorg/engine/_security_factory.py | Update imports to synthorg.* for security wiring. |
| src/synthorg/core/task_transitions.py | Update imports to synthorg.* for transitions. |
| src/synthorg/core/task.py | Update imports and doc references to synthorg.*. |
| src/synthorg/core/role_catalog.py | Update imports to synthorg.* for role catalog. |
| src/synthorg/core/role.py | Update imports and doc references to synthorg.*. |
| src/synthorg/core/resilience_config.py | Update imports to synthorg.* for resilience config. |
| src/synthorg/core/project.py | Update imports to synthorg.* for project model. |
| src/synthorg/core/personality.py | Update imports and doc references to synthorg.*. |
| src/synthorg/core/enums.py | Update doc references to synthorg.*. |
| src/synthorg/core/company.py | Update imports and doc references to synthorg.*. |
| src/synthorg/core/artifact.py | Update imports to synthorg.* for artifacts. |
| src/synthorg/core/approval.py | Update imports to synthorg.* for approval model. |
| src/synthorg/core/agent.py | Update imports and doc references to synthorg.*. |
| src/synthorg/core/init.py | Update core re-exports to synthorg.*. |
| src/synthorg/constants.py | Update package docstring to synthorg. |
| src/synthorg/config/utils.py | Update imports to synthorg.* for config utilities. |
| src/synthorg/config/schema.py | Update imports and doc references to synthorg.*. |
| src/synthorg/config/loader.py | Update imports and doc references to synthorg.*. |
| src/synthorg/config/init.py | Update config exports to synthorg.*. |
| src/synthorg/communication/subscription.py | Update imports to synthorg.* for subscription models. |
| src/synthorg/communication/messenger.py | Update imports to synthorg.* for messenger. |
| src/synthorg/communication/message.py | Update imports to synthorg.* for message model. |
| src/synthorg/communication/meeting/structured_phases.py | Update imports to synthorg.* for meeting protocol. |
| src/synthorg/communication/meeting/scheduler.py | Update imports to synthorg.* for scheduler. |
| src/synthorg/communication/meeting/round_robin.py | Update imports to synthorg.* for protocol. |
| src/synthorg/communication/meeting/protocol.py | Update imports to synthorg.* for meeting protocol types. |
| src/synthorg/communication/meeting/position_papers.py | Update imports to synthorg.* for protocol. |
| src/synthorg/communication/meeting/participant.py | Update imports to synthorg.* for participant resolver. |
| src/synthorg/communication/meeting/orchestrator.py | Update imports to synthorg.* for orchestrator. |
| src/synthorg/communication/meeting/models.py | Update imports to synthorg.* for meeting models. |
| src/synthorg/communication/meeting/errors.py | Update imports to synthorg.* for meeting errors. |
| src/synthorg/communication/meeting/config.py | Update imports to synthorg.* for meeting config. |
| src/synthorg/communication/meeting/_token_tracker.py | Update imports to synthorg.* for token tracking. |
| src/synthorg/communication/meeting/_prompts.py | Update TYPE_CHECKING imports to synthorg.*. |
| src/synthorg/communication/meeting/_parsing.py | Update imports to synthorg.* for meeting parsing. |
| src/synthorg/communication/meeting/init.py | Update exports to synthorg.* for meeting package. |
| src/synthorg/communication/loop_prevention/rate_limit.py | Update imports to synthorg.* for rate limiter. |
| src/synthorg/communication/loop_prevention/models.py | Update imports to synthorg.* for loop models. |
| src/synthorg/communication/loop_prevention/guard.py | Update imports to synthorg.* for guard. |
| src/synthorg/communication/loop_prevention/depth.py | Update imports to synthorg.* for depth check. |
| src/synthorg/communication/loop_prevention/dedup.py | Update imports to synthorg.* for dedup. |
| src/synthorg/communication/loop_prevention/circuit_breaker.py | Update imports to synthorg.* for circuit breaker. |
| src/synthorg/communication/loop_prevention/ancestry.py | Update imports to synthorg.* for ancestry check. |
| src/synthorg/communication/loop_prevention/init.py | Update exports to synthorg.* for loop prevention. |
| src/synthorg/communication/handler.py | Update imports to synthorg.* for handler registration. |
| src/synthorg/communication/enums.py | Update doc references to synthorg.*. |
| src/synthorg/communication/dispatcher.py | Update imports to synthorg.* for dispatcher. |
| src/synthorg/communication/delegation/service.py | Update imports to synthorg.* for delegation service. |
| src/synthorg/communication/delegation/models.py | Update imports to synthorg.* for delegation models. |
| src/synthorg/communication/delegation/hierarchy.py | Update imports to synthorg.* for hierarchy resolver. |
| src/synthorg/communication/delegation/authority.py | Update imports to synthorg.* for authority checks. |
| src/synthorg/communication/delegation/init.py | Update exports to synthorg.* for delegation package. |
| src/synthorg/communication/conflict_resolution/service.py | Update imports to synthorg.* for conflict resolution. |
| src/synthorg/communication/conflict_resolution/protocol.py | Update imports to synthorg.* for conflict protocols. |
| src/synthorg/communication/conflict_resolution/models.py | Update imports to synthorg.* for conflict models. |
| src/synthorg/communication/conflict_resolution/hybrid_strategy.py | Update imports to synthorg.* for hybrid strategy. |
| src/synthorg/communication/conflict_resolution/human_strategy.py | Update imports to synthorg.* for human strategy. |
| src/synthorg/communication/conflict_resolution/debate_strategy.py | Update imports to synthorg.* for debate strategy. |
| src/synthorg/communication/conflict_resolution/config.py | Update imports to synthorg.* for config. |
| src/synthorg/communication/conflict_resolution/authority_strategy.py | Update imports to synthorg.* for authority strategy. |
| src/synthorg/communication/conflict_resolution/_helpers.py | Update imports to synthorg.* for helpers. |
| src/synthorg/communication/conflict_resolution/init.py | Update exports to synthorg.* for conflict resolution. |
| src/synthorg/communication/config.py | Update imports to synthorg.* for comms config. |
| src/synthorg/communication/channel.py | Update imports to synthorg.* for channel models. |
| src/synthorg/communication/bus_protocol.py | Update imports to synthorg.* for bus protocol. |
| src/synthorg/communication/bus_memory.py | Update imports to synthorg.* for in-memory bus. |
| src/synthorg/budget/tracker.py | Update imports to synthorg.* for cost tracker. |
| src/synthorg/budget/spending_summary.py | Update imports/doc references to synthorg.*. |
| src/synthorg/budget/reports.py | Update imports/doc references to synthorg.*. |
| src/synthorg/budget/quota_tracker.py | Update imports/doc references to synthorg.*. |
| src/synthorg/budget/quota.py | Update imports to synthorg.* for quota models. |
| src/synthorg/budget/optimizer_models.py | Update imports/doc references to synthorg.*. |
| src/synthorg/budget/optimizer.py | Update imports/doc references to synthorg.*. |
| src/synthorg/budget/hierarchy.py | Update imports to synthorg.* for hierarchy. |
| src/synthorg/budget/enums.py | Update doc references to synthorg.*. |
| src/synthorg/budget/enforcer.py | Update imports/doc references to synthorg.*. |
| src/synthorg/budget/cost_tiers.py | Update imports/doc references to synthorg.*. |
| src/synthorg/budget/cost_record.py | Update imports to synthorg.* for cost record. |
| src/synthorg/budget/coordination_metrics.py | Update imports to synthorg.* for coordination metrics. |
| src/synthorg/budget/config.py | Update imports to synthorg.* for budget config. |
| src/synthorg/budget/category_analytics.py | Update imports/doc references to synthorg.*. |
| src/synthorg/budget/call_category.py | Update doc references to synthorg.*. |
| src/synthorg/budget/billing.py | Update doc reference to synthorg.*. |
| src/synthorg/budget/_optimizer_helpers.py | Update imports to synthorg.* for optimizer helpers. |
| src/synthorg/api/ws_models.py | Update imports to synthorg.* for WS models. |
| src/synthorg/api/state.py | Update imports to synthorg.* for app state. |
| src/synthorg/api/server.py | Update imports to synthorg.* for server entrypoint. |
| src/synthorg/api/pagination.py | Update imports to synthorg.* for pagination utilities. |
| src/synthorg/api/middleware.py | Update imports to synthorg.* for middleware. |
| src/synthorg/api/guards.py | Update imports to synthorg.* for guards. |
| src/synthorg/api/exception_handlers.py | Update imports to synthorg.* for exception handlers. |
| src/synthorg/api/dto.py | Update imports to synthorg.* for DTOs. |
| src/synthorg/api/controllers/ws.py | Update imports to synthorg.* for WS handler. |
| src/synthorg/api/controllers/tasks.py | Update imports to synthorg.* for task endpoints. |
| src/synthorg/api/controllers/providers.py | Update imports to synthorg.* for provider endpoints. |
| src/synthorg/api/controllers/projects.py | Update imports to synthorg.* for project endpoints. |
| src/synthorg/api/controllers/messages.py | Update imports to synthorg.* for message endpoints. |
| src/synthorg/api/controllers/meetings.py | Update imports to synthorg.* for meeting endpoints. |
| src/synthorg/api/controllers/health.py | Update imports to synthorg.* for health check. |
| src/synthorg/api/controllers/departments.py | Update imports to synthorg.* for department endpoints. |
| src/synthorg/api/controllers/coordination.py | Update imports to synthorg.* for coordination endpoint. |
| src/synthorg/api/controllers/company.py | Update imports to synthorg.* for company endpoint. |
| src/synthorg/api/controllers/budget.py | Update imports to synthorg.* for budget endpoints. |
| src/synthorg/api/controllers/autonomy.py | Update imports to synthorg.* for autonomy endpoints. |
| src/synthorg/api/controllers/artifacts.py | Update imports to synthorg.* for artifact endpoints. |
| src/synthorg/api/controllers/approvals.py | Update imports to synthorg.* for approvals endpoints. |
| src/synthorg/api/controllers/analytics.py | Update imports to synthorg.* for analytics endpoints. |
| src/synthorg/api/controllers/agents.py | Update imports to synthorg.* for agent endpoints. |
| src/synthorg/api/controllers/init.py | Add controller aggregator under synthorg. |
| src/synthorg/api/config.py | Update imports to synthorg.* for API config. |
| src/synthorg/api/bus_bridge.py | Update imports to synthorg.* for WS bus bridge. |
| src/synthorg/api/auth/service.py | Update imports to synthorg.* for auth service. |
| src/synthorg/api/auth/secret.py | Rename JWT secret env var to SYNTHORG_JWT_SECRET. |
| src/synthorg/api/auth/models.py | Update imports to synthorg.* for auth models. |
| src/synthorg/api/auth/middleware.py | Update imports to synthorg.* for auth middleware. |
| src/synthorg/api/auth/controller.py | Update imports to synthorg.* for auth routes. |
| src/synthorg/api/auth/config.py | Update docs to reference SYNTHORG_JWT_SECRET. |
| src/synthorg/api/auth/init.py | Add auth package exports under synthorg. |
| src/synthorg/api/approval_store.py | Update imports to synthorg.* for approval store. |
| src/synthorg/api/init.py | Update module docstring import guidance to synthorg. |
| src/ai_company/tools/file_system/init.py | Remove old ai_company file-system tools package init. |
| src/ai_company/security/timeout/init.py | Remove old ai_company timeout package init. |
| src/ai_company/memory/backends/mem0/init.py | Remove old ai_company mem0 init after rename. |
| src/ai_company/api/controllers/init.py | Remove old ai_company controllers init after rename. |
| src/ai_company/api/auth/init.py | Remove old ai_company auth init after rename. |
| scripts/export_openapi.py | Update OpenAPI export script import to synthorg. |
| pyproject.toml | Update hatch/ruff/coverage config to synthorg. |
| docs/user_guide.md | Update documented env vars to SYNTHORG_*. |
| docs/getting_started.md | Update coverage flag and src path to synthorg. |
| docs/architecture/tech-stack.md | Update docs import example to synthorg.*. |
| docs/api/tools.md | Update mkdocstrings directives to synthorg.*. |
| docs/api/templates.md | Update mkdocstrings directives to synthorg.*. |
| docs/api/security.md | Update mkdocstrings directives to synthorg.*. |
| docs/api/providers.md | Update mkdocstrings directives to synthorg.*. |
| docs/api/persistence.md | Update mkdocstrings directives to synthorg.*. |
| docs/api/observability.md | Update mkdocstrings directives to synthorg.*. |
| docs/api/memory.md | Update mkdocstrings directives to synthorg.*. |
| docs/api/hr.md | Update mkdocstrings directives to synthorg.*. |
| docs/api/engine.md | Update mkdocstrings directives to synthorg.*. |
| docs/api/core.md | Update mkdocstrings directives to synthorg.*. |
| docs/api/config.md | Update mkdocstrings directives to synthorg.*. |
| docs/api/communication.md | Update mkdocstrings directives to synthorg.*. |
| docs/api/budget.md | Update mkdocstrings directives to synthorg.*. |
| docs/api/api.md | Update mkdocstrings directives to synthorg.*. |
| docker/compose.yml | Rename env vars to SYNTHORG_* in compose configuration. |
| docker/backend/Dockerfile | Rename env vars to SYNTHORG_* and uvicorn app path to synthorg. |
| docker/.env.example | Rename env vars to SYNTHORG_* in example env file. |
| cli/testdata/compose_default.yml | Update golden compose env vars to SYNTHORG_*. |
| cli/testdata/compose_custom_ports.yml | Update golden compose env vars to SYNTHORG_*. |
| cli/internal/compose/generate_test.go | Update env var assertion to SYNTHORG_JWT_SECRET. |
| cli/internal/compose/compose.yml.tmpl | Update compose template env vars to SYNTHORG_*. |
| .pre-commit-config.yaml | Update excluded path regex to src/synthorg/.... |
| .github/workflows/pages.yml | Update path trigger to src/synthorg/**. |
| .github/workflows/pages-preview.yml | Update path trigger to src/synthorg/**. |
| .github/workflows/ci.yml | Update coverage target to --cov=synthorg. |
| .github/release-please-config.json | Update version file path to src/synthorg/__init__.py. |
| .github/CONTRIBUTING.md | Update docs to --cov=synthorg and src/synthorg/. |
| .claude/skills/worktree/SKILL.md | Update spec label → source directory mappings to src/synthorg/. |
| .claude/skills/research-link/SKILL.md | Update grep guidance to src/synthorg/. |
| .claude/hookify.missing-logger.md | Update pattern and message to src/synthorg/ and synthorg.observability. |
| .claude/hookify.function-length.md | Update pattern to src/synthorg/. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| except MemoryError, RecursionError: | ||
| # Bare re-raise: logging is intentionally omitted because | ||
| # emitting logs may itself trigger MemoryError/RecursionError. | ||
| # These are built-in exceptions (not ai_company.memory.errors.MemoryError). | ||
| # These are built-in exceptions (not synthorg.memory.errors.MemoryError). |
| ENV PATH="/app/.venv/bin:$PATH" \ | ||
| PYTHONUNBUFFERED=1 \ | ||
| PYTHONDONTWRITEBYTECODE=1 \ | ||
| AI_COMPANY_HOST="0.0.0.0" \ | ||
| AI_COMPANY_PORT="8000" | ||
| SYNTHORG_HOST="0.0.0.0" \ | ||
| SYNTHORG_PORT="8000" |
docker/backend/Dockerfile
Outdated
| CMD ["/app/.venv/bin/uvicorn", "synthorg.api.app:create_app", "--factory", \ | ||
| "--host", "0.0.0.0", "--port", "8000"] |
The Dockerfile set SYNTHORG_HOST and SYNTHORG_PORT env vars but uvicorn CMD hardcoded the values, ignoring overrides. Switch to shell form so env vars are expanded at runtime.
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request executes a comprehensive refactoring to rename the primary Python package from Highlights
Changelog
Ignored Files
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This is a large but well-executed refactoring to rename the core package from ai_company to synthorg. The changes are consistent across the many files in this pull request. I've added a couple of suggestions to improve maintainability by replacing hardcoded environment variable names with constants in both Python and Go code. Overall, great job on this significant undertaking.
| env_secret = os.environ.get("SYNTHORG_JWT_SECRET", "").strip() | ||
| if env_secret: | ||
| if len(env_secret) < MIN_SECRET_LENGTH: | ||
| msg = ( | ||
| f"AI_COMPANY_JWT_SECRET must be at least " | ||
| f"SYNTHORG_JWT_SECRET must be at least " | ||
| f"{MIN_SECRET_LENGTH} characters (got {len(env_secret)})" | ||
| ) | ||
| logger.error(API_APP_STARTUP, error=msg) | ||
| raise ValueError(msg) | ||
| logger.info( | ||
| API_APP_STARTUP, | ||
| note="JWT secret loaded from AI_COMPANY_JWT_SECRET env var", | ||
| note="JWT secret loaded from SYNTHORG_JWT_SECRET env var", | ||
| ) | ||
| return env_secret |
There was a problem hiding this comment.
To improve maintainability and avoid hardcoding the environment variable name in multiple places (the os.environ.get call, error messages, and log messages), it's a good practice to define it as a constant. This makes future changes easier and less error-prone.
While this suggestion defines the constant locally, it would be even better to define _JWT_SECRET_ENV_VAR at the module level.
| env_secret = os.environ.get("SYNTHORG_JWT_SECRET", "").strip() | |
| if env_secret: | |
| if len(env_secret) < MIN_SECRET_LENGTH: | |
| msg = ( | |
| f"AI_COMPANY_JWT_SECRET must be at least " | |
| f"SYNTHORG_JWT_SECRET must be at least " | |
| f"{MIN_SECRET_LENGTH} characters (got {len(env_secret)})" | |
| ) | |
| logger.error(API_APP_STARTUP, error=msg) | |
| raise ValueError(msg) | |
| logger.info( | |
| API_APP_STARTUP, | |
| note="JWT secret loaded from AI_COMPANY_JWT_SECRET env var", | |
| note="JWT secret loaded from SYNTHORG_JWT_SECRET env var", | |
| ) | |
| return env_secret | |
| jwt_secret_env_var = "SYNTHORG_JWT_SECRET" | |
| env_secret = os.environ.get(jwt_secret_env_var, "").strip() | |
| if env_secret: | |
| if len(env_secret) < MIN_SECRET_LENGTH: | |
| msg = ( | |
| f"{jwt_secret_env_var} must be at least " | |
| f"{MIN_SECRET_LENGTH} characters (got {len(env_secret)})" | |
| ) | |
| logger.error(API_APP_STARTUP, error=msg) | |
| raise ValueError(msg) | |
| logger.info( | |
| API_APP_STARTUP, | |
| note=f"JWT secret loaded from {jwt_secret_env_var} env var", | |
| ) | |
| return env_secret |
| assertContains(t, yaml, `"4000:8080"`) | ||
| assertContains(t, yaml, "synthorg-backend:v0.2.0") | ||
| assertContains(t, yaml, "AI_COMPANY_JWT_SECRET") | ||
| assertContains(t, yaml, "SYNTHORG_JWT_SECRET") |
There was a problem hiding this comment.
Similar to the Python code, it's good practice to define the environment variable name SYNTHORG_JWT_SECRET as a constant to improve maintainability and avoid magic strings in tests. This makes future refactoring easier and less error-prone.
You could define a package-level constant:
const jwtSecretEnvVar = "SYNTHORG_JWT_SECRET"And then use it in the test:
assertContains(t, yaml, jwtSecretEnvVar)🤖 I have created a release *beep* *boop* --- ## [0.2.0](v0.1.4...v0.2.0) (2026-03-15) ##First probably usable release? Most likely not no and everything will break ### Features * add /get/ installation page for CLI installer ([#413](#413)) ([6a47e4a](6a47e4a)) * add cross-platform Go CLI for container lifecycle management ([#401](#401)) ([0353d9e](0353d9e)), closes [#392](#392) * add explicit ScanOutcome signal to OutputScanResult ([#394](#394)) ([be33414](be33414)), closes [#284](#284) * add meeting scheduler, event-triggered meetings, and Go CLI lint fixes ([#407](#407)) ([5550fa1](5550fa1)) * wire MultiAgentCoordinator into runtime ([#396](#396)) ([7a9e516](7a9e516)) ### Bug Fixes * CLA signatures branch + declutter repo root ([#409](#409)) ([cabe953](cabe953)) * correct Release Please branch name in release workflow ([#410](#410)) ([515d816](515d816)) * replace slsa-github-generator with attest-build-provenance, fix DAST ([#424](#424)) ([eeaadff](eeaadff)) * resolve CodeQL path-injection alerts in Go CLI ([#412](#412)) ([f41bf16](f41bf16)) ### Refactoring * rename package from ai_company to synthorg ([#422](#422)) ([df27c6e](df27c6e)), closes [#398](#398) ### Tests * add fuzz and property-based testing across all layers ([#421](#421)) ([115a742](115a742)) ### CI/CD * add SLSA L3 provenance for CLI binaries and container images ([#423](#423)) ([d3dc75d](d3dc75d)) * bump the major group with 4 updates ([#405](#405)) ([20c7a04](20c7a04)) ### Maintenance * bump github.com/spf13/cobra from 1.9.1 to 1.10.2 in /cli in the minor-and-patch group ([#402](#402)) ([e31edbb](e31edbb)) * narrow BSL Additional Use Grant and add CLA ([#408](#408)) ([5ab15bd](5ab15bd)), closes [#406](#406) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Summary
src/ai_company/→src/synthorg/viagit mv(preserves blame)from ai_company.X→from synthorg.X) across 880 files (~24K replacements)AI_COMPANY_→SYNTHORG_(Docker configs,.env.example, Go CLI templates, auth secret)importlib.resourcespath--cov=synthorg, path triggers),pyproject.toml(hatch, ruff, coverage),.pre-commit-config.yaml,release-please-config.json:::directives, env var tables, architecture references).claude/skill files and hookify rulesuv.lock962 files changed, 4735 insertions, 4738 deletions.
Test plan
ai_company/AI_COMPANYreferences (grep verified)pre-commit run --all-files)Closes #398