Skip to content

Keep verified Memory cards usable through migration - #1058

Merged
yansfil merged 2 commits into
mainfrom
fix/memory-migration-keeps-cards
Oct 13, 2026
Merged

yansfil merged 2 commits into
mainfrom
fix/memory-migration-keeps-cards

Conversation

@yansfil

@yansfil yansfil commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Related: #1056

Summary

The v12 upgrade cleared verified dates, withholding existing Memory cards and removing promotion suggestions.
Keep verification separate from the first document comparison, using the existing check queue and budgets.
The v11 upgrade commits its table changes and first-comparison queue together, preserving both on retries.
Schema 13 restores exact dates from the retained v11 backup for matching current revisions without a comparison.
Memory PR identifiers now render as plain digits, including In PR 1050, in all four languages.

Memory PR identifiers in four languages

PR 1050 in English, Korean, Japanese and Simplified Chinese, top to bottom, from the 260 px synthetic browser fixture.

Review

  • Judgment: verified cards remain usable and suggestible while their first document comparison waits.
  • Migration and backup choice: only an exact revision ID and a stored verified date permit restoration.
  • Watch hide-memory/src/store.rs: atomic repair, read-only backup, missing-backup diagnostic and shared queue predicates.
  • Watch the core writer opens: migration diagnostics use the existing log sink, outside the runtime mutex.

Evidence

  • DB copy: verifying 123 -> 0, usable 0 -> 123, suggestions 0 -> 2; the session-start index contains 20 cards.
  • All 125 current revision dates match the backup, including two genuinely unverified cards; backup SHA-256 is unchanged.
  • Store: 115 tests pass, covering v11 failure/retry, v12 repair, unavailable backups, exact IDs and atomic rollback.
  • Core: 2,134 tests pass; migration preserves usable cards, index contents and promotion suggestions.
  • Web: 1,505 tests pass with one skipped, plus typecheck, lint and build; real browser checks confirm PR 1050 in en, ko, ja and zh-CN.
  • Rust formatting/lint, design contract, workstation identity, harness ignore and core boundary checks pass.
  • Full local Rust: 4,462 tests pass with 96 ignored; test entrypoint and concurrency remain unchanged.
  • Not exercised: installed desktop, live database, injection into a running session or external comparison provider.
  • CI: all required checks pass on the latest commit; merge and installation belong to the maintainer.

@yansfil
yansfil merged commit c4ece0e into main Oct 13, 2026
21 checks passed
@yansfil
yansfil deleted the fix/memory-migration-keeps-cards branch October 13, 2026 12:00
yansfil added a commit that referenced this pull request Oct 13, 2026
Related: #1056, #1058

## Summary

Memory의 진행 행에서 카드, PR 상태와 해당 대화를 함께 볼 수 있게 했습니다.
카드 번호·제목과 PR·상태를 두 줄로 표시하고, 작성 중이거나 문제가 있을 때만 `Agent ↗`를 보여줍니다.
모든 To ask 행은 제목·이유·빈 영역 클릭과 Enter·Space로 펼쳐집니다. 체크박스·링크·버튼은 자신의 동작만
실행합니다.
펼친 진행 행에는 각 카드의 본문 두 줄과 열기 동작이 나옵니다. 카탈로그에 없는 충돌 상태는 표시하지 않습니다.

<img width="355" alt="CI 실패 행의 PR 연결과 Agent 열기"
src="https://github.com/user-attachments/assets/fd995936-6bc6-49e2-b140-676c14ce03f0"
/>

CI 실패 행에는 대화 연결이 보이고, 검토 대기 행은 조용하게 유지됩니다.

## Review

- **판단해 주세요**: 승인된 목업에 맞춘 두 줄의 밀도, 긴 제목의 생략, 펼친 카드 본문 두 줄의 가독성.
- **조심해서 볼 파일**: `web/src/memoryList.ts` - PR 이후 연결은 기록된 출처와 현재 PR 사실이
모두 일치해야 합니다.
- **조심해서 볼 파일**: `herdr-core/src/runtime/project_memory.rs`,
`herdr-core/src/model.rs` - 잠금 밖에서 미리보기와 시작 시각을 준비하는 snapshot 경계.
- **비용 검토**: 기존에 읽은 본문에서 진행 카드당 최대 512자를 복사합니다. 추가 I/O·입력 처리·알림은 없고 기존
10,000개 카드 상한을 따릅니다.
- **비용 검토**: 경과 시간은 기존 공유 시계를 구독하며 마지막 구독자가 사라지면 종료합니다. 새 틱이나 대기열을 만들지
않습니다.

## Evidence

- **확인한 것**: 격리한 실제 데스크톱 창에서 제목 클릭, Enter·Space, 체크박스·링크 독립 동작, 여러 카드의
PR 연결과 실제 대상 pane 열기를 검증했습니다.
- **확인한 것**: 스크립트 데이터로 작성 중·CI 실패·검토 대기 및 머지 후 문서 전환·닫힘 후 일반 카드 복귀를
확인했습니다. 260px에서 4개 언어의 넘침도 검사했습니다.
- **확인한 것**: Rust 4,462개, 웹 1,509개, 데스크톱 단위 184개 통과. Memory 웹 e2e와 데스크톱
회귀 2개, 타입·린트·빌드·디자인 계약 검사 통과.
- **확인한 것**: 현재 커밋의 CI `verify`와 디자인 계약 통과. macOS 데스크톱 72개와 Windows 공통
플랫폼 6개 통과, 두 실행 모두 flaky 결과 없음.
- **확인하지 못한 것**: 웹 전체 실행 한 차례에서 기존 Factory 검사 2개가 시간 초과했습니다. 해당 검사와 전체
검사는 동시 실행 수를 줄인 재실행에서 통과했습니다.
- **CI 기록**: 기존 flaky 이슈 #987의 Windows 훅 검사가 두 시도 모두 실패했습니다. 리드가 승인한 같은
커밋의 작업 재실행은 통과했습니다. 훅 코드는 변경하지 않았습니다.
- **확인하지 못한 것**: 실제 작성 제공자·PR 서비스 연동, 설치본 UI, 실측 성능, 물리 키보드·IME 및 다른 OS의
네이티브 UI. 데스크톱 검증에는 격리한 상태와 스크립트 데이터를 사용했습니다.

<details><summary>추가 상태 캡처</summary>

<img width="355" alt="펼치기 전 Memory 진행 행"
src="https://github.com/user-attachments/assets/266f3494-7d85-4a70-8d55-b60675a8f514"
/>

기본 상태: PR 번호, 상태와 카드 제목을 두 줄로 표시합니다.

<img width="355" alt="제목을 클릭해서 펼친 행"
src="https://github.com/user-attachments/assets/434d6cf8-4dae-45da-a7c5-d8ef5f7bc5a0"
/>

제목 클릭 후: 카드 본문과 열기 동작이 나타납니다.

<img width="260" alt="260px 한국어 Memory 탭"
src="https://github.com/user-attachments/assets/d89266fe-0fe0-49ff-96f0-6c2a9e0df394"
/>

260px 한국어 탭: 번호·제목·상태의 폭과 줄바꿈을 확인했습니다.

</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