Skip to content

test: remove junk tests that assert source text instead of behavior - #23815

Merged
nwparker merged 1 commit into
mainfrom
nwparker/test-audit-wave1
Sep 29, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/test-audit-wave1

Conversation

@nwparker

@nwparker nwparker commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

Some of our tests don't check that the app works — they check that the code is spelled a certain way. They open a source file, read it as text, and assert it contains an exact line. Rename a variable and they fail, even though nothing broke. Break the actual feature and they still pass. This removes that whole category, plus tests that were exact copies of other tests.

What Changed

Nothing changes for users. This is test-suite only.

  • 101 test files deleted, 112 trimmed — 17,031 lines of test code removed.
  • The patterns removed:
    • Source-text greps. The biggest group. A test reads a production .ts file and asserts on its characters. Example: task-page-github-issue-creation.test.ts required the source to contain the literal string selectedRepos.find((r) => r.id === newIssueRepoId) ?? selectedRepos[0] ?? null. Renaming newIssueRepoId broke it; changing what the feature actually does never did.
    • Duplicate contracts. orchestration.test.ts, orchestration-timeout.test.ts and orchestration-timeout-cli.test.ts contained byte-identical test bodies against byte-identical mocks. One copy kept, at the owning boundary.
    • Copied inventories and export lists. Tests that restate a list production already declares, or assert a module's set of export names — they re-type the answer rather than exercise it.
    • typeof x === 'function' shape checks that TypeScript's implements clause already enforces.
    • Self-comparisons, where the expected value was computed by the same code under test.
  • Production follow-through, so nothing is left dangling: exports whose only importers were deleted tests are de-exported or removed (cellInventoryLockOptions, DECLARATION_KINDS, readsTheDocument, parseModule, DEFAULT_ROUTE_GRANTS); the deleted src/cli/registry-parity.ts; stale comments naming removed censuses; the config/reliability-gates.jsonc registry; the cloud/package.json test lists; and orphaned source-reading helpers (task-page-source-family.test-support.ts, worktree-jump-palette-source.test-support.ts, mobile-session-route-source-family.test-support.ts).

Two files kept their real coverage and lost only the scaffolding. agent-status-producer-census.test.ts used to pin a hand-maintained list of producer file paths by scanning the source tree; it now drives all five producer paths end to end and asserts the identity each one publishes. config-toml-trust-stale-writes.test.ts replaces an export-list parity check with the stale-write behavior it was standing in for.

Why

This branch collided with main in a way that makes the argument concretely: PR #23693 (fix(native-chat): an empty workspace opens the default agent as a chat when chat is the default view) had to edit four of these files — workspace-space-manager-source-boundary.test.ts, task-page-workspace-composer-boundary.test.ts, agent-launch-caller-profile-census.test.ts, agent-launch-routing-caller-census.test.ts — purely to keep their source greps matching. None of those edits verified anything about that fix's behavior; they were the cost of moving code past a text assertion. All four are deleted here, and the conflicts resolve as deletions.

A test that breaks under a behavior-preserving refactor is asserting implementation, not behavior. It costs real time — every rename becomes a test edit — and it buys nothing, because the failure it reports is never a user-visible regression. Worse, it crowds out the question of whether the behavior is covered at all: a source grep next to a feature looks like coverage in a file listing.

Alternatives considered:

  • Leave them and just stop writing new ones. Rejected: the existing ones keep imposing the rename tax, and they keep serving as the template the next test copies.
  • Rewrite every one at the owning boundary. Rejected as the default: for most of these the contract already had a real owner elsewhere, so a rewrite would have produced a second test for the same thing — one of the patterns being removed. Two files where deletion would have lost genuine coverage were rewritten rather than dropped.
  • Delete whole files wherever one case was junk. Rejected: judged case by case. 112 files were trimmed rather than removed, and two auditor deletions were reverted on review — terminal-ime-e2e-workflow.test.mjs (its YAML-contract cases guard a nightly-only CI job that no PR test reaches; only its two source-grep cases are gone) and secure-dns-census.test.ts (its tree scan is the only thing standing between us and a DoH resolver leak outside the SOCKS tunnel; only its self-proving control is gone).

Linked Issue

N/A — test-suite hygiene, no pre-existing issue.

Visual Proof

N/A — no product code path changes. The only production edits narrow visibility of symbols (export removed) or delete code that had no non-test callers.

Testing

Verified locally on macOS:

  • pnpm tc — passes.
  • pnpm run check:code-quality:changed — passes (0 findings across 33 changed files).
  • node config/scripts/check-reliability-gates.mjs — passes for 140 gates. This is the check that caught the registry references to deleted tests; it failed with 5 issues before the registry was updated.
  • All 56 modified root vitest files: 752 passed, 1 skipped.
  • All 27 modified mobile test files: 308 passed.
  • All 11 modified config/scripts tests: 99 passed, 1 skipped.
  • 3 modified cloud/dev/scripts node tests: exit 0.
  • cell-inventory-lock-contention.test.ts + assignment-store.test.ts: 123 passed.
  • Cross-checked that no remaining file references any deleted path, and that every test file still named in cloud/package.json exists (69 referenced, 0 missing).

Three CI failures found and fixed on this branch

The first CI run failed typecheck, RPC recording pin, and verify. All three were real, and two of them are worth knowing about because a local check had said "green":

  1. typecheck — my local pnpm tc passed because of a stale config/*.tsbuildinfo. Deleting the build info reproduced it instantly. The error was a rebase interaction, not the audit: this branch removed dead fields from AgentLaunchCallerProfile, and main's fix(native-chat): an empty workspace opens the default agent as a chat when chat is the default view #23693 added a new profile entry that still set them. The new entry is now trimmed to the live fields. Lesson applied: every typecheck in this audit now runs after rm -f config/tsconfig.*.tsbuildinfo.
  2. RPC recording pin — 398 golden recordings broke. An auditor had deleted mobile/src/test-support/rpc-recording/adapter-seam.test.ts and edited two doc comments that referenced it; those comments live inside recorderSha256, so the edit invalidated the whole corpus — a consequence the comment itself spells out. On re-reading, that test was not junk: it does real AST analysis of the mount register and pins HOST_CLIENT_CONTEXT_LOCAL against the product source, guarding a string literal no type checker sees, where a rename surfaces only as a runtime ReferenceError mid-recording. The test and both comments are restored, which returns the digest to its original value — a far better trade than re-recording 398 goldens to land a comment edit.
  3. verify — mobile/tests-typecheck-baseline.txt held a stale entry for a deleted test. My earlier check for baseline references missed it because the baseline stores paths relative to mobile/ while my deleted-file list was repo-relative. Pruned via pnpm --filter orca-mobile check:tests-typecheck --prune; the ratchet now reports OK across 884 test files.

Re-verified after the fixes: clean pnpm run typecheck (no build info), 140 reliability gates, the changed-lines quality gate, the mobile ratchet, all 29 recording/bridged-parity suites (1,827 tests), and the full mobile suite — 887 files, 9,643 tests passing.

Not run locally: the e2e suites and Windows/Linux/SSH jobs — left to CI. mobile/scripts/check-tests-typecheck-ratchet.mjs fails in this worktree with a pre-existing ERR_PACKAGE_PATH_NOT_EXPORTED resolving typescript, unrelated to this change.

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below

This change is test removal, so the verification is that everything remaining still passes and that no reference to a removed file survives — both checked above. No new coverage was invented, but three edits were not purely subtractive, and are worth a closer look:

  1. src/cli/handlers/orchestration.test.ts gained 126 lines. Deleting the two replay files would have lost four cases that were genuinely unique to them (fractional/unsafe-integer timeout rows, safe-ask-timeout clamping, exact-integer CLI timeout syntax, omitted-ask-timeout, and the pending-message-ID resume print). Those moved into the owner rather than being dropped. 48 tests pass.
  2. src/renderer/src/app-shell/workspace-view-cross-client-sync.test.tsx lost a runtime branch. Its mobile model used a source grep to choose between the shipping patch-only payload and the pre-fix whole-snapshot payload, so removing the grep left a dead branch. The model is now pinned to the shipping shape — verified buildWorkspaceViewSettingsUpdate is exported at mobile/src/worktree/workspace-view-settings.ts:70 and is the live path at mobile/src/host-screen/use-host-view-settings.ts:79. 15 tests pass.
  3. agent-status-producer-census.test.ts kept its name but dropped its source scan (described above).

One deleted test was hiding a possible bug

remote-server-parity.test.ts §1, "an empty snapshot with existing local terminals does not add a phantom tab", looped over groupOrder(patch) and put its assertion inside the loop. groupOrder is patch.groupsByWorktree?.[WT]?.[0]?.tabOrder ?? [] and the real value is [], so the loop body never executed and the case asserted nothing at all.

Probing the actual behavior: applyWebSessionTabsSnapshot with an empty host snapshot returns a patch whose groupsByWorktree is {} — the worktree's group, including the tabOrder holding the existing local terminal, is dropped. I deleted the vacuous case and deliberately did not change the behavior or freeze it in a new assertion. Someone who owns this path should decide whether dropping the group is correct (the host reports no tabs) or whether local terminals must survive an empty host snapshot.

Review

Highest-value things to push back on:

  1. Any deletion you think lost real coverage. Two were caught and reverted during review; there may be more. The reliability-gate registry was the most useful oracle here — if a gate named the test as its evidence, that was treated as a reason to look harder before removing it.
  2. secure-dns-census.test.ts and the terminal-ime-e2e-workflow YAML cases are source/config greps that were deliberately kept. They are lint rules wearing a test's clothes. If you'd rather they move to a lint rule or be dropped entirely, say so.
  3. agent-status-producer-census.test.ts keeps its filename while no longer scanning the source tree. It still covers every producer, so "census" still reads true, but the name is worth a second opinion.

Agent skill upstream boundary

  • Not applicable, or this change follows docs/reference/agent-skill-sharing-upstream-boundary.md and copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

  • Security: one deletion was reverted specifically on security grounds (the DoH/secure-DNS census). No guard was removed.
  • Cross-platform: deletions span macOS/Linux/Windows-named tests; none removed a platform's only coverage of a behavior. The Windows-named removals (windows-pty-native-capability-workflow, windows-signing-workflow-contract, pty-spawn-shell-override-parity) were source/workflow greps or duplicates, not platform behavior tests.
  • Remote SSH: src/main/ssh/relay-protocol-backpressure.test.ts was removed only after confirming both it and the surviving src/relay/protocol-backpressure.test.ts exercise the same FrameDecoder in src/shared/relay-frame-decoder.ts through two re-export facades.
  • Mobile: 35 mobile test files removed, all *-census / *-source / *-parity source-text tests; the remaining mobile suite passes.
  • Backwards compatibility / performance: no runtime code paths changed. CI gets faster by 17k fewer lines of test code.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

@nwparker
nwparker requested a review from Jinwoo-H as a code owner September 29, 2026 07:45
@greptile-apps

greptile-apps Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

RetriggerConfidence Score: 3/5

[Low risk] Removes test files that checked source text instead of behavior.

The PR does not appear safe to merge until turn ownership is corrected and the new child-view rendering path is connected to production data.

Summary

The PR removes source-text and duplicate tests and updates their test registries. Since the previous review, it also adds shared child-work rows and host-attributed turn grouping across desktop and mobile. The new turn-key fallback can attribute a turn to the wrong pending send, while the new child-view path is not wired into the production surfaces.

Diagram
%%{init: {'theme': 'neutral'}}%%
flowchart LR
  J[Journal turn records and submissions] --> K[Turn keys by item]
  K --> D[Desktop transcript]
  K --> M[Mobile transcript]
  H[Host child views] -. not passed by production callers .-> R[Shared child-row model]
  R --> S[Sidebar and chat strip]
Loading

Reviews (3) · Last reviewed commit: "test: remove junk tests that assert sour..."

@greptile-apps

greptile-apps Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Comments Outside Diff

These findings could not be posted inline.

  • P2 Double-release coverage disappears src/shared/priority-semaphore.test.ts:144 ▶

    The removed case tested behavior, not the shape of an API: calling the same release function twice must not create an extra permit. The remaining tests cover blocking, priority, and aborted waiters, but none repeats a release. Keeping this case would catch a permit-accounting regression that lets more work run than the configured concurrency limit.

@nwparker
nwparker force-pushed the nwparker/test-audit-wave1 branch from e2a8ba9 to 78ef9d7 Compare September 29, 2026 07:54

@pullfrog pullfrog 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.

Important

Two gaps to close before merge: a deleted mobile test is still listed in the typecheck ratchet baseline, so .github/workflows/mobile.yml check:tests-typecheck will fail; and both CLI registry parity guards were deleted along with the tests that were their only callers, so the specs↔handlers and specs↔launch-redirect lists can now drift uncaught.

Reviewed changes

Reviewed the single commit e2a8ba90fe end to end (214 files, 101 test files deleted, 112 trimmed).

  • Source-text test removals. Deleted tests across root, mobile/, config/scripts/ and cloud/ that readFileSync production sources and assert literal substrings, plus census/parity/export-list/typeof-shape/self-comparison suites. Sampled deletions (terminal-webview-reflow, terminal-webview-scroll-routing, terminal-ios-ime-keyboard, terminal-ios-dictation-write-back, terminal-cell-box-census, timer-receiver-census, pane-agent-identity-inventory, project-group-header-dom, PetStatusSegment.layout, linear-issue-workspace-header, worktree-creation-flow-agent-trust-preflight, host-route-href-encoding, …) are all source reads or self-comparisons, matching the stated premise.
  • Production follow-through. cellInventoryLockOptions, DECLARATION_KINDS, readsTheDocument, parseModule, DEFAULT_ROUTE_GRANTS de-exported with no surviving cross-module importer; src/cli/registry-parity.ts, three *-source-family.test-support helpers, and BrowserPane.* tests removed; cloud/package.json, config/reliability-gates.jsonc and config/scripts/ci-shard-timings.json updated.
  • Coverage-preserving rewrites. agent-status-producer-census.test.ts drops the hand-maintained path census but keeps the end-to-end producer drives; config-toml-trust-stale-writes.test.ts replaces an export-list parity check with the stale-write behavior it stood in for; secure-dns-census.test.ts and the terminal-ime YAML cases keep their real assertions.

⚠️ mobile/tests-typecheck-baseline.txt still names a deleted test, so the ratchet fails

This PR deletes mobile/src/session/mobile-session-route-parity.test.ts, but the mobile typecheck ratchet baseline still lists it at line 56. mobile/scripts/check-tests-typecheck-ratchet.mjs computes stale = baseline \ current-failing, logs Stale tests-typecheck baseline entry (prune it): src/session/mobile-session-route-parity.test.ts, and returns 1. mobile.yml runs pnpm run check:tests-typecheck as an unconditional step in that job, so mobile CI goes red. The PR notes this check could not be run locally (pre-existing ERR_PACKAGE_PATH_NOT_EXPORTED resolving typescript), which is why it slipped through.

Technical details
# Stale ratchet baseline entry after test deletion

## Affected sites
- `mobile/tests-typecheck-baseline.txt:56` — lists `src/session/mobile-session-route-parity.test.ts`, deleted by this PR.
- `mobile/scripts/check-tests-typecheck-ratchet.mjs:138-144,299-302` — `diffBaseline` marks any baseline entry not in `current` as stale; `main` returns 1 on stale.
- `.github/workflows/mobile.yml:127` — `run: pnpm run check:tests-typecheck`.

## Required outcome
- The mobile tests typecheck ratchet passes after the deletions: no baseline entry names a file that no longer exists.

## Suggested approach
- `pnpm --filter orca-mobile check:tests-typecheck --prune` (or remove the single line). No other deleted mobile test is in the baseline.

## Open questions for the human
- None.

⚠️ Both CLI registry parity guards were removed with their only callers

Two tests deleted here were cross-registry parity checks, not source greps, and each was the only thing comparing two independently maintained lists. The CLI specs drive validation/help while dispatch relies on the handler manifest, and the Electron launch redirect relies on a deliberately separate command-name list, so drift is a real, user-visible failure class.

Technical details
# CLI registry drift guards removed

## Affected sites
- `src/cli/cli-command-name-parity.test.ts` (deleted) — asserted every `COMMAND_SPECS` top-level name is in `CLI_COMMAND_NAMES` and vice versa.
- `src/main/startup/cli-command-names.ts:1` — comment still reads "a parity test prevents drift"; that test is now gone. Only `src/cli/specs/search.test.ts` (checks `'search'` is present) still touches it.
- `src/cli/registry-parity.ts` + `src/cli/registry-parity.test.ts` (deleted) — `findRegistryParityGaps` checked `COMMAND_SPECS` canonical paths against `HANDLER_COMMAND_KEYS`. No surviving test compares the two registries.

## Required outcome
- The specs↔handlers and specs↔launch-redirect agreements remain covered, or the team consciously accepts losing them and drops the now-false "parity test prevents drift" claim.

## Suggested approach (optional)
- Re-add the two parity tests against the live registries (`registry-parity.ts` was a pure helper; the checks can be inlined into the test), or extend `src/cli/handler-group-manifest.test.ts`, which already imports `HANDLER_GROUPS` and `buildHandlerRoutes`, to also compare against `COMMAND_SPECS`.

## Open questions for the human
- Is the `COMMAND_SPECS` ↔ `CLI_COMMAND_NAMES` invariant enforced anywhere else (e.g. a build-time or runtime check) that this review missed?

ℹ️ Nitpicks

  • Stale references to deleted tests remain in comments/docs: src/main/ssh/relay-protocol.test.ts:89, src/main/ipc/pty/runtime/spawn-preflight-requested-shell.test.ts:62 (calls the deleted parity test its "behavioural twin"), mobile/src/terminal/use-terminal-text-field-submit-binding.ts:14, config/scripts/mobile-web-app-live-input-probe-route.mjs:94, docs/relay-region-correction/RELAY-REGION-CORRECTION-ACCEPTANCE.md:54, docs/reference/windows-terminal-shell-selection.md:27.
  • config/scripts/ci-shard-timings.json removed one deleted-test timing entry but still carries keys for ~60 more (e.g. src/cli/registry-parity.test.ts, src/renderer/src/components/task-page-github-issue-creation.test.ts). Harmless — balanceFiles only reads discovered files, and ci-shard-timings.md states deleted files never enter discovery — but the partial cleanup is inconsistent.

Pullfrog  | Fix it ➔ | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@pullfrog pullfrog 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.

Important

The rebase onto a main that already carried #23693 left one test-support profile half-converted: pnpm tc now fails with TS2353 in src/renderer/src/lib/agent-launch-caller-profiles-test-harness.ts:40. The two findings from my previous review are unchanged in this revision.

Reviewed changes

Reviewed the delta e2a8ba90fe..78ef9d7984 — a rebase plus a PR-description update. No production behavior changed; the test deletions and the production follow-through are otherwise identical to the already-reviewed e2a8ba90fe.

  • Rebased deleted-test content. The deleted census/parity tests now reflect the newer base (e.g. the empty-workspace-default-chat caller profile), which is why their removed bodies differ from the previous revision. Nothing reviewable.
  • New blocker from the rebase. agent-launch-caller-profiles-test-harness.ts strips sourceMarkers, passesBeforeSurfaceOpen, passesLaunchPlan, passesOnPromptDelivered and readsBack from the AgentLaunchCallerProfile type and from every profile except the one base main added while rebasing, which still sets all five.
  • Previously reported, still open. mobile/tests-typecheck-baseline.txt:56 still names the deleted mobile-session-route-parity.test.ts (mobile ratchet fails); the src/cli/cli-command-name-parity.test.ts and src/cli/registry-parity.ts guards remain deleted with no replacement.

⚠️ pnpm tc fails: the rebased-in empty-workspace-default-chat profile keeps fields the type no longer declares

This commit removed sourceMarkers, passesBeforeSurfaceOpen, passesLaunchPlan, passesOnPromptDelivered and readsBack from AgentLaunchCallerProfile and stripped them from every other profile, but the empty-workspace-default-chat entry that arrived with the rebase still sets all five. That is an excess-property error against the narrowed type, so the web typecheck fails and the branch cannot pass pnpm tc. I reproduced it on this head; it is the only typecheck error in the tree.

Technical details
# Excess properties on the empty-workspace profile after the type was narrowed

## Affected sites
- `src/renderer/src/lib/agent-launch-caller-profiles-test-harness.ts:40` — `sourceMarkers` on the `empty-workspace-default-chat` profile.
- Same object, lines 47-50 — `passesBeforeSurfaceOpen`, `passesLaunchPlan`, `passesOnPromptDelivered`, `readsBack`.
- Type declaration at lines 16-27 — no longer has any of those five properties.
- Consumers that keep this file live: `agent-launch-caller-placement.test.ts`, `agent-launch-caller-permissions.test.ts`, `agent-launch-caller-routing.test.ts`, `agent-launch-caller-prompt-transport.test.ts`.

## Required outcome
- `pnpm run typecheck:web` and `pnpm tc` pass on this head.

## Suggested approach
- Delete lines 40 and 47-50 from the `empty-workspace-default-chat` profile, matching the `args`-only shape of every other profile. (Reproduced error: `error TS2353: Object literal may only specify known properties, and 'sourceMarkers' does not exist in type 'AgentLaunchCallerProfile'`.)

## Open questions for the human
- None.

Pullfrog  | Fix it ➔ | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

Deletes 101 test files and trims 112 more, all matching documented junk
patterns: exact source/import/string greps, copied inventories and export
lists, duplicate invocations of a contract another test already owns,
typeof-shape checks TypeScript already enforces, and self-comparisons.

The largest group read a production `.ts` file and asserted on its text —
for example a TaskPage test that required the source to contain
`selectedRepos.find((r) => r.id === newIssueRepoId) ?? selectedRepos[0] ?? null`.
Any behavior-preserving rename broke it; no behavior change ever did.

Production-side follow-through: exports that only these tests imported are
de-exported or deleted, stale comments pointing at removed censuses are
dropped, and the reliability-gate registry, `cloud/package.json` test lists,
and orphaned source-reading helpers are updated so nothing references a
deleted file.

Two files kept their real coverage and lost only the census scaffolding:
`agent-status-producer-census.test.ts` now drives all five producers end to
end instead of grepping the source tree, and `config-toml-trust-stale-writes`
replaces an export-list parity check.
@nwparker
nwparker force-pushed the nwparker/test-audit-wave1 branch from 78ef9d7 to 469b2a0 Compare September 29, 2026 08:06
@coderabbitai

coderabbitai Bot commented Sep 29, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Commit to this branch
  • Create a new PR
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR

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.

@pullfrog pullfrog 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.

ℹ️ The delta resolves both blockers from the prior review and adds no new issues. I'm holding approval because the first review's CLI registry-parity coverage gap is still open — this commit only removed the stale dispatch.ts reference to it.

Reviewed changes

Re-reviewed the delta 78ef9d7984..469b2a00b5 (one CI-fix commit).

  • Fixed the pnpm tc failure. Removed the five fields (sourceMarkers, passesBeforeSurfaceOpen, passesLaunchPlan, passesOnPromptDelivered, readsBack) that the rebased-in empty-workspace-default-chat profile still set after AgentLaunchCallerProfile was narrowed. Confirmed pnpm run typecheck:web exits 0 on this head.
  • Pruned the mobile typecheck ratchet baseline. Dropped the stale src/session/mobile-session-route-parity.test.ts entry; every remaining baseline line now names an existing file.
  • Restored the RPC recording seam. adapter-seam.test.ts and the two digest-pinned doc comments are back, so recorderSha256 returns to its base value and the goldens need no re-recording. The two remaining rpc-recording test edits are only typeof === 'function' shape-check removals, and recorderSha256 excludes non-RECORDING_DRIVERS test files and .md files.
  • Dropped the now-false registry-parity reference from the dispatch.ts comment.

Pullfrog  | Fix it ➔ | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@nwparker
nwparker merged commit 6e1b7e7 into main Sep 29, 2026
54 checks passed
tisohjung added a commit to tisohjung/orca that referenced this pull request Sep 29, 2026
…-provider

Three modify/delete conflicts, and the deletions are the right side to take.
Main's stablyai#23815 removed 101 tests that "assert source text instead of behavior" —
copied inventories, export lists, exact source greps. The Tasks parity test and
the C2/C3 closure censuses are that category, and re-capturing their hashes is
what every merge on this branch has been spending its time on.

Accepted all three deletions rather than restoring the modified copies.

What survives still carries the Jira work: main kept the C1 and C5 closure tests
and every pin source file, so the three jira.status pins stay load-bearing and
bridged-parity passes at 65 with no bookkeeping this round.
brennanb2025 added a commit that referenced this pull request Sep 29, 2026
…3745, #23783, #22971, #22565, #22846, #23724, #23721, #23693, #23810) into #23059

#23671 (group chat rows by the turn that produced them) is ported onto
#23059's turn-scope model, so there is one grouping mechanism, not two:

- A host that states each row's turn scope groups by that scope, as
  before. #23671's journal-order derivation (rows between one turn record
  and the next belong to it) moves from the timing selector into
  src/shared/native-chat-turn-grouping.ts and runs only for a host that
  states no scope, replacing the positional fallback there.
- #23671's anchor rules live in structuredAgentTurnAnchors, which
  membership, settled timing and the live clock all read: a turn whose
  opener key nothing resolves yet takes the send still in flight ahead of
  its record (Codex before its echo), else its own record.
- The live turn is one key again. #23671 made row liveness follow the
  owning turn, so the bar key and the liveness key are always the same;
  nativeChatTurnMembership now returns only liveTurnKey (barTurnKey,
  activeTurnOpenedBy and turnKeysByItemId are gone).
- A turn with no user bubble draws its bar above its first row
  (nativeChatTurnBarRows, desktop and mobile), and a turn's diff rollup
  goes under its last row.
- The Codex full-history restore writes each record ahead of its items;
  that also fixes the derived turn scope on #23059's journal.

#23026 (Stop from the moment a message is sent) is ported onto #23059's
command turns: the cancel paths ask the translator for a command's
provider turn instead of the removed compaction tracker, and a Stop that
names no turn still ends a running /compact through its child.
performCancel moved to structured-agent-session-turns-cancel.ts to keep
the turns module under the line limit.

#22090's awaitingInput replaces showTurnStatus/showLiveTurnActivity; the
waiting-behind-/compact rows are kept.
brennanb2025 added a commit that referenced this pull request Sep 29, 2026
Kept #23724's daemon socket guard on resume beside the real-home wait; took
#23815's deletion of the main-thread boundary source test and its rewrite of the
trust parity test, whose export-list check this branch had edited.
kargnas added a commit to kargnas/orca-upstream that referenced this pull request Sep 29, 2026
upstream stablyai#23815 정리로 resizeForKeyboard=true 경로를 검증하던 테스트가
사라져, 옵션의 핵심 분기(키보드 표시 중 프레임 높이 변화 시 즉시 refit)가
무검증 상태였다. 리듀서를 true로 구동해 지연 없이 refit하고 디바운스
커밋도 재지연하지 않음을 고정한다.
brennanb2025 added a commit that referenced this pull request Sep 29, 2026
Main's #23720 taught the RPC recording pin guard to find a squash-dropped
pin through its pull request's head. This branch removes the pin, the guard,
its CI job and the pin-checkout test, so the guard, its test, the new
rpc-recording-pin-reachability.mts, the checkout test and the job stay
deleted; nothing in #23720 outlives the pin. #23815's README wording edit
fell inside the deleted pin section and is superseded by this branch's text.
dudupii added a commit to dudupii/orca that referenced this pull request Sep 30, 2026
Upstream stablyai#23815 removed the golden-hash route parity test as junk
(hashes pin implementation shape, not behavior); follow the deletion
instead of resurrecting the file through the rebase.
saurabh added a commit to saurabh/orca that referenced this pull request Oct 3, 2026
…ognito coverage

Main merged stablyai#23815 (remove tests that assert source text instead of behavior),
which bans our agent-startup-input-assembly-census.test.ts — it greped module
source for `resolveAgentStartupPlanInputs(`. Remove it and replace its coverage
with a real behavioral test.

The census guarded that every launch builder threads incognito so a capable
agent's command carries `--no-session`. The new-workspace agent/draft paths and
the renderer-backed desktop spawn already have behavioral tests. The two paths
that were ONLY census-covered — the structured-session (createAgentSession) and
mobile builders — assembled the command inline in large/`@ts-nocheck` class
methods with no testable seam, which is exactly why they were grep-guarded.

Give them a seam: funnel both through one shared assembler,
`buildIncognitoAwareAgentStartupPlan` (shared/agent-incognito-startup-plan.ts),
which resolves incognito-by-default from the agent + Settings.terminalIncognitoAgents
and threads it into the shared plan builder. Both modules now delegate to it, so
neither can forget incognito. The new behavioral test drives the real assembler
(structured-session shape: session options + prompt, incl. the draft branch; and
mobile shape: prompt only) and asserts the built launchCommand contains
`--no-session` for a capable listed agent (pi/omp) and NOT for a non-capable
(claude/codex) or unlisted one — no source greps.

typecheck node+web+cli green; new test + incognito suites (52 tests) pass.

Co-Authored-By: Claude Opus 4.8 <[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