# Repository Layout
This document records the intended package, module, and directory ownership for
the OpenSymphony implementation repo.
## 1. Top-level layout
```text
OpenSymphony/
AGENTS.md
README.md
WORKFLOW.example.md
Cargo.toml
crates/
docs/
examples/
scripts/
tools/
.github/
```
`Cargo.toml` at the repository root is the only Cargo package manifest.
OpenSymphony publishes one crates.io package, `opensymphony`.
The `crates/opensymphony-*` directories remain because they are useful internal
subsystem boundaries, but they are source directories compiled into the main
package, not standalone published crates.
## 2. Internal subsystem boundaries
### `opensymphony_domain`
- shared domain types
- scheduler state and transitions
- snapshot models
### `opensymphony_workflow`
- `WORKFLOW.md` loading
- typed front-matter resolution
- strict prompt rendering
- environment and path resolution
- migration errors for removed workflow fields
### `opensymphony_workspace`
- workspace path resolution
- containment and sanitization
- lifecycle hooks
- issue and conversation manifests
### `opensymphony_linear`
- Linear GraphQL read adapter
- pagination and normalization
- tracker reconciliation helpers
### `opensymphony_openhands`
- local server supervision
- REST client
- WebSocket event stream
- issue session runner
### `opensymphony_orchestrator`
- scheduler loop
- retry queue
- reconciliation
- worker supervision
### `opensymphony_control`
- control-plane HTTP API
- snapshot publication
### `opensymphony_cli`
- `init`
- `run`
- `debug`
- `daemon`
- `tui`
- `doctor`
- `rehydrate`
### `opensymphony_tui`
- FrankenTUI operator UI
### `opensymphony_testkit`
- fake OpenHands helpers
- fake Linear fixtures
- contract-test utilities
## 3. Shared non-module assets
### `tools/openhands-server/`
Owns the pinned local OpenHands package and launch scripts that the published
CLI embeds for `opensymphony install openhands`.
### `examples/`
Holds sample configs and target-repo fixtures.
### `docs/`
Owns design, operations, and migration documentation.
### `.agents/skills/` in the template repo
Owns target-repo agent guidance. The most important Linear assets now live in
the template skill tree instead of a separate bridge crate:
- `SKILL.md`
- `scripts/linear_graphql.py`
- `queries/*.graphql`
- `references/*.md`
## 4. Template skill propagation rule
`opensymphony init` and `opensymphony update` must copy `.agents/skills/`
recursively so that target repos receive the complete skill payload, including
helper scripts and query assets.
That rule is now part of the supported public behavior.
## 5. Versioning note
OpenSymphony `1.0.0` removed the old agent-side Linear bridge layer. The
internal module layout above is the post-removal structure and should stay free
of dead bridge code.