Repository navigation
test(usage): self-checking local e2e harness for the gateway OBO flow (ENG-19115) - #199
Merged
Merged
Conversation
… (ENG-19115) scripts/boon/obo-e2e-local.sh drives one chat turn through the local stack with boon-cli and asserts every hop from the logs it can read, without ever printing a token: boon-core mint, plugin gatewayOboPresent, openclaw's names-only header log (obo=present), the gateway's signing-key fetch from boon-core (tier-1 only; a cache hit inside 5 min is reported inconclusive rather than passing), and the request logs carrying internal_test=true. Reads log slices via snapshot files rather than tail | grep -q, which under pipefail dies with SIGPIPE on the first match and read as false failures. Red on the origin/boon versions of agent-runner-utils.ts and run.ts (WIRE FAIL obo=absent, exit 1); green with this branch (12 passed). The .design check manifest now points A1 at the script.
insomnius
enabled auto-merge (squash)
September 4, 2026 14:04
orswn
approved these changes
Sep 4, 2026
There was a problem hiding this comment.
Solid harness — approving.
A few small observations, none blocking:
ss -ltnin preflight is Linux-only — on macOS (ssdoesn't exist) it silently fails all three port checks and exits 2 before doing anything else. Not a bug given who runs this today (you, on Linux), but a one-line fallback (command -v ss >/dev/null && ss -ltn || lsof -iTCP -sTCP:LISTEN -P -n 2>/dev/null) would keep it portable if anyone else picks it up.recent_fetchusesdate -dwhich is GNU-only (also breaks on macOSdate). Same audience note as above.- The A4-inconclusive → SKIP path is exactly right — a warm
obosign:<org>cache riding a broken build was the trap worth designing around, and reporting inconclusive-not-PASS is the correct call. - Snapshot-to-file instead of
tail | grep -q— good SIGPIPE catch, worth the extra 3 lines. - 12/12 green on #198, WIRE red + exit 1 on
origin/boon— that's the actual proof this harness discriminates. - Cutting boon.37 with #198 in flight is fine; this PR itself is inert until someone runs the script.
Approving.
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.
Follow-up to #198 (test tooling only — no runtime change).
scripts/boon/obo-e2e-local.shdrives one chat turn through the local stack (boon-core → anychat-boon-web → openclawpnpm dev gateway→ local boon-llm-gateway → back to boon-core) withboon agent thread create / send / poll, and asserts every hop from the logs it can read — never printing a token:minted + attached: account=<org> internal_test=truegatewayOboPresent:truex-boon-gateway-obo-tokenwithobo=present(needslogging.level: debug)GET boon-core's per-org signing-key endpoint→ 200 — tier-1 only. A cache hit inside the gateway's 5-min TTL (its key cache) is reported inconclusive, not PASS, so a broken build can't ride a warm cache.llm_request_logscarryinternal_test=trueReads log slices via snapshot files instead of
tail | grep -q: underpipefail, grep's early exit SIGPIPEs tail (141) and reads as a false failure — that bit me during development.Results
Red on the
origin/boon(pre-#198) versions ofagent-runner-utils.ts+run.ts:Green on
boonwith #198 (fresh gateway process, cache cold):Not covered: the gateway's
[usage] … source(signed vsgetboon_email) lives only on the gateway's stdout — the script says so at the end..design/tasks.jsoncheck manifest now points A1 at the script; the trace ledger records the harness red/green.Summary by cubic
Adds a self-checking local e2e harness that drives one chat turn through the gateway OBO flow and asserts every hop from logs — without ever printing a token.
boon agent thread create / send / polland checks boon-core's mint, the plugin'sgatewayOboPresent, openclaw'sx-boon-gateway-obo-tokenheader, the gateway's signing-key fetch, andllm_request_logscarryinginternal_test=true.tail | grep -q, which underpipefailfails with SIGPIPE on grep's early exit and reads as a false failure.agent-runner-utils.ts+run.ts(WIRE obo=absent, exit 1) and green with fix(usage): carry the gateway OBO through the primary-turn params to the attempt (ENG-19115) #198 (12 passed, 0 failed)..design/tasks.jsoncheck manifest A1 now points at the script; the trace ledger records the red/green results.Written for commit fc6cd3e. Summary will update on new commits.