Repository navigation
Open
Labels
agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.Context and acceptance criteria are complete enough for an agent to take this unattended.area: ui-serverHono app factory: turn coordinator, auth, session catalog, routes, cron.Hono app factory: turn coordinator, auth, session catalog, routes, cron.priority: p2Wanted, not scheduled. Pulled in when a milestone has room.Wanted, not scheduled. Pulled in when a milestone has room.type: testCoverage, harness or proof work with no behaviour change.Coverage, harness or proof work with no behaviour change.
Description
Context
packages/ui-server/tests/session-taint.test.ts:97 asserts that a clean session makes no curl calls (G6_CLEAN_SESSION_EGRESS_UNCHANGED). It failed in hosted CI on a candidate that cannot reach it.
Observed:
- Run: ready-candidate proof for PR CONTRACT: feat(ui-react): keep each send as an outgoing snapshot and show it as a transcript bubble (#3155) #3758 (ui-react/ui-kit draft snapshots), run 42584405311.
- Job:
unit (4)(129051370994). - Head:
233e77641. - Result: expected 0 curl calls, received 22.
Why the candidate cannot reach it: #3758 changes no ui-server code. This test uses its own host and backend fixture. It passed locally on the same branch, 1 of 1 runs.
Lead, not established: 22 calls in a "clean" session suggest that the curl counter is shared with, or not reset from, other work in the same unit (4) process.
Scope
Attribute the failure from the job log, and from the test's control and fixture setup. Fix the cause.
Out of scope
- Retrying.
- Raising counts.
- Skipping the case.
- Weakening the zero-egress assertion.
Acceptance criteria
- The source of the 22 calls is named from evidence.
- A failing-first receipt reproduces it, for example by running the file in the same process order as
unit (4). - The fix keeps the assertion at 0. A mutation that reintroduces the cause fails it.
Verification
bun run test packages/ui-server/tests/session-taint.test.ts
bun run check:pr --base origin/mainThese checks are offline and keyless.
Contract impact
None.
Metadata
Metadata
Assignees
Labels
agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.Context and acceptance criteria are complete enough for an agent to take this unattended.area: ui-serverHono app factory: turn coordinator, auth, session catalog, routes, cron.Hono app factory: turn coordinator, auth, session catalog, routes, cron.priority: p2Wanted, not scheduled. Pulled in when a milestone has room.Wanted, not scheduled. Pulled in when a milestone has room.type: testCoverage, harness or proof work with no behaviour change.Coverage, harness or proof work with no behaviour change.
Activity
schlessera commentedon Nov 9, 2026
Moved off 0.45.0 (maintainer ruling, 2026-11-09). A hosted-only flake in a test the failing candidate could not reach does not block 0.45.0 work. It stays open as a test-reliability issue.
schlessera commentedon Nov 10, 2026
Test-health audit (batch
e3855-ui-server-03, epic #3855) — attribution correction, not a fix.The 22 is not a call count.
control.curlis the worker curl's exit code (const curl = await child.exited,packages/ui-server/tests/session-taint.test.ts:64at0129244ad). The command runscurl --silent --fail, and curl exits 22 when--failsees an HTTP response status of 400 or more. So in run 42584405311 / job 129051370994 the clean session's single curl did reach the turn proxy, and something answered it with an HTTP error: the proxy refusing the connection, or an upstream failure it reported (for example a 5xx/504 while the loopback origin was slow on a loaded shard). The "shared or unreset counter" lead does not apply.What the batch changes: the worker curl now runs with
--show-error --write-out " http_status=%{http_code}", its stdout and stderr are captured, andG6_CLEAN_SESSION_EGRESS_UNCHANGEDprints them in its message. The assertion staystoBe(0). The next hosted failure will therefore name the HTTP status and curl's own error, which is what is needed to pick between a proxy refusal and an upstream timeout.Not reproduced here: the local 10-run shuffled baseline of this file at
0129244adpassed every run. This issue stays open (Refs, notCloses): the acceptance criteria still need the source named from a failing run.schlessera commentedon Nov 22, 2026
Fresh complete unit selection for #4314 at
a7240d48711c8fed4ddd88d44bb19061e43b0ae2reproduced the clean-session assertion:G6_CLEAN_SESSION_EGRESS_UNCHANGED http_status=403 curl: (22) The requested URL returned error: 403, expected curl exit 0, received 22. The test is byte-identical to origin/main. This is curl’s exit status, not a count of calls.Comparison: unchanged main
7e861bdb3passed three isolated repetitions and ten more under four CPU burners. Therefore the isolated comparison does not reproduce the complete-category ordering. Exact cause remains open; no assertion or production behavior was changed. Full-category JUnit retains this as one failure, not green proof.