Repository navigation
fix(contracts): remove the duplicate advertisedOutputJsonSchema declaration - #11057
Merged
Merged
Conversation
…ration #11005 left two exported declarations of advertisedOutputJsonSchema in src/contracts/toolSchemaMetadata.ts, so main no longer typechecks (TS2451). The second declaration takes an optional target that defaults to the first one's fixed draft-2020-12, so it covers every caller. The first is removed and its documentation moves onto the remaining one.
Codex Review Summary: ❌ FailedThis 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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Contributor
[Low impact] This focused cleanup appears safe to merge. SummaryRemoves the duplicate
Reviews (1) · Last reviewed commit: "fix(contracts): remove the duplicate adv..." · Reviewed by Greptile |
22 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Main typechecks again. #11005 left two exported declarations of
advertisedOutputJsonSchemainsrc/contracts/toolSchemaMetadata.ts. This keeps the general one and removes the other.Problem and expected behavior
On main at 08420be,
npm run check:fastfails withTS2451: Cannot redeclare block-scoped variable 'advertisedOutputJsonSchema'atsrc/contracts/toolSchemaMetadata.ts:145and:185. Every local merge gate that runscheck:fastagainst main is refused for this, unrelated to the PR it checks (for example #11038, #11039, #11041 and #11049 in the auto-merge log).Change and scope
Remove the first declaration, which hard-codes the
draft-2020-12target.Keep the second, whose optional
targetdefaults todraft-2020-12, so every existing call projects the same schema. Its documentation now includes the first one's note about the canonical full output profile.Not included: any other contract change.
Contribution scope: not applicable (compile fix within an existing module).
Contract and boundary impact
src/contracts/toolSchemaMetadata.tsremains the single owner of advertised output schemas.docs/public/product-catalog.json), package, or installation impact (CI generates and validates ignored catalogs andskills/; edit authored instructions in.agents/skills/reverse-engineer-anything/and never commit build outputs): none.Expected effects (check known effects; use documentation-only on its own).
Unchecked items do not establish absence; leave uncertainties visible.
Evidence and regression coverage
npm run check:faston main fails with the two TS2451 errors above; with this change it passes.For evidence-bearing changes:
Validation performed
npm run check:fast: failed on main (TS2451 twice); passes with this change.npm run test:local -- src/application/analysisView/BrowserScenarioViews.test.ts src/contracts/analysisDetail.test.ts src/contracts/outputSchemaDefinitions.test.ts: 29 passed.node scripts/verify/architecture-guards.mjsandnpx oxfmt --check src/contracts/toolSchemaMetadata.ts: passed.Compatibility, safety, and release
Author readiness
Human owner:
Before merge
type(scope): outcome.