Skip to content

Commit ae72da7

Browse files
joeclaude
authored andcommitted
Record that corecode-app is now the GitHub fork of new-api
The original corecode-app was renamed corecode-app-pre-fork and archived. Its main was pushed as a fast forward to alphafoxai/new-api, the existing fork of QuantumNous/new-api, which was then renamed corecode-app, so GitHub shows how far this repository is from upstream. The sync note now states what the move keeps and what it changes: the GCP identity matches by repository name and carries over, the relay deploy key is a new one of this repository's own, issues and pull requests #1-#8 stay in the archive, and a pull request in a fork defaults its base to upstream. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 9037504 commit ae72da7

1 file changed

Lines changed: 42 additions & 8 deletions

File tree

‎.agents/notes/implemented/process/2026-10-22-merge-upstream-new-api-by-tag.md‎

Lines changed: 42 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ Status: implemented
88
monorepo's `services/new-api` submodule without its history, so this repository
99
shared no commit with `QuantumNous/new-api`. A merge from upstream had no base:
1010
git either refused it or, with `--allow-unrelated-histories`, treated every file
11-
as a two-sided addition. GitHub does not mark the repository as a fork either,
12-
and an existing repository cannot be turned into one, so the "Sync fork" path
13-
was never available.
11+
as a two-sided addition. GitHub did not mark the repository as a fork either,
12+
and an existing repository cannot be turned into one, so GitHub could not show
13+
how far behind upstream it was.
1414

1515
The submodule pointed at `alphafoxai/new-api@db76827` on its `derouter` branch.
1616
That commit's tree is byte-identical to `1897f73a5`, and it sits six CoreCode
@@ -37,6 +37,24 @@ commits (N1–N5 and the theme) above upstream `633b4c5b1`, which is
3737
- **Upstream tags stay local.** `git push` without `--tags` sends only the
3838
branch. The upstream tags are reachable through the merged history and are
3939
not republished under this repository.
40+
- **This repository is the GitHub fork.** The original `corecode-app` was
41+
renamed `corecode-app-pre-fork` and archived. Its `main` was pushed as a fast
42+
forward to `alphafoxai/new-api`, the fork of `QuantumNous/new-api` that
43+
already existed, which was then renamed `corecode-app`. GitHub now reports
44+
the commits ahead of and behind upstream `main`. Issues and pull requests
45+
`corecode-app-pre-fork` #1–#8 stay in the archived repository; the fork's own earlier branches stay
46+
here.
47+
- **The fork keeps the deploy identity by name.** The workload identity
48+
provider admits `assertion.repository` values, which follow the repository
49+
name, so `alphafoxai/corecode-app` authenticates as before. GitHub does not
50+
return secret values, so `CORECODE_RELAY_SSH_KEY` here is a key of its own,
51+
`corecode-app-ci-20261022`, added to the relay `runner` account beside the key
52+
`corecode-provider` and `corecode-engine` use.
53+
- **A pull request targets this repository explicitly.** In a fork, the web
54+
"Compare & pull request" button and `gh pr create` default the base to
55+
`QuantumNous/new-api`. Check that the base reads `alphafoxai/corecode-app`
56+
before creating one. Do not use "Sync fork": it follows upstream `main`
57+
rather than a tag and offers to discard the commits here.
4058
- **`gh` is pinned to this repository.** With a remote named `upstream`, the
4159
GitHub CLI resolves `upstream` as the base repository, so `gh pr create` and
4260
`gh run list` act on `QuantumNous/new-api`. `gh repo set-default
@@ -51,9 +69,12 @@ commits (N1–N5 and the theme) above upstream `633b4c5b1`, which is
5169
- **Cherry-pick selected upstream commits.** It needs no ancestry, but each sync
5270
becomes a manual selection, and fixes that build on skipped commits stop
5371
applying cleanly once upstream moves a few releases ahead.
54-
- **Return to developing in `alphafoxai/new-api`.** That repository is the
55-
GitHub fork, but it is no longer what deploys, and keeping two trees means
56-
every change lands twice.
72+
- **Keep the unforked repository and its history connection only.** Syncing
73+
works without the fork relationship, but GitHub then cannot show the distance
74+
from upstream, which is the reason to keep the fork.
75+
- **Fork upstream again and cherry-pick the CoreCode commits.** Cherry-picks get
76+
new commit ids, and the image tags that production records end in the commit
77+
id, so every running and past tag would stop pointing at its source.
5778

5879
## Consequences
5980

@@ -73,8 +94,11 @@ commits (N1–N5 and the theme) above upstream `633b4c5b1`, which is
7394
a conflict. The resolution numbers them 17, 18 and 19.
7495
Read every Lua `ARGV` list and every positional argument list a sync touches,
7596
not only the conflicted hunks.
76-
- `alphafoxai/new-api` is redundant after the first sync. Archiving it is the
77-
maintainer's call.
97+
- Dependabot's open pull requests (`corecode-app-pre-fork` #1–#5) stayed in the archived repository.
98+
Vulnerability alerts were off on the fork and are now on, matching the
99+
archived repository. Whether Dependabot version updates open pull requests
100+
here is unverified; if none appear, enable them under Insights → Dependency
101+
graph → Dependabot.
78102

79103
## Verification
80104

@@ -86,3 +110,13 @@ and `bun run typecheck` pass. `go test ./...` passes except
86110
`TestAdaptorMasksDialedHostsInDialFailure` in `relay/channel/advancedcustom`,
87111
which fails the same way on an unmodified `v1.0.0-rc.46` checkout on the
88112
same machine and is outside the packages CI tests.
113+
114+
For the repository move: `alphafoxai/new-api`'s `main` (`09109ec31`) is an
115+
ancestor of `903750457`, so the push was a fast forward with no force. After
116+
the renames, `gh api repos/alphafoxai/corecode-app` reports `fork: true` with
117+
parent `QuantumNous/new-api`, and the compare view reads 0 behind and 29 ahead
118+
of upstream `main`. A `workflow_dispatch` run of `ci.yml` on the fork passed
119+
`check` and `publish`, which authenticates to GCP and pushes to Artifact
120+
Registry. `deploy` runs only on push. Its key was checked by running
121+
`scripts/deploy-service.sh` with that key and the tag production runs; it
122+
printed "already runs …; nothing to restart" and restarted nothing.

0 commit comments

Comments
 (0)