Repository navigation
Remove the in-tree challenge runner; it ships with the private verifier - #53
Merged
Merged
Conversation
The challenge-runner/ directory (runner, sandbox, observers, challenger, pilot kit and their tests) is deleted. The backend never imported it: the runner client starts `CHALLENGE_RUNNER_PYTHON -m challenge_runner` as a subprocess and speaks the JSON protocol in app/schemas/challenge.py. - challenge_runner_client no longer points PYTHONPATH at the deleted directory. The runner must be installed into CHALLENGE_RUNNER_PYTHON, or CHALLENGE_RUNNER_PATH (new, default empty) names a checkout that holds it. Without the runner every call raises RunnerInvocationError, as before for any runner failure. - CI drops the "Challenge runner tests" job together with the code it tested. Backend tests are unchanged apart from three new client tests. CHALLENGE_ENGINE_ENABLED defaults to false, and nothing else reads the deleted directory. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this does
Deletes
challenge-runner/(51 files: the runner, sandbox, observers, challenger, the PR #32 pilot kit, and their tests). That code belongs to the private verifier and should not live in this repository.The backend never imported it.
backend/app/services/challenge_runner_client.pystartsCHALLENGE_RUNNER_PYTHON -m challenge_runneras a subprocess and exchanges the JSON protocol defined inbackend/app/schemas/challenge.py. The only link to the directory was a hard-codedPYTHONPATH.challenge_runner_client.py: the hard-codedPYTHONPATHis gone. The runner must be installed intoCHALLENGE_RUNNER_PYTHON, or the newCHALLENGE_RUNNER_PATHsetting (default empty) names a checkout that contains it. The caller's ownPYTHONPATHis still not inherited.config.py: addsCHALLENGE_RUNNER_PATH..github/workflows/ci.yml: removes the "Challenge runner tests" job, together with the code it tested.backend/tests/test_challenge_orchestrator_client.py: three new tests (no inheritedPYTHONPATH, the configured path is used, a missing runner fails closed).What depends on the deleted directory
CHALLENGE_ENGINE_ENABLEDis true (default false;config.pysays it is off in production until the runner host is approved).subprocess.run.deploy/assurance/Dockerfile.runnerassurancepackage.charts/,docker-compose.yml,harness/,scripts/Not in this PR
backend/app/services/challenge_validity.pyand its test stay.challenge_orchestrator.pyimports the module at load time andapp.mainloads the orchestrator throughroutes/challenges.py, so deleting it would stop the backend from starting. Moving it behind the private verifier needs its own change.backend/app/schemas/challenge.pyanddocs/cyber/runner-protocol.schema.jsonstay: they are the backend's side of the protocol and a backend test pins them.docs/cyber/S0_INTERFACES.mdis unchanged and still nameschallenge-runner/paths. It is coordinator-owned, so I left it.Before deploying a commit that includes this
Confirm
CHALLENGE_ENGINE_ENABLEDis unset or false on the host. If it is true, install the private verifier intoCHALLENGE_RUNNER_PYTHON(or setCHALLENGE_RUNNER_PATH) first; otherwise challenge jobs fail withRunnerInvocationError. No deploy plan indeploy/turns the flag on.Anything that drives the engine locally through this client needs the same setting.
Testing
python -m pytestinbackend/: 2088 passed (2085 before the three new tests).CHALLENGE_RUNNER_PATHpointing at a runner checkout,run_runnerreached the runner and parsed its result; with it empty and no runner installed, it raisedRunnerInvocationError.🤖 Generated with Claude Code