Skip to content

fix(mcpx): repair two merge-wave breakages on main — stale parity doc, elicitations seed missing last_touched_ms - #2587

Merged
dezren39 merged 1 commit into
mainfrom
fix/mcpx-main-red-parity-elicit-seed
Oct 30, 2026
Merged

dezren39 merged 1 commit into
mainfrom
fix/mcpx-main-red-parity-elicit-seed

Conversation

@dezren39

@dezren39 dezren39 commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

The merge-everything wave left main red in the mcpx nix check phase (found by a full build of the primary tree at 3a42555, derivation 3wqkmvk1):

  1. docs/parity.md stale — surface changes landed without regenerating the parity document; TestParityDocumentIsCurrent failed. Regenerated with the test's own -update mode.
  2. e2e elicitation seed — the elicitations table gained last_touched_ms (ttl-touch-on-read broker migration) but seedElicitation in internal/e2e still inserted 16 positional values into the 17-column table, failing TestElicitationsCanBeListedAndAnsweredFromTheCommandLine and TestACredentialQuestionIsRoutedToAHuman at seeding ("table elicitations has 17 columns but 16 values were supplied"). The seed now supplies last_touched_ms = creation time.

Verified locally: both e2e tests pass, parity test passes without -update, and a full nix build .#mcpx (checkPhase = every package) is the merge gate. This unblocks the pending NixOS switch (deploy chain for #2220/#2250), which builds mcpx from main.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

…, elicitations seed missing last_touched_ms

The merge-everything wave left main red in the nix check phase (verified by a full build of the primary tree): (1) docs/parity.md was stale after surface changes landed without regenerating it — regenerated via TestParityDocumentIsCurrent -update. (2) The elicitations table gained last_touched_ms (ttl-touch-on-read, via the broker migration) but the e2e seedElicitation helper still inserted 16 positional values into the 17-column table, failing TestElicitationsCanBeListedAndAnsweredFromTheCommandLine and TestACredentialQuestionIsRoutedToAHuman at seeding. The seed now supplies last_touched_ms = creation time.
@dezren39
dezren39 requested a review from a team as a code owner October 30, 2026 05:54
@coderabbitai

coderabbitai Bot commented Oct 30, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 84192308-27b7-4aa6-b771-dde8cd0a8967
Commits

Reviewing files that changed from the base of the PR and between 3a42555 and d5e81cc.

Files selected for processing: 2
  • pkgs/mcpx/docs/parity.md
  • pkgs/mcpx/internal/e2e/e2e_test.go
  • 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

Comment @coderabbitai help to get the list of available commands.

@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-30T05:56:12.117307Z d5e81cc PR opened
ℹ️ 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.

@dezren39
dezren39 merged commit efeea69 into main Oct 30, 2026
7 of 8 checks passed
@dezren39
dezren39 deleted the fix/mcpx-main-red-parity-elicit-seed branch October 30, 2026 06:14
dezren39 added a commit that referenced this pull request Oct 30, 2026
)

Both failures from the 2026-10-30 switch build are test-side races,
not product regressions: the Go code in internal/hooks and
internal/mcpclient is byte-identical to the last green verification
(efeea69, PR #2587) - the only mcpx change since is the #1910
TypeScript plugin work - and a re-run of the identical mcpx
derivation (a0nzf2m5) passes both packages.

1. TestDeclaredHookFiresOnMatchingKindsOnly waited for the marker
   file to EXIST, then read it. The hook command is "cat > marker":
   cat creates the file before it writes the stdin payload, so under
   build load the test could read the just-created empty file - the
   observed failure was exactly an empty payload. The wait now polls
   the payload content itself, the same pattern the sibling
   python-hook test in this file already uses.

2. TestSupervisedPumpDetachReattach reattached immediately after
   Close(). Close returns when the local connection closes; the
   supervisor clears its attach slot when it notices the disconnect,
   asynchronously - so under load the reattach hit the (by-design)
   "already attached" refusal. The test now polls the reattach until
   the slot frees (10s deadline, refusal-only retries); production
   semantics are unchanged, including the refusal a genuinely
   attached second client still gets.

Verified: both packages 5/5 consecutive green; the two tests at
-count=100 / -count=60 green; gofmt + go vet clean.
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