Skip to main content
ttr edufest gives platform admins who hold the EduFest organiser grant one terminal surface for the Hall (booth showcase), voting, spectator screens and recovery on event day. Every command goes through the ieeai-admin Worker, which re-checks the operator’s platform level and organiser grant and signs the request for the Hall. The CLI never holds the Hall bridge secret and never sends the Tuturuuu platform session to EduFest origins. Run ttr edufest help for the full command list, or ttr edufest commands --json for each command’s Hall action, change class and availability.

Sign in

login opens the approved admin origin in the browser, where an organiser approves a loopback PKCE request. Approve it only when the page shows the same code the terminal printed (for example A1B2-C3D4). If the browser is not signed in to the admin yet, it signs in first and then shows a page asking you to run login again; stop the waiting command and rerun it, and the new request goes straight to the approval page. ieeai-admin returns an opaque token whose expiry is fixed when it is issued: the remaining access window of the organiser’s admin browser session, at most 15 minutes. Use does not extend it; run login again, which skips sign-in while the browser session is active but always asks for a new approval. ieeai-admin re-checks admin rights on every change and at least every 60 seconds on reads, and revokes the token on logout, browser sign-out or loss of the admin role. The token is stored per origin in the EduFest state directory next to the CLI config (TTR_EDUFEST_HOME overrides it) with mode 0600. A missing, expired or revoked session exits with code 1 and asks for login. A signed-in account without the organiser grant is refused the same way. Session files must be owned by the current user with mode 0600. State directories must be owner-controlled and free of symbolic links. The CLI connects directly to the approved admin origin for bearer and PKCE requests. Online commands require Bun 1.4.3 or later for the per-request proxy opt-out. If the admin cannot confirm revocation, logout exits 1 and keeps a pending record. Use logout --retry for that target to resend the revocation. logout --force-local discards the local token without confirming server revocation. Targets: The production origin is fixed. Local and rehearsal selections cannot use it.

Monitor

status reads, in parallel:
  • Hall health: shards, rooms, the 15-minute error rate and the Worker version.
  • Switches.
  • The revoke lock.
  • The player mix.
  • The Audience Choice window.
  • The vote monitor.
It lists anomalies:
  • unreadable services;
  • unreachable shards;
  • an error rate above 2%;
  • a closed Hall;
  • a window that is open but not accepting ballots, or past its close time;
  • a Worker version change;
  • vote rates above 600 per minute, or counted votes falling between reads.
A critical anomaly makes the one-shot form exit 4, so monitors can alert on it. --watch accepts intervals through 600 seconds and never polls faster than every 30 seconds. It backs off after read failures and honours Retry-After. If the admin requests a delay longer than ten minutes, the watch stops. One round costs six CLI reads, including one vote-monitor call. The CLI vote-monitor allowance is separate from browser monitoring. The watch stops with exit code 1 when the session ends. Run login and restart the watch to continue.

Change safely

Every change:
  • needs --reason "<why>" (8–200 characters). ieeai-admin records it in its audit, and passes it to the Hall audit for the operations actions;
  • carries a UUID request id. After a network or server failure the CLI prints the same command with --request-id <id>. Retrying it applies the change at most once, and reusing an id with different parameters is refused;
  • supports --dry-run, which prints the exact action, parameters, reason and request id and sends nothing;
  • is appended to the operator’s local journal (journal.jsonl), including dry runs and failures.
Destructive changes need a typed confirmation, or --yes for scripts. Without a terminal and without --yes they are refused. Production changes also need --confirm-production. Flags are strict: unknown or repeated flags are refused, and boolean flags never take a value, so --yes b07 keeps b07 as the booth.

Commands

Voting-window changes read the current revision unless --revision is given. The CLI saves the exact request before sending the change. A retry with the same ID reuses the saved payload, including the original revision and the resolved end time. The server refuses a stale revision for a new request. While the scoring lock is on, score-changing actions return approval_required. Request them through changes request; a second organiser then runs changes approve. The CLI sends a mutation only when a valid whoami.actions list advertises that mutation. For voting-window changes, writable relays advertise voting-window.write. A missing or invalid list blocks mutations. After a typed confirmation, the CLI verifies the same session and checks the capability again before sending the change. Actions that mint credentials or access (creating or rotating a screen key and creating entry codes) are relayed only for the browser admin, never for CLI tokens, so a leaked CLI token cannot be turned into longer-lived access.

Availability

Some commands need Hall or relay actions that ship independently of the CLI. whoami returns the list of actions the deployment relays. A command whose action is not on that list exits 3 without sending anything, and runs as soon as the deployment relays it. In ttr edufest help:
  • relay pending means the Hall implements the action and ieeai-admin does not relay it yet;
  • server pending means the Hall action itself is not deployed yet.

Read-only deployments

The event-day EduFest bearer is read-only. It serves Hall health, ops state, period health, player mix, scoring-lock status, settings, vote status and tally, voting-window status, and vote monitoring. Use the EduFest admin on ieeai.net in the browser to make changes. The CLI supports --dry-run previews and returns exit code 3 when the session omits a requested change or the server responds with cli_read_only.

Exit codes

Tests

The commands are covered under packages/sdk/src/cli/edufest/:
  • units.test.ts: argument, guard, network, limit, anomaly and error mapping.
  • login.test.ts: the loopback PKCE exchange, organiser refusal and forged state.
  • run.test.ts: journeys, including authorization refusals for no session, expired, revoked and non-organiser sessions.
  • drill.e2e.test.ts: a full incident drill through the ttr entry point in a child process.
  • proxy.e2e.test.ts: Bun sends bearer and sign-in requests directly with ambient proxy variables set.
All of them run against test-fake-admin.ts, a loopback contract fake of the ieeai-admin operations API. It enforces bearer auth, organiser-only access, strict envelopes, idempotency and window revisions. Rehearsal drills against a local Hall use --target local --base-url <local ieeai-admin>. Never point tests at production.