Fix Railway template runtime claim bootstrap#59
Conversation
|
Warning Review limit reached
Next review available in: 46 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (9)
📝 WalkthroughWalkthroughThe Dockerfile, startup script, Railway template contract, packet generator, and documentation are updated to install the ChangesRuntime Package Pin and Railway Template Updates
Estimated code review effort: 2 (Simple) | ~12 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
a383602 to
1033876
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a383602c08
ℹ️ 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".
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@Dockerfile`:
- Around line 26-27: The Dockerfile HEALTHCHECK is hardcoding 8765, which can
diverge from the runtime PORT used by scripts/railway_start.sh. Update the
HEALTHCHECK command to probe the same port source as the app (use the PORT
environment variable with the existing fallback behavior), and keep the check
aligned with the health endpoint in the Dockerfile so it works when Railway
assigns a non-default port.
- Around line 13-15: The Dockerfile still launches as root and the later COPY
steps overwrite the earlier ownership changes on /app. Update the build so the
final runtime user is switched to zero with USER zero before CMD, and ensure any
files copied into /app after the chown are re-owned appropriately; use the
existing useradd and chown setup to keep the container running with dropped
privileges.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 8cac758c-7c7c-4084-850f-11372fe43efd
📒 Files selected for processing (5)
Dockerfilecontracts/distribution/railway-template.jsondocs/railway-template.mdscripts/railway_start.shscripts/railway_template_packet.py
a9c1449 to
314fa03
Compare
Co-authored-by: Codex <codex@openai.com>
314fa03 to
900b400
Compare
|
All review threads are resolved, all checks are green, and auto-merge is enabled. GitHub still requires one approving review from a non-author with write access; after that, this PR will squash-merge automatically.\n\nValidation on head 900b400:\n- CI: engine, docs, registry-readiness, examples, cli, paper-api-smoke, fresh-clone-rehearsal, railway-smoke, container-smoke all passed\n- CodeQL and trufflehog passed\n- Local gates passed: scripts/railway_template_packet.py --check, scripts/public_readiness_gate.sh, scripts/hardening_gate.sh, git diff --check\n\nRuntime fix: public Railway Dockerfile installs zero-engine==0.1.6 from PyPI; /deployment/claim and /deployment/heartbeat expose runtime.foundation_bootstrap_* fields; Railway smoke now runs with the non-root runtime user against a writable /data volume. |
Summary
zero-engine==0.1.6PyPI package in the Railway root Dockerfile instead of rebuilding the stale in-repo 0.1.5 engineZERO_DEPLOYMENT_VERSION=engine-v0.1.6andZERO_FOUNDATION_STATE_DIR=/data/.zeroWhy
Operator-connected Railway services were healthy but still lacked
/deployment/claimruntime.foundation_bootstrap_*andclaim_token_consumedreadbacks because the public template source repo remained on the stale 0.1.5 engine code. Installingzero-engine==0.1.6from public PyPI makes the public template consume the claim-capable runtime without copying hosted app code into this repo.Validation
scripts/railway_template_packet.py --checkbash -n scripts/railway_start.shpython3 -m json.tool contracts/distribution/railway-template.json >/dev/nullgit diff --checkpython3 -m pip index versions zero-engineconfirmed 0.1.6 is publiczero-engine==0.1.6confirmed version 0.1.6 andfoundation_bootstrap_from_envimportDocker build was not run locally because the Docker daemon is unavailable in this environment.
AI-assisted change: yes
Co-authored-by: Codex codex@openai.com
Summary by CodeRabbit
New Features
zero-engineruntime package version 0.1.6 in deployment templates and container setup.Bug Fixes
Documentation