Skip to content

[workspace-service] 🤖 tests: cover concurrent monitor wake admission - #4044

Open
coadler wants to merge 3 commits into
mainfrom
tests/concurrent-monitor-wake-admission
Open

[workspace-service] 🤖 tests: cover concurrent monitor wake admission#4044
coadler wants to merge 3 commits into
mainfrom
tests/concurrent-monitor-wake-admission

Conversation

@coadler

@coadler coadler commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator

Summary

Add a deterministic regression test for concurrent bash-monitor wake admission.

Background

The level-triggered reconciler serializes monitor wakes per workspace. This test protects the queue-to-stream handoff.

Implementation

The test holds the first accepted wake before stream start. It then reconciles a second wake.

The test verifies that the second dispatch waits for full idle. It also verifies that only one tool-end queue entry exists.

Risks

Low. This PR changes test code only.


Generated with xum • Model: openai:gpt-5.6-sol • Thinking: xhigh • Cost: $0.05

@coadler

coadler commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

Please review the deterministic concurrent monitor-wake regression test.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 1, 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-09-01T21:04:41.558263Z 03e9b2e Manual request
🔒 Security Review Completed 2026-09-01T21:06:43.281514Z 03e9b2e 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: 571b9a4c57

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 chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 571b9a4c57

ℹ️ 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".

Comment thread src/node/services/workspaceService.test.ts Outdated
Comment thread src/node/services/workspaceService.test.ts Outdated
Comment thread src/node/services/workspaceService.test.ts Outdated
@coadler
coadler force-pushed the tests/concurrent-monitor-wake-admission branch from 571b9a4 to ad38985 Compare September 1, 2026 20:47
@coadler

coadler commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

Rebased onto current main at bf97dfd. The focused regression test and make static-check pass.

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: ad389851a5

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. Hooray!

Reviewed commit: ad389851a5

ℹ️ 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".

@coadler

coadler commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator Author

Addressed all three review findings in 67c73d6:

  • PRRT_kwDOPxxmWM6eQyq7: the test awaits the second wake acceptance callback before cleanup.
  • PRRT_kwDOPxxmWM6eQyrD: the first callback is required, and the test verifies first and second process acknowledgements separately.
  • PRRT_kwDOPxxmWM6eQyrK: the test waits for a controlled idle-wait barrier while the idle gate remains closed.

@coadler

coadler commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

All review findings are addressed. The focused test and make static-check pass.

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 67c73d6670

ℹ️ 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".

Comment thread src/node/services/workspaceService.test.ts
@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: 67c73d6670

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.

@coadler

coadler commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator Author

Addressed PRRT_kwDOPxxmWM6eRkFN. The test now awaits the reconciler after the second acceptance before fixture cleanup.

@coadler

coadler commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

The final reconciliation is now awaited. The focused test and make static-check pass.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

Reviewed commit: 03e9b2e094

ℹ️ 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".

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: 03e9b2e094

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.

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