RAILSHOT.

Railshot

Agent-First Deployment System

以智能体为中心的部署系统,把在自己电脑上做好的应用送上 AWS、GCP 云端或本地部署环境。

铁路铺过荒野的时代,总是粗犷、进取,也有些危险。

2026.09.28 — 2026.10.04 · 已结束

团队项目 · 我负责:CI 规划与实现、CSP 集群与 Ansible 接口、运维、团队代码审查与集成

  • 网页已实现 · 黑客松
  • MCP 服务器已实现 · 远程 · 本地

Railshot vocabulary

  1. AWS · GCP
  2. OpenStack

CI Agents: CI Agents prepare deployment files and use failure evidence to edit allowed files. The same checks must pass before release. Dockerfile · package.policy · package.spec · source.quality · image.build · image.runtime · image.scan · GATE_ORDER · verdict.json · release_eligible · GATE VERDICT · SECRET SCAN · --cap-drop=ALL · FIXABLE · give_up · PROMPT INJECTION · FAILURE SIGNATURE · REPAIR_SCOPE · MAX_REPAIR_ATTEMPTS · claude-agent-sdk · openai-codex · fixer · lessons.md · source_change_allowed · snapshot.json · source_sha256 · verify_images · SDK_OUTCOME_UNKNOWNAutomatic Deployment Packaging: Rules prepare the Dockerfile and deployment specification, with AI assistance when needed. Packaging changes are checked against allowed files and policy. Dockerfile · package.policy · package.spec · GATE VERDICT · REPAIR_SCOPE · claude-agent-sdk · openai-codex · snapshot.jsonScoped Failure Repair: Observed failures and relevant logs inform a proposed repair. The host checks its scope and stops on disallowed changes or exhausted attempts. FIXABLE · give_up · PROMPT INJECTION · FAILURE SIGNATURE · REPAIR_SCOPE · MAX_REPAIR_ATTEMPTS · claude-agent-sdk · openai-codex · fixer · lessons.md · source_change_allowed · SDK_OUTCOME_UNKNOWNDeterministic Release Gates: Check change boundaries, deployment specifications, image builds and container execution. Repairs repeat the same required checks; quality and vulnerability scans are optional additions. package.policy · package.spec · source.quality · image.build · image.runtime · image.scan · GATE_ORDER · verdict.json · release_eligible · GATE VERDICT · SECRET SCAN · --cap-drop=ALL · verify_imagesCSP · AWS / GCP: Apps deploy to registered AWS and GCP environments. New environments are prepared with a saved Terraform plan and Ansible runtime checks. SHARED ALB · aws_lb_listener_rule · aws_lb_target_group · aws_route53_record · GCP_ROUTE_APPLY_TIMEOUT · GCP_CERTIFICATE_DNS_FAILED · SAVED PLAN · plan_sha256 · node_descriptor · guest.check · runtime.install · runtime_ready · K3S · CILIUM · AWS · GCP · TERRAFORM · ANSIBLEOn-prem · OpenStack: Connected OpenStack on-premises environments serve as app deployment targets. Customer-side CLI queries and cluster checks determine deployment readiness. WireGuard · node_descriptor · runtime_ready · K3S · CILIUM · OPENSTACK · ANSIBLE · OPENSTACK CLI · server list · server show · runtime_preparation · cluster_verified · deployableMCP: Request deployment of a repository or local project and query its status from your own AI agent. MCP acceptance and deployment completion are separate states. repository_url · archiveFromPath · inspectArchive · sourceArchive · deploy_repository · deploy_local_project · OAUTH MCP · Idempotency-Key · IDEMPOTENCY_CONFLICT · 202 ACCEPTED · EXECUTOR_BUSY · CAPACITY_EXCEEDED · maxConcurrentDeployments · workflow_dispatch · TARGET ALLOWLIST · reconciliation_required · CI_DISPATCH_UNCONFIRMEDGitOps: The tested image is published to GHCR and its deployment declaration is committed to Config Git. Argo CD application and public-response checks establish the deployment result. release_eligible · GHCR · images.json · EXACT TESTED BUNDLE · GITHUB-HOSTED RELEASE · published · publication_unverified · MANIFEST INSPECT · REGISTRY_VISIBILITY · publish-journal · railshot-release · bridge.py · workload.json · CONFIG GIT · pushing · REMOTE READBACK · ARGO CD · Synced · Healthy · targetRevision · sync_requested · NO PRUNE, NO FORCE · NetworkPolicy · routing · NodePort · LISTENER OWNERSHIP · public_probe · site_probe · railshot-health/1 · NO PROXY, NO REDIRECT · expected_json · HTTPS 200 · verified_at · public_http · health_path · readinessProbe · observed_images · containerd-snapshotter · images.tar · handoff.json · NEVER BLINDLY RETRY · probe_successEnvironment Provisioning: A saved Terraform plan prepares resources. Their descriptors feed Ansible guest and runtime work before the environment is registered as a deployment target. SAVED PLAN · plan_sha256 · node_descriptor · guest.check · runtime.install · runtime_ready · TERRAFORM · ANSIBLERuntime Readiness: Resource creation, guest checks and runtime installation have distinct states. K3s, Cilium and cluster readiness are checked before an app can deploy. node_descriptor · guest.check · runtime.install · runtime_ready · K3S · CILIUM · ANSIBLE · runtime_preparation · cluster_verified · deployableSource Snapshot: Distinguish the submitted commit from files tested after agent edits. A snapshot preserves file entries and hashes to identify the tested source. source_commit · source_parent · source_digest · snapshot.json · source_sha256 · GITHUB_SHA · harness_sha256 · SUBMITTED SOURCE CHANGED · verify_imagesArtifact Binding: Submitted source, the post-edit snapshot and the image digest are bound to the same run. CD compares run, target and configuration identities. application_id · Idempotency-Key · workflow_dispatch · GHCR · images.json · published · MANIFEST INSPECT · targetRevision · Railshot-Request · Railshot-Target · source_commit · source_parent · force: false · source_digest · snapshot.json · source_sha256 · GITHUB_SHA · PLATFORM_REF · harness_sha256 · SUBMITTED SOURCE CHANGED · IMMUTABLE GHCR DIGEST · images_sha256 · observed_images · PULL BY DIGEST · imagePullSecrets · containerd-snapshotter · RESUME_PUBLICATION_CHANGED · verify_images · images.tar · handoff.json · producer_attempt · bundle_artifact_id · run_id · state.bindings · CI_BINDING_MISMATCH · DEPLOYMENT BINDING CONFLICT · config_sha256 · TARGET ALLOWLIST · registered_application · source_preparedReconciliation: An operation without a confirmed result remains unknown. Saved run records and remote state locate the existing operation before it resumes. publication_unverified · publish-journal · pushing · REMOTE READBACK · source_parent · RESUME_PUBLICATION_CHANGED · outcome_unknown · CD_RECONCILE_REQUIRED · reconciliation_required · CD_OUTCOME_UNKNOWN · SDK_OUTCOME_UNKNOWN · unknown_timeout · CI_DISPATCH_UNCONFIRMED · NEVER BLINDLY RETRY · after_reconcile · reconcile_remote · --resume · state.sqlite3 · resumePrepared · findDeployment · recoverDispatch · source_prepared · CI_DISPATCH_NOT_IDENTIFIED · resume_count · SAME WORKFLOW RUN · INTERRUPTED · READ-ONLY OBSERVEResume the Existing Run: Locate the saved run and remote operation before resuming deployment. Source, run and image identities are checked instead of blindly starting another build or deployment. RESUME_PUBLICATION_CHANGED · after_reconcile · --resume · state.sqlite3 · resumePrepared · findDeployment · recoverDispatch · source_prepared · CI_DISPATCH_NOT_IDENTIFIED · resume_count · SAME WORKFLOW RUN · INTERRUPTEDUpdate Preview: Compare changed files before starting an update from the reviewed source. If deployed source is unavailable, the preview labels its submitted-source baseline. A changed baseline blocks the start. application_id · base_deployment_id · base_revision · baseline_kind · expires_at · source_comparison_only · changes · preview · startUpdate · UPDATE_BASE_CHANGED · source_digestDeployment Queue: Accepted deployments enter a durable queue; eligible requests start in order. Per-app writers and total concurrency are bounded. An uncertain operation blocks new work for the same app. application_id · queued · queue.sequence · enqueued_at · pump · maxConcurrentDeploymentsObservability: Read app status, logs, request trends and environment metrics. Missing or stale measurements are not filled with healthy values, and observation does not advance deployment. observationRetry · next_retry_at · consecutive_failures · no_data · stale · collection_failed · NOT A SUCCESS GATE · probe_success · PROMETHEUS · BLACKBOX EXPORTER · READ-ONLY OBSERVEApp Lifecycle: Update, stop, start or delete an app while preserving its identity and environment. Plans distinguish affected and retained resources; results record residual resources. application_id · planLifecycle · applyLifecycle · plan_hash · retained · residuals · stop · start · delete

概览

Railshot 在已注册的 AWS、GCP 集群或已连接的 OpenStack 本地环境中运行通过检查的应用。在本机做好的应用,只需从网页界面,或从通过 MCP 接入的 Codex、ChatGPT、Claude 提交一次,无论目标是已注册的 AWS 或 GCP 环境,还是已接入的 OpenStack 本地机房环境,都会部署在同样的 K3s 配置之上。Dockerfile 和部署清单依据规则生成,仅在需要时由 AI 补充。构建或启动检查失败时,AI 只在允许的文件范围内修改,是否进入下一步仍由同样的检查重新判定。通过检查的镜像不经重新构建即被部署,确认公开 HTTPS 响应后才记为成功。部署之后,同一个仪表盘显示历史记录、AI 修改过的文件、指标与日志,并处理更新、停止、恢复和删除。

CI 设计

能否发布由固定的确定性检查决定。检查失败时,AI 在限定大小内读取日志,只在允许的文件范围内修复;只有再次通过同样检查的镜像才会发布,该 digest 不经重新构建即用于部署。

Railshot 中输入文件夹、ZIP 或公开 GitHub URL,并选择云端或本地机房环境的界面 放大查看
项目输入与环境选择 · 公开 README(2026.10.05 演示资料)

模型 · 按提供商

  • OpenAI
  • Anthropic
来源