Files
Waleed 534c8ba79a chore(mothership): take the worker's typed stream contract, own telemetry names in Sim, and rename go-era names to worker (#10273)
* chore(mothership): take the worker's typed stream and pruned telemetry contracts, and rename go-era names to worker

* fix(mothership): keep the persisted goRoute recovery key, drop the write-only trace collector and dead _serviceCost output

Recovery rows keep the goRoute key every deployed Sim parses, so a rollback or
mixed-version deploy still takes over in-flight runs; workerRoute is the in-memory
name only. Also removes TraceCollector and its span plumbing (nothing read it),
the _serviceCost tool output no reader consumes, Go-era span data fallbacks
(pending, tool_call_id), the Go-only billing replay live test, and takes the
worker contract's removal of the async tool status by owning it in async-runs.

* improvement(mothership): type the subagent span guard from the contract's span data

* improvement(mothership): own Sim's telemetry names, map the goRoute recovery key in one place, and simplify the stream contract types

- Move the trace span, attribute, attribute-value, event and metric name tables out of generated/ into lib/mothership/observability/ as Sim-owned code; the worker no longer syncs them. CODEOWNERS keeps them with the mothership team.
- StreamRecoveryConfigSchema reads the persisted goRoute key as workerRoute, and persistedStreamRecoveryConfig writes it back as goRoute, so no caller names the stored key.
- Derive SyntheticFilePreviewEventEnvelope and EnvelopeToStreamEvent from MothershipStreamV1Envelope, drop a duplicate doc comment, and replace a nested ternary in applyStreamEvent with plain branches.

* chore(mothership): sync the worker's simplified stream contract

* chore(mothership): carry the worker renames into the chat routes staging moved

* test(mothership): compare the admitted run's recovery with the persisted goRoute shape

* chore(mothership): drop the dead vfs snapshot contract and point protocol docs at the worker catalog

* chore(mothership): sync the worker's consolidated billing contracts
2026-11-21 01:44:56 -08:00
..