Skip to content

refactor(message): remove unused receiver history - #31345

Closed
XuPeng-SH wants to merge 1 commit into
mainfrom
codex/message-receiver-history-20261026
Closed

XuPeng-SH wants to merge 1 commit into
mainfrom
codex/message-receiver-history-20261026

Conversation

@XuPeng-SH

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

Which issue(s) this PR fixes:

Refs #29249

What this PR does / why we need it:

Remove the write-only MessageReceiver.received history and its per-match append. Delivery progress already belongs to offset; no code consumes the saved message indices.

Keep message selection/order, returned messages, actual board ownership and destruction, cancellation/wakeup paths and named diagnostics. All existing tests/assertions remain unchanged. This removes an unused allocation/retention path without introducing replacement state.

Validation: the full message package passes normally and with race detection (31 top-level / 65 named tests in each mode, no failures or skips). A temporary before/after public-receiver probe passes for filtering/order, independent cursors, later publication and cancellation/close. Formatting, go vet, all four configured molint analyzers and incremental golangci-lint pass without diagnostics.

Whole-source reachability inspection covers 6,824 Go files. Exact-head file-level merge comparisons show no new conflicts with the two overlapping PRs (#31166 and #29162); both already have main-side conflicts, which this PR does not resolve.

@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@XuPeng-SH

XuPeng-SH commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor Author

mo-bot review · mo-bot-local · done

Commit: 05317bd6745d34e6e65d7d970761eee4f52a9092

Review completed. Read the assessment.

@XuPeng-SH XuPeng-SH left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

mo-bot review · mo-bot-local · review

Commit: 05317bd6745d34e6e65d7d970761eee4f52a9092

Assessment: approve

Reviewed the complete delta and affected callers. Removing the write-only receiver history is a coherent simplification: offset remains the delivery authority, and message ownership, filtering, ordering, cancellation and wakeups remain unchanged. It eliminates growing index storage and append copying without transferring work elsewhere. No actionable defects or substantive discussion disputes remain.

Model: gpt-6-astra / xhigh

Session: 01a13dcf-1517-7f90-b3f9-c5f9f9e7031b · slot 0 · generation 1

Validation:

  • Static AST/token audit passed: deleting only the unused field and its self-append reproduces the head token stream. Scanned all 6,824 tracked Go files and verified receiver constructors use keyed fields.

  • Evidence audit passed: exact head/base/patch, clean source, formatting and complete discussion accounting. Both check-run receipts match the frozen source, retained logs and exit code 0.

  • Saved discussion-assessment.json, review-scope.json and receipt-log-map.json under /home/xupeng/.local/state/mo-bot/jobs/92c2dcfa17594a22906e6e17/attempt-1.

Limitations:

  • No product package, native or race tests were executed locally. local_validation is empty; author test claims lack retained execution evidence, and product CI remains pending. Approval rests on the verified narrow dead-state transformation.

  • Allocation and retention improvements are expected from the removed index slice; no performance measurements were made. Board message retention remains unchanged.

  • Referenced issue #29249 has no body in the supplied evidence; this assessment covers the concrete PR contract, not broader issue closure.

@XuPeng-SH XuPeng-SH closed this Oct 27, 2026
XuPeng-SH added a commit that referenced this pull request Oct 27, 2026
## What type of PR is this?

- [ ] API-change
- [ ] BUG
- [ ] Improvement
- [ ] Documentation
- [ ] Feature
- [ ] Test and CI
- [x] Code Refactoring

## Which issue(s) this PR fixes:

Refs #29249

## What this PR does / why we need it:

Remove unused helpers, duplicate bookkeeping and transient state whose
consumers have already been retired. This consolidates the 19 closed
cleanup PRs into one reviewable change on current main; each affected
file matches its original published PR, with no additional cleanup.

The cleanup covers TAE task/logstore/merge/RPC helpers, HAKeeper replica
views, obsolete ETL writer and path state, batch/vector constructors,
RPC client bookkeeping, metrics/CDC/fulltext state, MongoScan, message
receivers, fixture helpers and interactive viewport state. Retained
execution, ownership, cancellation, parser/error, replay, plugin
registration and MySQL driver registration paths remain intact.

Supersedes #31325, #31327, #31329, #31331, #31332, #31333, #31334,
#31335, #31336, #31337, #31339, #31340, #31341, #31342, #31343, #31344,
#31345, #31346 and #31347. Already merged #31323/#31324 and Python SDK
#31322 are excluded.

Validation on the combined change: all 30 changed owning packages built;
28 ran tests, with 2,066 top-level / 4,580 named cases passing and two
existing external-data ETL tests skipped. The two support packages have
no tests. Existing component-level race, before/after probes and
consumer checks were reviewed for reuse. Formatting, go vet and
incremental golangci-lint passed; forced all-four-analyzer molint
reported six findings already reproduced at the baseline, with no new
findings. These are local focused checks, not a full CI or GPU run.
@XuPeng-SH
XuPeng-SH deleted the codex/message-receiver-history-20261026 branch November 1, 2026 05:01

This branch was previously deployed

1 inactive deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/refactor Code refactor size/S Denotes a PR that changes [10,99] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants