RAILSHOT.

Railshot

Agent-First Deployment System

An agent-first deployment system that takes an app built on your own machine to AWS or GCP clouds or on premises.

An age that lays railroads across the wilderness is always rough, enterprising and a little dangerous.

2026.09.28 — 2026.10.04 · Completed

Team project · my part: CI planning and implementation, CSP clusters and Ansible interface, operations, team code review and integration

  • WebImplemented · hackathon
  • MCP serverImplemented · remote · local

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

A handoff checked independently, two recoveries reconciled

The team turned the automatic transcripts of its Slack huddles into a decision ledger in docs/meetings and split the ownership there.

Automatic transcripts of Slack huddles become decisions and ownership in docs/meetings; five owners on feature branches and Codex sessions that read AGENT.md open pull requests. A pull request passes the required Railshot CI gate, joins the integration branch as a merge commit and reaches main from dev. A conflict goes through a temporary codex/integrate-* branch and the same gate, and each merge’s source SHAs and checks are kept in docs/integration. (enlarge)
Full legend

How to read · one grammar for every case

  • Columns are who acted; top to bottom is time
  • Dashed: not a recorded execution (a written rule, advice without authority, an unverified boundary)
  • Solid: a recorded handoff or next step
  • Heavy lapis ↩: a finding that sent work back
  • Rectangle: an action
  • Rounded: an observed state or finding
  • Folded corner: an artifact or evidence
  • Hatched column: parts of the product under development (not the agents used to build it)

Case 1 / 2 · Observability work was handed to a separate Codex session and checked separately with failure fixtures

2026.10.03

Observability work was handed to a separate Codex session and checked separately with failure fixtures

  1. Work sessionOriginal session

    ActionHand over one worktree and stop editing there

    • handoffWorktree · known failures→ Handed-over defects first: fixed five-gate assumption · Q/L4 not-run evidence · draft regression (Codex implementation session)
  2. Work sessionOriginal session

    ActionContract: observed error ≠ model hypothesis, existing deploy path only

    • handoffDone criteria→ One JSON error · evidence contract + Python · Node emitters (Codex implementation session)
  3. Coding agentCodex implementation session

    ActionHanded-over defects first: fixed five-gate assumption · Q/L4 not-run evidence · draft regression

    • handoff→ One JSON error · evidence contract + Python · Node emitters (Codex implementation session)
  4. Coding agentCodex implementation session

    ActionOne JSON error · evidence contract + Python · Node emitters

    • not a recorded executionEvidence only, no write access→ Jev only classifies, no authority to fix (CI diagnosis · Jev)
    • handoffPR · release evidence returned→ PR #131 · pinned release evidence (Artifacts)
  5. Under developmentCI diagnosis · Jev

    Observation · findingJev only classifies, no authority to fix

  6. ArtifactsArtifacts

    ArtifactPR #131 · pinned release evidence

    • handoffChecked outside the implementation session→ Independent check: failure fixtures · diagnosis lookup · ownership (Original session)
  7. Work sessionOriginal session

    ActionIndependent check: failure fixtures · diagnosis lookup · ownership

    • handoffKnown failures fed in→ L1: .env exclusion missing from .dockerignore · L2: syntax error (CI diagnosis · Jev)
  8. Under developmentCI diagnosis · Jev

    Observation · findingL1: .env exclusion missing from .dockerignore · L2: syntax error

  9. Work sessionOriginal session

    ActionSyntax error fixed by the check script itself · resubmitted

    • handoffSame service path→ CI → image → GitOps → Argo → Pod · HTTPS confirmed (Artifacts)
  10. ArtifactsArtifacts

    ArtifactCI → image → GitOps → Argo → Pod · HTTPS confirmed

Context
The work fixed CI failures whose causes were hidden (an assumed fixed five stages, a build fingerprint that masked the cause, missing per-check NOT_RUN evidence for disabled Q/L4 and more).
Outcome
The diagnosis records exposed the cause of both failures, and the checking side fixed the syntax error itself and confirmed the same path again through Pod and HTTPS.
Limit
Not a success case for automatic repair (the automatic-repair attempt cap was 0 at this point).
Sources and remaining limits
  • The handoff and the independent check are internal work records and are not linked. Other sessions kept ownership of integration, provider and deployment work, and the handoff said not to use the default checkout that still held the user’s changes.
  • The core of the contract was keeping the raw error apart from the model hypothesis, and retry advice apart from the actual retry decision, in separate fields.

2026.10.04

What looked like a GitHub outage was reproduced and split, and two concurrent recovery changes were reconciled into one

  1. Under developmentAPI · GitHub calls

    Observation · findingRemote commit present · 0 CI runs · liveness restart

    • handoffNot assumed to be a GitHub outage→ Reproduced with mock GitHub: branch update succeeds, local callback fails (Recovery session)
  2. Work sessionRecovery session

    ActionReproduced with mock GitHub: branch update succeeds, local callback fails

    • handoff→ Check source registration · local checkpoint · dispatch separately (Recovery session)
  3. Work sessionRecovery session

    ActionCheck source registration · local checkpoint · dispatch separately

    • handoff→ #189: store the accepted run first · look up the existing run if the response is lost (Recovery session)
  4. ArtifactsArtifacts

    ArtifactConcurrent changes: #185 termination · #186 source checkpoint

  5. Work sessionRecovery session

    Action#189: store the accepted run first · look up the existing run if the response is lost

    • handoffThree regression cases→ Regressions: exit after accept · checkpoint error · lost response (Artifacts)
  6. ArtifactsArtifacts

    ArtifactRegressions: exit after accept · checkpoint error · lost response

    • handoff→ PR #189 merged · source hash · image · Argo · health confirmed (Artifacts)
  7. Work sessionAnother session

    ActionCancellation · concurrency scope owned by this session

    • handoffPrevents a duplicate re-run→ Platform readback ≠ customer result · not re-run (Artifacts)
  8. ArtifactsArtifacts

    ArtifactPR #189 merged · source hash · image · Argo · health confirmed

    • not a recorded execution→ Platform readback ≠ customer result · not re-run (Artifacts)
  9. ArtifactsArtifacts

    Rule · unverifiedPlatform readback ≠ customer result · not re-run

Context
The source commit was on the remote, yet CI never started and the API was restarted by liveness.
Outcome
The accepted source and run are stored before observation stops, and if the response is lost the run already started is looked up instead of dispatching twice.
Limit
With no original exception text, the local interruption stays a grounded explanation only.
Sources and remaining limits
  • Reproduction used mocks only, with no real writes or retries.
  • The two recovery records and the deployment readback are internal work records; customer and operational identifiers are not included.