Repository navigation
test: remove 1,144 low-value test declarations - #41177
Merged
Merged
Conversation
OrcaWin
force-pushed
the
rm-tests/audit3497-321-cases
branch
from
November 11, 2026 17:10
02be4d9 to
55fb49d
Compare
OrcaWin
marked this pull request as ready for review
November 11, 2026 17:11
8 tasks done
Jinwoo-H
added a commit
that referenced
this pull request
Nov 12, 2026
This reverts commit 818055f. The feature misbehaves in real use: an Allow on a worker's approval card was recorded as closed without an answer, and closed approval cards render at the bottom of the coordinator chat, below newer messages. Removed: the Claude PermissionRequest hook hold and its 130 s timeout, the approval card in the coordinator chat, `orchestration deny`, the approval payload on stop escalations, and the held-delivery lines on send receipts. Escalation text goes back to its pre-#40756 wording. Kept from later commits: - #40983 (lost-worker alerts): its `lost` reason, cause/leftover/settled fields, turnStartedAt and the rejected-report check stay; only the approval branches around them are removed. - #41158 (owner moves) and the test cleanups (#41151, #41175, #41177) only touched approval code that is now deleted.
Jinwoo-H
added a commit
that referenced
this pull request
Nov 12, 2026
…dinator (re-land with fixes) (#41259) * revert: worker permission approvals (#40756) This reverts commit 818055f. The feature misbehaves in real use: an Allow on a worker's approval card was recorded as closed without an answer, and closed approval cards render at the bottom of the coordinator chat, below newer messages. Removed: the Claude PermissionRequest hook hold and its 130 s timeout, the approval card in the coordinator chat, `orchestration deny`, the approval payload on stop escalations, and the held-delivery lines on send receipts. Escalation text goes back to its pre-#40756 wording. Kept from later commits: - #40983 (lost-worker alerts): its `lost` reason, cause/leftover/settled fields, turnStartedAt and the rejected-report check stay; only the approval branches around them are removed. - #41158 (owner moves) and the test cleanups (#41151, #41175, #41177) only touched approval code that is now deleted. * feat(orchestration): answer workers' permission prompts from the coordinator (re-land of #40756) * fix(orchestration): credit an approval from Claude's own decision record and place each worker card at its time - An Allow that Claude took is answered by the person even when the command then fails or is still running; a failed command's PostToolUseFailure counts as ran. - Expired means the agent's own timeout only; a close Orca can't name is not an expiry, and reasonDelivered is true only with a reason. - Escalations wait for the dialog to paint and read Claude's warning even when a long command hides the top of its box. - Worker cards and receipts render after the message they followed in time, not after the whole conversation; the toast says what happened. * fix(native-chat): place timed rows without a memo the compiler skips * perf(orchestration): feed chat approvals from their own stream, pin open cards, close cards whose worker ended Native chats no longer subscribe to the crew stream for worker approvals. A narrow orchestration.workerApprovalsSubscribe stream per chat party wakes only on that party's own mail and on Run/Dispatch changes, never on agent status, and reads the crew only when the approval list itself changes. The pane no longer redraws for approvals: the transcript receipts and the pinned stack each hold the feed themselves. Open worker prompts are pinned above the composer (above the chat's own prompt), oldest first, in a bounded scrolling stack; the transcript keeps only receipts, at the time the worker asked. The countdown ticks only for open cards in a visible pane. An approval whose Dispatch is no longer running reads as closed ("No longer open · worker ended"); a hook that hangs up after its worker is gone closes as worker-ended rather than "answer it in the terminal"; and a click that finds the prompt or Dispatch already gone turns the card into its receipt at once. Also carries over: a stop owes a closing line only to an approval whose escalation went out. * fix(native-chat): no toast when a worker approval answer lands; the card's receipt says it * fix(native-chat): a worker approval card answers on click, as the chat's own prompt does The card turns into 'Allowed by you' at once and Claude's confirmation runs behind it; only an answer Claude did not take changes it to the real outcome, and a failure reopens the card. * fix(orchestration): keep main's stop-report index for the open-approval sweep after the re-land * fix(orchestration): final-review fixes for chat worker approvals - A click that gets approval_not_open no longer hides the card: the host's list decides, so a prompt the host still holds stays answerable. Only dispatch_inactive closes it locally. - The approvals stream watches only the orchestration database's own changes (Runs, Dispatches, mail), not terminal identity notices, so agent status and title changes cost it nothing in main. - Receipts are the chat's history: no 30-minute window, bounded by 100 rows with still-open prompts kept first. - The pinned stack is capped against the pane and gives way first, so the chat's own prompt keeps its room; a prompt that closes while shown stays pinned as its receipt for 4 s, and one only the worker's terminal can answer stays pinned. - A close no one named, after the worker's Dispatch ended, reads as worker-ended, and an unanswered close of an ended worker sends the coordinator no second notice. - The transcript's receipts keep one array until a receipt changes. * refactor(native-chat): a worker approval card waits on the host after a click instead of answering ahead of it Both buttons turn off and the clicked one shows a spinner until the answer returns; the host's list then turns the card into its receipt. Drops the client-side close and its reconciliation. * fix(native-chat): let the compiler memoize the worker approval answer handler
audichuang
pushed a commit
to audichuang/orca
that referenced
this pull request
Nov 13, 2026
…dinator (re-land with fixes) (stablyai#41259) * revert: worker permission approvals (stablyai#40756) This reverts commit 818055f. The feature misbehaves in real use: an Allow on a worker's approval card was recorded as closed without an answer, and closed approval cards render at the bottom of the coordinator chat, below newer messages. Removed: the Claude PermissionRequest hook hold and its 130 s timeout, the approval card in the coordinator chat, `orchestration deny`, the approval payload on stop escalations, and the held-delivery lines on send receipts. Escalation text goes back to its pre-stablyai#40756 wording. Kept from later commits: - stablyai#40983 (lost-worker alerts): its `lost` reason, cause/leftover/settled fields, turnStartedAt and the rejected-report check stay; only the approval branches around them are removed. - stablyai#41158 (owner moves) and the test cleanups (stablyai#41151, stablyai#41175, stablyai#41177) only touched approval code that is now deleted. * feat(orchestration): answer workers' permission prompts from the coordinator (re-land of stablyai#40756) * fix(orchestration): credit an approval from Claude's own decision record and place each worker card at its time - An Allow that Claude took is answered by the person even when the command then fails or is still running; a failed command's PostToolUseFailure counts as ran. - Expired means the agent's own timeout only; a close Orca can't name is not an expiry, and reasonDelivered is true only with a reason. - Escalations wait for the dialog to paint and read Claude's warning even when a long command hides the top of its box. - Worker cards and receipts render after the message they followed in time, not after the whole conversation; the toast says what happened. * fix(native-chat): place timed rows without a memo the compiler skips * perf(orchestration): feed chat approvals from their own stream, pin open cards, close cards whose worker ended Native chats no longer subscribe to the crew stream for worker approvals. A narrow orchestration.workerApprovalsSubscribe stream per chat party wakes only on that party's own mail and on Run/Dispatch changes, never on agent status, and reads the crew only when the approval list itself changes. The pane no longer redraws for approvals: the transcript receipts and the pinned stack each hold the feed themselves. Open worker prompts are pinned above the composer (above the chat's own prompt), oldest first, in a bounded scrolling stack; the transcript keeps only receipts, at the time the worker asked. The countdown ticks only for open cards in a visible pane. An approval whose Dispatch is no longer running reads as closed ("No longer open · worker ended"); a hook that hangs up after its worker is gone closes as worker-ended rather than "answer it in the terminal"; and a click that finds the prompt or Dispatch already gone turns the card into its receipt at once. Also carries over: a stop owes a closing line only to an approval whose escalation went out. * fix(native-chat): no toast when a worker approval answer lands; the card's receipt says it * fix(native-chat): a worker approval card answers on click, as the chat's own prompt does The card turns into 'Allowed by you' at once and Claude's confirmation runs behind it; only an answer Claude did not take changes it to the real outcome, and a failure reopens the card. * fix(orchestration): keep main's stop-report index for the open-approval sweep after the re-land * fix(orchestration): final-review fixes for chat worker approvals - A click that gets approval_not_open no longer hides the card: the host's list decides, so a prompt the host still holds stays answerable. Only dispatch_inactive closes it locally. - The approvals stream watches only the orchestration database's own changes (Runs, Dispatches, mail), not terminal identity notices, so agent status and title changes cost it nothing in main. - Receipts are the chat's history: no 30-minute window, bounded by 100 rows with still-open prompts kept first. - The pinned stack is capped against the pane and gives way first, so the chat's own prompt keeps its room; a prompt that closes while shown stays pinned as its receipt for 4 s, and one only the worker's terminal can answer stays pinned. - A close no one named, after the worker's Dispatch ended, reads as worker-ended, and an unanswered close of an ended worker sends the coordinator no second notice. - The transcript's receipts keep one array until a receipt changes. * refactor(native-chat): a worker approval card waits on the host after a click instead of answering ahead of it Both buttons turn off and the clicked one shows a spinner until the answer returns; the host's list then turns the card into its receipt. Drops the client-side close and its reconciliation. * fix(native-chat): let the compiler memoize the worker approval answer handler (cherry picked from commit b8950a4)
10 of 11 tasks
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.
Remove 1,144 authored test declarations (1,119 JS/TS and 25 Python, Ruby, Kotlin and Swift), including 169 entire test files and about 26,000 lines. Also remove a YAML rule fixture containing two nominal matcher checks; these are counted separately from authored test declarations. Retire constant/default inventories, mocked forwarding, parser/configuration surveys, internal-work counters, duplicate completion coverage and routine fixture projections across desktop, mobile and cloud packages.
Examples include 16 best-effort telemetry cases, a 65 MiB fixture with only a terminal Done assertion, a cache-overflow example that never reaches the cap, and cancellation recovery that compares the parser with itself. Remove obsolete selectors, timing/flaky-pattern entries, test-only scaffolding and an unused cache-size export. Remove three additional whole single-case suites covering a constructed install-error projection, mobile-agent presentation preference and manually assembled sparse-validation transport envelope. Retire four presentation/mapping suites and the mock-only maintenance-retry suite. Narrow the affected reliability-gate selectors and assertions while preserving historical receipts and unrelated commands. Preserve the real dangling-symlink race that excludes unusable history from index healing; retire two routine link-policy examples and the rollout-metadata and usage-window diagnostic suites. Reduce a six-row automation matrix to one representative for each of its two distinct paths. Also remove narrow gesture/geometry, target-selection and mocked transport surveys, mocked plugin event assembly, redundant encryption smoke coverage, internal budget checks and duplicate baselines. The actual isolated benchmark jobs remain; the obsolete benchmark-contract job is removed with its last suite.
Keep independently observed persistence ordering, ownership across held requests, content preservation, real shell identity, stale-response refusal and meaningful released-client/native boundaries. Lost CLI refusal, folder/remote mapping, parser, diagnostic and mock lifecycle alarms are intentional; retained tests are not equivalent replacements.
Validation: all 41 applicable local changed-file checks passed on the final combined head, including unit tests, lint, formatting, typechecks, reliability metadata and ratchets. Affected mobile suites and typechecks passed, including the latest two retry cases; affected relay tests/typecheck, all 18 relay-edge tests and all 16 SSH tests passed. Kotlin/Swift toolchains are unavailable locally; Ruby could not start because minitest/autorun is missing. Native Windows/WSL and device journeys were not run locally.
Based on main after #41175 merged. Its 198 removals are excluded from these counts. A canonical-main transplant preserves all previously reviewed final source bytes and upstream Pi path changes; only three support manifests overlap. Required GitHub CI must pass before merge.