Contribution & Governance
Version: 0.1 (Phase 0 — Spec & Design) Status: Draft Last Updated: 2026-03-02 Depends on: All other spec documents
1. Repository Ownership
Each top-level directory has a designated owner responsible for code review and architectural decisions.
| Directory | Owner | Responsibility |
|---|---|---|
cli/ | CLI Team | CLI commands, TypeScript build, UX |
api_gateway/ | Platform Team | FastAPI routes, auth, WebSocket handlers |
orchestrator/ | Platform Team | Temporal workflows, agent scheduling |
twin_core/ | Platform Team | Neo4j graph engine, versioning, constraints |
skill_registry/ | Platform Team | Registry, loader, schema validation |
domain_agents/ | Agent Team | Agent implementations, domain skills |
mcp_core/ | Platform Team | MCP client, wire protocol |
tool_registry/ | Platform Team | Tool catalog, execution engine, adapters |
ide_assistants/ | IDE Team | VS Code, KiCad, FreeCAD extensions |
tests/ | All Teams | Cross-cutting tests (unit, integration, e2e) |
docs/ | All Teams | Specifications, guides |
2. Branching Strategy
Branch Naming
| Pattern | Purpose | Example |
|---|---|---|
main | Stable, reviewed code only | — |
feat/<issue-id>/<short-desc> | New features | feat/123/mechanical-agent |
fix/<issue-id>/<short-desc> | Bug fixes | fix/456/twin-merge-conflict |
<issue-id>/<short-desc> | Tracker issue work | 789/phase-0-specs |
docs/<short-desc> | Documentation changes | docs/skill-spec-update |
release/v<version> | Release preparation | release/v0.1.0 |
Rules
- Never commit directly to
main. All changes go through pull requests. - Feature branches are created from
mainand merged back via PR. - Branches are deleted after merge.
- Rebase before merge to keep linear history (no merge commits).
Pull Request Requirements
| Requirement | Details |
|---|---|
| Reviewers | At least 1 approval from directory owner |
| Tests | All existing tests pass; new code includes tests |
| Lint | ruff check . passes (Python) or eslint passes (TypeScript) |
| Types | mypy . passes (Python, strict mode) or tsc --noEmit (TypeScript) |
| Docs | Public API changes include docstring updates |
| Linear | PR description references the tracker issue |
3. Contributing a New Skill
Follow the complete guide in skill_spec.md Section 12. Summary checklist:
Checklist
- Linear issue created under the appropriate agent epic
- Directory created:
domain_agents/<domain>/skills/<skill_name>/ -
definition.jsonfollows schema (seeskill_spec.mdSection 3) -
schema.pywith Pydantic input/output models, all fields have descriptions -
handler.pysubclassesSkillBase, implementsexecute() -
tests.pywith pytest async tests — happy path, error path, edge cases -
SKILL.mdwith human-readable documentation - All tool access goes through
self.context.mcp.invoke()(never direct calls) - Tests pass:
pytest domain_agents/<domain>/skills/<skill_name>/tests.py - Lint passes:
ruff check domain_agents/<domain>/skills/<skill_name>/ - Types pass:
mypy domain_agents/<domain>/skills/<skill_name>/ - PR created with "Closes MET-XX" in description
4. Contributing a New Tool Adapter
Follow the Tool Adapter SDK guide in mcp_spec.md Section 9.
Checklist
- Linear issue created under the MCP Infrastructure epic
- Directory created:
tool_registry/tools/<adapter_name>/ -
server.pysubclassesMcpToolServer, registers tool manifests -
Dockerfilewith tool binary installed, workspace volume, no network -
requirements.txtwith Python dependencies -
tests/test_server.pywith pytest tests (mock tool binary for unit tests) - Tool manifests include accurate
input_schemaandoutput_schema - Resource limits set appropriately for the tool
- Docker image builds:
docker build -t metaforge/adapter-<name>:0.1 . - Integration test: tool responds to
health/checkandtool/list - PR created with "Closes MET-XX" in description