Skip to content

Commit edf04e6

Browse files
committed
Merge dev into agent/codex-account-pause
2 parents cccd49e + ca7b104 commit edf04e6

135 files changed

Lines changed: 8089 additions & 567 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.

‎.github/scripts/issue-quality.cjs‎

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,10 @@ function detectIssueKind(issue) {
374374
// ---------------------------------------------------------------------------
375375

376376
function isEmpty(text) {
377-
return clean(text).length === 0;
377+
const c = clean(text);
378+
if (c.length === 0) return true;
379+
// Stand-ins like "...", "…", "---" are not actionable report content.
380+
return /^[\p{P}\p{S}\s]+$/u.test(c);
378381
}
379382

380383
function allSameCanonical(sections) {
@@ -642,6 +645,17 @@ function validateIssue(issue) {
642645
reasons.push("Both Summary and Reproduction are empty.");
643646
guidance.push("Describe what happened and how to reproduce it.");
644647
}
648+
} else {
649+
// Each mapped field is required on its own — a filled Summary with an
650+
// empty / ellipsis Reproduction (e.g. #598) must not pass.
651+
if (isEmpty(summary)) {
652+
reasons.push("Summary is empty.");
653+
guidance.push("Describe what happened (the symptom or error).");
654+
}
655+
if (isEmpty(repro)) {
656+
reasons.push("Reproduction is empty.");
657+
guidance.push("List the exact steps to reproduce the problem.");
658+
}
645659
}
646660

647661
// Required environment fields removed after submission.

‎.github/scripts/issue-quality.test.cjs‎

Lines changed: 66 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,8 +362,8 @@ describe("validateIssue - feature", () => {
362362
assert.equal(result.kind, "feature");
363363
assert.equal(result.valid, false, `Expected terse goal "${goal}" to be invalid`);
364364
assert.ok(
365-
result.reasons.some((r) => r.includes("too vague")),
366-
`Expected too vague reason for "${goal}", got: ${result.reasons.join(", ")}`,
365+
result.reasons.some((r) => r.includes("too vague") || /missing or empty/i.test(r)),
366+
`Expected too vague or empty reason for "${goal}", got: ${result.reasons.join(", ")}`,
367367
);
368368
}
369369
});
@@ -536,6 +536,70 @@ describe("validateIssue - bug", () => {
536536
assert.equal(result.valid, false);
537537
});
538538

539+
it("rejects a bug with Summary filled but Reproduction empty", () => {
540+
const body = [
541+
"### Client or integration",
542+
"Codex CLI",
543+
"### Area",
544+
"CLI",
545+
"### Summary",
546+
"The 'gpt-5.6-sol' model is not supported when using Codex with a ChatGPT account.",
547+
"### Reproduction",
548+
"No response",
549+
"### Version",
550+
"2.7.42",
551+
"### Operating system",
552+
"macOS",
553+
].join("\n");
554+
const result = validateIssue({ title: "Open Codex Error", body, labels: ["bug"] });
555+
assert.equal(result.kind, "bug");
556+
assert.equal(result.valid, false);
557+
assert.ok(result.reasons.some((r) => /Reproduction is empty/i.test(r)));
558+
assert.ok(!result.reasons.some((r) => /Summary is empty/i.test(r)));
559+
});
560+
561+
it("rejects a bug whose Reproduction is only an ellipsis (#598)", () => {
562+
const body = [
563+
"### Client or integration",
564+
"Codex CLI",
565+
"### Area",
566+
"CLI",
567+
"### Summary",
568+
"{\"detail\":\"The 'gpt-5.6-sol' model is not supported when using Codex with a ChatGPT account.\"}",
569+
"### Reproduction",
570+
"...",
571+
"### Version",
572+
"2.7.42",
573+
"### Operating system",
574+
"mac os",
575+
].join("\n");
576+
const result = validateIssue({ title: "Open Codex Error", body, labels: ["bug"] });
577+
assert.equal(result.kind, "bug");
578+
assert.equal(result.valid, false);
579+
assert.ok(result.reasons.some((r) => /Reproduction is empty/i.test(r)));
580+
});
581+
582+
it("rejects a bug with Reproduction filled but Summary empty", () => {
583+
const body = [
584+
"### Client or integration",
585+
"Codex CLI",
586+
"### Area",
587+
"CLI",
588+
"### Summary",
589+
"",
590+
"### Reproduction",
591+
"1. Run ocx start\n2. Send a request",
592+
"### Version",
593+
"2.7.42",
594+
"### Operating system",
595+
"macOS",
596+
].join("\n");
597+
const result = validateIssue({ title: "Crash", body, labels: ["bug"] });
598+
assert.equal(result.kind, "bug");
599+
assert.equal(result.valid, false);
600+
assert.ok(result.reasons.some((r) => /Summary is empty/i.test(r)));
601+
});
602+
539603
it("accepts a terse real crash report", () => {
540604
const body = [
541605
"### Client or integration",

‎.github/workflows/react-doctor.yml‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# React Doctor — finds security, performance, correctness, accessibility,
22
# bundle-size, and architecture issues in React codebases.
33
#
4-
# Advisory-only and least-privilege: findings appear in the step log and the
5-
# Actions run summary. All write-scoped outputs (sticky PR comments, inline
6-
# review comments, commit statuses) are explicitly disabled so the workflow
7-
# needs no write permissions. Do not re-add write scopes without revisiting
8-
# tests/ci-workflows.test.ts, which pins this contract.
4+
# Gating and least-privilege: findings fail the job (`blocking: warning`).
5+
# Write-scoped outputs (sticky PR comments, inline review comments, commit
6+
# statuses) stay disabled so the workflow needs no write permissions. Do not
7+
# re-add write scopes without revisiting tests/ci-workflows.test.ts, which
8+
# pins this contract.
99
#
10-
# Docs: https://www.react.doctor/ci
10+
# Docs: https://www.react.doctor/docs/ci-and-prs/github-actions-setup
1111
# Source: https://github.com/millionco/react-doctor
1212

1313
name: React Doctor
@@ -24,7 +24,7 @@ permissions:
2424
contents: read
2525
# Needed so the action can list PR files for --changed-files-from.
2626
# Without this, listFiles fails, the changed-files file is never written,
27-
# and the CLI exits 1 on ENOENT even with blocking: none (fork PRs).
27+
# and the CLI exits 1 on ENOENT even for fork PRs.
2828
pull-requests: read
2929

3030
# Cancels any in-flight scan for the same PR (or branch, on push) the moment a
@@ -50,9 +50,9 @@ jobs:
5050
directory: gui
5151
# Pin the npm engine — the action wrapper would otherwise fetch
5252
# react-doctor@latest, silently skewing CI from the local pinned runs.
53-
version: "0.9.1"
54-
# Advisory contract: report to the step log only; never gate, never write.
55-
blocking: none
53+
version: "0.9.2"
54+
# Fail the job on any finding (errors or warnings).
55+
blocking: warning
5656
comment: false
5757
review-comments: false
5858
commit-status: false
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# 000 — 라이브 상태 재동기화 유닛 계획
2+
3+
세션: `019fa826-aba9-7032-8b43-9fc0fbcb56f1`
4+
goalplan: `opencodex-2026-07-28-devlog-260728-live-state-sy`
5+
기준: `origin/dev` = `7710185c0`, 로컬 `dev` = `7710185c0` (FF 정렬 완료)
6+
측정 시각: 2026-07-28 (KST 저녁)
7+
8+
## 목표
9+
10+
리모트/브랜치/PR/이슈의 현재 사실을 실측하고, 오너 판단 없이 처리할 수 있는 것을
11+
실제로 처리한다. 처리 = 이미 고쳐진 이슈 클로즈, 미해결 항목 상태 코멘트,
12+
결정 불요 버그 판정 보고.
13+
14+
## 선행 문서 (재조사 금지, 델타만 기록)
15+
16+
| 문서 | 상태 |
17+
| --- | --- |
18+
| `260727_owner_decision_ledger/007_delta_260728.md` | 기준 `origin/dev`=`461de3961`. **stale** — 4단계 전진 |
19+
| `260728_bug_bundle_resolution/000_plan.md` | 기준 `origin/dev`=`f195e90bc`. **stale** — WP2(#573) 머지 완료 |
20+
21+
두 문서의 결론은 유효하되 번호·상태는 `010_live_snapshot.md`가 우선한다.
22+
23+
## 제약
24+
25+
- 브랜치: `main` 직접 변경 금지, force push 금지, 타인 PR 강제 머지 금지.
26+
- git: FF 외 이력 조작 금지. 다른 worktree 11곳의 더티 작업 보존.
27+
- 이슈 클로즈: **코드 근거**(머지 커밋 + 테스트)가 있는 것만. 추정 클로즈 금지.
28+
- 보안 경계: `.github/CODEOWNERS`가 지정한 경로(`src/oauth/`,
29+
`src/server/auth-cors.ts`, `src/codex/auth-context.ts`,
30+
`src/server/management-api.ts`, `/.github/`, `scripts/release.ts`,
31+
`package.json`, `bun.lock`)는 두 메인테이너 리뷰 대상 → `NEEDS_HUMAN`.
32+
- 프라이버시: 코멘트에 토큰·계정 식별자·요청 본문 금지.
33+
34+
## 스코프 밖
35+
36+
| 항목 | 이유 |
37+
| --- | --- |
38+
| 프로바이더 채택 (#561, #562, #611, #540, #177, #178, #201) | 채택 기준은 오너 정책 |
39+
| 로드맵 라벨 정직성 (#42, #95, #294) | 오너 판단 |
40+
| PR #533 / #557 진행선 선택 | 의존성 설치 경계 + 오너 결정 |
41+
| 업스트림 추적 (#92, #241, #417, #462) | 우리가 닫을 수 없음 |
42+
| 커뮤니티 PR 머지 (#611, #610, #607, #599, #583, #582, #581, #569, #565, #562, #512) | 리뷰/머지 권한은 사람 |
43+
44+
## work-phase 맵 (의존 순, PHASE-SPLIT-01)
45+
46+
측정이 먼저다. 무엇이 이미 고쳐졌는지 모르면 클로즈 판단이 불가능하고,
47+
클로즈 판단이 서지 않으면 "결정 불요 버그" 목록도 허구가 된다.
48+
49+
| # | decade doc | 대상 | 계층 |
50+
| --- | --- | --- | --- |
51+
| WP1 | `010_live_snapshot.md` | 브랜치/PR/이슈 실측 + 원장 델타 | 측정 (최하부) |
52+
| WP2 | `020_issue_disposition.md` | 이슈 클로즈 + 상태 코멘트 | 외부 상태 변경 |
53+
| WP3 | `030_no_decision_bugs.md` | 결정 불요 버그 판정 보고 | 판정/보고 |
54+
55+
WP1은 이 문서를 포함한 docs-only 사이클이다 (LOOP-DOCS-FIRST-01).
56+
57+
## 성공 기준
58+
59+
| id | 시나리오 | 증거 |
60+
| --- | --- | --- |
61+
| c1 | 로컬 `dev` == `origin/dev`, FF 외 조작 없음 | `git rev-parse` 출력 |
62+
| c2 | 이 유닛에 000 + 010/020/030이 존재하고 커밋됨 | `ls` + 커밋 해시 |
63+
| c3 | 클로즈 대상이 있으면 증거 코멘트와 함께 CLOSED. 없으면 **무클로즈 판정 근거**가 이슈별로 문서화 | `gh issue view --json state` 또는 020 §A/§B 판정표 |
64+
| c4 | 닫지 않은 항목에 현재 상태 코멘트 존재 | 코멘트 URL |
65+
| c5 | 결정 불요 버그 목록이 이슈번호·코드경로·경계 판정과 함께 문서화 | 문서 경로 + 커밋 해시 |
66+
67+
## SoT 동기화 대상 (SOT-SYNC-01)
68+
69+
이 유닛은 코드 변경이 없다. `docs-site/`·`structure/` 패치 대상 없음.
70+
코드 변경이 발생하면 그 시점에 해당 work-phase가 SoT 대상을 지명한다.
71+
72+
## 터미널 판정 기준
73+
74+
- `DONE` — 문서 커밋 + 이슈 상태 변화(또는 무변경 판정 근거) + 보고서 작성
75+
- `BLOCKED` — 리포터/업스트림 응답 대기
76+
- `NEEDS_HUMAN` — CODEOWNERS 보안 경계 또는 오너 정책 판단
Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
# 010 — 라이브 상태 실측 스냅샷 (WP1)
2+
3+
측정: 2026-07-28 KST 저녁, `gh` + `git` 실측. 기억이나 이전 원장 인용 아님.
4+
5+
## 1. 브랜치 / 리모트
6+
7+
`git fetch origin --prune` 후:
8+
9+
| 브랜치 | 로컬 | origin | 관계 |
10+
| --- | --- | --- | --- |
11+
| `dev` | `7710185c0` | `7710185c0` | 동일 (FF 4커밋 적용) |
12+
| `main` | `7cb15bff4` | `7cb15bff4` | 동일 |
13+
| `preview` | `b04b8729e` | `b04b8729e` | 동일 |
14+
| `dev2-go` | `2bdb748e1` | `2bdb748e1` | 동일 |
15+
16+
`origin/dev` 기준 ahead/behind (`git rev-list --left-right --count origin/dev...<b>`):
17+
18+
| 브랜치 | origin/dev만 가진 것 | 해당 브랜치만 가진 것 |
19+
| --- | --- | --- |
20+
| `main` | 42 | 3 |
21+
| `preview` | 42 | 4 |
22+
| `dev2-go` | 188 | 335 |
23+
24+
`main`/`preview`가 `origin/dev`에 없는 3~4 커밋을 가진 건 릴리스 프로모션 이력이라
25+
정상이다. `dev2-go`의 335는 Go 포트 라인 고유 작업이다.
26+
27+
### FF로 흡수한 4커밋
28+
29+
```
30+
7710185c0 fix stale update jobs and combo quota fallback
31+
d482086bf fix(windows): grant owner ACE before ACL inheritance removal (#601)
32+
406a522fe refactor(responses): single-pass SSE payload rewrite composition (#602)
33+
c380ef72a feat(auth): account pool round-robin and fill-first strategies (#593)
34+
```
35+
36+
45파일 +3407/-331. rebase/reset 없이 `git merge --ff-only`만 사용했다.
37+
38+
### 워크트리 (11개, 전부 보존)
39+
40+
`260727-live-triage`, `260727-pr533-current`, `260727-pr551-image-relay`,
41+
`260728-pr527`, `260728-preview`, `404d`(main), `6cce`(dev2-go),
42+
`e4f5`(go-tray-daemon), 그리고 detached 2개 + macos-app.
43+
이 유닛은 메인 워크트리에서만 작업한다.
44+
45+
## 2. 열린 PR — 15건 실측
46+
47+
| # | base<-head | mergeable | state | 실패 체크 | 작성자 |
48+
| --- | --- | --- | --- | --- | --- |
49+
| 611 | dev<-feat/volcengine-providers | MERGEABLE | UNSTABLE | — | yrooogerg |
50+
| 610 | dev<-fix/catalog-runtime-probe-cache | MERGEABLE | UNSTABLE | — | mihneaptu |
51+
| 607 | dev<-fix/gui-chrome-forms (draft) | MERGEABLE | UNSTABLE | ubuntu, macos | Wibias |
52+
| 599 | dev<-fix/codex-spark-quota-scope | MERGEABLE | UNSTABLE | — | akrock |
53+
| 583 | dev<-chore/agent-guidance-hardening | MERGEABLE | CLEAN | — | Wibias |
54+
| 582 | dev<-feat/video-bridge-v2 (draft) | MERGEABLE | CLEAN | — | tizerluo |
55+
| 581 | dev<-feat/zh-tw-localization | CONFLICTING | DIRTY | — | letr1n1ty |
56+
| 576 | dev<-codex/pr527-rebase | CONFLICTING | DIRTY | windows | lidge-jun |
57+
| 575 | dev<-codex/260728-tls-altname-diagnosis | MERGEABLE | CLEAN | — | lidge-jun |
58+
| 569 | dev<-agent/macos-post-sync-readiness (draft) | CONFLICTING | DIRTY | — | diegocantarero |
59+
| 565 | dev<-agent/codex-account-pause | CONFLICTING | DIRTY | — | Alvin0412 |
60+
| 562 | dev<-feat/modelsell-provider (draft) | MERGEABLE | UNSTABLE | — | modelsell |
61+
| 557 | dev<-codex/pr533-update-recovery-hardening (draft) | CONFLICTING | DIRTY | — | lidge-jun |
62+
| 533 | dev<-fix/gui-update-install-failure-recovery (draft) | CONFLICTING | DIRTY | CHANGES_REQ | WZBbiao |
63+
| 512 | dev<-split/426-01-namespace-foundation | MERGEABLE | CLEAN | — | chrisae9 |
64+
65+
전부 base=`dev`. 잘못 타깃된 PR 없음 → AGENTS.md 브랜치 타깃 규칙 위반 0건.
66+
67+
> A 게이트 정정: 최초 측정에서 #569/#562/#512가 `UNKNOWN`으로 잡혔던 것은 GitHub이
68+
> mergeable을 비동기 계산 중이었기 때문이다. 재폴링 결과를 위 표에 반영했다.
69+
70+
우리 소유 PR 3건: #575(CLEAN, 머지 대기), #576(CONFLICTING + windows 체크 실패),
71+
#557(draft, CONFLICTING).
72+
73+
## 3. 열린 이슈 — 27건, `--label bug` 필터로 14건
74+
75+
```
76+
612 608 606 604 591 586 570 553 545 543 418 417 241 92
77+
```
78+
79+
enhancement/roadmap/upstream 계열 13건은 이 유닛의 처리 대상이 아니다.
80+
81+
## 4. 원장 델타 — 이전 문서가 틀린 것
82+
83+
| 이전 기재 | 현재 사실 |
84+
| --- | --- |
85+
| `260728_bug_bundle_resolution` WP2 = 진행 예정 | **완료**. `e2da6f6df` → PR #573 머지 (`3a2b2ea8c`) |
86+
| `007_delta` 기준 `origin/dev`=`461de3961` | `7710185c0` (그 뒤 다수 머지) |
87+
| 열린 PR 15 (ready 5 / draft 10) | 열린 PR 15 (ready 9 / draft 6) — 구성이 다름 |
88+
| 열린 이슈 23 | 27 |
89+
| needs-info 3 (`462,543,553`) | **4** (`591,553,543,462`). #462는 `upstream-tracking`을 **추가로** 얻었을 뿐 `needs-info`를 잃지 않았고, #591도 이미 needs-info다 |
90+
91+
### 07-27 저녁 이후 머지된 PR 20건
92+
93+
`602 601 600 597 595 594 593 589 588 585 580 579 578 577 574 573 571 568 567 566`
94+
95+
### 07-27 저녁 이후 클로즈된 이슈 (해결 완료) 주요 항목
96+
97+
`609 605 603 598 596 592 590 587 584 563 560 549 548 547 546 542 541 539 538`
98+
99+
## 5. 이슈 ↔ 코드 대조 결과
100+
101+
| 이슈 | 코드 현황 | 판정 |
102+
| --- | --- | --- |
103+
| #570 | `src/server/auth-cors.ts:51` `isLoopbackRequestHost`가 포트 비교를 제거하고 hostname만 검사. `tests/server-loopback-host-gate.test.ts:16`이 `localhost:20100`/`127.0.0.1:20100`/`[::1]:20100`을 통과로 고정 | **부분 해결 — 6항목 중 1(a)/2만. alias(항목 4)는 여전히 403. 클로즈는 `NEEDS_HUMAN` → `020_issue_disposition.md` §A** |
104+
| #612 | `src/lib/windows-secret-acl.ts:79` 여전히 `Bun.spawnSync(["icacls.exe"...])` 동기 호출 | 미해결 |
105+
| #608 | `src/service.ts:1080`이 `taskXmlString()`(`"`→`&quot;`)로 이스케이프한 문자열과 원문 XML을 `includes()` 비교 | 미해결, 원인 확정 |
106+
| #606 | `src/codex/catalog/bundled.ts:146` `loadBundledCodexCatalog`가 캐시 히트 판정 전에 `resolveAndPersistCodexRuntime`(→ `--version` 프로브, `timeout: 8_000`)를 호출. cacheKey 자체가 프로브 결과로 만들어지는 구조 | 미해결, PR #610이 이미 제출됨 |
107+
| #586 | `src/server/management/provider-routes.ts:137` PATCH 엔드포인트 존재. GUI에는 `CodexAuth.tsx` 배너만 있고 전환 컨트롤 없음 | 미해결 |
108+
| #604 | 재현 정보가 Cursor Auto + PowerShell 5.1 환경 의존 | 리포터 대기 |
109+
| #591 | `schtasks.exe /create` 권한 거부. 리포터는 **관리자 권한으로는 설치에 성공**했고 그 이후 사용에서 문제가 남는다고 후속 코멘트에 적었다. Ingwannu가 이미 ccswitch 충돌 부정 + 추가 정보 요청 코멘트를 남겼고 `needs-info` 라벨도 붙어 있다 | 리포터 응답 대기 (추가 코멘트 불필요) |
110+
| #553 | PR #575(OPEN, MERGEABLE/CLEAN)가 진단 메시지 **분류**를 분리. TLS altname 불일치 자체는 미해결 | PR 대기 + 잔여 결함 |
111+
| #545 | 메인테이너가 OAuth identity 제거를 안전하지 않다고 판정 | NEEDS_HUMAN |
112+
| #543 #418 | 리포터 캡처 대기 | BLOCKED |
113+
| #92 #241 #417 | 업스트림 | BLOCKED |

0 commit comments

Comments
 (0)