Repository navigation
refactor(schema): deslop duplicated schema types - #164286
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Keep schema-derived public types compatible with strict optional-property consumers. Preserve existing tool-policy, OAuth metadata, caller payload, readonly, and index-signature contracts while removing mirrored shapes. Peter approved on 2026-10-03 exactly one additional SDK export for ChannelThreadBindingsSchema. Fresh main's ceiling is 3643; this change sets 3644. No other SDK budget increases.
8418ea7 to
79ac6d8
Compare
|
Current-head landing evidence for CI run 37158937049 completed with 124 successful jobs. Production/test types, lint, generated assets, package boundaries, macOS Node, Swift packages, Android, and security checks passed. The only failures are the following two inherited fixture failures and their aggregate CI gate:
Both exact failure sets also occur in current, unrelated x08 PR #164269 at head The previous head's empty-object lint error was corrected and is green here. Its Swift audio-level assertion passed on this head without changing Swift code or weakening assertions; no exception is applied to Swift. The inherited fixture defects remain with the main CI coordinator. Per Peter's explicit 2026-10-03 direction, use the inherited non-security failure exception for a squash merge pinned to the API head above. The merged delta is -1,106 production lines. The squash message and PR body retain Peter's approval for exactly one SDK export: main 3643 -> candidate 3644 for |
What Problem This Solves
Runtime schemas, parsers, protocol records, and handwritten TypeScript declarations repeated the same shapes, creating multiple definitions to maintain for each contract.
User Impact
No user-visible behavior change. Config keys, persisted records, protocol shapes, model-facing schemas, and validation behavior stay the same. The combined x02 and held x09 batch removes 1,106 net production lines across 178 files, excluding tests, fixtures, docs, and generated artifacts.
Why This Change Was Made
This includes the held x09 stack ending in
b5f69e60675(e3c9784d24b,2b0c170036f, andb5f69e60675). Integration keeps main's canonical binding/query owners and removed exports/imports.SDK approval: Peter approved on 2026-10-03 exactly one additional public export for
ChannelThreadBindingsSchema. Main's ceiling moved from 3642 to 3643, so this batch sets 3644. No other SDK budget increases.Evidence
exactOptionalPropertyTypes, preservation cases, and an identity-mapper negative control that reproduces the widening regression. Earlier coverage compared 449 exported types plus channel-specific contracts.The integrated plugin-contract run passed 1,131 of 1,132 tests across 48 files (564.19 seconds). Its one failure was the unchanged dependency scanner treating
extensions/codex/native-session-binding.test-api.tsas runtime code because it imports Vitest. Main already fixes this in3afb9bd07bc; the pushed-head hosted merge-ref run will verify that fix together with this batch. No scanner exception or dependency was added by this PR.Canonical asset generation refreshed the Workboard content-addressed manifest, and the committed whole-repository asset check passes byte-for-byte. Both refreshed cycle checks report zero on the final candidate
1e015527d66a86892996c355e4581cbd60764fa8.The original hosted run failed on this PR's wrapper inventory, Workboard asset hash, and SDK ceiling. This update includes the inventory repair, canonical asset regeneration, and approved ceiling; these are not claimed as inherited failures. The macOS-only worktree provisioning test previously timed out at its unchanged 120-second limit; hosted CI on this exact head is the gate, per Peter's direction. Final local lint preparation also hit its unchanged 300,000 ms SDK declaration-build timeout before lint ran; it is not claimed as a lint pass. The completed compiler checks and strict emitted-declaration proof remain separate evidence, and hosted CI must validate lint/build on the published candidate. No timeout or assertion was weakened.
Remote proof was attempted on Blacksmith Testbox
tbx_01m41etrqrzbkdsx0fb7rc11r0(run); source preparation stalled before validation. The lease is stopped. Direct AWS refused allocation at the shared lease limit. Validation uses the authorized sequential low-priority local fallback; no remote test pass is claimed.The resumed hosted run 37157050744 passed build artifacts, production/test typechecks, extension package boundaries, baseline ratchets, and macOS Node checks. It exposed this PR's empty-object type lint error; the correction uses
Pick/Required, passes canonical core lint and fresh strict declaration parity, and received clean independent review. No lint suppression was added. The run also had Copilot/Google Meet fixture failures matching the current unrelated x08 run, and a Swift audio-level assertion whose inheritance is unproven. The corrective exact-head run passed the lint and Swift gates without weakening checks.Final exact-head CI and inherited failures
Current-head landing evidence for
1e015527d66a86892996c355e4581cbd60764fa8.CI run 37158937049 completed with 124 successful jobs. Production/test types, lint, generated assets, package boundaries, macOS Node, Swift packages, Android, and security checks passed. The only failures are the following two inherited fixture failures and their aggregate CI gate:
extensions/copilot/src/tool-bridge.test.ts. Direct-tool fixtures receive the default Tool Search controls; examples areexpected web_fetch to be definedandtool_searchbeing selected instead of the fixture tool. Main enables Tool Search by default, while these unchanged fixtures assume direct tools. The quarantine case fails at tool lookup before its boundary assertion.extensions/google-meet/index.test.ts. Durable transcript cleanup hitsGatewayLockNamespaceErrorfor a fresh owner in a different PID namespace, followed byPrevious meeting fixture cleanup did not complete. The ownership guard continues to reject access; the lock classifier, durable finalization owner, and cleanup helper are unchanged.Both exact failure sets also occur in current, unrelated x08 PR #164269 at head
c38fb0486d541cac90fa705c59d379223b97aff0, run 37143843649 / job 111263822740. The failure owners are unchanged by either branch. Google Meet schema consolidation and x08 URL helpers are in the broader import graph; the matched failure is in the unchanged ownership/cleanup path. All current-head security-sensitive review and Security High boundary checks are successful.The previous head's empty-object lint error was corrected and is green here. Its Swift audio-level assertion passed on this head without changing Swift code or weakening assertions; no exception is applied to Swift. The inherited fixture defects remain with the main CI coordinator.
Per Peter's explicit 2026-10-03 direction, use the inherited non-security failure exception for a squash merge pinned to the API head above. The merged delta is -1,106 production lines. The squash message and PR body retain Peter's approval for exactly one SDK export: main 3643 -> candidate 3644 for
ChannelThreadBindingsSchema, with no other budget increase.