Skip to content

test: port the wip reindex-readiness OTel and MCP contracts - #5756

Merged
Sinity merged 2 commits into
masterfrom
claude/wip-residue-tests
Sep 28, 2026
Merged

Sinity merged 2 commits into
masterfrom
claude/wip-residue-tests

Conversation

@Sinity

@Sinity Sinity commented Sep 28, 2026

Copy link
Copy Markdown
Owner

Summary

Ports the still-relevant tests from the orphaned custody branch wip/reindex-readiness-only-20260927 (bead polylogue-gtqzv). Each test was adapted to run against master's current production route. Porting the MCP judge test exposed one defect, fixed here: a daemon-required refusal reached MCP clients under the generic polylogue_error code.

Problem

Solution

  • tests/unit/sources/parsers/test_otel_genai_contract.py: the nine branch contracts. All pass against master's parser as written. The only changes are fixture typing.
  • tests/unit/mcp/test_mcp_writer_boundary.py: the capability inventory test, plus a judge test on the current route. The real MCP judge handler must refuse with daemon_required and leave user.db byte-identical, with the candidate still unjudged.
  • polylogue/mcp/server_support.py: maps FacadeDaemonRequiredError to its own code.

Dropped as obsolete, with a reason recorded on the bead:

  • The requested-fields tests. test_query_units_selects_message_fields_without_materializing_full_rows already covers the same route through the facade.
  • The SLO failed-benchmark test. Master's test_failed_benchmark_with_valid_json_is_not_scored_and_keeps_diagnostics covers it.
  • The Claude artifact observation at raw admission. archive/artifact_taxonomy/runtime.py classifies these now.

Verification

  • devtools test tests/unit/sources/parsers/test_otel_genai_contract.py tests/unit/sources/parsers/test_otel_genai.py tests/unit/mcp/test_mcp_writer_boundary.py tests/unit/mcp/test_tool_error_isolation.py: PASSED exit=0
  • devtools gate layering: passed. mypy passes on the changed files.

🤖 Generated with Claude Code

https://claude.ai/code/session_015pdKaZWyGe6Ngvsz468dzg

Nine OTLP-JSON GenAI parser contracts from the 2026-09-27 custody
snapshot pass unchanged against master's parser: live acquisition,
replay-stable identity, dedup and order-independent conflicts, per-trace
span identity, trace fallback, empty-attribute precedence, late parents,
schema-url status, and fidelity states.

The MCP judge route now writes through the daemon, so its test asserts
the daemon-required refusal instead of an in-process ownership check.
That exposed the MCP error mapping reporting FacadeDaemonRequiredError
as the generic polylogue_error; it now carries its typed daemon_required
code.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_015pdKaZWyGe6Ngvsz468dzg
@Sinity
Sinity enabled auto-merge (squash) September 28, 2026 21:26
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 28, 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-28T22:33:49.212684Z 89cfeee Manual request
🔒 Security Review ✅ Completed 2026-09-28T21:30:03.201476Z facf9e9 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.

@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: facf9e9d2f

ℹ️ 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 thread polylogue/mcp/server_support.py Resolved
@Sinity
Sinity disabled auto-merge September 28, 2026 22:01
@Sinity
Sinity enabled auto-merge (squash) September 28, 2026 22:11
@Sinity

Sinity commented Sep 28, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: 89cfeee31a

ℹ️ 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".

@Sinity
Sinity merged commit d91f492 into master Sep 28, 2026
3 of 4 checks passed
@Sinity
Sinity deleted the claude/wip-residue-tests branch September 28, 2026 22:35
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