Repository navigation
chore(license): relicense to Apache-2.0 and ship third-party notices for the bundled CLI - #14
Merged
Merged
Conversation
The LICENSE is the unmodified Apache License 2.0 as apache.org publishes it, and a NOTICE now states the copyright and points at the notices for what the CLI bundles. Every manifest in the workspace says Apache-2.0, published or not; releases up to and including 0.3.0 stay MIT, which the README says plainly. Contributions come in under the same license they go out under, stated by a Developer Certificate of Origin sign-off rather than a CLA. The DCO workflow checks every commit a pull request adds, not just the last one, and prints the `git rebase --signoff` that fixes a branch that forgot. It runs from the base branch and reads refs/pull/N/head, so a pull request can neither edit the check that gates it nor hide a commit from it, and it measures the range from the merge base, so a branch is never asked to account for commits it merely inherited. Event values reach the shell through the environment and the token is read-only. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Signed-off-by: Lucas Braum <[email protected]>
The published CLI is one bundle: it inlines the engine and everything under it, so Apache-2.0 obliges us to ship the notice of each package whose code is in there. The list is read from esbuild's metafile, every input that contributed bytes to an output, and never from `dependencies` -- a declared dependency may be tree-shaken away and a bundled one may never have been declared here at all. Resolving each input to the manifest that owns it works through pnpm's store layout. Each entry carries name, version, SPDX identifier and the full text of every license and NOTICE file the package ships, NOTICE files verbatim. TypeScript has no package of its own in the bundle: @ts-morph/common vendors the compiler as one pre-bundled file. One declared entry covers it, proven against the metafile rather than trusted -- if that file leaves the bundle the entry is reported as stale instead of quietly disappearing -- with the version read out of the file, Microsoft's Apache header carried over verbatim, and the license body from the installed compiler, named. A bundled package with no license text, or a license outside the allowlist, fails the build and the tests rather than shipping. `prepack` refuses to pack without the file, so a tarball never goes out with the notices missing, and `--check` catches one left behind by an older build. The output is sorted and holds no timestamp or absolute path, so the same bundle always renders the same bytes. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Signed-off-by: Lucas Braum <[email protected]>
Every manifest in this repository is this repository's own file, so where one states a license it states Apache-2.0 -- the synthetic consumer repositories under `fixtures/repos/` and `smoke/fixtures/`, the synthetic dependency packages the engine diffs, and the local entries of the two fixture `package-lock.json` files. Six manifests keep MIT, and a test now says why: `node-fetch`, `p-limit` and `file-type` under `fixtures/module-format/` reproduce the published manifest of a real npm package at a real version, down to `engines` and the `exports` conditions, because that is what the module-format check reads. Their license is a fact about those packages, not a claim about this project, and restating it would make the fixture wrong. The same goes for the registry entries in the fixture lockfiles, which keep the licenses npm recorded. A test walks `git ls-files '*package.json'` rather than a fixed list, so a manifest added later cannot quietly state something else, and the exceptions have to keep naming a real package to stay exempt. Another covers the lockfiles from both sides: our own entries say Apache-2.0, the registry's still say what the registry said. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Signed-off-by: Lucas Braum <[email protected]>
The check took the checker from the base branch, so that a pull request could not edit the gate that reviews it. That failed on the first pull request to add it -- `main` has no `scripts/dco.mjs`, and the job ended in MODULE_NOT_FOUND -- and it was never the protection it looked like: for a `pull_request` event GitHub reads the workflow definition from the pull request too, so the step invoking the checker was the pull request's either way. So it runs the checker it checked out, as `pnpm lint` already does. What actually keeps the job safe is the event, and that is unchanged: `pull_request`, never `pull_request_target`, so the token is read-only and no secret is ever in reach, whoever opened it. The range is now stated outright instead of relying on what the checkout happened to fetch: `refs/pull/N/head` and `refs/heads/<base>` are both fetched from this repository with full history, and the commits measured from their merge base. Those refs are CI's own bookkeeping and nobody can rebase onto them, so `--base-name` carries the branch the failure message should name. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Signed-off-by: Lucas Braum <[email protected]>
Sixteen fixture manifests stated no license at all -- the synthetic repositories under `fixtures/repos/list-accuracy/` and `fixtures/repos/nest-discovery/`, and the two `storefront` workspace packages. Saying nothing is not an answer: the code in them is this repository's, so the manifest says so, alongside the metadata at the top where the fixtures that already had the field keep it. The policy test no longer skips a manifest that omits the field; every one of the sixty-nine manifests `git ls-files` finds must state Apache-2.0, bar the six `fixtures/module-format/` manifests that reproduce a real npm package's published metadata and keep that package's own MIT. Nothing reads a manifest's license, and the discovery fixtures prove it: `list` still finds exactly what it found before. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Signed-off-by: Lucas Braum <[email protected]>
Only the repository root and the workspace packages under packages/ state Apache-2.0. Fixtures and smoke-test data are test inputs: their manifests and lockfiles are back to what main has, byte for byte, and the two tests that required Apache-2.0 in them are removed. Co-Authored-By: Claude Fable 5.1 <[email protected]> Signed-off-by: Lucas Braum <[email protected]>
lucasbraum
added a commit
that referenced
this pull request
Oct 15, 2026
## Pack `openai` `>=4 <5` → `>=7 <8` (queue entry `openai`). **Candidate, not verified.** Kept as a draft: the gate fails on two engine gaps found while scoring (below), not on the pack's rules. The queue entry is set to `blocked` with that reason. One pack covers 4 → 7, not three. 5.0 carries nearly all API changes (MIGRATION.md). 6.0's only breaking entry is one type widening; 7.0's only breaking entry is the Node 22 floor. 5.12.1 (a minor) made tool calls a function | custom union. Nothing later reverts 5.0, and every public upgrade found jumps 4.x → 7.x directly. Evidence: `packages/core/src/packs/openai/RESEARCH.md`, "One pack, not three". ## Sources Pinned at v7.32.0, read 2026-10-14 (all in `meta.sources`): - [MIGRATION.md v7.32.0](https://github.com/openai/openai-node/blob/v7.32.0/MIGRATION.md), compared with its v5.0.0, v6.0.0 and v7.0.0 copies - [CHANGELOG.md v7.32.0](https://github.com/openai/openai-node/blob/v7.32.0/CHANGELOG.md), every entry from 4.104.0 to 7.32.0 - Release notes for [5.12.1](https://github.com/openai/openai-node/releases/tag/v5.12.1), [6.0.0](https://github.com/openai/openai-node/releases/tag/v6.0.0) and [7.0.0](https://github.com/openai/openai-node/releases/tag/v7.0.0) - The published `package.json` and `.d.ts` of 4.104.0, 5.0.0, 5.11.0, 5.12.0, 5.12.1, 6.0.0, 6.49.0, 7.0.0 and 7.32.0 Each change is classified as mechanical, assisted, behavior note, or not compiler-visible in RESEARCH.md. ## Rules and behavior notes Rules: - `named-path-params` (M): `runs.retrieve(threadId, runId)` → `runs.retrieve(runId, { thread_id })` for 28 methods, which includes 3 the guide's list omits (`runs.poll`, `submitToolOutputsAndPoll`, `submitToolOutputsStream`; taken from the 7.x `.d.ts`). It rewrites only inert arguments and an unambiguous third argument; anything else goes to the agent. It also has a syntactic detect, so clients typed `any` are found. - `delete-method` (M): `.del()` → `.delete()`. A bare `files.del` / `models.del` is detected only on a known client binding. - `beta-chat` (M): `beta.chat.completions.parse|stream|runTools` → `chat.completions.*`. - `runner-renames` (M): `functionCall*` events and `finalFunctionCall*()` → `functionToolCall*`. - `removed-modules` (M/A): deletes a side-effect `openai/shims/*` import; moves beta chat types to `openai/resources/chat/completions` when every imported name exists there; `openai/src` → `openai`. Everything else (`openai/core`, deeper `src` paths) goes to the agent. - `core-paths` (M, deprecated): `openai/error|pagination|resource|streaming|uploads` → `openai/core/*`. - `request-options` (M): `list({ headers })` → `list({}, { headers })`. It is detected syntactically because 7.x types those keys `?: never`, so the compiler message doesn't name them. - `http-agent` (A): the agent picks one of `undici` ProxyAgent, `undici` Agent or a custom fetch, and the choice goes to Decisions for you. - `file-from-path` (A): the agent picks `fs.createReadStream` or `toFile(…, name)`, and the choice goes to Decisions for you. - `run-functions`, `page-helpers`, `page-classes`, `removed-exports`, `tool-call-union` (5.12.1), `function-output-union` (6.0): all assisted (A). Behavior notes: - `error-headers`, `web-response`, `encoded-path-params`: reported as findings. Each has a syntactic detect for what the compiler can't see through `any`/`unknown`: - `catch (e) { e.headers['retry-after'] }` - `res.body.pipe(...)` after `asResponse()` - `encodeURIComponent(id)` passed to an SDK method - `platform-minimums`, `zod-helpers`, `builtin-fetch`, `global-types`, `client-subclass`: reported as decisions, each shown only with evidence from the repository (`applies()`). The evidence covers Node/TypeScript pins, zod below the `^3.25 || ^4` peer, `openai/helpers/zod` importers, proxy agents and global dispatchers, tsconfig `lib` without DOM, and `extends OpenAI`. - `also-review`: a decision pointing to the guide. Pack settings: - `requiresBuild: true`: 7.x exports explicit subpaths only, where 4.x exported `./*`. A deep import that `moduleResolution: node` resolves from disk can therefore fail in Node or a bundler. - No release group: openai-node publishes only `openai`, and `@openai/agents` is on its own 0.x line. ## Ground-truth repositories All are public, pinned at the parent of a merged upgrade, and installed with scripts off. They were drafted with `pnpm packs:truth` (with `--also` for what the upgrade moved because of openai) and assigned by hand **before scoring**, then left unchanged. | Repository | Parent | Upgrade | Versions | Expected | | --- | --- | --- | --- | --- | | zeikar/charivo | `b9a476d9` | [`ef509fde`+`67ae240f`](zeikar/charivo@b9a476d...67ae240) | 4.104.0 → 7.10.0 | 3 `tool-call-union` | | openai/openai-guardrails-js | `6c13ba08` | [#122](openai/openai-guardrails-js#122) | 4.104.0 → 7.9.0 (+ `@openai/agents` 0.17.2, zod 4.5.4) | 11 `generic` | | wardby/wardby | `d46ec64d` | [#231](wardby/wardby#231) | 4.104.0 → 7.30.0 | 2 `generic` | | csnyder256/ux-struggle-detector | `b7308489` | [#11](csnyder256/ux-struggle-detector#11) | 4.104.0 → 7.23.0 | 2 `generic` | | grantsingleton/batch-ai | `05c7e9f1` | [#14](grantsingleton/batch-ai#14) | 4.83.0 → 7.4.0 (+ zod 4.4.3) | 2 `generic` | | digitalchokro/askchokro | `047fc448` | [#31](digitalchokro/askchokro#31) | 4.104.0 → 7.4.0 | 0 | | microsoft/prompty (`runtime/typescript`) | `e878b6b7` | [#527](microsoft/prompty#527) | 4.104.0 → 7.10.0 | 0 | I found these by web search and by mining the npm registry for packages whose published manifests moved `openai ^4` → `^7`. The screened-out candidates and the reason for each are listed in RESEARCH.md. ### Results | | Precision | Recall | TP | FP | FN | | --- | ---: | ---: | ---: | ---: | ---: | | **Breaking** | **42.86%** | **15%** | 3 | 4 | 17 | | Overall | 5% | 15% | 3 | 56 | 17 | | `tool-call-union` | 100% | 33% | 1 | 0 | 2 | The pack's own rules and detectors add **no false positive** in any of the seven repositories. Every false positive comes from `check`'s generic findings: - **4 breaking:** guardrails `examples/…multiturn_with_prompt_injection_detection.ts:331, 413, 428, 430`. These are real TS2345/TS2769 errors at 7.9.0. But `examples/` is outside the repository's only tsconfig, so the upgrade didn't touch it and the tsconfig-scoped truth doesn't list it. They stay false positives. - **52 non-breaking:** prompty. Its workspace packages import an unbuilt `@prompty/core`, so `check` skips the compile and lists type-diff sites as `unverified`. Misses: - charivo `:119`: found, but as `generic`. The compiler message (`Property 'name' does not exist on type '{}'`) names nothing of openai, so the rule does not claim it. - charivo `:135`: a knock-on parameter change with no diagnostic. - guardrails `client.ts` ×10: a client-subclass rework for `withOptions()` cloning with no compiler error. The `client-subclass` decision names this file, but decisions aren't scored. - wardby ×2, batch-ai ×2: optional type cleanups. - ux-struggle-detector ×2: a request-parameter change (`max_tokens` → `max_completion_tokens`), which the pack never makes by design. ### What the engine could not express (why this is a candidate) 1. **Companion planning.** `check/companions.ts` moves packages that depend or peer on the lead, but never the lead's own peers or a dependent the upgrade moved. batch-ai keeps zod 3.24.2 even though openai 7 peers on `zod ^3.25 || ^4.0`. guardrails' `@openai/agents` and zod are left behind too. Both repos therefore fail `with`. 2. **Compile scope.** `check` compiles importers outside every tsconfig, while `packs:truth` compiles tsconfigs only. That mismatch is the source of all 4 breaking false positives above. 3. `applies()` only sees the declared inventory, so the pack declares source globs to find helper imports and subclasses. 4. With `--no-llm`, an assisted site that wasn't rewritten is labelled in the PR body by its symbol path rather than its rule. The agent's task does use the rule. With 1 and 2 fixed and the same truth, the breaking predictions left would be the three true positives; `pack test --write` then needs a rerun. **CI:** the Packs workflow runs `pack test` and will fail on this PR for the reasons above. It is a draft until the engine changes land. ## `uptide pack test` output <details><summary>Full output of <code>pnpm uptide pack test openai --offline --write</code> (summary inline)</summary> ``` checking openai 4.104.0 → 7.10.0 in zeikar/charivo@b9a476d9acb5 checking openai 4.104.0 → 7.9.0 in openai/openai-guardrails-js@6c13ba08ab02 checking openai 4.104.0 → 7.30.0 in wardby/wardby@d46ec64dc0be checking openai 4.104.0 → 7.23.0 in csnyder256/ux-struggle-detector@b73084896208 checking openai 4.83.0 → 7.4.0 in grantsingleton/batch-ai@05c7e9f132b3 checking openai 4.104.0 → 7.4.0 in digitalchokro/askchokro@047fc4485538 checking openai 4.104.0 → 7.10.0 in microsoft/prompty@e878b6b7789f uptide pack test openai · candidate fixtures 6 cases, 37 sites · pass ground truth zeikar/charivo@b9a476d9acb5 openai 4.104.0 → 7.10.0 predicted 2, expected 3, false positives 0, false negatives 1 openai/openai-guardrails-js@6c13ba08ab02 openai 4.104.0 → 7.9.0 predicted 5, expected 11, false positives 4, false negatives 10 ✗ @openai/agents: the upgrade moved it to 0.17.2, check leaves it ✗ zod: the upgrade moved it to 4.5.4, check leaves it wardby/wardby@d46ec64dc0be openai 4.104.0 → 7.30.0 predicted 0, expected 2, false positives 0, false negatives 2 csnyder256/ux-struggle-detector@b73084896208 openai 4.104.0 → 7.23.0 predicted 0, expected 2, false positives 0, false negatives 2 grantsingleton/batch-ai@05c7e9f132b3 openai 4.83.0 → 7.4.0 predicted 0, expected 2, false positives 0, false negatives 2 ✗ zod: the upgrade moved it to 4.4.3, check leaves it digitalchokro/askchokro@047fc4485538 openai 4.104.0 → 7.4.0 predicted 0, expected 0, false positives 0, false negatives 0 microsoft/prompty@e878b6b7789f openai 4.104.0 → 7.10.0 predicted 52, expected 0, false positives 52, false negatives 0 rule precision recall tp fp fn generic 2% 6% 1 57 16 tool-call-union 100% 33% 1 0 2 overall (sites) 5% 15% 3 56 17 breaking (sites) 43% 15% 3 4 17 false positives (56) openai/openai-guardrails-js@6c13ba08ab02 examples/basic/multiturn_with_prompt_injection_detection.ts:331 generic (breaking) openai/openai-guardrails-js@6c13ba08ab02 examples/basic/multiturn_with_prompt_injection_detection.ts:413 generic (breaking) openai/openai-guardrails-js@6c13ba08ab02 examples/basic/multiturn_with_prompt_injection_detection.ts:428 generic (breaking) openai/openai-guardrails-js@6c13ba08ab02 examples/basic/multiturn_with_prompt_injection_detection.ts:430 generic (breaking) microsoft/prompty@e878b6b7789f packages/foundry/src/azure-executor.ts:58 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/azure-executor.ts:71 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/azure-executor.ts:73 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/azure-executor.ts:91 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/azure-executor.ts:92 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/azure-executor.ts:103 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/azure-executor.ts:104 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/azure-executor.ts:116 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/azure-executor.ts:117 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/azure-executor.ts:134 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/azure-executor.ts:138 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/azure-executor.ts:142 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/azure-executor.ts:143 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/azure-models.ts:75 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/azure-models.ts:83 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/azure-models.ts:85 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/azure-models.ts:201 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/azure-models.ts:212 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/azure-models.ts:213 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/executor.ts:95 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/executor.ts:108 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/executor.ts:110 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/executor.ts:128 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/executor.ts:129 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/executor.ts:140 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/executor.ts:141 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/executor.ts:153 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/executor.ts:154 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/executor.ts:171 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/executor.ts:176 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/executor.ts:193 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/executor.ts:207 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/tests/integration.test.ts:95 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/tests/integration.test.ts:100 generic (unverified) microsoft/prompty@e878b6b7789f packages/openai/src/executor.ts:64 generic (unverified) microsoft/prompty@e878b6b7789f packages/openai/src/executor.ts:77 generic (unverified) microsoft/prompty@e878b6b7789f packages/openai/src/executor.ts:79 generic (unverified) microsoft/prompty@e878b6b7789f packages/openai/src/executor.ts:99 generic (unverified) microsoft/prompty@e878b6b7789f packages/openai/src/executor.ts:100 generic (unverified) microsoft/prompty@e878b6b7789f packages/openai/src/executor.ts:111 generic (unverified) microsoft/prompty@e878b6b7789f packages/openai/src/executor.ts:112 generic (unverified) microsoft/prompty@e878b6b7789f packages/openai/src/executor.ts:124 generic (unverified) microsoft/prompty@e878b6b7789f packages/openai/src/executor.ts:125 generic (unverified) microsoft/prompty@e878b6b7789f packages/openai/src/executor.ts:218 generic (unverified) microsoft/prompty@e878b6b7789f packages/openai/src/executor.ts:222 generic (unverified) microsoft/prompty@e878b6b7789f packages/openai/src/models.ts:71 generic (unverified) microsoft/prompty@e878b6b7789f packages/openai/src/models.ts:100 generic (unverified) microsoft/prompty@e878b6b7789f packages/openai/src/models.ts:102 generic (unverified) microsoft/prompty@e878b6b7789f packages/openai/tests/integration.test.ts:125 generic (unverified) microsoft/prompty@e878b6b7789f packages/openai/tests/integration.test.ts:126 generic (unverified) microsoft/prompty@e878b6b7789f packages/openai/tests/integration.test.ts:340 generic (unverified) microsoft/prompty@e878b6b7789f packages/openai/tests/integration.test.ts:341 generic (unverified) false negatives (17) zeikar/charivo@b9a476d9acb5 packages/llm/src/openai-tool-format.ts:135 tool-call-union openai/openai-guardrails-js@6c13ba08ab02 src/client.ts:9 generic openai/openai-guardrails-js@6c13ba08ab02 src/client.ts:31 generic openai/openai-guardrails-js@6c13ba08ab02 src/client.ts:44 generic openai/openai-guardrails-js@6c13ba08ab02 src/client.ts:51 generic openai/openai-guardrails-js@6c13ba08ab02 src/client.ts:81 generic openai/openai-guardrails-js@6c13ba08ab02 src/client.ts:121 generic openai/openai-guardrails-js@6c13ba08ab02 src/client.ts:134 generic openai/openai-guardrails-js@6c13ba08ab02 src/client.ts:141 generic openai/openai-guardrails-js@6c13ba08ab02 src/client.ts:171 generic openai/openai-guardrails-js@6c13ba08ab02 src/client.ts:214 generic wardby/wardby@d46ec64dc0be src/providers/llm/openai.ts:107 generic wardby/wardby@d46ec64dc0be src/providers/llm/openai.ts:188 generic csnyder256/ux-struggle-detector@b73084896208 src/lib/providers/openai.ts:24 generic csnyder256/ux-struggle-detector@b73084896208 src/lib/providers/openai.ts:66 generic grantsingleton/batch-ai@05c7e9f132b3 src/index.ts:32 generic grantsingleton/batch-ai@05c7e9f132b3 src/index.ts:35 generic reported under another rule (1) zeikar/charivo@b9a476d9acb5 packages/llm/src/openai-tool-format.ts:119 generic, expected tool-call-union FAIL openai: 4 false positives among breaking findings ``` </details> ## Smoke test (not ground truth) I ran `uptide fix openai --no-llm --keep-temp` locally on [uptide-test/alanagoyal](https://github.com/uptide-test/alanagoyal), upgrading openai 4.104.0 → 7.33.0. - **The pack was forced active.** Only verified packs are active, so I edited this pack's `verification.json` locally for the run. The edit was never committed and was restored right after. - **No LLM key** was available, so all 5 compiler errors stay manual. They are the 5.12.1 tool-call union (`tc.function.*`), which `tool-call-union` claims. - **Decisions:** Node 24.x and TypeScript ^5 already meet the floor, so only the general review line appears. - **Nothing was pushed or published.** The stored PR body: <details><summary>PR body produced by <code>uptide fix openai</code></summary> ````markdown ## Upgrade openai 4.104.0 → 7.33.0 **Review required before merging.** The code was migrated to openai 7. New type errors remain. Assisted fixes disabled (--no-llm). | | | |---|---| | **Verified by** | ✅ the openai migration pack · ❌ type-check · ❌ build · ✅ tests (1 run) | | **Risk** | High: manual sites left; unverified sites | | **Changes** | 5 sites · 2 changed files · 0 auto-fixed · 0 fixed by the agent (LLM) · 5 manual | | **Types** | ❌ the upgrade broke 5 · Uptide left 5 | | **Behavior** |⚠️ not checked | | **Tests** | ✅ 1 workspace passed · the `test` script of the repository | <details><summary>Moved with the upgraded packages · 37 transitive changes</summary> Inside the upgraded packages’ own dependency subtrees; every other resolution is unchanged. - `openai` 4.104.0 → 7.33.0 removed @types/node 18.19.130; removed @types/node 20.11.24; removed @types/node-fetch 2.6.13; removed abort-controller 3.0.0; removed agentkeepalive 4.6.0; removed asynckit 0.4.0; removed call-bind-apply-helpers 1.0.2; removed combined-stream 1.0.8; removed delayed-stream 1.0.0; removed dunder-proto 1.0.1; removed es-define-property 1.0.1; removed es-errors 1.3.0; removed es-object-atoms 1.1.1; removed es-set-tostringtag 2.1.0; removed event-target-shim 5.0.1; removed form-data 4.0.6; removed form-data-encoder 1.7.2; removed formdata-node 4.4.1; removed function-bind 1.1.2; removed get-intrinsic 1.3.0; removed get-proto 1.0.1; removed gopd 1.2.0; removed has-symbols 1.1.0; removed has-tostringtag 1.0.2; removed hasown 2.0.4; removed humanize-ms 1.2.1; removed math-intrinsics 1.1.0; removed mime-db 1.52.0; removed mime-types 2.1.35; removed ms 2.1.3; removed node-domexception 1.0.0; removed node-fetch 2.7.0; removed tr46 0.0.3; removed undici-types 5.26.5; removed web-streams-polyfill 4.0.0-beta.3; removed webidl-conversions 3.0.1; removed whatwg-url 5.0.0. </details> ### What changed **1. OpenAI.ChatCompletionMessageToolCall#function** · 5 sites · manual Manual migration required: no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual. <details><summary>Diff and reasoning</summary> Representative diff was not retained in this stored run. - `app/api/chat/route.ts` (3) - `evals/chat.eval.ts` (2) no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual </details> ### Worth a look - Manual: `route.ts:321` — no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual. - Manual: `route.ts:318` — no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual. - Manual: `route.ts:317` — no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual. - Manual: `chat.eval.ts:194` — no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual. - Manual: `chat.eval.ts:192` — no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual. - Resolve 5 new type errors before merging (see verification details). ### Decisions for you - Also review the [openai migration guide](https://github.com/openai/openai-node/blob/v7.32.0/MIGRATION.md) for the 5.0 changes the compiler cannot see in this repository (pagination internals, CommonJS resource classes), and the 6.0 and 7.0 changelog entries. <details><summary>Verification details</summary> Type errors: baseline 0; target 5; after 5; 5 new. Verification: FAIL. Build after the bump in `.`: `next build` — failed | Workspace | Baseline tests | Target tests | |---|---|---| | . | passed | passed | - `.`: the `test` script of the repository — `node --import tsx --test tests/*.test.ts` **Remaining errors** - app/api/chat/route.ts:317 TS2339: Property 'function' does not exist on type 'ChatCompletionMessageToolCall'. Property 'function' does not exist on type 'ChatCompletionMessageCustomToolCall'. - app/api/chat/route.ts:318 TS2339: Property 'function' does not exist on type 'ChatCompletionMessageToolCall'. Property 'function' does not exist on type 'ChatCompletionMessageCustomToolCall'. - app/api/chat/route.ts:321 TS2339: Property 'function' does not exist on type 'ChatCompletionMessageToolCall'. Property 'function' does not exist on type 'ChatCompletionMessageCustomToolCall'. - evals/chat.eval.ts:192 TS2339: Property 'function' does not exist on type 'ChatCompletionMessageToolCall'. Property 'function' does not exist on type 'ChatCompletionMessageCustomToolCall'. - evals/chat.eval.ts:194 TS2339: Property 'function' does not exist on type 'ChatCompletionMessageToolCall'. Property 'function' does not exist on type 'ChatCompletionMessageCustomToolCall'. **Tests: .** ```text TAP version 13 # Subtest: declares the complete mobile support matrix explicitly ok 1 - declares the complete mobile support matrix explicitly --- (repeated 176 times) duration_ms: 3.231196 type: 'test' (repeated 175 times) ... (repeated 176 times) # Subtest: sends every unsupported mobile app to Notes ok 2 - sends every unsupported mobile app to Notes duration_ms: 0.964052 … (test output truncated here; all tests passed) ``` **Run notes** - `APIError.headers` is a Web `Headers` in openai 5: `error.headers[name]` is undefined; read `error.headers.get(name)` - `asResponse()`/`withResponse()` return a Web `Response` in openai 5: node-fetch members (`body.pipe`, `headers.raw()`, `buffer()`) are gone - openai 5 URI-encodes path parameters itself: an id passed through `encodeURIComponent` is encoded twice - openai-node migration guide, v7.32.0 (read 2026-10-14): https://github.com/openai/openai-node/blob/v7.32.0/MIGRATION.md - openai-node migration guide as released with 5.0.0: https://github.com/openai/openai-node/blob/v5.0.0/MIGRATION.md - openai-node changelog, 5.0.0 to 7.32.0 (read 2026-10-14): https://github.com/openai/openai-node/blob/v7.32.0/CHANGELOG.md - openai 5.12.1: tool calls become a function | custom union: https://github.com/openai/openai-node/releases/tag/v5.12.1 - openai 6.0.0: function call outputs widen: https://github.com/openai/openai-node/releases/tag/v6.0.0 - openai 7.0.0: Node.js 22 required: https://github.com/openai/openai-node/releases/tag/v7.0.0 </details> <details><summary>Run details</summary> Uptide 0.12.1 · agent disabled (--no-llm) · 0.0k/0.0k tokens · $0.00 · 4 min Uptide commit: `40e870b6daebbc2301b17536434fca2b9d5c8af2` (working-tree changes) Branch: `uptide/openai-7.33.0` Tier: verified (a migration pack covers this upgrade) Verified at: 2026-10-14T07:10:06.426Z Verified commit: `10c85e2210b4bfc6413596223c2068799c694e17` Verified tree: `68de481fd3864a230da21afaf1bcdf75c9da4617` </details> ```` (The test log inside is shortened here; "Tier: verified" and "Verified by ✅ the openai migration pack" reflect the local forced activation described above.) </details> ## Checklist - [x] Every rule and note comes from a source listed in `meta.sources` - [x] Every rule that rewrites or detects has a fixture case, with a site it must leave alone (`keep`) - [x] Ground truth: public repositories at the commit before their upgrade; expected findings read from their own upgrade commit and the compiler, never copied from Uptide's output - [x] At least two public repositories for `verified`; otherwise the pack ships as a candidate (7 public repositories; candidate because of the 4 engine false positives and 2 left-behind upgrades) - [ ] `pnpm uptide pack test <package>` passes and its output is pasted above; `verification.json` written with `--write`: **it fails** (4 breaking false positives, all from `check`'s generic compile). The output is pasted above, and `verification.json` records `candidate` via `--write`. - [x] `pnpm lint && pnpm typecheck && pnpm test` pass (core 1548 passed / 32 skipped, CLI 438 passed; `pnpm lint` reports one pre-existing warning in `next/platform.test.ts`) - [x] Changeset added (patch: a candidate pack, the dependency stays generic) - [x] No private code, names or paths anywhere: fixtures are synthetic, ground truth is public 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01FX2nBoNEvDh9v71yDhEzxL --- _Generated by [Claude Code](https://claude.ai/code/session_01FX2nBoNEvDh9v71yDhEzxL)_ --------- Signed-off-by: Claude <[email protected]> Co-authored-by: Claude <[email protected]>
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.
Relicenses Uptide from MIT to Apache-2.0, and makes the published CLI carry the notices
that obliges, generated from the bundle rather than written by hand.
Published versions up to and including 0.3.0 stay MIT. The included changeset is a minor
bump, so Apache-2.0 takes effect from 0.4.0.
A. Apache-2.0
LICENSEis the unmodified Apache License 2.0 text fromhttps://www.apache.org/licenses/LICENSE-2.0.txt(
sha256 cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30, 202 lines,byte-for-byte as published).
NOTICE(new) opens withUptide/Copyright 2026 Lucas Braum and the Uptide contributorsand points atTHIRD-PARTY-NOTICES.license: "Apache-2.0"in every manifest in the workspace: the private root,uptide, and the private@uptide/core.community.test.tsnow enumeratespackages/*/package.jsonrather than a fixed list, so a new package cannot quietlystate a different license.
LICENSEandNOTICEship in the tarball:prepackcopies both from therepository root (as it already did for
README.mdandLICENSE),postpackremovesthem, and
fileslistsNOTICE.states releases up to and including 0.3.0 were MIT. The badge is a static shields.io
image linking to
LICENSE, becausereadme.test.tsrequires the README to link norepository on GitHub.
CONTRIBUTING.mddocuments the DCO:git commit -s, what the trailer looks like,that every commit needs it, and the
git rebase --signoff+git push --force-with-leaserecovery. Contributions are licensed Apache-2.0, the same licensethe project is released under — inbound equals outbound, no CLA.
.github/workflows/dco.yml+scripts/dco.mjs(new) check every commit a pullrequest adds. See How the DCO check handles the range below.
Every manifest in the repository, fixtures included
All 69
package.jsonfilesgit ls-filesfinds now state a license, and 63 of themstate Apache-2.0 — the three project manifests, the 51 synthetic consumer repositories
and dependency packages under
fixtures/, and the 9 smoke fixtures underpackages/cli/smoke/fixtures/. So do the local entries of the two fixturepackage-lock.jsonfiles ("",packages/api,packages/shared).Sixteen of those stated no license at all before this PR — the synthetic repositories under
fixtures/repos/list-accuracy/andfixtures/repos/nest-discovery/, and the twostorefrontworkspace packages. Saying nothing is not an answer about terms, so they nowsay Apache-2.0, placed with the metadata at the top where the fixtures that already had the
field keep it.
Six manifests keep MIT, and they are the only exceptions. Under
fixtures/module-format/,node-fetch(2.7.0, 3.3.2),p-limit(3.1.0, 6.2.0) andfile-type(16.2.0, 22.1.1) reproduce the published manifest of a real npm package at areal version —
type,main/module, theexportsconditions andengines.node,because that is exactly what the module-format check reads. MIT is those packages' actual
license. Restating it as Apache-2.0 would make the fixture describe a package that does not
exist. The same reasoning leaves the 48 registry entries in the fixture lockfiles at the
licenses npm recorded for the real
stripe,zodandqsdependency trees.Two tests hold the line rather than a comment. One walks
git ls-files '*package.json'andrequires every manifest to state Apache-2.0 — a missing field fails it, not just a wrong
one — so neither a manifest added later nor one that forgets the field can slip through; and
each exception has to keep naming a real package (
fixtures/module-format/<name>-*) to stayexempt. The other checks both fixture lockfiles from both sides: our own entries say
Apache-2.0, the registry's still say what the registry said.
Nothing in the engine or the CLI reads a manifest's
licensefield, and the discoveryfixtures prove the additions are inert:
uptide listfinds exactly what it found before,across all thirteen
list-accuracyfixtures.Everything else
git grep -ni "\bMIT\b"still finds is deliberate:README.md,CONTRIBUTING.mdpackages/cli/src/community.test.tsLICENSEno longer containsMIT, and the six real-package exceptionspackages/cli/src/third-party-notices.test.tsMITas a fixture license in the allowlist testsTHIRD-PARTY-NOTICES(generated).github/ISSUE_TEMPLATE/*and.github/PULL_REQUEST_TEMPLATE.mdcontain no licensereference, so nothing changed there.
action.ymlhas no license field — the GitHub Actionmetadata schema has none; the Marketplace reads the repository
LICENSE, which this PRreplaces. No source file reads a manifest's
licensefield, so none of this changesbehaviour;
pnpm smokewas re-run after the lockfile edits to confirm.How the DCO check handles the range
Correctness and security of the range were the design constraints:
repository rather than assumed:
refs/pull/N/head, which resolves for a branch and afork alike, and
refs/heads/<base ref>, with full history. The commits are measured fromtheir merge base, not from
pull_request.base.sha(which goes stale as the basebranch moves) — so a long-running branch is never asked to account for commits it merely
inherited. Covered by a test that advances
mainwith unsigned commits after the branchforked.
number,base.ref) reach theshell only through
env:; commit messages and author names are never interpolated, onlyread through
git logwith separators a message cannot contain. The trigger ispull_request— neverpull_request_target— so the job holds a read-only token and nosecret is in reach, whoever opened it.
permissions: contents: read.message says
git merge --signoffworks and rebasing avoids them entirely.nothing about who wrote the patch, so the email must match the commit author's,
case-insensitively. A co-author's extra sign-off beside the author's is fine.
bookkeeping, so
--base-namecarries the real branch (origin/main) into the message.The first attempt took the checker from the base branch, so that a pull request could not
edit the gate reviewing it. It failed on this very pull request with
MODULE_NOT_FOUND(
mainhas noscripts/dco.mjs), and it was never the protection it looked like: for apull_requestevent GitHub reads the workflow definition from the pull request too, so thestep invoking the checker was the pull request's either way. Fixed in
f161165by runningthe checker from the pull request's own checkout, exactly as
pnpm lintalready does, and atest now asserts the workflow has no
ref:steering the checkout elsewhere.B. THIRD-PARTY-NOTICES for the bundle
packages/cli/scripts/third-party-notices.mjs(new) runs as part ofpnpm build(
tsup && node scripts/third-party-notices.mjs).The inventory is the bundle, never the dependency declarations.
tsupnow writesmetafile: true; the generator readsoutputs[*].inputsand keeps every input withbytesInOutput > 0. A declared dependency that is tree-shaken away is not in the list(there is a test for that), and a transitive package nobody declared here is. Each
input is resolved to the manifest that owns it by walking up to the first
package.jsonthat states a name and version, stopping at thenode_modulesboundary —which is what makes pnpm's
node_modules/.pnpm/<name>@<version>/node_modules/<name>layout and scoped packages resolve correctly, and what steps over a package's own
dist/package.json.Each entry carries name, version, SPDX identifier, and the full text of every
license file the package ships (
LICENSE,LICENCE.md,LICENSE-MIT,COPYING, …).A NOTICE file is reproduced verbatim, as Apache-2.0 section 4(d) requires. None of
the 17 packages currently ships one; the generator handles it if that changes.
17 packages, which is what
distactually contains:@ts-morph/commonbalanced-matchbrace-expansioncode-block-writercommanderfdirignoreiniminimatchpath-browserifypicocolorspicomatchsemvertinyglobbyts-morphtypescriptyamlTypeScript is vendored, not depended on
This is the finding that an inventory built from
dependencieswould have missed in bothdirections. TypeScript has no package of its own in the bundle.
@ts-morph/commonships the compiler as one pre-bundled file,
dist/typescript.js, and the CLI inlines thatfile — so the Apache-2.0 compiler is redistributed while nothing in the installed tree
attributes it. (
typescriptis only a devDependency here, and the installed one is 5.9.3,a different version from the one in the bundle.)
One declared
VENDOREDentry covers it, and it is proven against the metafile ratherthan trusted:
@ts-morph/commonmust be in the bundle and have contributeddist/typescript.js. If a future@ts-morph/commonstops shipping that file, the buildfails with "the entry in VENDORED is stale" instead of the compiler quietly vanishing
from the notices. There is a test for exactly that. The entry records:
6.0.2, read out of the bundled file itself (var version = "6.0.2");SPDX-License-Identifier: Apache-2.0;dist/typescript.js(Copyright (c) Microsoft Corporation. All rights reserved.andthe Apache-2.0 header it ships with);
typescriptpackage'sLICENSE.txt— that one file carries the copyright notice but not the license text.The notices name their source explicitly: "License text (LICENSE.txt of the installed
[email protected])", because the body is identical across TypeScript releases and
pretending otherwise would be the dishonest option.
Shipped, fresh, and reproducible
filesis["dist", "!dist/metafile-*.json", "NOTICE", "THIRD-PARTY-NOTICES"]. Themetafile is build bookkeeping and is kept out of the tarball;
package.test.tspins thelist and asserts
metafile-esm.jsonis the only non-.jsthing indist.prepackrefuses to pack withoutTHIRD-PARTY-NOTICES, so a tarball cannot bepublished with the notices missing.
--checkmode fails if the fileon disk does not match the current bundle, and a test runs it — so a
distbuilt withoutthe generator cannot slip through as stale.
bundle renders the same bytes. There is a test for that too.
The allowlist fails the build
0BSD,Apache-2.0,BSD-2-Clause,BSD-3-Clause,BlueOak-1.0.0,ISC,MIT.Anything else, or a bundled package with no license text at all, is a build failure and a
test failure.
packages/cli/src/third-party-notices.test.tsverifies the negative casesagainst synthetic pnpm-shaped trees it builds itself:
GPL-3.0-only,SEE LICENSE IN LICENSE, andGPL-2.0-only AND MIT— all rejected;(MIT OR GPL-3.0-only)andMIT AND ISC— both accepted, and every allowlist entry;VENDOREDentry;node_modulesthat belongs to no package;Validation
All run locally on Node 22.20.0:
pnpm lintpnpm buildTHIRD-PARTY-NOTICES: 17 bundled packagespnpm typecheckpnpm test@uptide/core778 passed / 15 skipped;uptide314 passed (27 new: 15 notices, 10 DCO, 2 license policy)pnpm smoke 22smoke: all assertions passed— the packed tarball in a cleannode:22container against the npm, npm-workspaces, pnpm, yarn and yarn-berry fixtures, zod and stripepnpm public:check674 tracked files … cleannode scripts/dco.mjs origin/main HEAD2 commits … every commit is signed offpublic:checkwas run locally with a stand-in denylist (UPTIDE_PRIVATE_DENYLISTis arepository secret): the tree scan and the
--require-denylistpath both pass, and one ofthe stand-in terms was this machine's home directory prefix, which confirms no local path
leaked into the new files. CI runs the authoritative check with the real denylist.
npm pack --dry-run— complete file listpackages/cli, 19 files, 2,264,263 B packed / 11,640,165 B unpacked:LICENSE,NOTICE,README.mdandTHIRD-PARTY-NOTICESare all present;dist/metafile-esm.jsonis correctly absent;postpackleaves no copies behind inpackages/cli. Chunk file names are content hashes and differ between builds — that isexisting
tsupbehaviour, unrelated to this change.Out of scope but touched
packages/cli/src/package.test.tsassertedfiles === ["dist"]and that everything indistended in.js. Both had to change, because the bundle now also emits the metafilethe generator reads. Rather than weaken the assertions, they were tightened: the test pins
the exact
fileslist and asserts the metafile is the only non-.jsentry and is excludedfrom the tarball.
packages/cli/src/community.test.tsenumerated three manifests by hand; it now walks theworkspace and
git ls-filesinstead, so the license policy covers manifests nobodyremembered to add to a list — and rejects one that states no license at all.
scripts/public-tree.mjsnow scansNOTICEas text alongsideLICENSE, so the newroot-level file is covered by the private-identifier check rather than skipped.
Not merged
Opening only, as asked.
🤖 Generated with Claude Code