Skip to content

refactor(surface): derive transports from operation descriptors - #1113

Open
ScriptedAlchemy wants to merge 7 commits into
codex/tracedecay-total-redesign-plan-reopenedfrom
sol/operation-surface-1087-1091
Open

refactor(surface): derive transports from operation descriptors#1113
ScriptedAlchemy wants to merge 7 commits into
codex/tracedecay-total-redesign-plan-reopenedfrom
sol/operation-surface-1087-1091

Conversation

@ScriptedAlchemy

Copy link
Copy Markdown
Owner

Summary

  • derive application MCP, CLI, HTTP, SDK, schema, handler, and executable projections from the canonical operation descriptors
  • remove seven per-family HTTP registries, manual application MCP definition modules, and 79 redundant MCP binding rows
  • keep one canonical diagnostics request/result owner with cursor, pagination, cancellation, and typed no-executor unavailability
  • remove the unshipped tracedecay_diagnostics_read name
  • preserve the shipped flat tracedecay_diagnostics MCP/CLI request through one edge adapter; 13 existing plugin bundles use that contract
  • preserve the shipped session_lookup SDK MCP transport and method

Results

  • application binding rows: 107 → 28
  • diff: about 1.5k additions / 3.9k deletions before final base refresh
  • diagnostics page default/max derive once as 1000; other operations retain default 10

Tests

  • focused RED/GREEN descriptor, diagnostics ownership/schema, SDK transport, and pagination tests
  • contracts, tool-catalog, MCP, API, CLI, SDK/codegen, application-surface, transport and product parity suites
  • dashboard contracts check
  • workspace check and clippy: 0 errors/warnings
  • formatting, diff check, and commitlint

Base-only observation

cli_non_interactive_test::branch_list_reads_profile_sharded_branch_meta prints its complete expected output and then hangs for 90 seconds. The same exact non-vacuous command reproduces identically on the current #707 base, so this PR does not alter it.

Closes #1087.
Closes #1091.

@changeset-bot

changeset-bot Bot commented Sep 8, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 2d66283

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 8, 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-08T17:20:12.671076Z 2d66283 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: 2d662830e7

ℹ️ 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 +67 to +70
input_schema: application_input_schema(
operation,
executable.request_schema().body(),
),

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 Preserve request bounds in derived MCP schemas

Projecting the raw schemars body makes tools/list advertise invalid Git read requests: the five Git read DTOs expose unconstrained Option<u32/u64> fields, so values such as max_entries: 0, max_entries: 1001, or max_bytes: 0 appear valid, while parse_git_read_surface_request still rejects anything outside 1..=1000 and 1..=4_194_304 (and similarly bounds history count). The removed git_read_bounds() projection advertised these limits and defaults, so schema-following MCP clients can now generate calls that admission rejects; encode these constraints in the canonical generated schema.

AGENTS.md reference: AGENTS.md:L138-L140

Useful? React with 👍 / 👎.

@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Performance Comparison codex/tracedecay-total-redesign-plan-reopenedsol/operation-surface-1087-1091

Total Elapsed Time: 5.04s → 4.98s (-1.3%)
CPU Baseline: 83.92µs → 83.22µs (-0.8%)
Benchmark ID: index-bench-timing

timing - Execution duration of functions.

+------------------------------------------+----------------------------+--------------------------------+--------------------------------+---------------------------------+------------------------------+
| Function                                 | Calls                      | Avg                            | P95                            | Total                           | % Total                      |
+------------------------------------------+----------------------------+--------------------------------+--------------------------------+---------------------------------+------------------------------+
| tracedecay-index-bench                   | 1 → 1 (+0.0%)              | 5.04s → 4.98s (-1.2%)          | 5.05s → 4.98s (-1.4%)          | 5.04s → 4.98s (-1.2%)           | 100.00% → 100.00% (+0.0%)    |
+------------------------------------------+----------------------------+--------------------------------+--------------------------------+---------------------------------+------------------------------+
| query.artifact.append_pages              | 13 → 13 (+0.0%)            | 192.31ms → 184.02ms (-4.3%)    | 268.96ms → 243.53ms (-9.5%)    | 2.50s → 2.39s (-4.4%)           | 49.58% → 48.06% (-3.1%)      |
+------------------------------------------+----------------------------+--------------------------------+--------------------------------+---------------------------------+------------------------------+
| query.artifact.batch.sqlite              | 13 → 13 (+0.0%)            | 121.93ms → 123.20ms (+1.0%)    | 165.02ms → 165.02ms (+0.0%)    | 1.59s → 1.60s (+0.6%)           | 31.44% → 32.18% (+2.4%)      |
+------------------------------------------+----------------------------+--------------------------------+--------------------------------+---------------------------------+------------------------------+
| query.artifact.batch.postings            | 13 → 13 (+0.0%)            | 110.67ms → 111.62ms (+0.9%)    | 151.39ms → 151.78ms (+0.3%)    | 1.44s → 1.45s (+0.7%)           | 28.53% → 29.15% (+2.2%)      |
+------------------------------------------+----------------------------+--------------------------------+--------------------------------+---------------------------------+------------------------------+
| code_index.workers.install               | 83 → 83 (+0.0%)            | 16.82ms → 15.63ms (-7.1%)      | 68.22ms → 50.63ms (-25.8%) 🚀  | 1.40s → 1.30s (-7.1%)           | 27.69% → 26.07% (-5.9%)      |
+------------------------------------------+----------------------------+--------------------------------+--------------------------------+---------------------------------+------------------------------+
| domain.canonical.sha256                  | 110414 → 110414 (+0.0%)    | 9.54µs → 9.39µs (-1.6%)        | 14.88µs → 14.81µs (-0.5%)      | 1.05s → 1.04s (-1.0%)           | 20.88% → 20.84% (-0.2%)      |
+------------------------------------------+----------------------------+--------------------------------+--------------------------------+---------------------------------+------------------------------+
| code_index.build.and_publish             | 2 → 2 (+0.0%)              | 486.40ms → 478.65ms (-1.6%)    | 563.09ms → 547.88ms (-2.7%)    | 972.81ms → 957.29ms (-1.6%)     | 19.29% → 19.23% (-0.3%)      |
+------------------------------------------+----------------------------+--------------------------------+--------------------------------+---------------------------------+------------------------------+
| query.artifact.batch.postings.ngram_rows | 13 → 13 (+0.0%)            | 61.10ms → 62.00ms (+1.5%)      | 84.08ms → 84.93ms (+1.0%)      | 794.25ms → 805.95ms (+1.5%)     | 15.75% → 16.19% (+2.8%)      |
+------------------------------------------+----------------------------+--------------------------------+--------------------------------+---------------------------------+------------------------------+
| query.artifact.finalization.advance_wake | 14 → 14 (+0.0%)            | 46.44ms → 50.66ms (+9.1%)      | 282.07ms → 302.51ms (+7.2%)    | 650.12ms → 709.22ms (+9.1%)     | 12.89% → 14.25% (+10.6%)     |
+------------------------------------------+----------------------------+--------------------------------+--------------------------------+---------------------------------+------------------------------+
| query.artifact.prepare_pages             | 13 → 13 (+0.0%)            | 56.67ms → 48.55ms (-14.3%)     | 84.80ms → 63.83ms (-24.7%) 🚀  | 736.69ms → 631.19ms (-14.3%)    | 14.61% → 12.68% (-13.2%)     |
+------------------------------------------+----------------------------+--------------------------------+--------------------------------+---------------------------------+------------------------------+
| code_index.chunk.index_file              | 276 → 276 (+0.0%)          | 2.23ms → 2.16ms (-3.1%)        | 3.32ms → 3.19ms (-3.9%)        | 615.31ms → 595.15ms (-3.3%)     | 12.20% → 11.96% (-2.0%)      |
+------------------------------------------+----------------------------+--------------------------------+--------------------------------+---------------------------------+------------------------------+
| code_index.extract.parser_artifact       | 276 → 276 (+0.0%)          | 2.16ms → 2.11ms (-2.3%)        | 3.29ms → 3.16ms (-4.0%)        | 597.38ms → 583.70ms (-2.3%)     | 11.85% → 11.73% (-1.0%)      |
+------------------------------------------+----------------------------+--------------------------------+--------------------------------+---------------------------------+------------------------------+
| query.artifact.batch.postings.term_rows  | 13 → 13 (+0.0%)            | 39.33ms → 39.57ms (+0.6%)      | 63.60ms → 63.18ms (-0.7%)      | 511.28ms → 514.38ms (+0.6%)     | 10.14% → 10.33% (+1.9%)      |
+------------------------------------------+----------------------------+--------------------------------+--------------------------------+---------------------------------+------------------------------+
| query.artifact.batch.parallel_prepare    | 13 → 13 (+0.0%)            | 46.47ms → 39.00ms (-16.1%)     | 70.78ms → 51.77ms (-26.9%) 🚀  | 604.16ms → 507.05ms (-16.1%)    | 11.98% → 10.19% (-14.9%)     |
+------------------------------------------+----------------------------+--------------------------------+--------------------------------+---------------------------------+------------------------------+
| code_index.build.assemble                | 2 → 2 (+0.0%)              | 215.64ms → 211.47ms (-1.9%)    | 227.28ms → 223.22ms (-1.8%)    | 431.29ms → 422.94ms (-1.9%)     | 8.55% → 8.50% (-0.6%)        |
+------------------------------------------+----------------------------+--------------------------------+--------------------------------+---------------------------------+------------------------------+

Generated with hotpath-rs

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