Repository navigation
fix(journey): compare the connect path's parameters, not the whole string - #2334
Merged
Merged
Conversation
…ring #2293 added from=card and the card's adapter to the BYO connect path. The journey's approve step matched the path exactly, so every run since that deploy failed at approve and never reached the byo step. The product was right; the check was stale. approve now requires /v2/agents/byo with this pod, this seat's name and from=card, plus the card's adapter when the path carries one. Extra parameters are allowed. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MCgCsf3UJRCPRbnNKxsECe
lilyshen0722
commented
Oct 19, 2026
lilyshen0722
left a comment
Contributor
Author
There was a problem hiding this comment.
Gate review @ 40da03a: PASS, with two non-blocking notes.
What I checked
- The diff is one file,
k8s/helm/commonly/files/stranger-journey.py:approvenow parsesconnectPathinstead of comparing it as a string. - The path it checks is built at
backend/services/approvalActionService.ts:946on main as/v2/agents/byo?pod=…&name=…&from=cardplus&adapter=…when the card has one. Against that, the new check accepts every path the backend can produce today and rejects the old path that lacksfrom. - I ran my own offline check:
Journey.approvewith a stubbedcall, both versions, 15 paths.- This head: the 10 cases the PR describes plus an encoded name, all as expected.
- main: fails today's live path, the no-adapter path and the extra-parameter path, and passes the old path with no
from. That is the false-red streak.
run_stepemits the step's return value as fields, andadapterdoesn't collide withstep,ok,ms,budget_msorerror.- The commit author is Lily (noreply). The head matches the branch (
ls-remote). CI is green at this head, including Test & Coverage and the kind smoke.
Notes (non-blocking; the check is still stricter than the backend needs today)
- The docstring and the code disagree on adapter. The docstring says the path carries "the card's adapter, if it names one"; the code only compares adapter when the path already has one. So a path that drops the card's adapter passes (probe: card
adapter: claude, path withoutadapter→ pass). The backend always appends it when the card names one, soif card_adapter or 'adapter' in query:would match the docstring and the product. - The check no longer requires a relative path.
urlsplittakeshttps://other.example/v2/agents/byo?…and//other.example/v2/agents/byo?…to path/v2/agents/byo, and both pass; the exact compare failed both. Addingnot parts.scheme and not parts.netlocrestores that. Also,dict(parse_qsl(…))keeps the last of a repeated key, while the BYO page'sURLSearchParams.getreads the first. Neither can happen with today's constant template, so this is coverage, not a live fault.
Either note can go in a follow-up; a new commit here needs a new gate at its head.
GATE: PASS
This was referenced Oct 19, 2026
Merged
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.
The stranger journey has failed every run since 2026-10-17 01:05Z: 11 in a row, scheduled and post-deploy, all at
approve. The product was right and the check was stale.Why. #2293 made the BYO connect path carry
from=cardand the card's adapter (/v2/agents/byo?pod=…&name=…&from=card&adapter=claude).approvecompared the path to/v2/agents/byo?pod=…&name=…as an exact string, so it failed. Because the run stops at the first failed step,byohasn't run since then either.Change.
approveparses the path and requires:/v2/agents/byo;pod= this pod;name= this seat;from=card;adapter, it must equal the card'sparams.adapter.Extra parameters are allowed. The step now also logs the adapter.
Checks.
approveagainst 9 paths, using a stub API.from), the wrong pod, name, adapter or page, and an empty path.main's version: 4 mismatches. It fails the three valid paths and passes the old one.byoincluded (approve 1.06 s,adapter: claude), and cleanup returned 200/200.The script reaches the cluster only through the chart, so the CronJob picks this up on the next Deploy Dev.
🤖 Generated with Claude Code
https://claude.ai/code/session_01MCgCsf3UJRCPRbnNKxsECe