Repository navigation
mcpx: SourceSHA256 provenance fingerprint + adapter manual update (salvage from #9041) - #10989
Conversation
Codex Review Summary: ❌ FailedThis 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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
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 26 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. |
|
Codex review disposition (queue worker, lane any-g, task 18906): Codex review is quota-exhausted fleet-wide and did not run on this PR; it presented no findings to address. Verification stands on the local evidence in the PR body: pkgs/mcpx internal/cli and internal/adapter suites fully green (including the three new/extended oracle tests), go build clean, and the only full-suite failures (internal/defaults guard, internal/e2e restart/identity, daemon termination) reproduce identically on a pristine origin/main worktree at the PR base commit 71e7ac3 -- pre-existing, unrelated to this change. |
Closes #9172.
Ports the two additive salvage items from superseded PR #9041 (head cf7a74e, recovered via the PR ref after its branch was deleted) into the canonical #9161 implementation on main, and answers the issue's third question with a test:
adapter.ProvenancegainssourceSha256: the hex SHA-256 of the exact source text a declaration was generated from, so re-importing the same source is recognisably the same generation. Main's source-neutral shape now carries its source text from each producer (completion file bytes, probe output, man rendering, captured --help — top-level then each subcommand's, in order), and both provenance construction sites (the source ladder and--completion <file>) record the fingerprint via one helper. A--baredeclaration has no source text and records none.adaptermanual entry now describes deterministic generation + provenance/drift and the--completioninput, and its examples gainmcpx adapter import gitandmcpx adapter import --completion <file>.runCapturealready merges stderr into the captured output, so a binary whose--versionwrites to stderr already compares without drift; PR mcpx: adapter import generation from completions, man and --help (#1962) #9041's regression test is ported (adapted to main'sversionDrift) to pin the behavior.Tests (oracles are independent of the code under test):
TestBuildCompletionFileImportnow asserts the fingerprint equals SHA-256 of the fixture file's own bytes.TestGeneratedImportRecordsSourceFingerprint: the help-rung fingerprint equals SHA-256 of the fake binary's exact --help outputs, and is stable across re-import.TestVersionDriftReadsStderrVersion: a stderr-version binary compares without drift.go build ./...and the fullpkgs/mcpxtest suite pass; the targeted cli/adapter packages pass (32s/0.1s).Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.