Skip to content

Create Railway environments before storage and services - #38

Merged
davejohnson merged 1 commit into
mainfrom
agent/fix-storage-environment-order
Jul 28, 2026
Merged

Create Railway environments before storage and services#38
davejohnson merged 1 commit into
mainfrom
agent/fix-storage-environment-order

Conversation

@davejohnson

Copy link
Copy Markdown
Owner

What this fixes

Setting up a new Railway environment could stop immediately on storage because Hypervibe tried to inspect the bucket before the Railway environment existed. This is what blocked Billforge staging.

What changes

  • Hypervibe now creates or finds the Railway environment first.
  • Storage, databases, and services wait for that environment.
  • After creating a new Railway environment, apply pauses and asks you to run hv_plan again. This gives Hypervibe fresh live information before it creates anything else.
  • An empty Railway storage list is treated as a real observation, so the next plan can offer the expected bucket create action.
  • Storage is no longer allowed to secretly create a Railway project or environment.
  • Stale environment IDs are repaired only after Railway confirms the old environment is gone.

Safety

If Railway cannot confirm whether the environment exists, Hypervibe blocks instead of guessing. Newly created environments are verified before their IDs are saved.

Checked

  • 935 tests pass
  • TypeScript typecheck passes
  • Production build passes

@davejohnson
davejohnson merged commit ca4d459 into main Jul 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant