Skip to content

test: remove 338 low-value cases and 28 suites - #34234

Merged
OrcaWin merged 1 commit into
mainfrom
audit/remove-low-value-tests-520
Oct 27, 2026
Merged

OrcaWin merged 1 commit into
mainfrom
audit/remove-low-value-tests-520

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 115 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​25 $\color{#cf222e}{\Huge{\mathbf{−}}}$​4342 $\color{#cf222e}{\Huge{\mathbf{−}}}$​4317
Prod 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​3 $\color{#cf222e}{\Huge{\mathbf{−}}}$​37 $\color{#cf222e}{\Huge{\mathbf{−}}}$​34

Removes 338 low-value test registrations after reviewing 123 sources across renderer, main, mobile and shared code, including 28 entire suites. Production code is unchanged.

Deletes literal inventories, presentation checks, simple argument builders and synthetic smoke. Keeps 398 authored cases covering ownership, input limits, cleanup and stream behavior; eight reviewed sources remain unchanged. Removes 28 obsolete timing keys and the deleted preview suite from its active reliability command, preserving historical evidence.

Validation: isolated AST preservation, formatting, lint, metadata, patch and reliability-gate checks passed. Refreshed against current main. Fresh non-draft CI and the retained performance-contract route are required before merge.

@OrcaWin
OrcaWin force-pushed the audit/remove-low-value-tests-520 branch from d7c2ef3 to a42ce71 Compare October 27, 2026 04:47
@OrcaWin OrcaWin changed the title test: remove 341 low-value cases and 28 suites test: remove 338 low-value cases and 28 suites Oct 27, 2026
@OrcaWin
OrcaWin force-pushed the audit/remove-low-value-tests-520 branch from a42ce71 to cd90b31 Compare October 27, 2026 05:34
@OrcaWin
OrcaWin marked this pull request as ready for review October 27, 2026 05:34
@coderabbitai

coderabbitai Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Walkthrough

The diff removes or narrows test coverage across main-process, renderer, and shared code. It adds a generic rejection-notice test while removing several other structured-agent session assertions. It also removes the preview visibility test from the reliability gate and deletes timing records for removed test files.

Priority: Low

Merge Risk: Low · up to cd90b

The change appears mergeable with owner awareness: correct the misleading gate history and consider retaining focused checks for the removed identity and integration behaviors.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Description check Warning The description covers the core of the change: what was removed (338 low-value test registrations, 28 suites), the categories of tests removed, what was kept, and the validation performed. It also sta… Rewrite the description using the repository template. Add these sections: ELI5 (plain-language summary); What Changed (before and after, plus the mechanism); Why (the problem and why deleting these tests beats the alternatives, such as rew…
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title "test: remove 338 low-value cases and 28 suites" accurately describes the main change: the PR removes 338 test cases and 28 test suites. It uses a conventional commit prefix and is concise. …
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Documentation-only edits and deletions within survi…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "test: remove 338 low-value cases and 28 suites" accurately describes the main change: the PR removes 338 test cases and 28 test suites. It uses a conventional commit prefix and is concise. It does not name the specific areas touched, but the description and objectives confirm the change is a test-only cleanup, so the title is clear enough for a teammate scanning history.

Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 20 files. (1 skipped: 1 unsupported.)

Full details: Description check

Explanation

The description covers the core of the change: what was removed (338 low-value test registrations, 28 suites), the categories of tests removed, what was kept, and the validation performed. It also states that production code is unchanged. It does not follow the repository template. It lacks the ELI5, Linked Issue, Visual Proof, Testing checklist, AI Disclosure, Review, and Agent skill upstream boundary sections, and it has no 'Why' explanation for the alternatives considered. The raw LoC table and the claim that production code is unchanged also conflict with the raw summary, which lists 2 prod files with 3 additions and 37 deletions in the reliability-gate and CI timing config files, plus the PR objectives note of 2 production files changed.

Resolution

Rewrite the description using the repository template. Add these sections: ELI5 (plain-language summary); What Changed (before and after, plus the mechanism); Why (the problem and why deleting these tests beats the alternatives, such as rewriting or keeping them); Linked Issue (an actual issue reference, since 'Fixes #' is empty; maintainers should attach a pre-existing issue); Visual Proof (write N/A with the reason, since no UI changes are claimed); Testing (the platforms actually tested and the checks run); AI Disclosure (state the model if AI was used, or leave blank for internal contributors); Review and Agent skill upstream boundary (complete the checkbox); and Checklist. Also correct the statement that production code is unchanged. The LoC table reports 2 production files changed (+3/-37), which are likely config/reliability-gates.jsonc and config/scripts/ci-shard-timings.json. Explain those changes, or state that they are config files and not production code.

Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Nitpick comments: 5
src/main/github/project-view/repository-field-options.test.ts: 1

29-29: Trivial · Maintainability & Code Quality · Quick win

Keep a focused seed-assignee test.

The removed test checked that listAssignableUsersBySlug retains a seeded login when the provider omits it and does not duplicate a login the provider returns. The remaining test covers labels, not assignees. Keep those two behavioral assertions so a merge regression does not silently remove assignees from the returned options. (raw.githubusercontent.com)

src/main/runtime/rpc/methods/structured-agent-session-agents.test.ts: 1

3-3: Trivial · Maintainability & Code Quality · Quick win

Preserve a behavioral check for registered agent IDs.

After this deletion, the successful RPC test accepts { agents: [] }. Such a response would hide every registered agent while the test stays green. Keep an assertion derived from this build’s registrations, without pinning a literal agent list. The retained throwing stub already protects the tested path against host installation. (raw.githubusercontent.com)

src/main/runtime/structured-agent-account-kind.test.ts: 1

3-3: Trivial · Maintainability & Code Quality · Quick win

Retain the shared-mirror selection test.

The removed cases were the only cases in this file that exercised the shared managed-home path with and without an active account. The classifier must return managed in the first state and system in the second. Restore those two assertions; the retained pinned-home and system-home tests cannot catch a regression in this selection-dependent branch. (raw.githubusercontent.com)

src/shared/structured-agent-session-create.test.ts: 1

76-76: Trivial · Maintainability & Code Quality · Quick win

Keep a direct assertion for the adopted session identity.

The retained adoption tests compare fingerprints but do not assert params.resumeFrom. A fingerprint can remain correct if a later change omits resumeFrom from the returned create params. Keep an assertion that the returned field contains the requested providerSessionId. (raw.githubusercontent.com)

Based on learnings, identity-sensitive tests should assert the field that determines the resulting identity, not only adjacent metadata.

Source: Learnings

src/shared/worktree/host-qualified-identity.test.ts: 1

35-35: Trivial · Maintainability & Code Quality · Quick win

Retain the concrete-host assertion for destructive targets.

The golden tests protect composed identity bytes, not hostWorktreeTarget. Keep a test that asserts the target carries the supplied hostId; that field selects the host for a destructive operation. (raw.githubusercontent.com)

Based on learnings, identity-sensitive tests should assert the field that determines the resulting identity, not only adjacent metadata.

Source: Learnings


Review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4546902d-9d0a-4dca-85ee-8689866fd35f
Commits

Reviewing files that changed from the base of the PR and between 1fdf896 and cd90b31.

Files selected for processing: 117
  • config/reliability-gates.jsonc
  • config/scripts/ci-shard-timings.json
  • src/main/browser/doc-preview-download-block-notice.test.ts
  • src/main/browser/doc-preview-failure-notice.test.ts
  • src/main/codex-accounts/codex-login-auth-url.test.ts
  • src/main/codex/codex-trust-grant-telemetry.test.ts
  • src/main/emulator/android/android-app-control.test.ts
  • src/main/emulator/android/android-permissions.test.ts
  • src/main/git/admission-tier-plumbing.test.ts
  • src/main/git/fetch-error-classification.test.ts
  • src/main/github/project-view/repository-field-options.test.ts
  • src/main/grok-accounts/status.test.ts
  • src/main/ipc/pty/configured-terminal-shell-args.test.ts
  • src/main/ipc/pty/ipc/spawn-options-spawn-intent.test.ts
  • src/main/ipc/pty/pty-spawn-timing.test.ts
  • src/main/menu/gpu-acceleration-about-panel.test.ts
  • src/main/muse/hook-config-json.test.ts
  • src/main/muse/hook-settings.test.ts
  • src/main/native-chat/structured-agent-configured-args.test.ts
  • src/main/opencode/legacy-shared-config-dir.test.ts
  • src/main/orcad/orcad-app-version-stamp.test.ts
  • src/main/orcad/orcad-bind-address.test.ts
  • src/main/orcad/orcad-compile-cache.test.ts
  • src/main/preflight/agent-command-detection.test.ts
  • src/main/provider-process/provider-spawn-failure-report.test.ts
  • src/main/providers/filesystem-markdown-listing.test.ts
  • src/main/providers/stable-foreground-process.test.ts
  • src/main/rate-limits/claude-oauth-usage-error.test.ts
  • src/main/rate-limits/gemini-bucket-formatting.test.ts
  • src/main/ripgrep/bundled-ripgrep-wsl-routing.test.ts
  • src/main/runtime/orchestration/db/row-column-lists.test.ts
  • src/main/runtime/rpc/methods/mobile-project-sections.test.ts
  • src/main/runtime/rpc/methods/orchestration/federation/federation-start-schema.test.ts
  • src/main/runtime/rpc/methods/orchestration/runs/run-receipt.test.ts
  • src/main/runtime/rpc/methods/structured-agent-session-agents.test.ts
  • src/main/runtime/structured-agent-account-kind.test.ts
  • src/main/runtime/windows-default-route-interfaces.test.ts
  • src/main/speech/model-catalog.test.ts
  • src/main/speech/stt-worker-paths.test.ts
  • src/main/ssh/ssh-session-limit-error.test.ts
  • src/main/startup/serve-mode-argv-cli-redirect-order.test.ts
  • src/main/telemetry/cohort-classifier.test.ts
  • src/main/window/clipboard-image-thumbnail.test.ts
  • src/main/worktree-create-base.test.ts
  • src/renderer/src/components/cmd-j/palette-filter-option-list.test.ts
  • src/renderer/src/components/dashboard-popout/agent-board-filtering.test.ts
  • src/renderer/src/components/editor/markdown-export-html.test.ts
  • src/renderer/src/components/feature-wall/feature-wall-setup-checklist-localized-copy.test.ts
  • src/renderer/src/components/github/pr-comment-code-context.test.ts
  • src/renderer/src/components/linear-issue-attribute-filter-primary-team.test.ts
  • src/renderer/src/components/native-chat-resume-activity-label.test.ts
  • src/renderer/src/components/native-chat/agent-session-write-notice-text.test.ts
  • src/renderer/src/components/native-chat/native-chat-session-option-labels.test.ts
  • src/renderer/src/components/repo/repo-icon.test.tsx
  • src/renderer/src/components/right-sidebar/file-explorer-display-root.test.ts
  • src/renderer/src/components/right-sidebar/source-control-text-generation-defaults.test.ts
  • src/renderer/src/components/right-sidebar/source-control/listing/content-status.test.tsx
  • src/renderer/src/components/settings/GrokAccountsSection.test.tsx
  • src/renderer/src/components/settings/OrcaAccountSettingsPane.test.tsx
  • src/renderer/src/components/settings/accounts-search.test.ts
  • src/renderer/src/components/settings/appearance-status-bar-search.test.ts
  • src/renderer/src/components/settings/integrations-pane-status.test.ts
  • src/renderer/src/components/settings/provider-account-scope.test.ts
  • src/renderer/src/components/settings/repository/execution/repository-host-setup-options.test.ts
  • src/renderer/src/components/settings/settings-form-option-filter.test.ts
  • src/renderer/src/components/settings/shortcut-row-visibility.test.ts
  • src/renderer/src/components/sidebar/create-project-defaults.test.ts
  • src/renderer/src/components/sidebar/truncated-sidebar-label.test.tsx
  • src/renderer/src/components/status-bar/codex-restart-status-summary.test.ts
  • src/renderer/src/components/status-bar/remote-host-connection-status.test.ts
  • src/renderer/src/components/status-bar/resource-manager-terminal-copy.test.ts
  • src/renderer/src/components/status-bar/resource-memory-metric-copy.test.ts
  • src/renderer/src/components/status-bar/ssh-status-menu-rows.test.ts
  • src/renderer/src/components/status-bar/status-bar-agent-gating.test.ts
  • src/renderer/src/components/status-bar/usage-unit-label-parity.test.tsx
  • src/renderer/src/components/status-bar/usage-unit-label.test.ts
  • src/renderer/src/components/task-page/task-page-repo-source-context.test.ts
  • src/renderer/src/components/terminal-pane/terminal-title-evidence.test.ts
  • src/renderer/src/components/terminal/terminal-close-copy-kind.test.ts
  • src/renderer/src/components/workspace-cleanup/workspace-cleanup-filter-bar.test.tsx
  • src/renderer/src/i18n/plugin-chrome-allowlist.test.ts
  • src/renderer/src/lib/file-preview-action-visibility.test.tsx
  • src/renderer/src/lib/monaco-peek-preview-options.test.ts
  • src/renderer/src/ssh/ssh-host-node-download-copy.test.ts
  • src/shared/ai-vault-resume-target.test.ts
  • src/shared/antigravity-generation-plan.test.ts
  • src/shared/git-status-sort.test.ts
  • src/shared/setup-script-package-manager-suggestion.test.ts
  • src/shared/sidebar-list/sort-stamps.test.ts
  • src/shared/sidebar-list/workspace-rows.test.ts
  • src/shared/skill-package-manifest.test.ts
  • src/shared/source-control-create-review-intent.test.ts
  • src/shared/source-control-primary-action-decision.test.ts
  • src/shared/source-control-push-failure.test.ts
  • src/shared/structured-agent-session-agent-status.test.ts
  • src/shared/structured-agent-session-context-usage.test.ts
  • src/shared/structured-agent-session-create.test.ts
  • src/shared/structured-agent-session-dispatch-rejection.test.ts
  • src/shared/structured-agent-session-option-picks.test.ts
  • src/shared/structured-agent-session-rejection-words.test.ts
  • src/shared/structured-agent-session-send-evidence.test.ts
  • src/shared/structured-agent-turn-clock-anchor.test.ts
  • src/shared/structured-chat-naming-eligibility.test.ts
  • src/shared/structured-native-chat-launch-route.test.ts
  • src/shared/tab-title-resolution.test.ts
  • src/shared/terminal-input.test.ts
  • src/shared/tui-agent-launch-defaults.spec.ts
  • src/shared/ui-locale.test.ts
  • src/shared/utf8-byte-limits.test.ts
  • src/shared/workspace-cleanup-applied-filters.test.ts
  • src/shared/workspace-cleanup.test.ts
  • src/shared/workspace-layout/tab-group-moves.test.ts
  • src/shared/workspace-layout/workspace-layout-browser-commands.test.ts
  • src/shared/workspace-layout/workspace-layout-dropped-leaves.test.ts
  • src/shared/workspace-layout/workspace-layout-records.test.ts
  • src/shared/workspace-layout/workspace-layout-views.test.ts
  • src/shared/worktree/host-qualified-identity.test.ts
Files with no reviewable changes: 96
  • src/shared/git-status-sort.test.ts
  • src/shared/source-control-create-review-intent.test.ts
  • src/main/runtime/orchestration/db/row-column-lists.test.ts
  • src/main/ipc/pty/configured-terminal-shell-args.test.ts
  • src/renderer/src/lib/monaco-peek-preview-options.test.ts
  • src/main/menu/gpu-acceleration-about-panel.test.ts
  • src/main/speech/model-catalog.test.ts
  • src/renderer/src/components/status-bar/resource-manager-terminal-copy.test.ts
  • src/main/ripgrep/bundled-ripgrep-wsl-routing.test.ts
  • src/renderer/src/components/status-bar/status-bar-agent-gating.test.ts
  • src/main/git/admission-tier-plumbing.test.ts
  • src/renderer/src/components/settings/provider-account-scope.test.ts
  • src/renderer/src/components/sidebar/create-project-defaults.test.ts
  • src/renderer/src/components/settings/accounts-search.test.ts
  • src/main/ssh/ssh-session-limit-error.test.ts
  • src/renderer/src/components/status-bar/usage-unit-label.test.ts
  • src/main/worktree-create-base.test.ts
  • src/main/muse/hook-settings.test.ts
  • src/main/browser/doc-preview-download-block-notice.test.ts
  • src/renderer/src/components/right-sidebar/source-control-text-generation-defaults.test.ts
  • src/main/orcad/orcad-compile-cache.test.ts
  • src/shared/skill-package-manifest.test.ts
  • src/main/runtime/rpc/methods/orchestration/federation/federation-start-schema.test.ts
  • src/main/providers/filesystem-markdown-listing.test.ts
  • src/main/ipc/pty/ipc/spawn-options-spawn-intent.test.ts
  • src/main/window/clipboard-image-thumbnail.test.ts
  • src/renderer/src/components/settings/appearance-status-bar-search.test.ts
  • src/shared/antigravity-generation-plan.test.ts
  • src/renderer/src/components/settings/OrcaAccountSettingsPane.test.tsx
  • src/main/native-chat/structured-agent-configured-args.test.ts
  • src/renderer/src/components/settings/GrokAccountsSection.test.tsx
  • src/main/preflight/agent-command-detection.test.ts
  • src/main/ipc/pty/pty-spawn-timing.test.ts
  • src/shared/structured-agent-session-agent-status.test.ts
  • src/main/codex-accounts/codex-login-auth-url.test.ts
  • src/main/grok-accounts/status.test.ts
  • src/renderer/src/components/dashboard-popout/agent-board-filtering.test.ts
  • src/renderer/src/components/cmd-j/palette-filter-option-list.test.ts
  • src/main/rate-limits/gemini-bucket-formatting.test.ts
  • src/renderer/src/i18n/plugin-chrome-allowlist.test.ts
  • src/renderer/src/components/status-bar/resource-memory-metric-copy.test.ts
  • src/renderer/src/components/terminal/terminal-close-copy-kind.test.ts
  • src/main/git/fetch-error-classification.test.ts
  • src/shared/structured-chat-naming-eligibility.test.ts
  • src/shared/workspace-cleanup-applied-filters.test.ts
  • src/shared/workspace-cleanup.test.ts
  • src/main/muse/hook-config-json.test.ts
  • src/renderer/src/components/settings/integrations-pane-status.test.ts
  • src/shared/sidebar-list/workspace-rows.test.ts
  • src/main/emulator/android/android-permissions.test.ts
  • src/main/runtime/rpc/methods/mobile-project-sections.test.ts
  • src/renderer/src/ssh/ssh-host-node-download-copy.test.ts
  • src/main/rate-limits/claude-oauth-usage-error.test.ts
  • src/main/startup/serve-mode-argv-cli-redirect-order.test.ts
  • src/shared/source-control-primary-action-decision.test.ts
  • src/renderer/src/components/settings/settings-form-option-filter.test.ts
  • src/shared/structured-agent-session-context-usage.test.ts
  • src/main/emulator/android/android-app-control.test.ts
  • src/shared/structured-agent-session-rejection-words.test.ts
  • src/renderer/src/components/right-sidebar/file-explorer-display-root.test.ts
  • src/shared/tab-title-resolution.test.ts
  • src/main/orcad/orcad-app-version-stamp.test.ts
  • src/shared/workspace-layout/workspace-layout-browser-commands.test.ts
  • src/shared/structured-agent-session-option-picks.test.ts
  • src/renderer/src/components/github/pr-comment-code-context.test.ts
  • src/renderer/src/components/status-bar/ssh-status-menu-rows.test.ts
  • src/main/runtime/rpc/methods/orchestration/runs/run-receipt.test.ts
  • src/main/runtime/windows-default-route-interfaces.test.ts
  • src/renderer/src/components/right-sidebar/source-control/listing/content-status.test.tsx
  • src/main/telemetry/cohort-classifier.test.ts
  • src/main/provider-process/provider-spawn-failure-report.test.ts
  • src/renderer/src/components/editor/markdown-export-html.test.ts
  • src/shared/setup-script-package-manager-suggestion.test.ts
  • src/shared/source-control-push-failure.test.ts
  • src/renderer/src/components/repo/repo-icon.test.tsx
  • src/renderer/src/components/native-chat-resume-activity-label.test.ts
  • src/renderer/src/components/status-bar/codex-restart-status-summary.test.ts
  • src/renderer/src/components/task-page/task-page-repo-source-context.test.ts
  • src/shared/structured-agent-session-send-evidence.test.ts
  • src/shared/sidebar-list/sort-stamps.test.ts
  • src/renderer/src/components/workspace-cleanup/workspace-cleanup-filter-bar.test.tsx
  • src/renderer/src/lib/file-preview-action-visibility.test.tsx
  • src/main/orcad/orcad-bind-address.test.ts
  • src/shared/utf8-byte-limits.test.ts
  • src/shared/workspace-layout/workspace-layout-records.test.ts
  • src/renderer/src/components/status-bar/remote-host-connection-status.test.ts
  • src/main/codex/codex-trust-grant-telemetry.test.ts
  • src/shared/tui-agent-launch-defaults.spec.ts
  • src/main/browser/doc-preview-failure-notice.test.ts
  • src/shared/workspace-layout/workspace-layout-views.test.ts
  • src/shared/ui-locale.test.ts
  • src/shared/terminal-input.test.ts
  • src/main/opencode/legacy-shared-config-dir.test.ts
  • src/main/providers/stable-foreground-process.test.ts
  • src/shared/structured-native-chat-launch-route.test.ts
  • config/scripts/ci-shard-timings.json

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.

"result": "passed",
"durationSeconds": 1.63,
"summary": "189/189 over the grant, reader, protocol, guest-policy, scheme-admission, plan-routing, action-visibility, failure-message, external-link and terminal-row contracts. This replaces the 2026-08-27 record of the same command at 174/174, whose thirteenth file was the deleted doc-preview-external-link-bridge.test.ts: the STA-5758 hardening moved that behavior into the reader-facing confirmation (doc-preview-external-link-confirmation.test.ts), which now proves the exact destination is shown and nothing opens on cancel, alongside everything the retired run carried — the stale-mint rejection that must not evict a reopened preview tab, the CSP header and session request filter, the SSH symlink refusal, subframe containment, truncated and over-cap reads, the unservable-asset and empty-file split, the out-of-worktree paired refusal, and the guest deny-only navigation sinks. The count also carries the entry-only rule added on top of the hardening: a grant whose document directory is its own request base — a workspace-root or out-of-workspace document — reads nothing but the entry file until the reader approves a directory, at both the lexical and the canonical containment pass, because that directory is where secrets live and a DNS-prefetch beacon needs no click."
"summary": "189/189 over the grant, reader, protocol, guest-policy, scheme-admission, plan-routing, action-visibility, failure-message, external-link and terminal-row contracts. This replaces the 2026-08-27 record of the same command at 174/174, whose thirteenth file was the deleted doc-preview-external-link-bridge.test.ts: the STA-5758 hardening moved that behavior into the reader-facing confirmation (doc-preview-external-link-confirmation.test.ts), which now proves the exact destination is shown and nothing opens on cancel, alongside everything the retired run carried — the stale-mint rejection that must not evict a reopened preview tab, the CSP header and session request filter, the SSH symlink refusal, subframe containment, truncated and over-cap reads, the unservable-asset and empty-file split, the out-of-worktree paired refusal, and the guest deny-only navigation sinks. The count also carries the entry-only rule added on top of the hardening: a grant whose document directory is its own request base — a workspace-root or out-of-workspace document — reads nothing but the entry file until the reader approves a directory, at both the lexical and the canonical containment pass, because that directory is where secrets live and a DNS-prefetch beacon needs no click.",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor · Maintainability & Code Quality · Quick win

Correct the historical test attribution.

The summary says the prior 174/174 run's thirteenth file was doc-preview-external-link-bridge.test.ts. The retained command at Line 6445 lists src/main/terminal-file-link-actions.test.ts thirteenth and does not include the bridge test. Correct the summary so the gate records the actual prior command and removed file.

@OrcaWin
OrcaWin merged commit 84494ce into main Oct 27, 2026
87 checks passed
nachumi-a2zoperations added a commit to A2Z-Operations/orca that referenced this pull request Oct 28, 2026
config/electron-builder.config.cjs: kept upstream configuration and restored ORCA_NO_PUBLISH=1 => publish:null.
config/scripts/build-computer-macos.mjs: kept upstream --build-system native fix for Swift 6.4; supersedes our per-triple scratch paths.
package.json: kept upstream byte-for-byte, version 1.4.243; packaging injects 1.4.244-blowzer.1.
src/main/claude-accounts/claude-account-selection.ts: retained upstream folder/runtime/organization handling and restored autoSwitchEnabled plus its notifying setter.
src/main/claude-accounts/service.ts: kept upstream sign-in flow and restored queued automatic selection, user-action precedence, and setting setter.
src/main/provider-account-services.ts: kept upstream agent-view reconciliation and background runtime protections; restored auto-switch subscription/callback.
src/main/rate-limits/claude-profile-usage.test.ts: retained upstream OAuth renewal cases and restored successful-reading account provenance case.
src/main/runtime/rpc/methods/accounts.ts: kept upstream host sign-in RPCs and restored accounts.setClaudeAutoSwitch with accounts-admin permission.
src/main/updater/updater-setup.ts: kept upstream proxy handling and packaged-app initialization; restored no-feed/no-check kill switch.
src/renderer/src/components/settings/accounts-search.test.ts: accepted upstream deletion in 84494ce (stablyai#34234); no replacement suite found, so dropped our one search case.
src/renderer/src/i18n/locales/en.json: kept upstream names/translations and restored the seven auto-switch translation lines.
src/renderer/src/runtime/runtime-provider-accounts-client.test.ts: retained upstream removals from stablyai#34426 and restored only our local/remote auto-switch mutation case.
src/shared/global-settings-types.ts: retained upstream types/comments and restored optional claudeAutoSwitchEnabled.

Adapted automatic-switch restart tests to upstream grouped sessions and carried its optional system-default folder/login snapshot through the automatic-switch event.
nplez1 added a commit to nplez1/orca that referenced this pull request Oct 28, 2026
Merge base 0571e45, fork tip before this sync 7b86cb0 (rollback tag
archive/pre-sync-7b86cb0846), upstream tip f173998.

Upstream's delta is 22,767 files (+510,839 / -404,589): a feature wave (WSL
host chat, Jira board rework, team agents) plus two large test-retirement
sweeps ("remove low-value cases", stablyai#33770/stablyai#34156/stablyai#34161/stablyai#34234) and a
consolidated `config/scripts/run-lint.mjs` replacing package.json's inline
lint chain.

431 conflicted paths / 621 hunks. Tiers: 255 hunks proved mechanically by
`conflicts.mjs --apply-proven` (167 paths written), 69 `docs/agents-md-refs`
files removed as upstream churn absent from both tips, 27 deletions taken
from `expected-deletions.json` plus the retired-test policy in the ledger, and
the remaining 163 paths resolved in 13 disjoint batches against
`local/sync/convergence-ledger.md`.

Breaks the merge left with no conflict marker, all repaired here:

- Three fork ratchets (check:process-host-imports,
  check:workspace-path-sync-fs-ratchet, check:compat-boundary-imports) were
  dropped by upstream's consolidated lint runner; the gate now expands
  `LINT_STEPS` back into one step each and fails closed if it cannot.
- Fork-only importers pointed at modules upstream moved: filesystem-auth,
  filesystem-search-file-paths, remote-runtime-*, source-control-base-ref-
  resolution, task-page-jira-create-fields, agent-status, and
  use-task-page-composer-actions (16 imports in `tc:node`, 14 in `tc:web`).
- `RuntimeRepositorySettingsController` gained a required
  `notifyWorktreesChanged`; the fork's extracted owned-controllers wiring would
  have thrown at runtime.
- Two union resolutions were syntactically broken
  (service-full-cycle-preparation, wsl-orca-env duplicate identifier).
- Two settings keys upstream added were unclassified in the fork's host-sync
  disposition map; four upstream settings added since the last sync needed a
  disposition each.
- `sync:localization-catalog` rejected a reused key: the fork's "Gemini CLI
  (legacy)" heading and upstream's "Gemini" label shared one key, so the
  heading has its own key now.
- Nine non-English locales carried upstream translations for two toasts the
  fork rewords (different placeholders); the stale entries are retired and
  fall back to the fork's English overlay.
- Thirteen upstream-owned files sat 1-18 code lines over the max-lines budget
  once the fork's delta was merged in: exempted with a directive and a baseline
  row per LOCAL-PATCHES § local(lint), whose rule is ownership not size. The
  orcad-entry row went stale and was pruned.

Decisions and evidence: LOCAL-PATCHES.md § Sync log and
local/sync/convergence-ledger.md.
nplez1 added a commit to nplez1/orca that referenced this pull request Oct 28, 2026
…n scan

The merge left `locales/en.json` and the fork overlay carrying entries the merged
source no longer references — mostly test-harness fixtures for the suites
upstream retired in stablyai#33770/stablyai#34156/stablyai#34161/stablyai#34234 — and nine English entries whose
source copy moved on, so the catalog still rendered the old sentence.

198 orphan keys removed from every locale catalog, the fork overlay and
`locale-ko-key-overrides.json`; the nine drifted entries now carry the source's
copy, each differing placeholder string moved to its own key
(`AccountsPane.aa4de4475b` for the fork's "Gemini CLI (legacy)" heading), and
the translations of the reworded sentences retired so they fall back to English
rather than render a stale sentence with the wrong placeholders.
`sync:localization-runtime-catalog` then regenerated the runtime subset.

Also fixes the post-sync deletion scan: it disabled rename detection on our
side only, so an upstream *rename* of a fork-untouched file read as a fork-only
deletion with a lost export (`terminal-file-link-detection-ranges.ts`, renamed
by stablyai#33964). Both sides now run with `--no-renames`.

Verified: post-sync PASS (11 checks), pnpm tc clean on node/web/cli, oxlint
clean, identity sweep 0 fixable.
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