Repository navigation
feat(rpf): let the runtime run declared configured gates - #25
Merged
Merged
Conversation
The bundled runtime classified every RPF_CONFIGURED_GATE as not-run-unavailable, while convergence requires UNAVAILABLE_CHECKS=none. Any repository that declared a gate could therefore never converge, even when the controller ran the gate with host tools. run_configured_gate() now runs one exact, non-prohibited declared gate without a shell, in a worktree whose tracked files are the committed GATE_HEAD_SHA carrying the approved fence bytes, with a toolchain-only environment. It returns a process-sealed GateReceipt. capture_authority() accepts a passed/failed gate row only with the matching receipt; every other gate stays not-run-unavailable or not-run-prohibited. Also fixes the leftover "This repository has no external provider trust root" wording to name the bundled RPF runtime. Co-Authored-By: Claude Opus 5.5 <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.
Problem
The rpf runtime hard-coded every
RPF_CONFIGURED_GATEasnot-run-unavailable, and convergence requiresUNAVAILABLE_CHECKS=none. A repository that declared a gate could never reachconverged, even when the controller had run the gate. Real runs show this: gates ran, and status stayed blocked or limit-reached.Change
run_configured_gate()runs one exact, non-prohibited declared gate:-c/-e), or env-dump executables.GATE_HEAD_SHA. That commit must carry the approved fence bytes, and the fence base must be one of its ancestors.PATH,HOME,TMPDIR,USER,LOGNAMEandDEVELOPER_DIR, plus a fixed locale andCI=1.failed.GateReceipt.capture_authority(gate_receipts=...)acceptspassed/failedonly with the exact receipt for that gate, command and fence. The receipt is threaded throughpublish,create_if_absentandcaptured_authority_valid.Tests
python3 -m unittest discover -s testsinagents/rpf: 81 pass (74 existing + 7 new). The new tests cover:env,bash -candpython3 -c🤖 Generated with Claude Code