Skip to content

feat(usage)!: price sessions through token-max, across SSH hosts - #704

Merged
moq-bot[bot] merged 10 commits into
mainfrom
quest/m0/routing-evidence/usage-token-max
Nov 14, 2026
Merged

moq-bot[bot] merged 10 commits into
mainfrom
quest/m0/routing-evidence/usage-token-max

Conversation

@kixelated

@kixelated kixelated commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

Finishes quest/m0/routing-evidence/usage-token-max.md and deletes it.

Summary

quest usage now gets every session from token-max sessions instead of ccusage plus quest's own transcript readers. Each session's harness, model, effort, branches, working directory, repositories, and cost come from token-max. Claude sub-agents and Codex review or spawned threads are separate sessions, so a quest a /quest-spawn or /quest-run sub-agent worked on carries its own cost. That was ~$1,600 of Claude sub-agent spend on this host since 2026-11-12, previously folded into coordinators.

  • --ssh HOST (repeatable) passes through to token-max sessions --ssh … --include-local. A session matches a PR only through the repositories token-max resolved on the session's own host, or (once its checkout is deleted) those resolved for another session in the same directory on the same host. Nothing is read from a checkout on the host running the report.
  • A host that fails fails the report, with token-max's message naming it.
  • Copies across hosts fold: a session (harness + ID) found on several hosts counts once, at its costliest copy. The report gives folded: { copies, hosts }, and the text says Folded N copies … left out from <hosts>.
  • Lower bounds: any reported session whose cost token-max marks incomplete (an unpriced request, or a line it couldn't read or that was unfinished) is listed under Lower bounds with its unreadable-line count, and every cost it feeds reads or more. A malformed line no longer stops the report, since token-max skips and counts it.
  • fixedBy counts only merged fix PRs, and only a ## Caused by bullet that opens with - [owner/repo#N](…/pull/N) - why. Context links, "No single PR"/"None" lines, "(fixed by …)" asides, notes after the bullets, and closed duplicates no longer count. The tests use the shapes from test(net): a refused replacement keeps a withdrawn incumbent open moq#8471, #8426, #8483, #8427, #8371, and #8493.
  • githubRepository accepts an scp-like remote without a user (github.com:owner/repo.git), which is how token-max exports git@github.com:… after removing user info. Without this, every session in an SSH-cloned checkout went unattributed.
  • The dev shell drops ccusage and pins token-max as a flake input at 83ab616, the first revision whose token-max sessions --help documents both --ssh and repositories. That clears the quest's Waiting item (kixel-ai/token-max#92 merged). Its quest input follows this flake (follows = ""), so the lock never chains older quest pins.
  • eachLine, parseLine, and claudeLogs moved into src/cli/messages.ts, their only remaining user, and are no longer exported.
  • Quest tree: added quest/m0/messages-robustness.md; removed the deleted quest's Required links from writer-ab.md and charts.md (both now unblocked), unlinked it in the epic README, and updated mistake-audit.md's note on fixedBy.

Public API

Breaking (!) for quest usage --json consumers:

  • pulls[].sessions[] lose effort and gain host; each models[] entry carries its own effort, a nullable model, and complete.
  • Every token total (spend[], unattributed) gains complete.
  • The report gains folded and incomplete.
  • priced now means token-max ran.
  • fixedBy is narrower, as described above.

To migrate: install token-max (the dev shell provides it), and read effort from each model entry. New flag: --ssh <host>.

Validation

  • just check and just test pass on the head after merging main (1342 tests).
  • Real surface, this host, the checkout's quest usage --since 2026-11-11 with the pinned token-max: exits 0, reports 86 PRs, and attributes 80 sessions. Before the scp-remote fix it attributed 72.
  • Second, independent check: a Python match over token-max's raw export (repositories include moq-dev/quest, last-named branch heads a reported PR) against the report's attribution. They agree except for 2 sessions quest correctly drops (their PR, quest: attribute sessions from other hosts in quest usage #669, merged before the session reached the branch) and 2 sessions that started between the two runs.
  • --ssh nixos (no token-max installed there) exits 1 with nixos: token-max is not installed on PATH, ….
  • Multi-host success path: no host has token-max installed, so I ran --ssh box with a stand-in ssh in .tmp/ that runs the remote command on this host. Every session then exists twice. The report folded 652 copies "left out from box", and every PR's lines matched a local-only run apart from live drift. The real SSH transport is token-max's and is covered by its own tests.
  • Lower bounds: 163 sessions since 2026-11-11 are incomplete, all with 0 unreadable lines. They come from requests token-max couldn't fully price (e.g., some claude-fable-5-2 entries) or live, unfinished transcripts.

Choices made without asking

  • With token-max missing from PATH, the report still prints the PRs' records alone with an install hint, as it did for ccusage. With --ssh, a missing token-max is an error.
  • The hint is cargo install --locked --git https://github.com/kixel-ai/token-max, since token-max has no release yet.
  • A session's role uses its first request in the window (token-max's start), not the transcript's first record, since token-max does not export the creation time it tracks. A session that began before --since on a PR opened before --since now reads as iterating instead of implementing; README and --help say so.
  • A copy-fold tie keeps the first copy token-max prints, ordered by first request across hosts.
  • Sessions token-max exports without an ID are never folded.
  • The sub-agent-to-parent repository inheritance I tried added only ~$20 of attribution on this host's data, so I left it out. Same-directory inference covers most deleted worktrees.

Decisions

Decided 2026-11-13 (user, /quest-run):

  • Report the malformed Claude Code transcript line upstream? ✅ Drop it (rejected: filing it on anthropics/claude-code). token-max tolerates such lines, and there is no fresh sample. The quest's upstream-report step is dropped with it.
  • Follow-up for quest messages? ✅ One robustness quest covering both causes (rejected: two quests; only the Codex one).
  • quest messages robustness quest: ✅ keep (rejected: drop).
  • token-max session creation time: ✅ plan it in kixel-ai/token-max's quest tree (rejected: drop).

Caused by

Follow-ups

  • quest messages reads transcripts it fails on today, added in this PR: it skips and counts malformed Claude Code lines, and reads Codex 0.162 TUI turns that carry content_item_kinds without provenance (salvaged from the closed moq-dev/quest#696).

  • To plan in kixel-ai/token-max's quest tree (user picked): token-max sessions exports each session's creation time (its Facts.created, already tracked), so quest usage can classify a session that crosses --since as implementing. Not linked here, since it is another repository's quest.

Models

  • Size: M
  • Implementer: Claude Code, claude-opus-5-5, medium effort

🤖 Generated with Claude Code

(Written by Claude Opus 5.5 with medium effort)

Review

mechanical fix by codex, gpt-6.1-sol, medium effort: Merged base and re·solved test/usage.test.ts conflicts, preserving exported session fixtures and base temporary-path isolation; ran nix develop --command just check and nix develop --command just test (1217 passed, 5 skipped; build, compile, installer and lifecycle checks passed). (head c5c1c77)

mechanical fix by codex, gpt-6.1-sol, medium effort: Merged base and retargeted a stale link to the completed PR; ran nix develop --command just install, nix develop --command just check, nix develop --command just test (gateway environment failure), nix develop --command env -u OPENAI_BASE_URL bun run vitest run test/review.test.ts -t "Codex reaches a gateway", nix develop --command env -u OPENAI_BASE_URL just test, nix flake check, nix build /tmp/704-base-tree&#35;quest --out-link /tmp/704-base-quest, and /tmp/704-base-quest/bin/quest --root /work c (head 1a70998)

mechanical fix by codex, gpt-6.1-sol, medium effort: Merged base and re·solved import conflicts following base module moves, preserving token-max usage changes; ran nix develop --command just install, nix develop --command just check, nix develop --command just test, nix develop --command env -u OPENAI_BASE_URL bun run vitest run test/review.test.ts -t "Codex reaches a gateway", and nix develop --command env -u OPENAI_BASE_URL just test (passed). (head 743fc0d)

Rewritten by quest review after each round.

  • Head: 4f20790

  • Base: origin/main at b79569f

  • Reviewer: Codex, gpt-6.1-sol, high effort

  • Session: 01a1d70a-5341-72b3-a927-8d15048d4b87, round 2

  • Score: 9/10, The incremental change correctly limits folded-copy counts to reported sessions and preserves the earlier fixes; static review found no actionable defects, but builds and tests were not run as instructed.

  • Rounds: 3; findings 3 (high 1, medium 2): fixed 2, refuted 1, open 0

  • Findings: none

  • Reviewer: Codex, gpt-6.1-sol, medium effort, shadow

  • Session: 01a1d70a-5341-72d1-b8f6-ffae57045dc0

  • Rounds: 2; findings 2 (medium 2): fixed 1, refuted 1, open 0

kixelated and others added 2 commits November 13, 2026 13:24
`quest usage` reads each session's harness, model, effort, branches,
repositories, and cost from `token-max sessions`, which treats each
sub-agent as a session of its own, and drops ccusage and quest's own
transcript readers. `--ssh HOST` (repeatable) adds other hosts' sessions,
matched through the repositories resolved on their own host; a failing
host fails the report. A session found on several hosts counts once, at
its costliest copy, and the report says how many copies it folded.
Sessions whose cost is a lower bound are listed.

`fixedBy` counts only merged PRs, and only a `## Caused by` bullet that
opens with the culprit's link.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kixelated kixelated changed the title quest usage prices sessions through token-max feat(usage)!: price sessions through token-max, across SSH hosts Nov 13, 2026
kixelated and others added 3 commits November 13, 2026 14:24
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…l name repositories

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kixelated
kixelated marked this pull request as ready for review November 13, 2026 22:35
@coderabbitai

coderabbitai Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 925abc3f-9bef-4070-b4ce-fc723b989f04
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ No critical issues — one minor inconsistency inline.

Reviewed changes

This review covers the full PR at 133eeb6, which moves quest usage from ccusage and quest's own transcript readers to token-max sessions.

  • token-max export: runTokenMax and parseSessions read token-max's JSONL. A session's complete: false now applies to each of its models, so every cost it feeds reads or more.
  • Cross-host fold: fold keeps the costliest copy of each [harness, id] and leaves sessions without an ID alone. Attribution still draws repository evidence from every exported copy.
  • Attribution: a session matches a PR only through the repositories token-max resolved on the session's own host. Failing that, it uses those resolved for another session in the same directory on that host. Each session row now carries its host, and effort moves to each model entry.
  • fixedBy: only merged PRs count. Only a ## Caused by bullet that opens with - [owner/repo#N](…/pull/N) - counts, and only when the link text and URL name the same PR.
  • githubRepository: accepts an scp-like remote with no user, which is how token-max exports SSH remotes.
  • Dev shell: drops ccusage and pins token-max at 83ab616 as a flake input whose quest input follows the root.

I checked token-max's src/sessions.rs at the pinned revision, since the fold's correctness depends on it:

  • A Claude sub-agent's session is its own agentId, with the parent ID in parent, so fold does not merge sub-agents into their coordinator.
  • A Codex session is the thread ID, which matches what quest review records for the reviewer role.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using claude-opus-5-5 | 𝕏

Comment thread src/cli/usage.ts Resolved
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
pullfrog[bot]
pullfrog Bot previously approved these changes Nov 13, 2026

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

This review covers the new commit 4f20790 since the prior pullfrog review at 133eeb6.

  • Narrowed folded count: usage now keeps only the dropped copies whose harness and ID match a session in reported, so a --pr or --quest report no longer counts folded copies of sessions it doesn't show. This is the same scope as incomplete, and sessions without an ID never fold, so they can't be miscounted.
  • Test update: test/usage.test.ts now expects { copies: 0, hosts: [] } for the narrowed --pr 10 report and { copies: 1, hosts: ["box"] } for the unnarrowed one. This addresses the earlier inline thread, which is already resolved.

Pullfrog  | View workflow run | Using claude-sonnet-5-5 | 𝕏

@kixelated
kixelated added this pull request to the merge queue Nov 13, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Nov 13, 2026
@moq-bot

moq-bot Bot commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

quest land watch: the merge queue removed this pull request at 4f20790 because it conflicts with main (merge_conflict).

The land fixer works on it in the background, and the watcher re-enqueues it at the back of the queue once it is fixed or judged flaky, or hands it back here with what it needs.

(written by quest land watch)

@moq-bot

moq-bot Bot commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

codex, gpt-6.1-sol, medium effort land fixer note:

Resolved the two import conflicts by following the base module moves while retaining the token-max usage reporter. No behavior changes or protected-path edits were added. All checks passed in the merged tree’s Nix shell, including 1,345 tests and both CLI lifecycle checks. The initial test run inherited OPENAI_BASE_URL from the fixer runner, causing the gateway test to receive exit code 3 instead of its expected 1. The targeted test and full test recipe passed after unsetting that runner override.

(written by codex, gpt-6.1-sol, medium effort)

@moq-bot

moq-bot Bot commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

quest land watch: armed auto-merge on this pull request at 743fc0d, so it joins the back of the merge queue once its required checks pass, with the land fixer's fix (codex, gpt-6.1-sol, medium effort): Merged base and re·solved import conflicts following base module moves, preserving token-max usage changes; ran nix develop --command just install, nix develop --command just check, nix develop --command just test, nix develop --command env -u OPENAI_BASE_URL bun run vitest run test/review.test.ts -t "Codex reaches a gateway", and nix develop --command env -u OPENAI_BASE_URL just test (passed)..

(written by quest land watch)

pullfrog[bot]
pullfrog Bot previously approved these changes Nov 13, 2026

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

This review covers merge commit 743fc0d since the prior pullfrog review at 4f20790.

  • Reconciled imports with base module moves: src/cli/usage.ts now imports recorded from ./models-record, and repositoryPath, GitHub, and link from ../github/client. src/cli/main.ts imports pullRequestStatus from ../github/status. No behavior changed. tsc --noEmit is clean and test/usage.test.ts passes 11/11.

Pullfrog  | View workflow run | Using claude-opus-5-5 | 𝕏

@moq-bot
moq-bot Bot added this pull request to the merge queue Nov 13, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 13, 2026
@moq-bot

moq-bot Bot commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

quest land watch: the merge queue removed this pull request at 743fc0d because its merge_group build failed (failed_checks).

The land fixer works on it in the background, and the watcher re-enqueues it at the back of the queue once it is fixed or judged flaky, or hands it back here with what it needs.

Queue / Queue build / Build (job) failure at step Check that the PR leaves its quest accurate:

…b7zp09bssia-git-2.56.0/bin/git config --local --unset includeif.gitdir:/github/workspace/.git.path \/github\/runner_temp\/git\-credentials\-b1e4f9a9\-8dfa\-435e\-8493\-12effcad638b\.config
[command]/nix/store/i2m3w4ly2w6grrmk1j59rb7zp09bssia-git-2.56.0/bin/git config --local --get-all includeif.gitdir:/github/workspace/.git/worktrees/*.path
/github/runner_temp/git-credentials-b1e4f9a9-8dfa-435e-8493-12effcad638b.config
[command]/nix/store/i2m3w4ly2w6grrmk1j59rb7zp09bssia-git-2.56.0/bin/git config --local --unset includeif.gitdir:/github/workspace/.git/worktrees/*.path \/github\/runner_temp\/git\-credentials\-b1e4f9a9\-8dfa\-435e\-8493\-12effcad638b\.config
[command]/nix/store/i2m3w4ly2w6grrmk1j59rb7zp09bssia-git-2.56.0/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Removing credentials config '/var/cache/github-runner-work/_temp/git-credentials-b1e4f9a9-8dfa-435e-8493-12effcad638b.config'
##[endgroup]
##[group]Run # Build concurrency and group size are both one in main's ruleset.
�[36;1m# Build concurrency and group size are both one in main's ruleset.�[0m
�[36;1m[[ "$QUEUE_REF" =~ ^refs/heads/gh-readonly-queue/main/pr-([0-9]+)- ]] || { echo "::error::unexpected merge group ref" >&2; exit 1; }�[0m
�[36;1mhead_ref=$(gh api "repos/$REPO/pulls/${BASH_REMATCH[1]}" --jq .head.ref)�[0m
�[36;1m# The base's skills would reject a PR that adds, removes, or changes a skill's stub. The PR's�[0m
�[36;1m# own binary checks the stubs against the PR's skills in `just check` below, in this same job.�[0m
�[36;1m./quest-base/bin/quest --root "$GITHUB_WORKSPACE" check --no-stubs --base "$BASE" --branch "$head_ref"�[0m
shell: /nix/store/lfm00fnq66xfgbn099vqckabyl5jllz6-bash-interactive-5.3p20/bin/bash -e {0}
env:
  BASE: fd385d028fa7f4c6420063141ba9b05c8f1c2d41
  GH_TOKEN: ***
  REPO: moq-dev/quest
  QUEUE_REF: refs/heads/gh-readonly-queue/main/pr-704-fd385d028fa7f4c6420063141ba9b05c8f1c2d41
##[endgroup]
quest: quest/m0/benchmark/records.md:52: link does not resolve: /quest/m0/routing-evidence/usage-token-max.md
##[error]Process completed with exit code 1.
Post job cleanup.
[command]/nix/store/i2m3w4ly2w6grrmk1j59rb7zp09bssia-git-2.56.0/bin/git version
git version 2.56.0
Temporarily overriding HOME='/var/cache/github-runner-work/_temp/3c751fa3-8fe3-4bce-8fca-71f89afdef96' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/nix/store/i2m3w4ly2w6grrmk1j59rb7zp09bssia-git-2.56.0/bin/git config --global --add safe.directory /var/cache/github-runner-work/quest/quest
Removing SSH command configuration
[command]/nix/store/i2m3w4ly2w6grrmk1j59rb7zp09bssia-git-2.56.0/bin/git config --local --name-only --get-regexp core\.sshCommand
[command]/nix/store/i2m3w4ly2w6grrmk1j59rb7zp09bssia-git-2.56.0/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/nix/store/i2m3w4ly2w6grrmk1j59rb7zp09bssia-git-2.56.0/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
[command]/nix/store/i2m3w4ly2w6grrmk1j59rb7zp09bssia-git-2.56.0/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/nix/store/i2m3w4ly2w6grrmk1j59rb7zp09bssia-git-2.56.0/bin/git config --local --name-only --get-regexp ^includeIf\.gitdir:
[command]/nix/store/i2m3w4ly2w6grrmk1j59rb7zp09bssia-git-2.56.0/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Post job cleanup.
[command]/nix/store/i2m3w4ly2w6grrmk1j59rb7zp09bssia-git-2.56.0/bin/git version
git version 2.56.0
Temporarily overriding HOME='/var/cache/github-runner-work/_temp/6ca9c31d-66ca-415c-b04b-f1a7994467b4' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/nix/store/i2m3w4ly2w6grrmk1j59rb7zp09bssia-git-2.56.0/bin/git config --global --add safe.directory /var/cache/github-runner-work/quest/quest
Removing SSH command configuration
[command]/nix/store/i2m3w4ly2w6grrmk1j59rb7zp09bssia-git-2.56.0/bin/git config --local --name-only --get-regexp core\.sshCommand
[command]/nix/store/i2m3w4ly2w6grrmk1j59rb7zp09bssia-git-2.56.0/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/nix/store/i2m3w4ly2w6grrmk1j59rb7zp09bssia-git-2.56.0/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
[command]/nix/store/i2m3w4ly2w6grrmk1j59rb7zp09bssia-git-2.56.0/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/nix/store/i2m3w4ly2w6grrmk1j59rb7zp09bssia-git-2.56.0/bin/git config --local --name-only --get-regexp ^includeIf\.gitdir:
[command]/nix/store/i2m3w4ly2w6grrmk1j59rb7zp09bssia-git-2.56.0/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
A job completed hook has been configured by the self-hosted runner administrator
##[group]Run '/nix/store/3wq9f25mz2ksqrx6zs5nq522386djzw1-ci-cache-gc.sh/bin/ci-cache-gc.sh'
shell: /nix/store/lfm00fnq66xfgbn099vqckabyl5jllz6-bash-interactive-5.3p20/bin/bash --noprofile --norc -e -o pipefail {0}
##[endgroup]
evicted 0 objects and 0 action results (0 B logical); 49.6 GiB logical remain
Cleaning up orphan processes

Queue / Queue (job) failure at step Require the build to pass:

Current runner version: '2.338.2'
##[group]Runner Image Provisioner
Hosted Compute Agent
Version: 20261103.629
Commit: 15dbd9ccb5dbf34fae002b6ed1a2670f52df37bc
Build Date: 2026-11-03T17:26:59Z
Worker ID: {0957e4e5-df30-45f0-92c0-75f25cc43524}
Region: westus3
Cloud: Azure
##[endgroup]
##[group]Operating System
Ubuntu
26.04.1
LTS
##[endgroup]
##[group]Runner Image
Image: ubuntu-26.04
Version: 20261111.196.1
Included Software: https://github.com/actions/runner-images/blob/ubuntu26/20261111.196/images/ubuntu/Ubuntu2604-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu26%2F20261111.196
##[endgroup]
##[group]GITHUB_TOKEN Permissions
Contents: read
Metadata: read
PullRequests: read
##[endgroup]
Secret source: Actions
Cache mode: write
Prepare workflow directory
Prepare all required actions
Complete job name: Queue
##[group]Run [[ "$RESULT" == success ]] || { echo "::error::the queue build ended $RESULT" >&2; exit 1; }
�[36;1m[[ "$RESULT" == success ]] || { echo "::error::the queue build ended $RESULT" >&2; exit 1; }�[0m
shell: /usr/bin/bash -e {0}
env:
  RESULT: failure
##[endgroup]
##[error]the queue build ended failure
##[error]Process completed with exit code 1.
Cleaning up orphan processes

(written by quest land watch)

@moq-bot
moq-bot Bot enabled auto-merge November 13, 2026 23:49
@moq-bot

moq-bot Bot commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

codex, gpt-6.1-sol, medium effort land fixer note:

The PR deletes the completed usage-token-max quest, while base added a link to it in quest/m0/benchmark/records.md. After a clean base merge, the fix points that reference to this PR, already cited in the same document. No program behavior changed. Type, formatting, lint, quest, Nix, build, lifecycle, and full test checks passed (1,213 tests; 5 skipped). The initial test run inherited OPENAI_BASE_URL and failed the direct-provider assertion in a gateway test; the full recipe passed with only that variable unset. Protected paths were carried solely by the clean base merge.

(written by codex, gpt-6.1-sol, medium effort)

@moq-bot

moq-bot Bot commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

quest land watch: armed auto-merge on this pull request at 1a70998, so it joins the back of the merge queue once its required checks pass, with the land fixer's fix (codex, gpt-6.1-sol, medium effort): Merged base and retargeted a stale link to the completed PR; ran nix develop --command just install, nix develop --command just check, nix develop --command just test (gateway environment failure), nix develop --command env -u OPENAI_BASE_URL bun run vitest run test/review.test.ts -t "Codex reaches a gateway", nix develop --command env -u OPENAI_BASE_URL just test, nix flake check, nix build /tmp/704-base-tree&#35;quest --out-link /tmp/704-base-quest, and /tmp/704-base-quest/bin/quest --root /work c.

(written by quest land watch)

pullfrog[bot]
pullfrog Bot previously approved these changes Nov 13, 2026

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

This review covers the changes since the prior pullfrog review at 743fc0d: a merge of main and one docs fix.

  • Retargeted a deleted-quest link: quest/m0/benchmark/records.md now links to this PR instead of quest/m0/routing-evidence/usage-token-max.md, which the PR deletes. Nothing else in the tree still links to that file.

Pullfrog  | View workflow run | Using claude-opus-5-5 | 𝕏

@moq-bot
moq-bot Bot added this pull request to the merge queue Nov 13, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Nov 13, 2026
@moq-bot

moq-bot Bot commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

quest land watch: the merge queue removed this pull request at 1a70998 because it conflicts with main (merge_conflict).

The land fixer works on it in the background, and the watcher re-enqueues it at the back of the queue once it is fixed or judged flaky, or hands it back here with what it needs.

(written by quest land watch)

@moq-bot

moq-bot Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

quest land watch: armed auto-merge on this pull request at c5c1c77, so it joins the back of the merge queue once its required checks pass, with the land fixer's fix (codex, gpt-6.1-sol, medium effort): Merged base and re·solved test/usage.test.ts conflicts, preserving exported session fixtures and base temporary-path isolation; ran nix develop --command just check and nix develop --command just test (1217 passed, 5 skipped; build, compile, installer and lifecycle checks passed)..

(written by quest land watch)

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

This review covers merge commit c5c1c77 since the prior pullfrog review at 1a70998. Apart from what main brought in, the only change is to the tests.

  • Isolated fixture paths from the host: the session fixtures in test/usage.test.ts no longer use /work, /other, and their subdirectories as working directories. They use directories from removed(), which creates each one with tempDir() and then deletes it. src/cli/usage.ts is unchanged and still uses cwd only as a lookup key alongside the host, never reading the filesystem there. All 11 tests in test/usage.test.ts pass.

Pullfrog  | View workflow run | Using claude-opus-5-5 | 𝕏

@moq-bot
moq-bot Bot added this pull request to the merge queue Nov 14, 2026
Merged via the queue into main with commit d0f289d Nov 14, 2026
13 checks passed
@moq-bot
moq-bot Bot deleted the quest/m0/routing-evidence/usage-token-max branch November 14, 2026 00:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant