Skip to content

[comment audit] Clean up IPC, host lifecycle and native-chat comments - #32966

Merged
OrcaWin merged 31 commits into
mainfrom
OrcaWin/comment-audit-ipc-watchers
Oct 24, 2026
Merged

OrcaWin merged 31 commits into
mainfrom
OrcaWin/comment-audit-ipc-watchers

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 648 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1600 $\color{#cf222e}{\Huge{\mathbf{−}}}$​5640 $\color{#cf222e}{\Huge{\mathbf{−}}}$​4040
Prod 1002 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​4763 $\color{#cf222e}{\Huge{\mathbf{−}}}$​13330 $\color{#cf222e}{\Huge{\mathbf{−}}}$​8567

Remove redundant and outdated comments across IPC, PTY and worktree lifecycle, runtime routing, managed accounts and servers, integrations, model catalogs, and native-chat journals, queues, Stop handling, recovery, transcripts and WSL transport. Keep concise explanations of ownership, concurrency, cancellation, path containment and mixed-version compatibility. Executable behavior is unchanged.

This consolidated batch covers 2,006 reviewed files, 1,650 comment-edited files and 12,607 net lines removed. The scan tracker remains local, outside the codebase.

Validation: source/emitted JavaScript AST and non-formatting tokens are equivalent across the full diff; protected comments are unchanged. Latest batches passed 423, 406 and 423 tests, plus 87 and 44 tests after resolving current-main conflicts. Latest main reconciliation preserves prompt-binding and host-clock additions; all 1,650 files remain executable-equivalent to current main. Changed-code quality, formatting, diff checks and normal commit hooks pass. Full PR CI and its aggregate gate are required before merge.

@OrcaWin
OrcaWin force-pushed the OrcaWin/comment-audit-ipc-watchers branch from d26424e to a83bae8 Compare October 23, 2026 23:16
@OrcaWin
OrcaWin force-pushed the OrcaWin/comment-audit-ipc-watchers branch from 5ca2793 to ee78681 Compare October 23, 2026 23:28
@OrcaWin
OrcaWin changed the base branch from OrcaWin/comment-audit-main-continuation to main October 23, 2026 23:28
@OrcaWin OrcaWin changed the title [comment audit] Continue IPC watcher and host-routing cleanup [comment audit] Clean up IPC and PTY lifecycle comments Oct 23, 2026
@OrcaWin OrcaWin changed the title [comment audit] Clean up IPC and PTY lifecycle comments [comment audit] Clean up IPC, host lifecycle and native-chat comments Oct 24, 2026
@OrcaWin
OrcaWin marked this pull request as ready for review October 24, 2026 00:59
@OrcaWin
OrcaWin merged commit 3286f3b into main Oct 24, 2026
72 checks passed
sj900211 added a commit to sj900211/orcinus that referenced this pull request Oct 30, 2026
One day of upstream past stage 13: 365 commits and 24 conflicting files, base
`120f01331ca`. Three cluster analysts, one implementer, one independent critic,
which returned ACCEPT with 0 blocking defects.

The target is the parent of the PTY delivery refactor `ad1b81d53a0` (stablyai#33358,
"group PTY delivery and drain ownership"), which is left to stage 15 on its own.
The remaining gap after this merge is about 1,685 commits.

## Most PTY conflicts were comments

Bisection showed the first upstream commit to make any PTY file conflict is
`3286f3b2591` (stablyai#32966, a comment audit); before it there were 5 conflicts and no
PTY ones. 16 of the 24 conflicts are that audit colliding with the fork's
per-window delivery code. Each was resolved as the fork's code with upstream's
comment text, adapted where it now misdescribes per-window behaviour, and the
critic confirmed by token comparison that the resolved code is identical to
`main` in all 16 (two more resolved files also qualify).

## Collateral outside the conflict list

- `terminal-query-responder.test.ts`: upstream stablyai#33273 wrote a one-argument
  `markHiddenRendererPty` call against the single-window gate; the fork keys
  marks by `webContentsId`, so the test now marks `GATE_WINDOW`.
- `pty-spawn-env-terminal-basics.test.ts`: a cast upstream removed is restored
  with a `SAFETY:` reason, because the fork's `registerPtyHandlers` takes a
  `BrowserWindow` for owner routing.
- `local-file-access.test.ts`: the fork's census still named
  `WorkspaceEmptyState.tsx`, which upstream deleted when reverting stablyai#32182
  (stablyai#32838). Its renderer-relative path hid it from the repo-rooted path sweep;
  the regression sweep found it.

## Identity

`LOCAL_HOST_ROOT_NAME = 'Orcinus'` and the `sj900211/orcinus` release feed
(`TAG_HREF_RE`) survive; the identity guard passes with `upstreamRefs=0`. The
guard cannot see regex-escaped URLs, so the feed's unit test is what protects
that hunk. Pre-existing `stablyai` drift in the prerelease feed's download regex
and its readiness-test mocks is left for a separate commit so this merge stays
attributable.

## Gates

Cold typecheck 0 errors (17,824 files), full-tree oxlint 0 errors and 0
`max-lines` (`register-handlers.ts` and `daemon-host-relocation.ts` at 297/300),
identity guard OK, fork contracts green. A full `discoverUnitFiles()` sweep on
three trees (13,498 / 13,523 / 13,585 files, missing=0) raised 81 merge-only
tests; isolated and serial rechecks attribute every one to Windows EPERM
teardown or shell timing that also fails on the baselines, leaving 0. The
critic's independent 807-file resample on LF trees agrees.

Not applied here, by ruling: cosmetic comment ports into fork-only extractions,
and upstream stablyai#32940's main-window-only project-move pause barrier, which has no
production caller yet and is a watch item for when upstream wires one.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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