Skip to content

Commit a424413

Browse files
committed
Merge remote-tracking branch 'upstream/dev' into codex/fastwire-b0-observability
2 parents 66813eb + 9eb3a10 commit a424413

174 files changed

Lines changed: 4840 additions & 565 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.gitignore‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,12 @@ devlog/**/security-advisory-draft*
5151
.worktrees/
5252

5353
# Test-generated artifacts
54-
tests/.tmp-*/
54+
# Trailing slash matched directories only, but the same tests also leave plain
55+
# files behind when a run dies mid-write -- and on Windows those can stay locked
56+
# by an exiting child, so they cannot simply be deleted. An unignorable leftover
57+
# blocks the release preflight's clean-tree check for work that has nothing to do
58+
# with it, so ignore both shapes.
59+
tests/.tmp-*
5560
.claude/
5661

5762
# Retired Go native-runtime experiment. `go/` is not part of the build, the
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
# 050 — WP6: `ocx sync`가 켜진 클라이언트 통합까지 동기화
2+
3+
## 문제
4+
5+
`ocx sync`는 Codex 카탈로그만 쓴다.
6+
7+
```ts
8+
// src/server/management/config-routes.ts:383-395
9+
if (url.pathname === "/api/sync" && req.method === "POST") {
10+
const { syncModelsToCodex } = await import("../../codex/sync");
11+
const result = await syncModelsToCodex(runtime?.port, loadConfig(), null);
12+
...
13+
}
14+
```
15+
16+
Grok이나 Claude Desktop 토글이 켜져 있어도 갱신되지 않는다. 이번 컨텍스트 변경
17+
(1,050,000 -> 922,000)처럼 값이 바뀌면 Codex만 새 값을 받고 나머지는 옛 값에 머문다.
18+
사용자가 "모델 세팅할 때도 그렇고"라고 한 상황이 이것이다.
19+
20+
## 이미 있는 것
21+
22+
기동 경로는 각 통합을 **켜진 것만** 동기화한다:
23+
24+
| 통합 | 게이트 | 위치 |
25+
| --- | --- | --- |
26+
| Codex | `syncCodexOnStartIfEnabled` | `src/cli/index.ts:379` |
27+
| Grok | `shouldSyncGrokOnStart(config)` | `src/cli/index.ts:412-419` |
28+
| Claude Desktop | `claudeDesktopIntegrationEnabledNow()` | `src/cli/claude-desktop.ts` |
29+
30+
게이트 함수(`grokIntegrationEnabled`, `claudeDesktopIntegrationEnabled`)는
31+
`src/codex/desired-state.ts`에 이미 있다. 새로 만들 상태가 없다.
32+
33+
즉 `/api/sync`가 기동 경로와 같은 규칙을 따르기만 하면 된다.
34+
35+
## 설계
36+
37+
`/api/sync`를 다음 순서로 바꾼다.
38+
39+
1. `syncModelsToCodex` — 지금과 동일. Codex 카탈로그가 다른 통합의 입력이므로 먼저 돈다.
40+
2. `grokIntegrationEnabled(config)`이면 `syncGrokConfig(port, config, ...)`.
41+
3. `claudeDesktopIntegrationEnabled(config)`이면 Desktop writer.
42+
43+
**부분 실패는 전체 실패가 아니다.** Codex sync가 성공하고 Grok이 실패하면 200을 유지하되
44+
응답에 통합별 결과를 싣는다. 기동 경로가 이미 그렇게 한다 — Grok 실패가 start를 막지 않는다.
45+
46+
응답 형태:
47+
48+
```json
49+
{
50+
"ok": true,
51+
"...codex 기존 필드...": "…",
52+
"integrations": [
53+
{ "client": "grok", "ok": true, "changed": true },
54+
{ "client": "claude-desktop", "ok": false, "reason": "…" }
55+
]
56+
}
57+
```
58+
59+
꺼진 통합은 배열에 넣지 않는다 — "건드리지 않았다"와 "실패했다"를 구분해야 한다.
60+
61+
## 범위 밖
62+
63+
- 통합을 자동으로 켜지 않는다. `ocx sync`는 동기화 명령이지 활성화 명령이 아니다.
64+
- 새 CLI 플래그를 만들지 않는다. 기존 `ocx sync`의 동작이 넓어질 뿐이다.
65+
- Codex sync가 `refused`(409)면 나머지도 돌리지 않는다 — 카탈로그가 안 써졌으면
66+
하위 통합이 읽을 새 값이 없다.
67+
68+
## 테스트
69+
70+
- Grok on / Desktop off: Grok만 배열에 나오고 Desktop 설정 파일은 mtime 불변.
71+
- 둘 다 off: 배열이 비고 Codex만 갱신 (현행 동작과 동일).
72+
- Grok 실패: HTTP 200 유지, `integrations[0].ok === false`, Codex 결과는 성공으로 보고.
73+
- Codex refused: 409이고 `integrations`가 비어 있음.
74+
- 값 전파: 컨텍스트 상수를 바꾼 뒤 sync 한 번으로 `~/.grok/config.toml`의
75+
`context_window`가 새 값이 되는지 (C-ACTIVATION-GROUNDING-01).
76+
77+
## 검증 명령
78+
79+
`bun test --isolate tests/management-sync.test.ts tests/grok-sync.test.ts` (해당 파일 확인 후 확정),
80+
`bun x tsc --noEmit`.
81+
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# 060 — WP8: openai 네이티브 그룹에 모델별 컨텍스트 설정 열기
2+
3+
## 요청
4+
5+
사용자: "openai에 이것도 넣으라고 각 모델마다 설정할수 있게" — 다른 프로바이더 카드에는
6+
있는 "컨텍스트 윈도우" 버튼을 openai 카드에도 달라는 것.
7+
8+
## 왜 지난번에 뺐는가 (020 §3)
9+
10+
이 버튼이 여는 모달은 `PATCH /api/providers?name=openai`로
11+
`contextWindow` / `modelContextWindows`를 저장하는데, canonical `openai`는
12+
`providerManagementConfigError`(`src/server/auth-cors.ts:511-528`)가
13+
**registry seed와 정확히 같은 key set**인지 검사한다. 현재 예외로 허용되는 overlay는
14+
`responsesSnapshotRepair`, `modelCosts`, `requestPacing` 셋뿐이라 400이 돌아온다.
15+
16+
그래서 020은 "cap 셀렉트가 그 역할"이라며 버튼을 렌더하지 않기로 했다. 사용자가 원한 것은
17+
**모델별** 설정인데 cap은 프로바이더 전체에 걸리는 단일 값이라 그 대체가 성립하지 않는다.
18+
19+
## 이번에 여는 것
20+
21+
`modelCosts`와 같은 등급의 user-owned overlay로 두 필드를 인정한다.
22+
23+
### 1. `src/server/auth-cors.ts` (MODIFY)
24+
25+
canonical 비교 전에 `contextWindow` / `modelContextWindows`를 제외하되,
26+
**제외 전에 공통 validator로 검증한다.** 이 함수는 PATCH 밖(POST/reload)에서도 쓰이므로
27+
삭제만 하면 `contextWindow: "bad"`가 디스크에 남는다.
28+
29+
- `contextWindow`: 양의 safe integer. `null`은 full-object 경계에서 **거부**(삭제는 PATCH 전용).
30+
- `modelContextWindows`: plain object, 키는 비어있지 않은 문자열, 값은 양의 safe integer.
31+
32+
### 2. 네이티브 소비 경로 연결 (MODIFY)
33+
34+
저장만 허용하고 네이티브 카탈로그가 안 읽으면 "저장은 되는데 아무 일도 안 일어남"이 된다.
35+
`nativeOpenAiContextWindow`가 이미 `(slug, contextCap?)`를 받으므로, overlay도 같은
36+
자리에서 `min`으로 합류시킨다:
37+
38+
```
39+
권위값(922,000) -> min(overlay.modelContextWindows[slug] ?? overlay.contextWindow) -> min(providerContextCaps.openai)
40+
```
41+
42+
**overlay는 낮추기만 한다.** 사용자가 2,000,000을 넣어도 922,000이 상한이다 — 실측 상한을
43+
넘는 값을 광고하면 이번 유닛이 고친 문제가 그대로 돌아온다.
44+
45+
배관 지점은 013/014에서 이미 정리한 목록과 동일하다(cap이 흐르는 경로와 같은 자리).
46+
47+
### 3. `gui/src/pages/Models.tsx` (MODIFY)
48+
49+
`{!nativeProviderGroup && ...}` 가드를 제거해 네이티브 그룹에도 버튼을 렌더한다.
50+
모달은 기존 것을 그대로 쓴다 — 모델 목록은 `group.rows`에서 오므로 네이티브 slug가 채워진다.
51+
52+
### 4. 테스트
53+
54+
- `tests/management-provider-validation.test.ts`: openai PATCH 200, 잘못된 값 400,
55+
POST에서 `null` 거부.
56+
- `tests/codex-catalog.test.ts`: overlay 500,000 -> 광고 500,000, overlay 2,000,000 -> 922,000 유지.
57+
- `gui/tests/models-native-group-controls.test.ts`: 버튼 렌더.
58+
- 라이브: 모달로 gpt-5.6-sol만 500k 저장 후 `/api/models`에서 sol만 500,000, terra는 922,000.
59+
60+
## 범위 밖
61+
62+
- API 키/OpenRouter 계약.
63+
- cap 컨트롤 (그대로 둔다 — overlay와 cap은 별개 레버이고 둘 다 낮추기만 한다).
64+
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
# 061 — R12 접기: overlay를 전역 상태가 아니라 인자로 흘린다
2+
3+
리뷰어 r12 FAIL, blocker 2건. 둘 다 수용하고 설계를 바꾼다.
4+
5+
## R12#1 — 카탈로그 직렬화가 정적 상수를 직접 읽는다
6+
7+
`applyNativeOpenAiContextOverride`(`parsing.ts:285`)는 accessor를 거치지 않고
8+
`NATIVE_OPENAI_CONTEXT_OVERRIDES`를 직접 읽어 `context_window`,
9+
`max_context_window`, `auto_compact_token_limit`을 다시 쓴다.
10+
11+
060대로 accessor만 고치면 `/api/models`는 낮아지는데 Codex 카탈로그는 922k로 되돌아간다.
12+
사용자가 500k를 저장해도 실제 Codex는 922k를 본다 — 저장은 되는데 아무 일도 안 일어나는 상태.
13+
14+
## R12#2 — overlay 공급 수명주기가 빠졌다
15+
16+
accessor 인자는 `(slug, contextCap?)`뿐이다. overlay를 어떻게 넣을지 060이 말하지 않았다.
17+
18+
006에서 이미 이 문제로 두 번 실패했다: (a) 소비 지점마다 배관 → 전수표 누락 반복,
19+
(b) 모듈 전역 상태 → `grok/sync.ts`가 서버 밖 `ocx ensure` 프로세스에서 돌아 주입이 안 닿음.
20+
21+
## 채택하는 설계: cap이 이미 흐르는 경로에 얹는다
22+
23+
**새 채널도, 전역 상태도 만들지 않는다.** cap은 이미 인자로 전 경로를 흐른다
24+
(013/014에서 8곳 배관 완료). overlay를 그 인자와 **같은 자리에 묶어** 함께 흘린다.
25+
26+
```ts
27+
/** 네이티브 광고 창을 낮추는 사용자 레버 두 개. 둘 다 낮추기만 한다. */
28+
export interface NativeContextLimits {
29+
/** providerContextCaps.openai */
30+
readonly cap?: number;
31+
/** providers.openai.contextWindow */
32+
readonly providerWindow?: number;
33+
/** providers.openai.modelContextWindows */
34+
readonly modelWindows?: Readonly<Record<string, number>>;
35+
}
36+
37+
/** config에서 한 번 읽어 만든다 — 호출부는 이미 config를 들고 있다. */
38+
export function nativeContextLimits(config): NativeContextLimits;
39+
```
40+
41+
기존 `contextCap?: number` 자리를 `limits?: NativeContextLimits`로 넓힌다.
42+
cap만 넘기던 호출부는 `{ cap }` 한 줄 수정이고, config를 든 호출부는
43+
`nativeContextLimits(config)`로 바꾸면 overlay까지 자동으로 따라간다.
44+
45+
**전역 상태가 아니므로 `ocx ensure` 같은 서버 밖 프로세스도 자기 config에서 읽는다.**
46+
006의 (b) 실패가 재발하지 않는 이유다.
47+
48+
적용 순서(어디서나 동일):
49+
50+
```
51+
권위값(922,000)
52+
-> min(modelWindows[slug] ?? providerWindow) // overlay: 낮추기만
53+
-> min(cap) // cap: 낮추기만
54+
```
55+
56+
## 변경 지점
57+
58+
| 파일 | 변경 |
59+
| --- | --- |
60+
| `metadata.ts` | `NativeContextLimits`, `nativeContextLimits(config)`, accessor 2개 시그니처 확장 |
61+
| `parsing.ts` | `applyNativeOpenAiContextOverride`가 limits를 받아 accessor와 같은 결과를 쓰도록 (R12#1) |
62+
| `sync.ts` 4곳 | 호출부에 limits 전달 |
63+
| cap을 넘기던 8곳 | `{ cap }` 또는 `nativeContextLimits(config)`로 교체 |
64+
| `auth-cors.ts` | overlay 두 필드 허용 + validator (060 §1 그대로) |
65+
| `Models.tsx` | 버튼 가드 제거 (060 §3 그대로) |
66+
67+
## 테스트
68+
69+
- overlay 500k -> 광고 500,000 (accessor **와** 카탈로그 엔트리 둘 다).
70+
- overlay 2,000,000 -> 922,000 유지 (올리지 못함).
71+
- overlay 500k + cap 350k -> 350,000 (R12 지적: 공존 회귀).
72+
- 모델별 overlay가 해당 slug에만 적용되고 형제 slug는 불변.
73+
- `applyNativeOpenAiContextOverride`의 4개 호출 경로가 같은 결과.
74+
75+
## R12 비차단 항목 (함께 처리)
76+
77+
낡은 "350k default" 표기: `context-windows.ts:74` 주석,
78+
`docs-site/.../claude-code.md:236`, GUI 전 로케일 `en.ts:1808` 계열,
79+
`claude-context-windows.test.ts:82` 테스트명.
80+
81+
## wp7 판정 (A 검토 결과)
82+
83+
리뷰어 확인: 829,800은 922,000의 정확한 90%, 상한까지 92,200 여유, Claude Code 2.1.233이
84+
100k–1M 범위를 인식. 명시적 `autoCompactWindow` 설정 사용자는 영향 없음.
85+
마커를 잃는 활성 행은 `cursor/grok-4.6`, `xai/grok-4.6` 둘 — 500k 모델이 1M 계산을
86+
받던 쪽이 과했으므로 정정이 맞다. **wp7 코드는 유지**하고 문서만 갱신한다.
87+
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# 070 — Native GPT-5.6 default follows Codex 272k
2+
3+
## Change
4+
5+
- `NATIVE_GPT56_CONTEXT_WINDOW` is 272,000 (Codex live advertised default).
6+
- Measured ceiling / 1M opt-in stays `NATIVE_GPT56_MAX_INPUT_TOKENS` = 922,000.
7+
- For the GPT-5.6 family only, `providerContextCaps.openai` and per-model overlays may RAISE the default up to 922k. Values above 922k clamp. Other native slugs still only lower.
8+
- Native group switch ON without a value sends 922,000. Switch OFF displays 272k.
9+
- API-key 1,050,000 / 922,000 path is unchanged. gpt-5.4 stays 1M. gpt-5.5 stays 272k.
10+
11+
## Files
12+
13+
- `src/codex/catalog/metadata.ts`
14+
- `gui/src/pages/Models.tsx`
15+
- `gui/src/pages/models-shared.ts`
16+
- `structure/08_openai-provider-tiers.md`
17+
- focused tests listed in the same commit
18+
19+
## Accept
20+
21+
- `nativeOpenAiContextWindow("gpt-5.6-sol") === 272000`
22+
- `nativeOpenAiContextWindow("gpt-5.6-sol", 922000) === 922000`
23+
- `nativeOpenAiContextWindow("gpt-5.6-sol", 2000000) === 922000`
24+
- `nativeOpenAiContextWindow("gpt-5.5", 922000) === 272000`
25+
- Claude default sol is unmarked; opted-in 922k marks `[1m]`
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# 260817 Wave 5 execution — research and Gate 0 baseline
2+
3+
Campaign: execute the Wave 5A/5B/5C/5D + Wave 6 roadmap produced by the
4+
2026-08-17 external audit, landing each item on `dev`, then promoting to
5+
`preview` and `main`.
6+
7+
## Gate 0 baseline (verified 2026-08-17)
8+
9+
| Fact | Value | Evidence |
10+
|------|-------|----------|
11+
| local `dev` head | `1208bd25c` | `git rev-parse HEAD` after `--ff-only origin/dev` (44 commits fast-forwarded) |
12+
| #1881 merge ancestry | present | `git merge-base --is-ancestor bb984ad47 HEAD` → exit 0 |
13+
| #1909 ancestry | present | `b1708acc4 Merge pull request #1909` reachable |
14+
| stable release | v2.24.2 | `origin/main` = `474584bcd Merge pull request #1914 from lidge-jun/release-2.24.2` |
15+
| working tree | clean | `git status --porcelain` empty |
16+
17+
## Roadmap PR inventory at exact head
18+
19+
| PR | head | draft | review | checks | Wave |
20+
|----|------|-------|--------|--------|------|
21+
| #1899 | `8ab0aa8d0` | no | REVIEW_REQUIRED | 15 success | 5A |
22+
| #1876 | `d5acd7414` | no | CHANGES_REQUESTED | 22 success, 1 skipped | 5A |
23+
| #1888 | `cd3367193` | no | CHANGES_REQUESTED | 10 success | 5B |
24+
| #1902 | `b8983c912` | no | REVIEW_REQUIRED | 10 success | 5B |
25+
| #1884 | `99b0bbc38` | no | REVIEW_REQUIRED | 25 success | 5B |
26+
| #1892 | `6b17d6233` | no | REVIEW_REQUIRED | 9 success | 5B |
27+
| #1904 | `c603dcd83` | yes | REVIEW_REQUIRED | 6 success, 1 cancelled | 5B |
28+
| #1898 | `7279aca7c` | yes | REVIEW_REQUIRED | 21 success, 1 cancelled | 5B |
29+
| #1900 | `1824a0148` | no | REVIEW_REQUIRED | 10 success | 5C |
30+
| #1895 | `8a4040384` | yes | CHANGES_REQUESTED | 12 success | 5C |
31+
| #1887 | `ed4e87753` | yes | REVIEW_REQUIRED | 4 success | 5C |
32+
| #1896 | `5d2aec482` | yes | REVIEW_REQUIRED | 7 success | 5C |
33+
| #1903 | `54893ca6e` | no | REVIEW_REQUIRED | 10 success | 5C |
34+
| #1889 | `ea64418a3` | yes | REVIEW_REQUIRED | **5 failure**, 6 success | 5D |
35+
| #1891 | `10b88e155` | no | REVIEW_REQUIRED | 14 success | 5D |
36+
| #1897 | `38c25aed8` | no | REVIEW_REQUIRED | 24 success, 1 cancelled | 5D |
37+
38+
## Correction to the external audit (P-phase finding)
39+
40+
The audit's #1894 remedy — "split direct Google mapping from Antigravity CCA
41+
mapping" — describes a separation the tree **already has**:
42+
43+
- `src/adapters/google.ts` owns `GEMINI_DIRECT_WIRE_RENAMES` /
44+
`resolveDirectGeminiWireModelId()` for the direct AI Studio path.
45+
- `src/providers/antigravity-models.ts` owns `GEMINI_FLASH_WIRE_ID` /
46+
`ANTIGRAVITY_MODEL_ALIASES` for the CCA path.
47+
- `src/adapters/google.ts:395-399` already branches on provider family before
48+
choosing a resolver.
49+
50+
So the real defect is not a shared alias table. It is that
51+
`GEMINI_DIRECT_WIRE_RENAMES` is an **unconditional** rename applied to every
52+
direct Google deployment, while the rename is only true for some of them.
53+
Commit `a70bb78d4` added it from a live capture where bare ids 404'd and
54+
`-tiered` returned 200; #1894 reports the exact opposite from another account
55+
on the same day. Both reporters are credible and neither is universal.
56+
57+
PR #1739 already implements the correct shape: a provider-level
58+
`directGeminiWireRenames` boolean, defaulting to today's behavior. That makes
59+
the deployment difference configurable but still ships a default that 404s for
60+
the #1894 reporter.
61+
62+
Wave-5 decision: the default must stop guessing. See `010`.
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# A-phase synthesis — round 1 (VERDICT: FAIL, 9 blockers)
2+
3+
An independent reviewer audited `000`-`090` against the tree at `1208bd25c`
4+
and live GitHub state. Verdict FAIL. Every blocker was re-verified by the main
5+
agent before disposition; all nine are accepted.
6+
7+
## Accepted blockers and their amendments
8+
9+
| # | Blocker | Disposition |
10+
|---|---------|-------------|
11+
| 1 | WP1's 404 retry has no host: AI Studio installs no `fetchResponse` (`google.ts:384`), so the adapter never sees a `Response`; the fetch is core-owned (`core.ts:3586`) | **Folded** — retry dropped entirely |
12+
| 2 | The retry is only safe in the pre-stream `recovery:` loop (`core.ts:3696`); the terminal-guard continuation (`core.ts:3960`) refetches mid-stream and would splice two upstream turns into one client stream | **Folded** — dropped; discovery replaces it |
13+
| 3 | Memo key `(provider, model)` is too coarse and could silently override an explicit operator `false` | **Folded** — identity-keyed, and config always wins |
14+
| 4 | #1739 is mis-scoped: real head `e1c7ec85e`, state CHANGES_REQUESTED/BLOCKED, and its diff also changes `messagesToGeminiFormat`'s identity argument — the subject of the open review finding | **Folded** — `010` rewritten with the real head and the identity change in the file map |
15+
| 5 | WP2 is not implementable for 2 of 3 files: no effects recorder in `dsh-writer-lock.test.ts` or `native-main-claim.test.ts`, both already carry #1881's guards, and #1899 is CONFLICTING/DIRTY | **Folded** — WP2 narrowed to one file; #1899 reclassified |
16+
| 6 | WP3's sentinel already exists (`app-server-processes.ts:372/377/392`) and `unknown` already exists (line 574); the plan described shipped work | **Folded** — WP3 narrowed to the one real gap |
17+
| 7 | WP4's durability fix targets `google-antigravity-replay.ts`, which never calls the remember API; the seam is `thought-signature-replay.ts:190` and already returns `durable` | **Folded** — retargeted, with a caller-discovery step |
18+
| 8 | WP4's key change silently invalidates the persisted store (`version: 2` at line 143 is keyed by `keyFor` output) | **Folded** — explicit version bump + migration decision |
19+
| 9 | Wave 5C has no rebase plan for `src/adapters/cursor/live-transport.ts`, which four PRs modify | **Folded** — rebase-and-recheck step added |
20+
21+
## Accepted medium findings
22+
23+
- 5B's ordering rationale was false: #1904 already bundles #1892's characterization
24+
tests verbatim (identical blob). Order kept, rationale corrected, rebase noted.
25+
- 5D should run `#1891 -> #1897 -> #1889`; the original order put the only
26+
red-CI PR first and held the train hostage to it.
27+
- `080` had two state facts inverted: **#1836 is already CLOSED** and
28+
**#1906 is OPEN (reopened)** — both verified via `gh`.
29+
- `git merge-base --is-ancestor` cannot verify merge *order*; once both are on
30+
`dev` each is an ancestor of the tip. Use `git rev-list --topo-order --first-parent`.
31+
- `bun run test` already runs `bun test --isolate` (`scripts/test.ts:144`), so
32+
`090` presented one command as two.
33+
34+
## The finding that changes the campaign shape
35+
36+
Blocker 2 is the important one. The proposed 404-triggered retry was the only
37+
*new* production mechanism in Wave 5A, and it cannot be built where the plan put
38+
it without either (a) touching the shared core recovery loop — which `AGENTS.md`
39+
gates behind the full suite — or (b) risking a mid-stream splice.
40+
41+
The alternative is strictly better: the repo **already** lists models per
42+
account (`src/oauth/index.ts:811`, `/v1beta/models?pageSize=1000`). Reading what
43+
the account actually advertises beats inferring from a 404, needs no request
44+
replay, and cannot distort the attempt log. The retry is dropped.
45+
46+
## Verified-correct plan claims (kept unchanged)
47+
48+
- The #1894 separation finding in `000` is confirmed real; the external audit's
49+
"split the tables" remedy is confirmed a no-op.
50+
- WP4's key-completeness finding is confirmed exactly right: `keyFor` uses 5
51+
fields where the sibling `reasoning-replay-cache.ts:65` uses 7.
52+
- WP3's two review blockers are confirmed live on #1876's head.

0 commit comments

Comments
 (0)