Skip to content

ci: run the agent journey for product code and check a canary failure at the pin before blaming a release - #1862

Merged
yansfil merged 5 commits into
mainfrom
ci/journey-lane-routing
Oct 30, 2026
Merged

yansfil merged 5 commits into
mainfrom
ci/journey-lane-routing

Conversation

@yansfil

@yansfil yansfil commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Closes with-hide/hide-private#358

Summary

#1816 (Memory aging) broke the agent journey's guidance_memory cell, but its pull request never ran the journey, and the nightly agent canary then filed five agent releases for Hide's own break (hide-private#341, #343-#346).
Two fixes:

  • Pull request CI runs the journey for product code. A change to any crate's product code (src/ outside test modules, build.rs, Cargo.toml) now plans the keyless agent-journey lane, which costs about 4.4 min on Linux plus 0.4 min on Windows. Every crate builds into a program the journey runs. The stand-in now also judges guidance_memory: it answers from the Memory index its start hook printed, using the fake model's own rule.
  • The canary tells a release's break from Hide's. When an agent's latest release misses a cell, the canary reruns that agent alone at its pinned version, on the same commit and only on the systems where it failed. If the pin passes, the issue goes against the release. If the pin fails too, one issue goes against Hide. With no pinned measurement the agent is marked unknown and nobody is blamed.

스크린샷 없음: CI 계획과 canary 스크립트만 바꾸며 화면이 없습니다.

Review

  • 판단해 주세요: crate 변경 PR마다 job 2개(Linux 약 4.4분, Windows forms 약 0.4분)가 늘어납니다. herdr-core 변경은 18 -> 20 jobs입니다. Windows forms는 스크립트만 시험하므로 crate 변경에서 빼는 것도 가능하지만, plan 출력 계약을 늘리지 않으려고 lane 하나로 두었습니다.
  • 조심해서 볼 파일:
    • web/e2e/shims/live-check.h: stand-in이 이제 부팅 5초를 start hook보다 먼저 기다립니다. 바로 실행되던 SessionStart hook은 Hide가 pane을 연결하기 전에 pane_not_connected로 거부되어 Memory를 받지 못했습니다(아래 질문).
    • scripts/agent-canary-record.py: 놓친 셀이 누구 탓인지 가르는 부분(verdicts)입니다. install 실패는 릴리스 탓, pin도 같은 셀을 놓치면 Hide 탓, pinned 측정이 없거나 pinned 설치가 실패하면 unknown입니다.
    • .github/workflows/agent-canary.yml: reruns -> pinned -> record 흐름입니다. pinned 재실행이 cancelled면 record를 건너뛰고 다음 날 다시 잽니다.
  • 따로 남긴 것: Hide가 pane을 연결하기 전에 SessionStart hook이 돌면 그 세션은 Memory index 없이 시작합니다. with-hide/hide-private#365로 남겼고, 이 PR은 고치지 않습니다.

Evidence

  • 확인한 것: stand-in 여정 Linux, workflow_dispatch로 실행했습니다.
    • 이 브랜치: run 40992711843 green이고, guidance_memory가 Claude Code와 Codex 모두 pass입니다.
    • #1852의 seed를 1970으로 되돌린 브랜치: run 40992748014 red이고, Codex가 guidance_memory fail입니다. hided.log에 cards.aged … "archived":[1]가 남았습니다. 즉 이 PR의 라우팅이었다면 #1816은 PR CI에서 빨갛게 떴을 것입니다.
  • 확인한 것: fake model 여정을 agents=codex로 Linux에서 실행했습니다(run 40991943778 green, 약 5분). report의 selected는 ["codex"]이고, Codex 12개 셀 모두 pass, 다른 agent는 not measured입니다. --agents가 붙은 lane 판정도 통과했습니다.
  • 확인한 것: 스크립트 suite 729개 테스트 OK(policy lane과 같은 명령)입니다. 새 테스트:
    • test_the_product_code_the_journey_runs_plans_the_journey_lane(test 모듈은 제외)
    • canary의 release / Hide / unknown 판정과 재실행 대상
    • --agents lane 판정
    • "모든 miss를 릴리스 탓"으로 되돌리는 결함을 심으면 Hide 판정 테스트가 실패하는 것을 확인했습니다.
  • 확인하지 못한 것: canary workflow 전체(reruns -> pinned -> record)는 실행하지 않았습니다. 브랜치에서 돌리면 hide-private의 실제 support record와 issue를 다시 쓰기 때문이며, 첫 실행은 main 병합 후의 일일 canary입니다. 각 조각(reusable workflow의 agents, report-name 입력과 record 판정)은 위 실행과 단위 테스트로만 확인했습니다. macOS stand-in과 Windows forms는 이 PR의 CI가 돌립니다.

@yansfil

yansfil commented Oct 30, 2026

Copy link
Copy Markdown
Contributor Author

The question in Review is filed as with-hide/hide-private#365: a session whose start hook runs before Hide connects its pane starts with no Memory index. This pull request only moves the stand-in's start hook after its boot, as real CLIs do, and does not fix that.

@yansfil
yansfil merged commit 3c38777 into main Oct 30, 2026
68 checks passed
@yansfil
yansfil deleted the ci/journey-lane-routing branch October 30, 2026 05:34
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