Skip to content

refactor: separate private resources and remove Factory - #1437

Merged
yansfil merged 7 commits into
mainfrom
refactor/private-resources
Oct 19, 2026
Merged

yansfil merged 7 commits into
mainfrom
refactor/private-resources

Conversation

@yansfil

@yansfil yansfil commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • 공개 소스와 이번 공식 무료 앱에서 Factory 화면·엔진·CLI를 제외합니다.
  • 디자인 원본·작성 도구·개발 및 릴리즈 스킬은 비공개 개발 저장소로 옮겼습니다.
  • 공개 빌드·검사·일반 패키징은 private checkout 없이 실행되며 기존 태그·Release·다운로드는 유지합니다.

Factory 없이 검색과 Overview, 프로젝트 목록을 제공하는 공개판 사이드바

같은 공개판 사이드바의 밝은 테마와 영어 표시

Review

  • 판단해 주세요: 검색·Overview와 프로젝트 목록을 유지한 Factory 제외 화면과 무료 기능 경계.
  • 조심해서 볼 파일: hide-host/src/worktrees.rs의 작업 checkout 보호, hide-node-link/src/protocol.rs의 버전 전환, runtime·snapshot 연결 제거.
  • 비용 검토: Factory worker·큐·폴링과 질문 도구 조회를 제거합니다. Memory 정리는 기존 작업 큐와 제한된 Git 호출을 재사용하며 상시 worker·timer·입력 fan-out을 추가하지 않습니다.

Evidence

  • 확인한 것: 브라우저에서 한국어 dark·영어 light 사이드바를 확인했습니다. 웹 1,832개·데스크톱 235개 단위 테스트와 typecheck·lint·build를 통과했습니다.
  • 확인한 것: Rust 전체 5,356개 통과, 브라우저 E2E 18개 확인. Factory 전용 외부 테스트를 제거한 뒤 일반 원격 연결 테스트 23개와 전체 lint를 통과했습니다. 작업 checkout 보호 오류 3종을 주입해 모두 검출했습니다.
  • 확인한 것: 정책 테스트 595개(21개 skip), private Factory 엔진 205개와 디자인 작성 도구 검사를 통과했습니다. 이동 원본 311개와 병행 개발 중 변경된 디자인 자료 3개를 해시 대조했습니다.
  • 확인한 것: 공개 CI에서 Rust·웹·데스크톱 검사, 원격 SSH·core 이동, Linux/Windows/macOS 화면·패키지·설치·업데이트 검사를 통과했습니다.
  • 확인하지 못한 것: 로컬 네이티브 Electron 시각 검토·실제 외부 기기·공식 서명 및 게시.
    기존 공식 게시 workflow는 유지하며 private 게시 경로로의 전환은 별도 작업입니다.

Breaking change

Factory 화면·명령·WebSocket 이벤트를 제거합니다.
기존 Factory 저장 파일은 보존합니다.
노드 프로토콜 50은 같은 버전의 helper를 요구하며 연결 시 기존 kit 교체 절차를 따릅니다.
과거 공개 커밋과 배포본은 이번 이동으로 비공개가 되지 않습니다.

Verification record
  • Base: a8714e473d933bd670c6f26d41110f202611a36a
  • Candidate: e4238754ac9ccc5a1590d12fcfe514b11fd2867b
  • Includes the public session restoration feature from main; later independent main changes are left to the merge check and CI.
  • Direct local verification; no PRD pipeline attestation is claimed.
  • Rust workspace before retiring the last Factory-only external journey: 5356 passed; 112 ignored; exit 0 (Node 22, supported macOS locale). The final change deletes that retired journey and its unused helpers. Remaining remote-core journeys: 23/23 passed through real private SSH and pinned Herdr; final workspace fmt and Clippy PASS.
  • Web: 216 files, 1832 passed, 1 skipped; desktop: 22 files, 235 passed, 4 skipped; typecheck, lint and build PASS for both.
  • Browser journey: 17 passed in the combined run; prompt-elapsed initially read an older web bundle while its build was still running, then passed after that build completed. All 18 journeys were checked without changing assertions or adding retries.
  • Earlier extraction-only E2E: 16 passed twice against the isolated pinned Herdr and candidate debug binaries; CLI help exposes no Factory command.
  • verify-cargo.sh lint, verify-cargo.sh hakari, design contract, core boundary, prompt language, harness ignore, workstation identity and worktree removal checks: PASS.
  • Premerge policy after removing the retired asset requirement: 8 tests PASS.
  • Worktree retirement safety: 3/3 predicted mutations caught; restored source and focused suite PASS.
  • Independent specialist review: REVIEW_UNAVAILABLE; this session did not delegate a review.
  • Private source archive: 311 original files; stored bytes match the recorded pre-extraction hashes, with 3 upstream design inputs preserved separately.
  • Existing public distribution retained: 9 Releases, 74 download assets, 10 tags.
  • Final screenshots are cropped browser product surfaces; no installed app or operator daemon was used.
  • GitHub verify: PASS on this candidate; run 39227494561 completed successfully, including all three OS packaging lanes. Design contract PASS. Official signing, publication and operator installation were not run.

@yansfil
yansfil merged commit e63e19b into main Oct 19, 2026
50 checks passed
@yansfil
yansfil deleted the refactor/private-resources branch October 19, 2026 09:46
yansfil added a commit that referenced this pull request Oct 28, 2026
Closes with-hide/hide-private#147
Closes with-hide/hide-private#270
Closes with-hide/hide-private#161
Closes with-hide/hide-private#122
Closes with-hide/hide-private#168
Closes with-hide/hide-private#172
Closes with-hide/hide-private#195
Closes with-hide/hide-private#197

## Summary

Five of the most frequent web e2e flakes are fixed at their cause, and
one of them was a product race.
When a folder inside a repository was added as a project, one update
could draw it apart from its repository, with no tabs and under "No
agents", for about 10 ms.
The core now builds that update from path answers that already place the
new project.
The other four were tests that waited on the wrong thing, and four more
issues with the same tab failure close with them.
#287 needed no code, because its spec was deleted with Factory in #1437.

스크린샷 없음: no `web/src`, `site/` or `design/` change; the only product
change is in the core's catalog build.

## Review

- **판단해 주세요**: #270 is fixed in the core, not in the test helper. The
in-between update was wrong (the project shown apart from its
repository, empty, under No agents), so `showProjectRow` is unchanged.
- **판단해 주세요**: the graph still remounts every card when it switches from
plain layers to the placed layout. The switch waits on the asynchronous
layout worker, up to `LAYOUT_TIMEOUT_MS` (3000 ms), so a click in that
window can be lost. This PR only makes the test wait for `layered`; the
product defect is with-hide/hide-private#317.
- **판단해 주세요**: the #122 test now opens the record by focusing the row
(`focus-within`), so it checks the focus path and no longer checks the
hover reveal.
- **조심해서 볼 파일**: `herdr-core/src/session_sync/coordinator.rs`, the
catalog build on the session-sync thread (high-frequency path). The
change only chooses between two path indexes already in hand. When the
coordinator's own answers place every registration (the usual case),
nothing changes.
- **비용 검토**: each update adds one `knows()` lookup per local
registration on at most two indexes, with no new reads, timers or
fan-out.

## Evidence

- **확인한 것**: the 8 tests behind these issues passed 20 repeats each on
42aa932 (160 passed, 0 failed). This is evidence for 42aa932; the
commit after it changes docs only.
- **확인한 것**: a scratch probe (not committed) that read the wire frames
reproduced the #270 update before the fix and saw 0 of 31 after it.
- **확인한 것**: the new core unit test proves that a pending answer makes
the catalog build from the path index that places every registration. It
does not prove the screen frame; the probe above is the screen-level
evidence.
- **확인한 것**: CI on 7d6ee3b passed in every lane that ran, and no lane
reported a flaky test.
- **확인하지 못한 것**: clippy and the full Rust and web suites did not run
locally (the disk had 0.8-1.8 GiB free); CI ran them. The Windows form
of #161 is checked only in CI.

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

**Issues**

| Issue | Flakes | Cause | Fix |
| --- | --- | --- | --- |
| #270 s4 registered subfolder History | 17 | Product: while the node's
path answer was pending, the coordinator built the catalog from answers
that predate the new registration and overwrote the creation's correct
publish; the helper then clicked the vanished fold |
`paths_to_build_from` in the coordinator |
| #147 plan-review | 24 | The graph draws cards in plain layers, then
mounts them anew once placed; `boundingBox()` read a removed card
(`null`) | Wait for `data-dependency-layout="layered"` (`placedBoxes`);
mission-map had the same read |
| #161 checkout-owner linked worktree | 15 | `waitForTerminal` took the
strip's selected tab as the expectation; the canvas drew the new tab
while the strip still selected the old one | The expected tab comes from
Herdr (`createdTabs`), all 9 callers |
| #168 #172 #195 #197 | - | Same `Expected: old tab / Received: new tab`
signature, same helper | Same fix |
| #122 session-work-ledger report letter | 1 | Hover-only record button:
a child nesting under the root moved the row away from a still pointer |
Reveal the buttons by focusing the row (`focus-within`) |
| #287 Factory questions | 21 | The spec was deleted with Factory in
#1437 (cc80696) | Closed with that evidence, no code |

**Repeat run (c2)**

- Commit: 42aa932 (head 7d6ee3b adds docs only).
- Machine: macOS, one worker, debug hided with the core fix, pinned
Herdr 0.9.5.
- Command: `scripts/verify-web.sh web e2e e2e/plan-review.spec.ts
e2e/mission-map.spec.ts e2e/checkout-owner.spec.ts e2e/s4.spec.ts
e2e/session-work-ledger.spec.ts e2e/herdr-coexistence.spec.ts
e2e/last-tab-leaves-checkout.spec.ts e2e/s2.spec.ts --grep "<the 8
tests>" --repeat-each 20`
- Result: 160 passed, 0 failed, 19.4 min.
- The other tests the helper change touches (checkout-owner,
session-work-ledger, sidebar-menus, overview-device, s2 tab switch)
passed once each, 15 in all.

**#270 probe (not committed)**

- It logged the fold and the core's `no_agent_projects` from wire
frames, with the real test's Git setup.
- Before the fix, every batch of 12-20 runs (5 batches) had at least one
publish of `registered` at its bare path with 0 tabs beside `fixture`
and under No agents. One batch was counted exactly: 2 of 20.
- After the fix: 0 of 31.

**Static checks**

- `verify-cargo.sh test -p herdr-core --lib`:
`catalog_path_tests::a_pending_answer_builds_from_the_paths_that_place_every_registration`
passes.
- `web typecheck`, `web lint` (e2e size budget included) and `cargo fmt
--check` pass.

**CI on 7d6ee3b**

- Passed: verify, gate, plan, policy checks, rust workspace, web and
desktop checks, static-design, windows check, os contract linux and
windows, remote mailbox, web e2e linux 1-6 of 6, windows e2e, desktop
e2e macos 1-2 of 2, desktop e2e windows.
- Skipped by path filter: agent CLIs, agent journey, agy contract, omp
SDK contract, os contract macOS, package, windows wsl.
- No lane reported a flaky test.

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