Skip to content

test(core): audit cancellation wakeups without sleeps (ENG-1028) - #311

Merged
lg2m merged 10 commits into
build/eng-1028-agent-feedback-loopfrom
test/eng-1028-af6-cancellation-audit
Oct 15, 2026
Merged

lg2m merged 10 commits into
build/eng-1028-agent-feedback-loopfrom
test/eng-1028-af6-cancellation-audit

Conversation

@lg2m

@lg2m lg2m commented Oct 14, 2026

Copy link
Copy Markdown
Collaborator

Stack and scope

Stacked on #282; merge #282 first, then retarget to main. Implements AF6.1 from docs/plans/agent-feedback.md, the first module-sized test audit. Linear: ENG-1028.

Changes

  • Replace sleep and wall-clock deadlines in cancellation tests with explicit Future polling and wake observation.
  • Verify all 16 registered waiters wake, future waits complete, cancellation is idempotent, dropping one waiter does not interfere, and diagnostics reflect cancellation.
  • Ratchet SLEEP_CEILING from 78 to 77. No production behavior or dependency changes.

Verification

  • cargo test -p qq-core cancellation::tests: 3/3. Stress: 100 runs / 300 tests passed.
  • cargo mutants -p qq-core -f crates/qq-core/src/cancellation.rs --in-place --timeout 30 --output target/qq-perf/af6-cancellation -- cancellation::tests: six generated, six caught, zero missed/timeouts. First pass missed the Debug mutant; added diagnostic assertions and reran.
  • cargo xtask check --full --profile ci at 14596a5: fmt, lint, workspace all-target/all-feature Clippy, full nextest, doctests, minimal-provider Clippy/tests passed in 173.6s.
  • cargo xtask smoke: 6/6; cargo build --workspace passed.

Follow-ups

Remaining AF6 modules (including shell-heavy delegation compaction fixtures), AF5 tracing/ADR, AF9 lesson mining, AF10 blinded skills eval remain planned. No claim that the parent audit is complete. Mutation evidence stays ignored under target/.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 14, 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-15T05:41:10.223764Z 6e20505 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 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: 14596a507c

ℹ️ 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 crates/qq-core/src/cancellation.rs Resolved
@lg2m

lg2m commented Oct 14, 2026

Copy link
Copy Markdown
Collaborator Author

Fixed review 4276614012 in 7a00582: distinct Waker and atomic wake counter per waiter, asserting each of 16 counters is exactly one before completion polling. Also synchronized parent CI fixes (143dc86). Full CI-profile local gate and smoke 6/6 pass.

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: 143dc86592

ℹ️ 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 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: 9c0a58b6bc

ℹ️ 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 crates/qq-core/src/cancellation.rs Resolved
@lg2m

lg2m commented Oct 14, 2026

Copy link
Copy Markdown
Collaborator Author

Fixed 4277036351 in 84931ab: surviving waiter has counting waker, asserted exactly one notification before polling Ready. Parent latest fixes synced at 4d6bd8c; full CI-profile local gate and smoke pass.

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: 4d6bd8ccc6

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

@lg2m

lg2m commented Oct 15, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

Stack conflicts are resolved and pushed. Both PRs now report mergeable=true. Parent preserves current main action_bias wiring and previous review fixes; child includes the updated parent. Focused lint 11/11 and smoke unit tests 4/4 passed locally; the full local gate was interrupted, so remote CI is the outstanding full verification. Please review the latest tip.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: 6e2050593a

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

@lg2m
lg2m merged commit 3b763ea into main Oct 15, 2026
6 checks passed
@lg2m
lg2m deleted the test/eng-1028-af6-cancellation-audit branch October 15, 2026 05:45
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