Skip to content

ci: measure each agent CLI's latest release daily and keep its support record - #1717

Merged
yansfil merged 1 commit into
mainfrom
ci/agent-canary
Oct 27, 2026
Merged

yansfil merged 1 commit into
mainfrom
ci/agent-canary

Conversation

@yansfil

@yansfil yansfil commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

Summary

CI는 지금까지 우리가 손으로 고정한 에이전트 버전만 테스트했습니다. 그래서 에이전트가 새 버전을 내고 그게 Hide를 깨뜨려도, 사용자가 먼저 겪고 나서야 알 수 있었습니다. 오늘 기준으로 7개 중 6개가 이미 고정 버전보다 앞서 있습니다(Claude 2.1.302→2.1.311, OpenCode 2.0.29→2.1.4, Pi 1.0.4→1.4.0, Grok 1.0.52→1.0.70, omp 18.7.0→18.13.1, Codex 0.163.0→0.164.0).
이제 매일 한 번 각 에이전트의 최신 버전을 그 에이전트 설치 프로그램이 보는 곳에서 읽고, 가짜 AI 여정(키 없음)을 Linux, macOS, Windows에서 돌립니다.
결과는 이슈 하나("Agent CLI support record")에 표로 남습니다. 에이전트마다 확인한 최신 버전, 판정, 마지막으로 통과한 버전, 고정 버전이 적힙니다.
깨진 에이전트가 있으면 그 에이전트 이슈가 열리고, 이후 버전이 통과하면 닫힙니다. 통과하는 버전에는 PR을 만들지 않습니다.

Review

  • 판단해 주세요: 버전이 바뀌지 않은 날은 여정을 돌리지 않습니다. Claude가 거의 매일 새 버전을 내니 실제로는 대부분의 날 돌 것이고, 3개 OS에서 각각 약 15분 걸립니다.
  • 조심해서 볼 파일:
    • scripts/agent_journey/clis.py: HIDE_AGENT_CLIS_TABLE이 설치, 리포트의 버전 확인, 판정이 모두 읽는 표를 바꿉니다. 이 변수는 canary만 설정합니다.
    • .github/workflows/agent-journey.yml: 새 입력 clis-table, stand-ins를 추가했습니다. 기본값이 기존 동작이라 nightly, release, PR 호출은 그대로입니다.
    • .github/workflows/agent-canary.yml: record job만 issues: write를 받습니다.

Evidence

  • 확인한 것:
    • scripts/agent-cli-latest.py를 로컬에서 실행해 7개 에이전트와 Herdr의 최신 버전을 실제 출처에서 읽었습니다(위 버전들).
    • decide를 실제 저장소에 읽기 전용으로 실행했고, 기록 이슈가 아직 없어서 changed=true가 나왔습니다.
    • 새 테스트 scripts/tests/test_agent_canary.py가 다음을 확인합니다.
      • 모든 고정 CLI에 최신 버전 출처가 있는지.
      • 출처가 버전을 주지 않으면 고정 버전으로 넘어가지 않고 실패하는지.
      • 한 OS의 한 칸이 실패하면 이슈가 하나 열리고, 같은 실패에는 조용하고, 통과하면 닫히는지.
      • 리포트가 없는 OS가 있으면 판정하지 않고 다음 날 다시 보는지.
    • 스크립트 테스트 688개가 통과했습니다(step 시간 상한과 호출 workflow 권한 검사 포함).
  • 확인하지 못한 것:
    • canary를 실제로 한 번 돌려보는 것: 새 workflow는 main에 있어야 workflow_dispatch로 실행할 수 있어서, 머지 직후 force로 한 번 돌려 표와 이슈를 확인합니다.
Verification record

…t record

A daily workflow reads each agent CLI's latest release where its own
installer reads it and runs the fake model journey on every system with
that table in place of the pins. One issue keeps per agent the latest
version checked, the last that passed and the pin; an agent whose latest
release fails gets an issue, closed when a release passes. No pull
request is opened for a release that passes.
@yansfil
yansfil merged commit c88c8c4 into main Oct 27, 2026
37 checks passed
@yansfil
yansfil deleted the ci/agent-canary branch October 27, 2026 03:16
yansfil added a commit that referenced this pull request Oct 27, 2026
## Summary

CI에서 실제 로그인으로 에이전트를 돌리던 레인을 없앴습니다.
로그인만 증명하는 것(제공사 로그인, 할당량, 과금)은 Hide 코드가 아니라 제공사의 것이고, 키와 agy 일일 할당량 순환이
들고, 제공사 사정으로 실패했습니다(10-26 nightly의 `agent journey signed in (windows)`,
`agy signed in (macos)`).
이제 CI는 stand-in과 fake model(실제 CLI, 가짜 AI 서버, 키 없음)만 돌리고, 실제 로그인은 릴리스 때
운영자 Mac의 로컬 실행만 확인합니다(운영자 결정, 2026-10-27).

- 없앤 것: `agent-journey.yml`의 `login` job과 `live`/`agy` 입력과
`HIDE_*_API_KEY` secret, `agy-contract.yml`의 `live` job,
nightly/release/release-candidate의 호출 인자와 `live_agents` 입력.
- 같이 없앤 것: `--mode ci`의 키 로그인 경로(`ci.login`, `--unmeasured`, 키 가리기), 할당량
판정(`quota.py`의 spent-quota 부분, `contracts/provider-quota.json`, agy 오류
fixture), lane 판정의 `login` 레인, nightly 보고의 `Not measured` 규칙, Rust의
signed-in agy turn 테스트와 nextest 예외.
- 남긴 것: fake model 레인, stand-in 레인, Windows forms, 로컬 signed-in
실행(`--mode local`), 요청 수 세기(`requests.py`로 이름만 바꿈, fake와 로컬이 씀).
- `--mode ci`는 이제 `--fixture-bin`이나 `--fake-model` 없이는 거절합니다.

스크린샷 없음: 화면 변경 없음(CI, 스크립트, 문서만).

## Review

- **판단해 주세요**: agy는 로컬 모드가 닿지 못해(키체인 로그인이 운영자 HOME을 요구) 이제 어디서도 로그인 상태로
측정되지 않습니다. 이전 문서는 Mac에서 `--mode ci`와 Gemini 키로 잴 수 있다고 했는데 그 경로도 사라졌습니다.
INSTALL.md 표에 gap으로 적었습니다.
- **판단해 주세요**: release-candidate receipt는 schema 2와 `live_agents` 필드를
그대로 두고 값만 항상 `false`로 씁니다. hide-private `release/workflow.mjs`가 schema
2에 boolean `live_agents`를 요구해서, 필드를 빼면 비공개 릴리스가 receipt를 거절합니다. 필드 제거는
hide-private 쪽과 같이 해야 합니다.
- **운영자가 할 일**: 이 PR이 머지된 뒤 GitHub secret `HIDE_AGY_API_KEY`,
`HIDE_GROK_API_KEY`, `HIDE_OPENCODE_API_KEY`, `HIDE_PI_API_KEY`,
`HIDE_OMP_API_KEY`를 지워 주세요(이 PR은 지우지 않습니다). 이제 어떤 workflow도 읽지 않습니다.
- **조심해서 볼 파일**:
- `scripts/agent_journey/cli.py` - `--mode ci` 거절 조건과 `prepare_ci`에서 로그인
분기 제거(failure path).
- `scripts/ci-flaky-report.py` - `Not measured`가 lane을 green에서 빼던 규칙 제거;
그 annotation을 쓰던 것은 이번에 지운 두 곳뿐.
- `hide-agent-hooks/tests/it/agy_binary.rs` - 로컬에서 빌드하지 않았습니다(디스크 부족).
CI의 rust/agy contract가 컴파일을 확인합니다.
- **겹치는 PR**: #1717(`ci/agent-canary`)도 `agent-journey.yml`의 입력과
`docs/VERIFICATION.md`를 고칩니다. `merge-order.py`는 쌓지 말고 #1717 머지 후 main을 한
번 머지하라고 답했습니다.

## Evidence

- **확인한 것**: `python3 -m unittest discover -s scripts/tests -p
'test_*.py'` 통과(662개, skip 21), `node --test
scripts/tests/release-candidate.test.mjs` 4개 통과, policy 구조 검사 7개 통과, 모든
workflow YAML 파싱, `rustfmt --check` 통과.
- **확인한 것**: `rg`로 `HIDE_*_API_KEY`, `provider-quota`, `--lane login`,
`live_agents` 입력, `a_signed_in_agy_turn`의 남은 참조가 없음을 확인.
- **확인하지 못한 것**: Rust 컴파일과 clippy는 로컬에서 돌리지 않았습니다(디스크 2.4 GB 남음). PR의
`verify`가 확인합니다.
- **확인하지 못한 것**: nightly와 release-candidate를 실제로 dispatch하지 않았습니다. 바뀐
호출은 YAML 테스트(`test_release_candidate.py`,
`test_agent_journey_workflow.py`)로만 확인했습니다.
- **확인하지 못한 것**: Windows 전용 `test_agent_live_windows.py`의 launcher 변경은
Windows CI에서만 돕니다.

<details><summary>Verification record</summary>

</details>
yansfil added a commit that referenced this pull request Oct 27, 2026
…version (#1720)

Related: #1714 (the refusal shape this extends), #1717 (the canary
record, which now shows the Minimum column)

## Summary

Until now only Claude Code and Codex CLI had a minimum CLI version.
Grok, OpenCode, Pi, omp and Antigravity had none, so a too-old CLI still
got Hide's hook, plugin or extension and some features broke without
saying why.
Now each of the seven agents' declarations
(`hide-agent-adapter/src/declarations.rs`) carries the oldest CLI
version Hide's integration was proven on, plus where that proof lives,
and nothing else keeps a copy.
Below that version, the kit puts down no hook, plugin or extension for
any agent, and the row says why: `Pi 1.0.3 at ~/.local/bin/pi is older
than 1.0.4, which Hide's extension needs; update it`.

| Agent | Minimum | Proof |
| --- | --- | --- |
| Claude Code | 2.1.278 | the Memory hook shape (unchanged) |
| Codex CLI | 0.155.1 | the oldest version Hide installs into, read from
source at `rust-v0.155.1` (unchanged) |
| Grok | 1.0.52 | the agent journey ran on 1.0.52 on all three systems
(run 39152230964); the 1.0.50 source reading is kept as a note, since a
reading is not a run |
| OpenCode | 1.18.35 | Windows: a `windows-latest` runner loaded Hide's
plugin on 1.18.35 on 2026-10-11, and its helper `spawn` crossed stdin
and stdout; macOS/Linux: 1.18.30 shapes, journey 2.0.29 |
| Pi | 1.0.4 | extension shapes captured from 1.0.4
(`fixtures/pi-extension/pi-1.0.4.json`), journey 1.0.4 |
| omp | 18.7.0 | `fixtures/pi-extension/omp-18.7.0.json`, journey 18.7.0
|
| Antigravity | 1.4.2 | Windows: 1.4.2 runs hooks through `cmd /c` with
Go escaping, and the encoded PowerShell guard was proven on it; journey
1.4.2 on all three systems (run 39152230964) |

## Review

- **규칙 (운영자 결정 2026-10-27)**: minimum은 에이전트마다 하나입니다. macOS·Linux·Windows
모든 시스템에서 통합이 증명된 버전 중 가장 오래된 것을 씁니다. 한 시스템에서만 증명된 버전은 기준이 되지 않고, 시스템별
minimum도 두지 않습니다. 소스를 읽은 것은 실행이 아니므로 증명으로 치지 않습니다. 이 규칙은
`MinimumVersion` doc와 docs/agent-hooks.md에도 적었습니다. 그래서 OpenCode는
1.18.30에서 1.18.35로, agy는 1.4.0에서 1.4.2로, Grok은 1.0.50에서 1.0.52로 올렸습니다.
- **조심해서 볼 파일**: `hide-agent-hooks/src/diagnosis.rs` -
`program_version`이 CLI의 `--version` 답을 파일의 경로·search·수정 시각·길이 단위로
기억합니다(최대 32개, 버전을 못 읽었을 때만 60초 뒤 다시 물음). docs/agent-hooks.md는 "파일 버전마다 한
번만 묻는다"고 적어 두었는데 763ca34 이후 코드에는 그 캐시가 없었습니다. 이 PR이 다시 넣습니다.
- **조심해서 볼 파일**: `hide-kit/src/agent_kit.rs` - guidance(Grok, agy)와
plugin(OpenCode, Pi, omp) 경로가 이미 current인 조각은 건드리지 않고, 새로 쓰거나 교체하려 할 때만
거부합니다. #1714의 hook part와 같은 순서입니다.
- **비용 검토**: kit 패스마다 프로그램 수만큼 `stat` 한 번이 늘고, `--version` 하위 프로세스는 CLI
파일이 바뀔 때만 한 번 돕니다. 기억은 32개로 상한을 두었고 넘치면 가장 오래된 것부터 지웁니다.

## Evidence

- **확인한 것**: `hide-kit` 새 테스트
`an_agent_older_than_its_minimum_version_gets_no_hook_plugin_or_extension`
- 다섯 에이전트에 각각 `0.0.1`이라고 답하는 CLI를 두면 Failed와 `update_agent`가 나오고, 이유에
라벨·버전·경로·minimum이 모두 들어가며 Hide 파일은 쓰이지 않습니다. 같은 CLI가 minimum으로 답하면
Installed가 됩니다.
- **확인한 것**: `hide-agent-hooks` 새 테스트 `agent_version` - Unix에서는 스크립트,
Windows에서는 npm식 `.cmd` shim으로 같은 CLI를 만듭니다. 두 번 물어도 실행은 한 번이고, 파일이 바뀌면
다시 물어 새 버전을 읽습니다. Windows 레인에서 돕니다.
- **확인한 것**: `hide-agent-adapter` 계약 테스트 - 지원하는 모든 에이전트가 `x.y.z` 형식의
minimum과 저장소 안의 증거(파일, 그리고 문서면 heading)를 가지는지 봅니다.
`scripts/tests/test_agent_journey_contract.py` - `agent-clis.json`의 CI
pin이 모두 minimum 이상인지 봅니다.
- **확인한 것**: 로컬 macOS에서 `nextest -p hide-kit`(192), `-p
hide-agent-hooks`(388), `-p hide-agent-adapter`(18), clippy `-D
warnings`, fmt, `scripts/tests` 681개가 모두 통과했습니다. 나머지 레인은 CI에 맡겼습니다.
- **확인한 것**: #1714 테스트(`the_hook_is_judged_by_the_copy_...`)의 CLI 스텁을 이미
시작해 둔 `stand_ins::program`으로 바꿨습니다. 부하가 큰 상황(load 12)에서 새로 쓴 스크립트의 macOS
첫 실행 검사가 750 ms를 넘었고, 캐시가 그 실패를 그 패스 동안 유지해 테스트가 한 번 떨어졌습니다.
- **확인한 것**: canary record(`scripts/agent-canary-record.py`)에 Status와
Last passed 사이 Minimum 열을 추가했습니다. 값은 `contracts/agent-journey.json`의
`minimum_version`에서 읽습니다. `test_agent_canary`가 표의 머리줄과 행을 확인하고, 로컬
`scripts/tests` 673개가 main을 머지한 뒤에도 통과했습니다.
- **확인하지 못한 것**: 실제 오래된 CLI(예: Pi 1.0.3)로 직접 재본 적은 없습니다. 다섯 에이전트의
`--version` 출력 형식은 CI journey가 pin 버전과 맞추는 답을 근거로 삼았습니다.
- **확인하지 못한 것**: Windows에서 kit의 거부 판단 자체. `hide-kit` 테스트는 macOS·Linux에서만
돕니다(docs/INSTALL.md에 unverified 칸으로 적었습니다).
- **확인하지 못한 것**: 설치된 앱과 Settings 화면. 화면 코드는 바꾸지 않았고, 웹이 이미
`update_agent` 이유를 모든 조각에 대해 보여 줍니다.
- **확인하지 못한 것**: 브랜치 커밋 본문에 bare `Codex's`가 한 번 들어갔습니다. 로컬 attribution
검사가 이를 잡았지만, 이미 푸시된 히스토리라 고쳐 쓸 수 없었습니다. byline이 아니라 대상을 가리키는 표현입니다.

<details><summary>Verification record</summary>

</details>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant