oficina / equipo Public

Clone
git clone https://amadan.net/oficina/equipo

Plain git — no account needed to clone.

Download

Download this file

Brief: Paul's typed answers never reach terminalAnswer

Branch tty-answers from main a2774dc. OFFLINE ONLY: Paul's run (run-4024280761) is live right now on his accounts; do not launch providers, do not touch ~/.local/share/equipo*, read-only evidence ok.

Symptom across every real run: Paul types Allow once + Return at the guide's prompt (printed by internal/directlive/terminal.go via /dev/tty), the line echoes in his terminal, and nothing is ever read: no person answer artifact, the control step times out (run-4024280761 claude-Engineering: controls: context deadline exceeded, only an answered_by: automatic answer-8 file exists; run-582068017 Codex controls timed out after his Allow once; run 3's "recorded" message was printed before reading, so no person answer has EVER been read). Astra's previous pty tests fed terminalAnswer directly, not the real process chain.

Real chain: Paul's interactive bash on docs-t1 (ssh or local terminal) → scripts/try-equipo.sh (sh) → go run ./cmd/equipo-try → wizard reads earlier prompts from stdin via bufio (internal/tryequipo/state.go) → spawns go test -timeout=0 -tags direct_live ./internal/runner/provider -run ^TestDirectLive... (internal/tryequipo/command.go childCommand, process group / Setpgid / Ctty settings) → test binary → directlive driver → provider launches in bwrap (--new-session?) → terminalAnswer opens /dev/tty O_NONBLOCK, TCIFLUSH, prints, polls, reads.

Find the root cause by reproducing the WHOLE chain under a real pty (e.g. python pty.fork or script -qfc) with a fake answer request (no provider: stub the driver or use an existing fake-CLI harness), typing as a human would AFTER the prompt appears. Candidates to test, not assume: another process in the chain reading the tty (wizard bufio on stdin, go test stdin handling, a provider or bwrap child inheriting the tty), the reader's process not in the foreground process group (SIGTTIN/EIO), TCIFLUSH discarding the line (timing), O_NONBLOCK + poll on a different open file description, canonical-mode differences, go test buffering. Fix it so the real chain delivers the line, add a regression test that runs the real chain (wizard → go test → reader) under a pty, and make the guide print a short confirmation only AFTER an answer is actually read and accepted. Targeted tests, ONE full make -k ci (rerun at most twice). Commit subject < 80, body Co-Authored-By: Astra <noreply@openai.com>, push. CONTROLLER-REPORT-tty-answers.md. Scratch removed; nothing running; no copy-review server. Print a five-line summary.