Repository navigation
test: port the wip reindex-readiness OTel and MCP contracts - #5756
Conversation
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
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. |
There was a problem hiding this comment.
💡 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".
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_015pdKaZWyGe6Ngvsz468dzg
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep it up! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
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 genericpolylogue_errorcode.Problem
judgeroute now writes through the daemon. Without a running daemon it raisesFacadeDaemonRequiredError, whose code isdaemon_required, butmcp_error_payloadreported it aspolylogue_error.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 MCPjudgehandler must refuse withdaemon_requiredand leaveuser.dbbyte-identical, with the candidate still unjudged.polylogue/mcp/server_support.py: mapsFacadeDaemonRequiredErrorto its own code.Dropped as obsolete, with a reason recorded on the bead:
test_query_units_selects_message_fields_without_materializing_full_rowsalready covers the same route through the facade.test_failed_benchmark_with_valid_json_is_not_scored_and_keeps_diagnosticscovers it.archive/artifact_taxonomy/runtime.pyclassifies 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=0devtools gate layering: passed. mypy passes on the changed files.🤖 Generated with Claude Code
https://claude.ai/code/session_015pdKaZWyGe6Ngvsz468dzg