Skip to content

[ENG-1118] Prepare public CI for header-based plugin promotion - #277

Merged
liwenXtrace merged 2 commits into
mainfrom
codex/eng-1118-promotion-header-guard
Sep 23, 2026
Merged

liwenXtrace merged 2 commits into
mainfrom
codex/eng-1118-promotion-header-guard

Conversation

@liwenXtrace

@liwenXtrace liwenXtrace commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Prepare public CI for the internal port of #272 (ENG-1118): https://github.com/XTraceAI/agent-plugins-internal/pull/42. The new promotion export reports its package version in X-MemHub-Plugin-Version while preserving the canonical MCP URL, which Codex hashes for OAuth. Today's public parity guard requires the broken query format and would reject that generated release.

Require the exact production URL and one matching version header for new releases. Grandfather only the already-shipped 0.76.1 config with its exact existing query and no headers so this CI-only PR can land before promotion. Remove that exception after the first header-based promotion.

Only tests and the repository-level upgrade guide change; this PR does not edit plugin bytes, versions, tags, or marketplace pins. The fix itself is developed and exported from XTraceAI/agent-plugins-internal; promotion copies only plugins/memhub/, which is why the public CI prerequisite must land separately.

Validation (all exit 0):

  • python3 tests/version_parity_test.py against the unchanged public 0.76.1 package
  • python3 tests/mcp_oauth_identity_test.py — 4 tests covering the registered identity, the exact legacy exception, rejected query parameters on new versions, and missing/stale/ambiguous headers
  • python3 tests/registration_test.py
  • The updated guard also passes against the real internal 0.77.1 production export.
  • git diff --check

The required real-agent production-fixture workflow has been dispatched on the final head: https://github.com/XTraceAI/agent-plugins/actions/runs/35811206090. Its result and all automatic release gates are required before merge.

@liwenXtrace
liwenXtrace deployed to production-plugin-release September 22, 2026 18:29 — with GitHub Actions Active
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 22, 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-09-23T02:42:44.406345Z 04a2313 New commits
ℹ️ 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: 205d81ad0a

ℹ️ 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 on lines +51 to +57
if server.get("url") != canonical_url:
errors.append(f"MCP URL must stay {canonical_url!r} across releases; "
"query parameters change the registered OAuth identity")
reported = [value for name, value in server.get("headers", {}).items()
if name.lower() == "x-memhub-plugin-version"]
if reported != [version]:
errors.append(f"loaded MCP connection must send one version header "

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Update the release guide to use the version header

When preparing the next release, docs/plugin-operations-upgrade.md lines 4–6 still instruct maintainers to carry the version in the MCP URL and update that URL with the manifest. Following that documented process now produces a configuration this new guard rejects because it requires the canonical URL plus X-MemHub-Plugin-Version; since promotion copies only plugins/memhub/, it cannot correct the repository-level guide later. Update the release documentation alongside this contract change.

Useful? React with 👍 / 👎.

@xtrace-memhub-staging

Copy link
Copy Markdown

🧠 Session context

1 session behind this pull request.

Team rules that fired while building this

  • Delegate big file reads to a cheaper model (gate, 1×)
  • fetch-before-origin-read (advise, 1×)
  • Run agent-plugins tests via run_all.py on Python 3.12 (advise, 1×)

Effort
1 session · 32m agent time · 10.6M tokens · 125 turns

Sessions

@liwenXtrace
liwenXtrace deployed to production-plugin-release September 23, 2026 02:39 — with GitHub Actions Active
@liwenXtrace
liwenXtrace deployed to production-plugin-release September 23, 2026 02:39 — with GitHub Actions Active
@liwenXtrace
liwenXtrace deployed to production-plugin-release September 23, 2026 02:39 — with GitHub Actions Active
@liwenXtrace
liwenXtrace deployed to production-plugin-release September 23, 2026 02:39 — with GitHub Actions Active
@liwenXtrace
liwenXtrace merged commit 4235361 into main Sep 23, 2026
12 checks passed

This branch was successfully deployed

1 active deployment
production-plugin-release — 04a2313c Deployed Sep 23, 2026 by liwenXtrace via production #172
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