Add coily run-live verb to wrap run-native with SSM token fetch #26

Closed
opened 2026-06-17 07:29:39 +00:00 by coilysiren · 1 comment
Owner

Originally filed by @coilysiren on 2026-05-18T22:32:21Z

Problem - Flipping eco-replay from mock to live takes a manual env dance every time: fetch token via coily ops aws ssm get-parameter --name /eco-mcp-app/api-admin-token --with-decryption, export UPSTREAM_URL and UPSTREAM_API_KEY, then coily exec run-native. eco-mcp-app and eco-jobs-tracker have the same shape and the same per-invocation ceremony.

Fix - Add a run-live verb to .coily/coily.yaml that wraps run-native, fetches the token from SSM, and points at http://localhost:3001/api/v1/events. Either:

  1. Per-repo: each repo's coily.yaml declares run-live with the SSM key it cares about.
  2. Hoisted: one verb in coily gaming eco ... (e.g. coily gaming eco run-replay) that knows the standard token + URL.

Option 1 is lower-blast-radius and matches the existing per-repo verb pattern. Option 2 deduplicates if a 4th eco web app shows up.

Adjacent: same gap applies to eco-jobs-tracker and eco-mcp-app. Consider doing the sweep together.


Migrated from coilyco-flight-deck/eco-replay#3 during the eco repo consolidation (coilysiren/inbox#100).

_Originally filed by @coilysiren on 2026-05-18T22:32:21Z_ **Problem** - Flipping eco-replay from mock to live takes a manual env dance every time: fetch token via `coily ops aws ssm get-parameter --name /eco-mcp-app/api-admin-token --with-decryption`, export `UPSTREAM_URL` and `UPSTREAM_API_KEY`, then `coily exec run-native`. eco-mcp-app and eco-jobs-tracker have the same shape and the same per-invocation ceremony. **Fix** - Add a `run-live` verb to `.coily/coily.yaml` that wraps `run-native`, fetches the token from SSM, and points at `http://localhost:3001/api/v1/events`. Either: 1. Per-repo: each repo's `coily.yaml` declares `run-live` with the SSM key it cares about. 2. Hoisted: one verb in `coily gaming eco ...` (e.g. `coily gaming eco run-replay`) that knows the standard token + URL. Option 1 is lower-blast-radius and matches the existing per-repo verb pattern. Option 2 deduplicates if a 4th eco web app shows up. Adjacent: same gap applies to eco-jobs-tracker and eco-mcp-app. Consider doing the sweep together. --- _Migrated from coilyco-flight-deck/eco-replay#3 during the eco repo consolidation (coilysiren/inbox#100)._
Author
Owner

Backlog burndown 2026-06-17: closing low-priority (P3/P4) to bring the open count to a manageable level. Nothing lost — reopen if this resurfaces. Batch tag: burndown-2026-06.

Backlog burndown 2026-06-17: closing low-priority (P3/P4) to bring the open count to a manageable level. Nothing lost — reopen if this resurfaces. Batch tag: `burndown-2026-06`.
coilysiren 2026-06-17 08:20:39 +00:00
Sign in to join this conversation.
No description provided.