Repository navigation
Conversation
Collaborator
Author
|
Closing as part of abandoning the owner-split experiment. |
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.
Owner: WaitBranch
Batch: 1
Scan issue: #2027
Old PR: #2102
Contract:
docs/design/plugins/WaitBranch.mdBase:
origin/main82a91e66aHead:
53926097dWhat
Adds the WaitBranch owner contract: the line's one wait slot, the admission order, the arrivals,
waitand the admitted-waitstateread,NoTurn/AlreadyWaiting/Reloading/Unavailable, turn-end and close/reload settlement. The Session/branch by-id route is ADR 027's (#2127); the CLI's client path is a separate Rpc decision (#1659).Shared rows:
docs/design/service-faces.md: thewaitBranchrow withstate()andwait(request, cancelled).docs/design/plugins/README.md/ zh: owner index row.docs/design/timeline-branches.mdand zh: the steer/waiting cells link the contract.docs/design/cli-current-activity.md: the named-wait decision.docs/design/examples/*and the Wait page: target pointers.Dependencies
The Wait tool (#2026) is the
waitcaller; ToolExecutor ends its call by cancellation beforeturn/end. The App Server readsstateby(sessionId, branchId)through ADR 027 D1 (#2127) and answers a protocol v4 client through an Rpc method/notice (#1659, #2021). No batch-1 dependency.Supersedes
docs/design/service-faces.md: thewaitBranchrow.docs/design/timeline-branches.mdand zh: the wake cells.docs/design/cli-current-activity.md: the named-wait requirement.docs/design/examples/wait-contract-experiment.md,wait-usage-context.md,capability-models/coverage-audit.md,timeline-contract-coverage.md.docs/design/research/remote-plugins.mdanddocs/architecture/rust-agent/plugins/Wait.md: target pointers.Design decisions
NoTurnfor a call that is not admitted in a turn,AlreadyWaitingfor a held slot,Interruptedat turn end,Reloadingat generation end), a timeout, orUnavailablewhen the confirmation read fails.AlreadyNotifiedis answered when the model read that task's notice in this turn and no eligible arrival is pending; the read-notice record is decoupled from the arrivals and covers the turn's opening input.stateis a non-blocking read of the line's admitted wait,WaitState {waiting, startedAt?, taskId?}.Reloading.Review record
无 P1/P2.无 P1/P2.settletext forUnavailable; astatecaller example; theNoTurn/turn-end race wording; the §7.2 "view" wording; the README By-scope row.Ready check
无 P1/P2.node scripts/adr-check.mjs --base origin/main,cargo run --locked -p xtask-check,git diff --checkpass.Refs #2027