Skip to content

🤖 tests: cover more startReservedAgentTaskLeased paths before the split - #7755

Merged
ThomasK33 merged 1 commit into
refactor/task-launch-testsfrom
refactor/task-launch-tests-2
Oct 30, 2026
Merged

ThomasK33 merged 1 commit into
refactor/task-launch-testsfrom
refactor/task-launch-tests-2

Conversation

@ThomasK33

Copy link
Copy Markdown
Member

Summary

Adds 17 more characterization tests for TaskService.startReservedAgentTaskLeased (12 → 29 in taskService.reservedLaunch.test.ts), with no production change. A mutation pass during the split found these paths: with the first 12 tests, 36 of 87 automatic mutants in the moved code survived, and with these tests 11 do. This is a separate PR so #7751 stays near the size limit. It sits below the shared-helper PR and the split, so the tests run against the unsplit code first.

What the tests add

They pin the hard points of the launch: the stop-latch revert behind rowSupersedes, the stamp of a row without an attempt id, the desktop-admission and linearization-point cancels, the unsanitized mark before the reclaim and the order of the reclaim's finally, the pre-init rechecks (pendingRemoval included), the admission before the send, onlyFromStatus: "starting" on the final status write, and the send options of each start kind.

Validation

  • Each test fails under at least one scratch edit of the branch it covers (27 of 28 edits). The one survivor, the unsanitized mark before the reclaim, is killed by another suite.
  • The file passes three runs in a row on the unsplit code and three on the split.

Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high • Cost: $351.07

Adds 17 characterization tests to taskService.reservedLaunch.test.ts for
launch paths that the launch suites (reservedLaunch, attemptAdmission,
settlementReceipts, taskLaunchRepro, creation, createUnderLock) ran without
checking. A mutation pass over the split of the method found each as a
surviving mutant. No production change.

- A row a removal unpublished before the launch ran is left alone (no
  failure mark).
- A launch a held stop latch defers hands its row back to queued, and leaves
  a row another writer re-admitted as is.
- A shared task whose parent checkout exists runs in it with no sanitize
  step and no init, and its init log ends as done. When a removal
  unpublishes its row after the materialize step, the cleanup keeps the
  parent's checkout (preservePhysicalWorkspace).
- A row another writer re-admits under its own attempt during the checkout
  persist keeps its fields and is not sanitized. During the sanitize step it
  gets no init. Neither is cleaned up or marked failed.
- A row a removal unpublishes during the checkout persist gets its checkout
  cleaned up before the sanitize step.
- A row a removal marks before the init gets its checkout cleaned up, no
  init, and fails.
- An unreadable config at the row check after the materialize step or before
  the init fails the launch and ends its init log.
- A materialize step that throws ends the init log and fails the launch.
- A forked checkout whose sanitize step fails is reclaimed with its row (its
  init state is dropped, not ended). When the row cannot be unpublished, or
  the reclaim throws, the init log ends failed.
- A launch whose send fails cleans up its checkout and is marked failed.
- A launch its parent cancels during the materialize step is cancelled
  before the checkout persist.

The harness gains a failing send, a failing sanitize step, a failing
reclaim and a one-read unreadable config. Each test passes on this commit's
code and fails under a scratch edit of the branch it covers.

---

_Generated with `xum` • Model: `anthropic:claude-opus-5-5` • Thinking: `xhigh`_

<!-- mux-attribution: model=anthropic:claude-opus-5-5 thinking=xhigh -->
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-30T10:47:52.058618Z 903daff Manual request
🔒 Security Review ✅ Completed 2026-10-30T10:47:39.643345Z 903daff Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@ThomasK33

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: 903daff694

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

Reviewed commit: 903daff694

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@github-actions

Copy link
Copy Markdown
Contributor

🟢 e2e stories (Haiku): 14 passed

22 agent steps · 7 replayed from cache · 15 model calls · 46.3k tokens (24% cached)
Spend: $0.09 of the $1.00 cap (proxy ledger)

All 14 tests in 9 files
Test Agent Time
🟢 chatRestart.e2e.ts · 1 passed 1 step · 1 call 5.3s
🟢 a chat survives a restart of the server 1 step · 1 call 5.3s
🟢 compaction.e2e.ts · 1 passed 1 step · 1 call 4.8s
🟢 /compact replaces the old chat with a summary 1 step · 1 call 4.8s
🟢 pluginTrustRestart.e2e.ts · 1 passed 4 steps · 2 calls 9.3s
🟢 a trusted plugin hook stays trusted after the server restarts 4 steps · 2 calls 9.3s
🟢 settingsRoundTrip.e2e.ts · 1 passed 2 steps · 1 call 8.7s
🟢 a chat survives trips through Settings 2 steps · 1 call 8.7s
🟢 sidebarPerWorkspace.e2e.ts · 1 passed 4 steps · 1 call 4.1s
🟢 a new workspace starts with its right sidebar collapsed while another keeps it open 4 steps · 1 call 4.1s
🟢 smoke.e2e.ts · 1 passed 2 steps · 1 call 6.1s
🟢 the agent opens the playground workspace 2 steps · 1 call 6.1s
🟢 streamErrors.e2e.ts · 1 passed 1 step · 1 call 7.5s
🟢 stream errors show in the chat, and the chat recovers 1 step · 1 call 7.5s
🟢 todoNudge.e2e.ts · 1 passed 1 step · 1 call 3.5s
🟢 the agent finishes open TODO items after the turn-end nudge 1 step · 1 call 3.5s
🟢 touchAlignment.e2e.ts · 6 passed 6 steps · 6 calls 26.8s
🟢 the Settings close button is level with the title on a touch screen 390px wide 1 step · 1 call 4.9s
🟢 the Settings close button is level with the title on a touch screen 768px wide 1 step · 1 call 3.9s
🟢 Backup settings checkboxes are small and level with their labels on a touch phone 1 step · 1 call 4.7s
🟢 the heartbeat checkbox is small and level with its label on a touch phone 1 step · 1 call 6.7s
🟢 a reply's model and time stay on one line on a touch phone 1 step · 1 call 3.2s
🟢 the workspace actions menu stays on the title row on a touch phone 1 step · 1 call 3.5s

e2e 0.20.0 · 1m 19s · web · run artifacts

🟢 e2e Electron stories (Haiku): 3 passed

3 agent steps · 3 model calls · 8.0k tokens (22% cached)
Spend: $0.02 of the $1.00 cap (proxy ledger)

All 3 tests in 3 files
Test Agent Time
🟢 electron/deepLink.e2e.ts · 1 passed 1 step · 1 call 6.3s
🟢 a deep link of a second launch starts a chat in the running app 1 step · 1 call 6.3s
🟢 electron/menuBar.e2e.ts · 1 passed 1 step · 1 call 5.1s
🟢 the workspace menu bar is the desktop title bar 1 step · 1 call 5.1s
🟢 electron/smoke.e2e.ts · 1 passed 1 step · 1 call 5.4s
🟢 Xum Electron opens the playground workspace 1 step · 1 call 5.4s

e2e 0.20.0 · 18.8s · electron · run artifacts

🟢 e2e agent repros (Haiku): no tests selected

Spend: $0.00 of the $1.00 cap (proxy ledger)

e2e 0.20.0 · 5.3s · 2 targets (web, phone) · run artifacts

@ThomasK33
ThomasK33 added this pull request to the merge queue Oct 30, 2026
Merged via the queue into main with commit 0e0a977 Oct 30, 2026
33 of 34 checks passed
@ThomasK33
ThomasK33 deleted the refactor/task-launch-tests-2 branch October 30, 2026 11:38
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