Our solution
Automatic composition with complete history
Cosmo's composition engine runs on every subgraph publish. It validates the full federated graph, distributes new router configurations on success, and records every composition attempt with inputs, outputs, errors, and version history.
What happens on every publish
A developer publishes a subgraph with `wgc subgraph publish`. The publish triggers composition.
The composition engine validates the new schema against every other subgraph in the federated graph, checking for type conflicts, missing references, and federation directive compliance.
If composition succeeds, the new router configuration is distributed through the CDN, and routers hot reload the update.
If composition fails, the error is recorded with detailed, actionable error messages. The existing valid schema remains active.
Each composition attempt is saved with trigger details, timestamps, inputs, outputs, errors, and resulting schema versions.
Failed compositions do not replace the existing valid router configuration.

