Repository navigation
Reconcile memory cards with docs and batch document PRs - #1056
Merged
Merged
Conversation
yansfil
added a commit
that referenced
this pull request
Oct 13, 2026
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.  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
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>
yansfil
added a commit
that referenced
this pull request
Oct 15, 2026
## Summary CI는 PR이 바꾼 경로로 돌릴 레인을 고르는데, 규칙에 없는 경로가 하나라도 있으면 모든 레인을 돌립니다. 10-13 이후 머지된 PR 58개 중 13개가 그랬고, 원인은 테스트가 읽는 계약 파일, 레인이 부르는 workflow, 디자인 스크립트, `web/vite.config.ts`였습니다. 이제 이 경로들은 실제로 읽는 레인과 크레이트만 돌립니다. 같은 58개를 다시 계산하면 전체 레인 PR 13 → 1, 잡 855 → 823, macOS 잡 58 → 45입니다. - **계약 5개** (`hided-ws.schema.json`, `snapshot-wire-enums.json`, `agent-adapters.json`, `hide-cli.json`, `usage-coverage.json`): 읽는 테스트의 크레이트만 `rust`로, 웹 테스트가 읽으면 `checks`, 셸이 import하면 `web-e2e`도. - **레인 workflow 4개** (`web-e2e.yml`, `desktop-e2e.yml`, `os-contract.yml`, `remote-mailbox.yml`): 그 workflow를 부르는 레인만. - **`web/vite.config.ts`**: 셸을 빌드하거나 웹 단위 테스트를 돌리는 레인 전부. Rust만 도는 레인은 뺍니다. - **디자인 생성기, 토큰 맵, 디자인 검사**: `policy`만. `design-contract.yml`이 모든 PR에서 따로 검사합니다. - **`Cargo.lock`은 전체 그대로**: 거의 모든 크레이트가 `workspace-hack`에 의존해 lock 변경이 모든 크레이트에 닿습니다. - **따라가다 찾은 누락** (두 번째 커밋): `docs/UI_BEHAVIOR.md`, `docs/AI_PROVIDERS.md`, 에이전트 로고 manifest는 테스트가 읽는데 그 레인을 돌리지 않았습니다. 이제 돌립니다. ## Review - **판단해 주세요**: `agent-adapters.json`은 웹 셸 파일 규칙(`checks`, `web-e2e`)을 따라 데스크톱 e2e를 돌리지 않습니다. `agentAdapters.ts` 변경도 지금 그렇고, 데스크톱에서만 깨지면 nightly가 잡습니다. - **판단해 주세요**: brief 목록 밖인 `web-e2e.yml`, `desktop-e2e.yml`, `os-contract.yml`과 디자인 검사 6개도 같은 규칙이라 넣었습니다. workflow는 테스트가 `pr.yml`의 `uses:`에서 부르는 레인을 읽어 맞춥니다. - **조심해서 볼 파일**: `scripts/ci-plan.py` `classify` - 다른 규칙이 없는 경로는 이제 READERS가 전부 정합니다. 기존 READERS 경로는 다른 규칙이 먼저 잡아 그대로입니다. - **조심해서 볼 파일**: `scripts/ci-plan.py` READERS - 크레이트는 그 크레이트 테스트만 돌립니다. 테스트가 아닌 코드가 계약을 읽게 되면 크레이트 변경 규칙으로 옮겨야 합니다. ## Evidence - **확인한 것**: `python3 -m unittest discover -s scripts/tests -p 'test_*.py'` 343개 통과. - **확인한 것**: 계약 테스트는 기대값을 소스에서 얻습니다. 주석을 뺀 코드에서 파일 이름을 부르는 크레이트와 웹 파일이 계획된 크레이트와 레인과 같아야 합니다. - **확인한 것**: 레인 하나를 빼는 변조 3개(계약, vite 설정, `os-contract.yml`)가 각각 테스트를 실패시킵니다. - **확인한 것**: 재현 스크립트로 PR 58개의 merge commit diff를 변경 전후 planner에 넣었습니다. spec은 merge commit 시점 내용으로 읽었습니다. 표는 아래. - **확인하지 못한 것**: 머지 뒤 실제 PR 런의 잡 수와 대기 시간. 이 PR은 `scripts/ci-plan.py`를 바꿔 자기 런은 전체 레인입니다. - **확인하지 못한 것**: 리더 스캔은 파일 이름 문자열로 찾아, 경로를 조각으로 이어 붙여 읽는 코드는 놓칠 수 있습니다. <details><summary>PR별 전/후 (전체 레인이던 13개)</summary> 잡 수는 `plan`, `verify`와 레인별 잡(`web-e2e` 5, `os-contract` 2, `package` 3, 나머지 1)의 합입니다. Rust 크레이트는 `rust` 레인이 lint와 테스트를 도는 범위입니다(전체 레인이면 workspace 전체). | PR | Unclassified paths before | Full after | Jobs | macOS jobs | Rust crates | Lanes dropped | | --- | --- | --- | --- | --- | --- | --- | | #1108 | `contracts/hided-ws.schema.json` | no | 18 -> 16 | 2 -> 0 | workspace -> 11 of 16 | os-contract-macos, desktop-e2e | | #1085 | `contracts/hide-cli.json` | no | 21 -> 20 | 3 -> 2 | workspace -> 8 of 16 | os-contract-macos | | #1083 | `.github/workflows/remote-mailbox.yml` | no | 21 -> 21 | 3 -> 3 | workspace -> 14 of 16 | - | | #1076 | `scripts/gen-tokens.mjs` | no | 18 -> 10 | 2 -> 0 | workspace -> 1 of 16 | os-contract, os-contract-macos, windows-check, windows-e2e, windows-desktop, remote-mailbox, desktop-e2e | | #1074 | `contracts/hided-ws.schema.json` | no | 18 -> 17 | 2 -> 1 | workspace -> 3 of 16 | os-contract-macos | | #1070 | `scripts/gen-screens.mjs`, `web/vite.config.ts` | no | 18 -> 17 | 2 -> 1 | workspace -> 8 of 16 | os-contract-macos | | #1056 | `contracts/snapshot-wire-enums.json` | no | 21 -> 20 | 3 -> 2 | workspace -> 10 of 16 | os-contract-macos | | #1051 | `contracts/hided-ws.schema.json` | no | 21 -> 20 | 3 -> 2 | workspace -> 3 of 16 | os-contract-macos | | #1049 | `scripts/pen-token-map.json` | no | 18 -> 3 | 2 -> 0 | workspace -> not run | rust, checks, os-contract, os-contract-macos, windows-check, windows-e2e, windows-desktop, web-e2e, remote-mailbox, desktop-e2e | | #1044 | `.github/workflows/remote-mailbox.yml`, `contracts/agent-adapters.json`, `contracts/hided-ws.schema.json`, `contracts/usage-coverage.json` | no | 21 -> 21 | 3 -> 3 | workspace -> 15 of 16 | - | | #1037 | `contracts/hided-ws.schema.json` | no | 18 -> 17 | 2 -> 1 | workspace -> 3 of 16 | os-contract-macos | | #1030 | `Cargo.lock`, `contracts/agent-adapters.json`, `contracts/hided-ws.schema.json`, `contracts/usage-coverage.json` | yes | 18 -> 18 | 2 -> 2 | workspace -> workspace | - | | #1017 | `contracts/snapshot-wire-enums.json` | no | 18 -> 17 | 2 -> 1 | workspace -> 9 of 16 | os-contract-macos | </details>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two selected rows share one PR action; unresolved authority remains answerable.
Review
memory_analysis.rs/memory_verify.rs- off-lock work and exact sent-excerpt validation.store.rs/memory_promotion.rs- revision fencing, atomic ownership and retry failure paths.Evidence
Additional evidence and cost boundaries
These are cropped candidate-window renderer captures, not OS screenshots.
Screen Recording permission was unavailable; the supervising lead approved renderer captures of the exact candidate.
The candidate used private HOME/state and a private Herdr server.
The batch fixture used scripted providers and GitHub responses, with a local bare Git remote.
Its initial attempt and one-card retry shared the same promotion worktree, branch and PR.
The first merged-candidate batch run timed out before selection when its first checkbox was absent.
A same-source diagnostic run with logging and captures passes the unchanged assertions; the initial failure cause remains unproven.
Closing without merge is covered by the existing tracker and current-revision core/UI checks.
Compare shows the document and original operator words with their dates.
Personal and Outdated cards retain compact metadata.
Korean at the measured 260 px panel minimum, with one-line file references.
The private batch remains in To ask as one PR with three card members.
Confirmed private merge removes that group and shows three document pointers.
Light appearance in the private candidate's narrow window.
Compare at the measured 260 px minimum: English.
Compare at the measured 260 px minimum: Korean.
Compare at the measured 260 px minimum: Japanese.
Compare at the measured 260 px minimum: Chinese.
Creation compares at most two non-Personal candidates in one request with bounded document excerpts.
The complete request stays within 15% of extraction input in both bytes and characters.
One creation comparison settles same/differs/unrelated without another initial recheck.
Existing bounds remain four rechecks and three pre-promotion checks per pass, with 1,000 calls / 500 checks per day.
There is no new per-input work, timer, unbounded queue or notification fan-out.
Git dates, storage and provider calls stay on the existing worker outside the runtime mutex and session-sync thread.
Line-level dates would require quote-to-line mapping, rename handling and more Git work.
An earlier local run failed two existing Perl watcher fixtures because inherited
LANG=C.UTF-8cannot initialize on macOS.A PATH/LANG-only startup reproduction and 26 focused installer tests confirm that invoking with
LANG=Cresolves it.The following pre-merge run failed only the two doorbell tests reported above and stopped in the core suite.
After merging current main to resolve PR conflicts, both complete sealed Rust lanes pass on the merged head.
No suite exclusion, retry override, timeout increase or reduced full-suite thread count was used.
The PR was opened manually at the lead's direction with that prior failure disclosed.
The later isolated diagnosis did not change its FAIL to PASS.
The merged-head PASS is from a new complete run required by the source merge, with all current evidence registered first.
The full web run retains one web skip and four desktop skips already declared by their suites.
Local Windows/Linux native checks were not run; each platform CI lane reports its own result.
Verification record
e7544c3ef135dc025a117f295f398e448221cc30.c81691b202ba5557a958fd518c24afcb17abe6b8remains recorded; doorbell issue with-hide/hide-private#274 is open.de851a1e31148291a922dd5b7715608a6276355e.181fdf7205e181d51cbac00515a8cd664ba95f28621d9f7841ff801d2f54a991.b3d6258cc045d5c5ce0840a170dd64e3af2ae994dad9e33f89d609ad5775b752.2026-10-13T08:19:45.398Z.bash scripts/verify-cargo.sh test: PASS, exit 0; 4455 workspace tests pass, 96 ignored; 0 failed.bash scripts/verify-cargo.sh lint: PASS, exit 0.e7544c3ef135dc025a117f295f398e448221cc30, Fix now none; merge ownership and all 66 artifact hashes checked.2026-10-13T08:36:44Z; 21 jobs succeed and one redundant build job is skipped by the plan.Owning guides updated: architecture, UI behavior, provider bounds and performance verification.
The local approved contract and run logs remain outside Git.
No design library, tokens, dependency or generated build output is included in the feature diff.
Changed paths: 32.
contracts/snapshot-wire-enums.jsondesktop/e2e/memory-reconcile-fixture.tsdesktop/e2e/memory-reconcile.spec.tsdocs/AI_PROVIDERS.mddocs/ARCHITECTURE.mddocs/PERFORMANCE_TESTING.mddocs/UI_BEHAVIOR.mdherdr-core/src/coordination/mod.rsherdr-core/src/memory_command.rsherdr-core/src/model.rsherdr-core/src/runtime/events.rsherdr-core/src/runtime/memory_analysis.rsherdr-core/src/runtime/memory_promotion.rsherdr-core/src/runtime/memory_verify.rsherdr-core/src/runtime/project_memory.rsherdr-core/src/runtime/tests/memory.rshide-host/src/git_command.rshide-host/tests/it/git.rshide-memory/src/engine.rshide-memory/src/lib.rshide-memory/src/reconcile.rshide-memory/src/store.rshide-memory/src/verify.rshide-node-link/src/git.rshided/src/cli.rshided/src/workspace_cli.rsweb/src/MemoryTab.test.tsxweb/src/MemoryTab.tsxweb/src/actions.tsweb/src/i18n/resources/memory.tsweb/src/memoryList.tsweb/src/snapshot.ts