GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||
GeezerVison is showing github.com — feat(mcpx): live API-spec add/remove over /v1 + CLI parity (#2118 item a) by dezren39 · Pull Request #4637 · developing-today/code Conversation
|
|
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 24 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. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Codex Review Summary: ✅ CompletedThis 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. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: 91021b4eb9
Your 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".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Correction to the test summary above: the full |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
- daemon: compare the API name against servers resolved namespaces (mcpx.namespace), not their names, before persisting (P1) - cli: resolve local --spec paths against the CLI working directory before sending them to the daemon (P2) - config: decode API/adapter declaration documents with UseNumber so editing apis/adapters cannot round exact sibling numbers such as a tool-view pinned ID above 2^53 (P2); regression test TestAPIEditsPreserveExactNumbers (oracle: exact literal round-trip) Task 13398 (lane code-v), issue #7297.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: 6f26f0e973
Your 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".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
…m a)
Add apis_add (POST /v1/apis) and apis_remove (DELETE /v1/apis/{name})
following the adapters_add pattern from PR #2565: persist the
declaration into the first paths.apis file that names API files and
reload, so the API is callable immediately and survives restart;
refuse with a remedy when no API file is configured, on cross-file
duplicates, and on server-namespace collisions.
CLI: mcpx api add <name> --spec <doc> [...] and mcpx api remove
<name> go through the daemon like adapter add/remove. Regenerated
ops.gen.ts and docs/parity.md; the api manual entry now lists
add/remove and drops the stale local-only note.
- daemon: compare the API name against servers resolved namespaces (mcpx.namespace), not their names, before persisting (P1) - cli: resolve local --spec paths against the CLI working directory before sending them to the daemon (P2) - config: decode API/adapter declaration documents with UseNumber so editing apis/adapters cannot round exact sibling numbers such as a tool-view pinned ID above 2^53 (P2); regression test TestAPIEditsPreserveExactNumbers (oracle: exact literal round-trip) Task 13398 (lane code-v), issue #7297.
…(PR #4637) Codex P1 round 2: the namespace collision check compared only the RESOLVED namespace, so an API named exactly like a configured server whose mcpx.namespace differs (backend -> pets) was persisted and then rejected by augmentAPIs at reload. Exact-name collisions are now refused independently, with the API-generated exemption kept. Regression: TestAPIAddRefusesExactServerNameWithForeignNamespace (backend and pets both 409, nothing persisted). Branch rebased onto current main (parity ops count 89) and plugin/core/ops.gen.ts regenerated. Verified: daemon suite pass; api/cli parity pass; internal/config TestServerKeysAnotherHostWritesAreRecordedNotRefused and conformance TestMessagesClient subtest fail identically on clean main (pre-existing, unrelated).
6f26f0e to
130a155
Compare
|
@codex review |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: 130a155405
Your 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".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
🤖 Agent note · picked up (resume) — task 13398, lane code-d
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
) Codex round-3 P2 on 130a155: the apis_add collision check re-sanitized an already-resolved namespace before comparing (SanitizeNamespace(resolved) == want). Resolve preserves an explicit mcpx.namespace verbatim and ResolveAll compares resolved namespaces exactly, so the extra sanitization invented collisions: a server with explicit namespace "pets$" falsely blocked an API named "pets_". Compare resolved == want directly, matching ResolveAll semantics. Regression test TestAPIAddAllowsNameThatOnlySanitizesToAnExplicitNamespace (oracle: ResolveAll's exact owners-map comparison, plus the Codex example): server backend with mcpx.namespace "pets$" now allows API "pets_" (200, persisted). Tests: go test ./internal/daemon/ ./internal/cli/ pass; ./internal/config/ has one failure (TestServerKeysAnotherHostWritesAreRecordedNotRefused) that reproduces identically on clean main - pre-existing, tracked on issue #8007, untouched by this change. Task 13398, lane code-d (resume of the code-v / any-b dispositions).
|
@codex review Re-review head 4eb8e85: the round-3 P2 (re-sanitized resolved-namespace comparison in |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: 4eb8e85fc2
Your 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".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
… live aliases (PR #4637) Two Codex round-4 P2s on 4eb8e85, both accepted: 1. Disabled servers were counted as namespace owners in the apis_add collision check, but ResolveAll skips disabled servers entirely, so a disabled `backend` with mcpx.namespace "pets" falsely refused API "pets" with 409. The namespace hit is now gated on the server being enabled; the independent exact-server-name refusal is unchanged. 2. apis_remove deleted the declaration before reloading, so an enabled server aliasing the API (pets-view aliasOf pets) stranded the config: every later reload and daemon start failed in Resolve with the entry already gone. Removal now refuses with 409 BEFORE writing when an enabled configured server's aliasOf names the API; a disabled alias (skipped by ResolveAll) does not gate removal. Regression tests (oracles: ResolveAll's disabled-skip and exact owners semantics, and Resolve's unknown-alias rejection): TestAPIAddAllowsNamespaceOwnedByADisabledServer, TestAPIRemoveRefusesWhenAnEnabledAliasDependsOnIt, TestAPIRemoveAllowsWhenOnlyADisabledAliasDependsOnIt. Tests: go test ./internal/daemon/ ./internal/cli/ -count=1 pass (full suites). Task 13398, lane code-d.
|
@codex review Round 5, head 76420e0: both round-4 P2s are fixed and dispositioned on their threads (disabled servers no longer own namespaces in the apis_add check; apis_remove refuses with 409 before writing while an enabled alias depends on the API), each with regression tests; full daemon + cli suites pass. Please confirm. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. 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". |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
🤖 Agent note · done — merged (task 13398, lane code-d, resume)
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
mcpx: generalised live add + generated declarations for bare binaries (split of #1875)
There was an error while loading. Please reload this page.