Repository navigation
fix(orchestration): link worker-created sub-Runs - #16784
brennanb2025 wants to merge 5 commits into
Conversation
|
Warning Review limit reachedNext included review available in 21 minutes. View limit detailsLimit details: You’ve used all 10 included reviews currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (10)
📝 WalkthroughWalkthroughThe schema version increases to 31, and Merge Risk: 🟡 Moderate · up to The PR adds worker-to-Run provenance, but the modified test file currently does not parse because of duplicate declarations and closing expressions. The issue should be fixed before merge so the relevant validation can run. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Description checkExplanation The description explains the change, motivation, behavior before and after, issue reference, visual impact, reliability contract, and scope. It does not include the template's explicit Testing, AI Disclosure, Review, Agent skill upstream boundary, Notes, or Checklist sections, but the provided content is sufficiently complete and relevant. ✨ Finishing Touches 💡 2📝 Generate docstrings 💡
🛠️ Fix failing CI checks 💡
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: bf96f2ff-b32b-4e2e-9429-b267d167e97e
📒 Files selected for processing (9)
src/main/runtime/orchestration/db/contract-constants.tssrc/main/runtime/orchestration/db/dispatch-context/dispatch-lookup.tssrc/main/runtime/orchestration/db/runs/run-create.tssrc/main/runtime/orchestration/db/schema/create-core-tables-sql.tssrc/main/runtime/orchestration/db/schema/migrate-v13-v30.tssrc/main/runtime/orchestration/orchestration-schema-version-skew.tssrc/main/runtime/orchestration/types.tssrc/main/runtime/rpc/methods/orchestration-runs.test.tssrc/main/runtime/rpc/methods/orchestration-runs.ts
Included review availability: Your plan provides up to 10 included reviews per hour; 5 remain after this review.
|
Review verification (exact head a32bb03): The sole remaining unresolved, non-outdated thread alleged repeated closing casts and duplicate result fields, but each cited site contains exactly one cast and one field; the focused test parses and passes 25/25. Replied with source/test evidence and resolved the thread: #16784 (comment). A baseline review plus an independent same-model three-pass adversarial review found no in-scope issues; performance, schema migration/skew, additive RPC compatibility, SSH/federated lifecycle, mobile backcompat, Windows/Linux, and security were checked. Local gates: orchestration+RPC 2,192 passed / 5 skipped, migration 6/6, pnpm tc:node, pnpm tc, direct oxlint, and oxfmt all pass. Final CI is settled at 47 success, 1 skipped, 0 failing/pending; merge state is CLEAN. Merge verdict: ready to merge. |
|
QA evidence (exact head a32bb03): This change is persistence/RPC-only with no renderable Electron or mobile flow, so Electron/mobile manual UI QA is N/A. Manual source and contract validation covered local and federated parent resolution, stale process identity, local/federated ambiguity, completed/revoked origins, transactional revalidation, v31 migration/skew repair, and additive nullable RPC output; focused tests pass 25/25 and migration tests pass 6/6. The broader orchestration+RPC suite passes 2,192 tests with 5 skipped, and final CI is settled at 47 success, 1 intentional e2e skip, 0 failing/pending. Residual gap: federated/SSH disconnect behavior is covered in-memory rather than by a live network test. |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: dc8f6d9f-9659-4633-8158-3045e788fc3d
📒 Files selected for processing (6)
src/main/runtime/orchestration/db/dispatch-context/dispatch-lookup.tssrc/main/runtime/orchestration/db/runs/run-create.tssrc/main/runtime/orchestration/nested-worker-depth-migration.test.tssrc/main/runtime/orchestration/types.tssrc/main/runtime/rpc/methods/orchestration-runs.test.tssrc/main/runtime/rpc/methods/orchestration-runs.ts
Included review availability: Your plan provides up to 10 included reviews per hour; 3 remain after this review.
|
Closing: #29205 has workers start helpers on the Run they already work for, so separate sub-Runs needing a parent link no longer come up. |
Summary
ELI5
When one agent starts a second group of agents to help with its assignment, Orca used to save that new group without recording which assignment created it. Orca now keeps that link, so the extra work can be traced back to the worker job that started it instead of looking unrelated.
Before / After
orca orchestration run-list --jsonandrun-show --jsonwithout a link to the Dispatch that created it. A supervising coordinator saw a flat list and had to guess from names and timestamps or inspect the worker terminal to find the nested review loop.When you would hit this
Only during nested orchestration: a dispatched worker calls
orca orchestration run-createso it can coordinate its own reviewers or other agents. It is most noticeable in multi-round review loops, where the top-level coordinator otherwise sees heartbeats while the nested Runs look unrelated.Visual evidence
Not applicable. No renderer or visible UI code changed; the observable surface is the
--jsonoutput oforca orchestration run-listandrun-show.Reliability contract
Closes STA-5378