What changed
Earlier docs described:opensre remote CLI (do not confuse
this with opensre remote-sync, which syncs
sessions and memory to object storage).
The same goals are covered by the paths below.
Overview
To investigate a deployed service today:- Connect a cloud or deploy integration (Railway is the primary path for deploy inspection).
- Gather live signals (deployment status, logs, health).
- Run the standard RCA pipeline with
opensre investigateand an alert payload that includes those signals — or ask the interactive shell to investigate in plain language so it can call the tools for you.
opensre investigate -i <alert-file>.
Prerequisites
- Deploy OpenSRE (or your app) so there is a live service to inspect. See Deployment.
-
Connect Railway (or another cloud integration you use):
Optional env vars (also documented on Railway):
-
Configure an LLM (
LLM_PROVIDERand the matching API key). See LLM providers.
Gather live signals
Deployment status (Railway)
Use the Railway integration tools (from the interactive shell, or as evidence during an investigation):
When defaults are configured, no parameters are required. Otherwise pass
project, service, and environment. Full details: Railway.
Recent logs
Pull logs from the observability or platform tools you have connected (Datadog, Grafana, Railway CLI, and so on). Include the relevant lines in the alert payload or let the investigation agent call those tools. Earlier remote-ops docs fetched about the last 100 log lines via a Railway ops provider. That dedicated ops layer is gone; use the integration tools and your log sources instead.Health probe
Probe the service the same way you would for a hosted OpenSRE gateway:Run the RCA pipeline
From an alert file
--print-template) and include
deployment status, log excerpts, and health results under fields such as
message, raw_alert, or custom context keys your team uses.
From the interactive shell
inspect_railway_deployment and other tools, then run the investigation
pipeline.
Slack thread context
The old--slack-thread CHANNEL/TS flag on investigate is gone. Slack thread
context still works through:
- Investigation / chat tool
replay_slack_thread_locallywith athread_refinCHANNEL/TSformat. - Gateway Slack — when OpenSRE runs in Slack, thread history can be seeded automatically for that conversation.
- Set
SLACK_BOT_TOKEN(xoxb-…). - The bot needs
channels:historyandgroups:historyfor the channel you read. - Get
CHANNEL/TSfrom Slack’s “Copy link to message” — the last two path segments of the link.
conversations.replies API. If the fetch fails (bad token, wrong channel,
network error), the tool returns an error; the investigation can continue
without that thread.
Example token setup:
Investigate input rules
These input modes are mutually exclusive — use one path per run:
Optional with any investigation run:
-o / --output (write JSON) and
--evaluate (LLM judge against a scoring_points rubric).
Extending beyond Railway
There is no longer aRemoteOpsProvider class under
infra/deployment/remote/ops.py. That package was removed.
To support another deploy platform:
- Prefer a normal integration under
integrations/<vendor>/with tools (inspect deploy, fetch logs, and so on). See adding-tools-and-integrations.md in the repository. - Or gather status/logs yourself and pass them into
opensre investigateas alert context.
Known limitations
- No
investigate --service/opensre remote/ remote ops provider — use Railway (or other) integration tools plusopensre investigateor the interactive shell. - Railway is the main first-class deploy-inspect integration for this workflow today. Other providers are available as separate integrations, not through a shared remote-ops interface.
- Slack context is thread-scoped —
replay_slack_thread_locallypulls one thread viaCHANNEL/TS. It does not search Slack history or resolve linked runbooks. Gateway Slack may attach thread history for live chats. alert_sourcemay be re-inferred by the LLM — in the extract-alert step, the model can setalert_sourcefrom log text (for example"datadog"if logs mention Datadog), which routes to provider-specific tools. That is intended.
Related pages
- Railway — setup, inspect, redeploy
- Deployment — host OpenSRE / health checks
- Investigation overview — RCA pipeline
- Remote sync — session/memory sync (unrelated)
- Messaging / Slack — Slack bot setup