Skip to content

feat(runtime): expose branch-safe host metadata#66

Merged
roodboi merged 4 commits into
mainfrom
codex/runtime-host-metadata
Jul 10, 2026
Merged

feat(runtime): expose branch-safe host metadata#66
roodboi merged 4 commits into
mainfrom
codex/runtime-host-metadata

Conversation

@roodboi

@roodboi roodboi commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • inject versioned, non-secret runtime host metadata into every Compose service
  • expose branch-qualified public route maps plus current-service convenience fields
  • make up, restart, targeted restart, run, and exec inspection consume consistent generated Compose overrides
  • extract and directly test branch-host rewriting
  • document Compose-DNS vs public-URL usage and bump agent-integration freshness

Runtime contract

Containers receive HACK_RUNTIME_METADATA, HACK_DEV_URL, HACK_ALIAS_URL, HACK_SERVICE_NAME, HACK_SERVICE_URL, and HACK_SERVICE_URLS. The versioned JSON document includes all routable services, avoiding lossy service-name-to-env-key conversion. Explicit project env values retain precedence for backward compatibility.

Verification

  • bun test — 897 pass, 5 skip, 0 fail
  • focused metadata/branch/run/exec/agent tests — 27 pass, 0 fail
  • bun run check
  • bun run typecheck
  • bun run build
  • Docker E2E worktree-parallel-up — primary and branch containers expose distinct URLs; metadata survives restart

Release decision

This is a user-facing runtime capability and should produce a feature/minor release signal. The Conventional Commit title intentionally uses feat(runtime).

Landing order

PR #65 should land first; then this branch should be updated from main before merge so its project.ts changes include the completion-gate fixes.

@roodboi

roodboi commented Jul 10, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f562df63a5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/lib/branch-hosts.ts Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 19f5e926b1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/lib/branch-hosts.ts
@roodboi roodboi force-pushed the codex/runtime-host-metadata branch from e14a52c to 723ab3e Compare July 10, 2026 04:37
@roodboi roodboi force-pushed the codex/runtime-host-metadata branch from 723ab3e to d178719 Compare July 10, 2026 04:39
@roodboi roodboi merged commit 0b0ec61 into main Jul 10, 2026
5 checks passed
@roodboi roodboi deleted the codex/runtime-host-metadata branch July 10, 2026 04:45

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d17871908d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/commands/project.ts
roodboi pushed a commit that referenced this pull request Jul 10, 2026
## 3.4.0 (2026-07-10)

* feat(runtime): expose branch-safe host metadata (#66) ([0b0ec61](0b0ec61)), closes [#66](#66) [#65](#65)
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