Repository navigation
fix(mcpx): repair two merge-wave breakages on main — stale parity doc, elicitations seed missing last_touched_ms - #2587
Conversation
…, 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.
|
Warning Review limit reachedYou'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. View limit details
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. Comment |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
) 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.
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):
TestParityDocumentIsCurrentfailed. Regenerated with the test's own-updatemode.last_touched_ms(ttl-touch-on-read broker migration) butseedElicitationin 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.Need help on this PR? Tag
@codesmith-botwith what you need.