Skip to content

feat(cli): tri railway -- 3-seed Gate-2 ONE SHOT for trios-trainer-igla#544

Open
gHashTag wants to merge 1 commit intomainfrom
feat/tri-railway-543
Open

feat(cli): tri railway -- 3-seed Gate-2 ONE SHOT for trios-trainer-igla#544
gHashTag wants to merge 1 commit intomainfrom
feat/tri-railway-543

Conversation

@gHashTag
Copy link
Copy Markdown
Owner

Closes #543

Summary

Adds the tri railway subcommand: a R5-honest ONE SHOT for launching the trios-trainer-igla Gate-2 chase on Railway.

Spec

  • specs/cli/railway.t27 (sha256 eaba6daa..81816) -- 12 tests, 6 invariants, 2 benches, ASCII-only.

Backend

  • cli/tri/src/railway.rs (sha256 e84e9a0b..5074).
  • Subcommands: login | link | up [--confirm] | status | logs | gate2.
  • up --confirm prints the exact GraphQL bodies that WOULD be POSTed to backboard.railway.com/graphql/v2 and exits 2 (planned-but-not-executed). Without --confirm it exits 0 (dry-run). The operator runs the actual mutation -- tri has no HTTP client yet.
  • 3-seed Gate-2 plan: seeds 43,44,45; image ghcr.io/ghashtag/trios-trainer-igla:latest; target BPB<1.85; steps 30000.
  • Embargo guard reads assertions/embargo.txt before any plan emit.

Tests

cargo test -p tri railway:: -> 19 passed, 0 failed.

Constitutional anchors

  • phi^2 + phi^-2 = 3 (Trinity invariant)
  • Stop rule: 3 seeds with BPB<1.85 AND step>=4000 OR deadline 2026-04-30 23:59 UTC
  • R7 triplet: BPB=<v> @ step=<N> seed=<S> sha=<7c> jsonl_row=<L> gate_status=<g>

Workspace

  • Added cli/tri to root workspace.members.
  • Enabled clap env feature for RAILWAY_TOKEN / GITHUB_SHA env wiring.

Adds spec specs/cli/railway.t27 (12 tests, 6 invariants, 2 benches) and the
Rust backend cli/tri/src/railway.rs with subcommands login/link/up/status/
logs/gate2. The 'up --confirm' command prints the exact GraphQL bodies that
WOULD be POSTed to backboard.railway.com/graphql/v2 and exits with code 2 to
signal 'planned but not executed' (R5-honest: tri has no HTTP client yet,
operator runs the actual mutation).

Gate-2 stop rule: 3 seeds (43,44,45) with BPB<1.85 AND step>=4000, deadline
2026-04-30 23:59 UTC. Anchor: phi^2 + phi^-2 = 3.

Workspace member added (cli/tri); clap env feature enabled.
19 tests pass: cargo test -p tri railway::

Closes #543
@github-actions
Copy link
Copy Markdown

📓 NotebookLM Notebook linked to this PR

This notebook contains session context, decisions, and artifacts for this work.

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