tools/scenario/control.py sends a command before it can record it, so an unrecordable command still reaches the game
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 74/100
Research direction
Read tools/scenario/control.py, especially the send and record steps around lines 75–79, then add a test with a command-counting fake endpoint and an unwritable work root. Confirm the command is not sent when its record cannot be written, and that a successful record is followed by the reply record. The issue says the Go harness from #2875 may also close this issue if it lands first.
Written by the indexing model from the issue text.
Description
tools/scenario/control.py sends a command to the game before it can write its record, so a command whose record cannot be written reaches the game and leaves no line in control-log.jsonl, and the caller sees only a traceback.
Evidence at eccd986d622140f317a89cb7122eea12a007960a
tools/scenario/control.py:75:reply = call(port, command)sends the command and waits for the reply.tools/scenario/control.py:78-79: only thenwork_root.ensure_dir(log.parent, ...)andwith log.open("a") as f:write the record.- The module docstring (
tools/scenario/control.py:8) says "Every command and reply is printed and appended". - Seen in #2875 M1 on 2026-11-25: run as a user that could not write the run's work root,
control.py --port <p> '{"op":"fire","action":"invite_create",...}'ended inPermissionError ... README.mdfromwork_root.ensure_dir, yet the game's log shows[NEVR.INVITE] request sent op=create expires_s=10800andanswer op=create status=200 ... result=okat that moment, and the invite service made a match. The next create, sent from a run that could write, was answered503.
Not shown
- Whether
run_scenario.pyhas the same order (itsControl.callwrites no record at all; the run'sresult.jsonis written at the end).
Falsifier
A run of control.py whose record cannot be written that sends nothing to the endpoint (no matching line in the game's log).
Work
- A test first: a fake endpoint that counts the commands it receives, and a work root the tool cannot write; the test fails while the tool sends.
- Write the command's record (or check the record can be written) before
call, and the reply after; a failure to record ends the run before the command is sent. - The Go harness of #2875 replaces this tool (ADR 0052 decision 3 records before sending); this issue closes with that port or with step 2, whichever lands first.
- Dominant language
- C++
- Stars
- 3
- Forks
- 5
- Avg merge
- 4h 37m
- Merged PRs (30d)
- 524
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from EchoTools/nevr-runtime
-
bug
Difficulty 1/5 1-3 hours Newbie friendliness 82/100
EchoTools/nevr-runtime#2912 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
EchoTools/nevr-runtime#2910 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
EchoTools/nevr-runtime#2909 ·
Maintainers usually reply within 1 day
-
build: the generated defaults header is written 0600, so a seat outside nevr-build cannot read itOpenbacklog
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
EchoTools/nevr-runtime#2901 · 1 comment ·
Maintainers usually reply within 1 day
-
backlog
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
EchoTools/nevr-runtime#2897 ·
Maintainers usually reply within 1 day
All issues in EchoTools/nevr-runtime
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 1 day
-
category:port-update
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 2 days
-
bug-unconfirmed
Difficulty 1/5 Under an hour Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
libc++
Difficulty 1/5 Under an hour Newbie friendliness 88/100
llvm/llvm-project#246508 ·
Maintainers usually reply within 1 day
-
good first issue help wanted phase:0 priority:P3 type:task
Difficulty 2/5 1-3 hours Newbie friendliness 67/100