Skip to content

feat(roadmap): Add a loopback gateway broker to a step - #6157

Merged
dan-petty merged 8 commits into
mainfrom
feat/3820-a-loopback-gateway-broker-in-the
Nov 18, 2026
Merged

dan-petty merged 8 commits into
mainfrom
feat/3820-a-loopback-gateway-broker-in-the

Conversation

@devops-cli-service

@devops-cli-service devops-cli-service Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

The shell of an implement step cannot reach the two model endpoints of the gateway, so #3820 gives it a loopback broker inside the job process. A key in the shell would undo #2667, because the shell runs as the same user as the job process, and a Caddy sidecar cannot keep it either, since execve sets the dumpable flag again. The job process already holds the key and is not dumpable, so the broker runs there and gives each step a token that dies with the step.

Closes #3820

Change: openspec/changes/archive/2026-11-17-3820-a-loopback-gateway-broker-in-the/

@devops-cli-service devops-cli-service Bot added type/feature Type feature: a new function scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Nov 17, 2026
@devops-cli-service
devops-cli-service Bot force-pushed the feat/3820-a-loopback-gateway-broker-in-the branch 4 times, most recently from 900d34c to f661588 Compare November 17, 2026 12:19
@devops-cli-service

devops-cli-service Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor Author

The steps of the job:

Stopped at fix.

Failed check: Static Analysis. The end of its log:

         \u2713 pass                                    1.65s    
Static Analysis\tStatic Analysis Quality Gate\t2026-11-17T12:53:14.9802972Z  bwrap                       \u2713 pass                                    1m 1s    
Static Analysis\tStatic Analysis Quality Gate\t2026-11-17T12:53:14.9803477Z  kube-linter                 \u2713 pass                                    23s      
Static Analysis\tStatic Analysis Quality Gate\t2026-11-17T12:53:14.9803984Z  k8s                         \u2713 pass                                    1m 11s   
Static Analysis\tStatic Analysis Quality Gate\t2026-11-17T12:53:14.9804482Z  test-tree                   \u2713 pass                                    1m 43s   
Static Analysis\tStatic Analysis Quality Gate\t2026-11-17T12:53:14.9805014Z  startup-imports             \u2713 pass                                    1m 9s    
Static Analysis\tStatic Analysis Quality Gate\t2026-11-17T12:53:14.9805586Z  swallowed-failures          \u2713 pass                                    54s      
Static Analysis\tStatic Analysis Quality Gate\t2026-11-17T12:53:14.9806150Z  domain                      \u2013 skipped: no k8s.domain or               -        
Static Analysis\tStatic Analysis Quality Gate\t2026-11-17T12:53:14.9807158Z                              cloudflare.domain is configured, so the            
Static Analysis\tStatic Analysis Quality Gate\t2026-11-17T12:53:14.9807624Z                              row read no commit                                 
Static Analysis\tStatic Analysis Quality Gate\t2026-11-17T12:53:14.9808438Z  roadmap-stage-eval-commits  \u2713 pass                                    16s      
Static Analysis\tStatic Analysis Quality Gate\t2026-11-17T12:53:14.9808970Z Total Elapsed: 1m 57s (concurrent async execution)
Static Analysis\tStatic Analysis Quality Gate\t2026-11-17T12:53:14.9809214Z 
Static Analysis\tStatic Analysis Quality Gate\t2026-11-17T12:53:15.1358872Z ##[error]Process completed with exit code 1.

Failure class: provider.
Action taken: none.
Action left: retry: run the item again.

Step Status Attempts Tokens in/out Last failing command
group 1 done 2 25230182/109410 pytest on base: tests/roadmap/implement/test_roadmap_implement_broker.py
group 2 done 1 5147183/16058 pytest on base: tests/roadmap/implement/test_roadmap_implement_step.py
group 3 done 1 18911529/69834 pytest on base: tests/roadmap/implement/test_roadmap_implement_job.py
group 4 done 1 13743064/50887 pytest on base: tests/roadmap/implement/test_roadmap_implement_tier_move.py
group 5 done 1 1812773/6968 -
fix done 1 2740430/31190 -
fix stopped 1 0/0 Static Analysis

Reason:

ModelRateLimitError: HTTP 429, model openrouter/deepseek/deepseek-v4.1-flash-1017, body: No deployments available for selected model, Try again in 120 seconds. Passed model

Last message of the agent (a claim that no check verified): none.

The item is Blocked, and the job will not run it. Fix the cause. Then comment implement: retry. The Service clears the stop on its own when a new runner image rolls out, but only if a retry can fix the class of the stop and the limits of roadmap.implement.digest_clears_per_class and roadmap.implement.digest_clears_per_item allow it.

Step Status Attempts Tokens in/out Last failing command
group 1 done 2 25230182/109410 pytest on base: tests/roadmap/implement/test_roadmap_implement_broker.py
group 2 done 1 5147183/16058 pytest on base: tests/roadmap/implement/test_roadmap_implement_step.py
group 3 done 1 18911529/69834 pytest on base: tests/roadmap/implement/test_roadmap_implement_job.py
group 4 done 1 13743064/50887 pytest on base: tests/roadmap/implement/test_roadmap_implement_tier_move.py
group 5 done 1 1812773/6968 -
fix done 1 2740430/31190 -
fix stopped 1 0/0 -
  • scoped check pre-push: passed, 9 s
  • scoped check static: passed, 28 s
  • scoped check tests: passed, 124 s
  • scoped check strength: passed, 0 s
  • scoped check pre-push: passed, 7 s
  • scoped check static: passed, 28 s
  • scoped check tests: passed, 124 s
  • scoped check strength: passed, 0 s
  • scoped check tests: the changed files select more than 30 test modules, so only the changed test modules ran. The required checks of CI run the others
  • group 5: skipped, group 5: kind other
  • fail-to-pass of group 1: fails on the base commit. Tests that fail on the base commit: tests.roadmap.implement.test_roadmap_implement_broker::test_a_request_to_another_path_is_refused, tests.roadmap.implement.test_roadmap_implement_broker::test_a_request_with_another_token_is_refused, tests.roadmap.implement.test_roadmap_implement_broker::test_an_allowed_request_reaches_the_recorded_gateway, tests.roadmap.implement.test_roadmap_implement_broker::test_an_answer_that_is_no_json_counts_no_tokens, tests.roadmap.implement.test_roadmap_implement_broker::test_a_host_that_is_not_loopback_is_refused, tests.roadmap.implement.test_roadmap_implement_broker::test_a_step_with_no_ai_key_gets_no_broker, tests.roadmap.implement.test_roadmap_implement_broker::test_a_json_content_type_reaches_the_recorded_gateway, tests.roadmap.implement.test_roadmap_implement_broker::test_an_embedding_request_reaches_the_recorded_gateway, tests.roadmap.implement.test_roadmap_implement_broker::test_a_method_other_than_post_is_refused, tests.roadmap.implement.test_roadmap_implement_broker::test_the_answer_holds_no_ai_key, tests.roadmap.implement.test_roadmap_implement_broker::test_the_token_stops_working_when_the_step_ends, tests.roadmap.implement.test_roadmap_implement_broker::test_a_gateway_provider_with_no_url_is_refused, tests.roadmap.implement.test_roadmap_implement_broker::test_a_hostname_that_is_not_an_address_is_refused, tests.roadmap.implement.test_roadmap_implement_broker::test_a_provider_that_is_not_the_gateway_gets_no_broker, tests.roadmap.implement.test_roadmap_implement_broker::test_an_answer_without_usage_counts_no_tokens.
  • fail-to-pass of group 2: fails on the base commit. Tests that fail on the base commit: tests.roadmap.implement.test_roadmap_implement_step::test_the_shell_environment_of_a_step_holds_the_broker_and_no_ai_key.
  • fail-to-pass of group 3: fails on the base commit. Tests that fail on the base commit: tests.roadmap.implement.test_roadmap_implement_job::test_apply_implement_gives_a_step_shell_the_broker_variables_and_no_ai_key, tests.roadmap.implement.test_roadmap_implement_job::test_a_stopped_step_still_ends_its_broker.
  • fail-to-pass of group 4: fails on the base commit. Tests that fail on the base commit: tests.roadmap.implement.test_roadmap_implement_tier_move::test_a_shell_call_lands_on_the_tier_of_its_attempt.
  • verify of group 5: uv run devops ci docs exits 0.
\u2139 Quality gate root: /home/devops/.data/agent/worktrees/w-3820
\u2713 All documentation files are up to date.
Bytecode compiled 23340 files in 565ms
Bytecode compiled 23340 files in 597ms
  • verify of group 0: uv run devops ci test tests/roadmap/implement/test_roadmap_implement_broker.py exits 0.
================================================================================================================== test session starts ===================================================================================================================
platform linux -- Python 3.14.10, pytest-9.2.0, pluggy-1.7.0
rootdir: /home/devops/.data/agent/worktrees/w-3820
configfile: pyproject.toml
plugins: xdist-3.8.0, cov-7.1.0, asyncio-1.4.1.post1, hypothesis-6.170.15, time-machine-3.6.0, mock-3.17.0, anyio-4.16.0, syrupy-7.0.2, platformdirs-4.14.5, timeout-2.4.0
asyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function
timeout: 600.0s
timeout method: signal
timeout func_only: False
collected 15 items

tests/roadmap/implement/test_roadmap_implement_broker.py ...............                                                                                                                                                                           [100%]

=================================================================================================================== 15 passed in 3.01s ===================================================================================================================
Bytecode compiled 23340 files in 596ms
Bytecode compiled 23340 files in 583ms
/home/devops/.data/agent/worktrees/w-3820/.venv/lib/python3.14/site-packages/pytest_asyncio/plugin.py:300: PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset.
The event loop scope for asynchronous fixtures will default to the "fixture" caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to "function" scope. Set the default fixture loop scope explicitly in order to avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session"

  warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET))
  • verify of group 0: uv run devops ci test tests/roadmap/implement/test_roadmap_implement_step.py exits 0.
/home/devops/.data/agent/worktrees/w-3820/.venv/lib/python3.14/site-packages/pytest_asyncio/plugin.py:300: PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset.
The event loop scope for asynchronous fixtures will default to the "fixture" caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to "function" scope. Set the default fixture loop scope explicitly in order to avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session"

  warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET))
/home/devops/.data/agent/worktrees/w-3820/.venv/lib/python3.14/site-packages/pytest_asyncio/plugin.py:300: PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset.
The event loop scope for asynchronous fixtures will default to the "fixture" caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to "function" scope. Set the default fixture loop scope explicitly in order to avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session"

  warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET))
/home/devops/.data/agent/worktrees/w-3820/.venv/lib/python3.14/site-packages/pytest_asyncio/plugin.py:300: PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset.
The event loop scope for asynchronous fixtures will default to the "fixture" caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to "function" scope. Set the default fixture loop scope explicitly in order to avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session"

  warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET))
/home/devops/.data/agent/worktrees/w-3820/.venv/lib/python3.14/site-packages/pytest_asyncio/plugin.py:300: PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset.
The event loop scope for asynchronous fixtures will default to the "fixture" caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to "function" scope. Set the default fixture loop scope explicitly in order to avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session"

  warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET))
/home/devops/.data/agent/worktrees/w-3820/.venv/lib/python3.14/site-packages/pytest_asyncio/plugin.py:300: PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset.
The event loop scope for asynchronous fixtures will default to the "fixture" caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to "function" scope. Set the default fixture loop scope explicitly in order to avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session"

  warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET))
  • verify of group 0: uv run devops ci test tests/roadmap/implement/test_roadmap_implement_job.py exits 0.
/home/devops/.data/agent/worktrees/w-3820/.venv/lib/python3.14/site-packages/pytest_asyncio/plugin.py:300: PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset.
The event loop scope for asynchronous fixtures will default to the "fixture" caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to "function" scope. Set the default fixture loop scope explicitly in order to avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session"

  warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET))
/home/devops/.data/agent/worktrees/w-3820/.venv/lib/python3.14/site-packages/pytest_asyncio/plugin.py:300: PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset.
The event loop scope for asynchronous fixtures will default to the "fixture" caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to "function" scope. Set the default fixture loop scope explicitly in order to avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session"

  warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET))
/home/devops/.data/agent/worktrees/w-3820/.venv/lib/python3.14/site-packages/pytest_asyncio/plugin.py:300: PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset.
The event loop scope for asynchronous fixtures will default to the "fixture" caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to "function" scope. Set the default fixture loop scope explicitly in order to avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session"

  warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET))
/home/devops/.data/agent/worktrees/w-3820/.venv/lib/python3.14/site-packages/pytest_asyncio/plugin.py:300: PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset.
The event loop scope for asynchronous fixtures will default to the "fixture" caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to "function" scope. Set the default fixture loop scope explicitly in order to avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session"

  warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET))
/home/devops/.data/agent/worktrees/w-3820/.venv/lib/python3.14/site-packages/pytest_asyncio/plugin.py:300: PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset.
The event loop scope for asynchronous fixtures will default to the "fixture" caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to "function" scope. Set the default fixture loop scope explicitly in order to avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session"

  warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET))
  • verify of group 0: uv run devops ci test tests/roadmap/implement/test_roadmap_implement_tier_move.py exits 0.
================================================================================================================== test session starts ===================================================================================================================
platform linux -- Python 3.14.10, pytest-9.2.0, pluggy-1.7.0
rootdir: /home/devops/.data/agent/worktrees/w-3820
configfile: pyproject.toml
plugins: xdist-3.8.0, cov-7.1.0, asyncio-1.4.1.post1, hypothesis-6.170.15, time-machine-3.6.0, mock-3.17.0, anyio-4.16.0, syrupy-7.0.2, platformdirs-4.14.5, timeout-2.4.0
asyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function
timeout: 600.0s
timeout method: signal
timeout func_only: False
collected 4 items

tests/roadmap/implement/test_roadmap_implement_tier_move.py ....                                                                                                                                                                                   [100%]

=================================================================================================================== 4 passed in 5.42s ====================================================================================================================
Bytecode compiled 23340 files in 531ms
Bytecode compiled 23340 files in 613ms
/home/devops/.data/agent/worktrees/w-3820/.venv/lib/python3.14/site-packages/pytest_asyncio/plugin.py:300: PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset.
The event loop scope for asynchronous fixtures will default to the "fixture" caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to "function" scope. Set the default fixture loop scope explicitly in order to avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session"

  warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET))
  • verify of group 0: uv run devops ci docs exits 0.
\u2139 Quality gate root: /home/devops/.data/agent/worktrees/w-3820
\u2713 All documentation files are up to date.
Bytecode compiled 23340 files in 576ms
Bytecode compiled 23340 files in 596ms

@devops-cli-service
devops-cli-service Bot marked this pull request as ready for review November 17, 2026 13:55
@dan-petty
dan-petty marked this pull request as draft November 17, 2026 16:59
@devops-cli-service

Copy link
Copy Markdown
Contributor Author

The steps of the job:

Stopped at rebase.

Failure class: conflict.
Action taken: repair, 1 fix round(s).
Action left: wait: wait for a person.

Step Status Attempts Tokens in/out Last failing command
rebase stopped 2 0/0 -

Reason:

The rebase onto origin/main stopped.
`git rebase origin/main` failed: Rebasing (1/8) Rebasing (2/8) error: could not apply 787cb6a56... feat(roadmap): Give the shell of a step the broker address and its token (#3820) hint: Resolve all conflicts manually, mark them as resolved with hint: "git add/rm <conflicted_files>", then 
Conflicted files:
- src/devops_cli/roadmap/implement/implement_step.py
The abort of the rebase failed too.
fatal: no rebase in progress

Last message of the agent (a claim that no check verified): none.

The item is Blocked, and the job will not run it. Fix the cause. Then comment implement: retry. The Service clears the stop on its own when a new runner image rolls out, but only if a retry can fix the class of the stop and the limits of roadmap.implement.digest_clears_per_class and roadmap.implement.digest_clears_per_item allow it.

@dan-petty
dan-petty force-pushed the feat/3820-a-loopback-gateway-broker-in-the branch from bef0dd3 to 6eee14a Compare November 17, 2026 17:05
@dan-petty
dan-petty marked this pull request as ready for review November 17, 2026 17:14
@dan-petty
dan-petty merged commit d15dfcf into main Nov 18, 2026
24 checks passed
@dan-petty
dan-petty deleted the feat/3820-a-loopback-gateway-broker-in-the branch November 18, 2026 04:44
dan-petty-release Bot added a commit that referenced this pull request Nov 18, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.175.0](v0.174.7...v0.175.0)
(2026-11-18)


### Features

* **roadmap:** Add a loopback gateway broker to a step
([#6157](#6157))
([d15dfcf](d15dfcf))
* **roadmap:** Add RAG index rows to repository onboarding
([#6041](#6041))
([59b424a](59b424a))
* **roadmap:** Seam the serve start and the roadmap table
([#6150](#6150))
([de55e8b](de55e8b))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them type/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(roadmap): a loopback gateway broker in the job process

1 participant