GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(task): make async subagent tasks answer honestly, once, in order, and stop by NamedIdentity · Pull Request #45482 · anomalyco/opencode

fix(task): make async subagent tasks answer honestly, once, in order, and stop #45482

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Sign up for GitHub

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
NamedIdentity wants to merge 89 commits into anomalyco:dev from NamedIdentity:task-lifecycle

Uh oh!

There was an error while loading. Please reload this page.

Closed

fix(task): make async subagent tasks answer honestly, once, in order, and stop #45482

Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
89 commits
Select commit Hold shift + click to select a range
0b85718
fix: cancel the background job that was observed, not whatever holds …
NamedIdentity Aug 19, 2026
e2ef533
feat(session): add branch closure and task attachment modules
NamedIdentity Aug 20, 2026
7b234b3
feat(session): wire branch closure into the session HTTP surface
NamedIdentity Aug 20, 2026
4bf5e5f
fix(background): grant jobs that supply no admission
NamedIdentity Aug 20, 2026
40627ff
feat(opencode): give task one explicit input for async execution
NamedIdentity Aug 20, 2026
29c3a53
feat(opencode): hold a subagent's answer until its async children settle
NamedIdentity Aug 20, 2026
b40e7ed
fix(opencode): target one exact run for task wait, promote and cancel
NamedIdentity Aug 20, 2026
8be4e8b
fix(opencode): interrupt a task exactly, without re-entering branch c…
NamedIdentity Aug 20, 2026
0c7a7d0
fix(opencode): report what a task child actually finished with
NamedIdentity Aug 20, 2026
d5b4e38
refactor(session): use a descriptive id for the task attachment parti…
NamedIdentity Aug 20, 2026
cf5d97d
feat(tui): say async where a task stops blocking its caller
NamedIdentity Aug 20, 2026
dd30ebb
feat(ui): render a branch closure record where work was stopped
NamedIdentity Aug 20, 2026
af846fd
feat(tui): settle stopped task branches and order undo behind a real …
NamedIdentity Aug 20, 2026
39cbbc6
fix(session): order undo and redo against branch cancellation
NamedIdentity Aug 20, 2026
2a156b0
fix(session): order destructive session changes against cancellation
NamedIdentity Aug 20, 2026
88ad6e3
fix(workspace): close a local prior owner before warping a session away
NamedIdentity Aug 20, 2026
efd3b87
fix(session): keep closure records intact through compaction and sett…
NamedIdentity Aug 20, 2026
d4eb702
fix(run): derive direct-run's Task body from the structured outcome
NamedIdentity Aug 20, 2026
b54ba7b
fix(session): require a reservation for event replay reaching the pro…
NamedIdentity Aug 20, 2026
998c36c
fix(session): stop permission and question replies from resuming a cl…
NamedIdentity Aug 20, 2026
0d847fb
fix(acp): abort a backing session before removing it, and skip closur…
NamedIdentity Aug 20, 2026
053d9cd
fix(session): reserve the branch-closure provenance key against calle…
NamedIdentity Aug 20, 2026
24ce5ed
test(session): cover task return classification, selection and rendering
NamedIdentity Aug 20, 2026
5d63182
test(lib): add closure, attachment and physical fixtures for the bran…
NamedIdentity Aug 20, 2026
f678987
test(session): cover attachment claim ownership and the task return gate
NamedIdentity Aug 20, 2026
80e5e91
test(session): cover exact job lifetimes and the bind-before-arm prot…
NamedIdentity Aug 20, 2026
460a970
test(run): cover task envelopes and closure records on the direct-run…
NamedIdentity Aug 20, 2026
1245422
fix(session): record the task edge coordinates a branch walk needs
NamedIdentity Aug 20, 2026
e788b88
test(session): cover the task edge coordinates end to end
NamedIdentity Aug 20, 2026
04135ba
test(session): state two bind-suite constraints directly
NamedIdentity Aug 20, 2026
766533e
test(session): cover branch-membership proof, discovery and the locat…
NamedIdentity Aug 20, 2026
e5a806a
test(session): cover mutation ordering, closure records, high-water a…
NamedIdentity Aug 20, 2026
c65251c
test(session): cover the attached async status observation
NamedIdentity Aug 20, 2026
b3cb808
test(session): cover abort completion and incomplete-stop repair
NamedIdentity Aug 20, 2026
e8da823
test(session): cover the fence-and-quiesce loop
NamedIdentity Aug 20, 2026
0fdbf21
chore: regenerate SDK and OpenAPI for the new session error types
NamedIdentity Aug 20, 2026
7f6f77f
feat(core): deliver background job answers per position, in conversat…
NamedIdentity Aug 23, 2026
1bf959f
feat(task): send a prompt to a running task, and deliver every answer
NamedIdentity Aug 23, 2026
f86ef18
chore(run): drop stale task_prior_output references
NamedIdentity Aug 23, 2026
a735f4b
test(task): drop absence guards naming a mechanism upstream never had
NamedIdentity Aug 23, 2026
c4d6c33
fix(tui): reach branch closure from Double-Escape, and report a faile…
NamedIdentity Aug 23, 2026
77e915e
fix(task): stop the async protocol promising a status line nothing emits
NamedIdentity Aug 24, 2026
60eb3e2
fix(provider): append message suffix after cache selection
NamedIdentity Aug 19, 2026
d8e944c
feat(session): split appended messages during conversion
NamedIdentity Aug 19, 2026
8e88905
fix(session): carry appended messages outside cache selection
NamedIdentity Aug 19, 2026
c709afb
test(session): cover appended-message cache boundaries
NamedIdentity Aug 19, 2026
d2da3a8
test(session): verify appended-message routing
NamedIdentity Aug 19, 2026
d5bb79d
fix(session): preserve max-step suffix shape
NamedIdentity Aug 19, 2026
95e096e
fix(session): preserve structured plugin messages
NamedIdentity Aug 19, 2026
daa3260
feat(session): emit the attached-async status line the protocol names
NamedIdentity Aug 24, 2026
9ee5a66
fix(task): release child attachment scope on lifetime end, not delivery
NamedIdentity Aug 24, 2026
aeb6699
refactor(core): remove the detection-time announce/floor mechanism
NamedIdentity Aug 24, 2026
ce8b3d3
fix(core): disposition a lifetime whose last reserved extension is re…
NamedIdentity Aug 24, 2026
148ba8e
task: restore async protocol text verbatim
NamedIdentity Aug 25, 2026
a78a57a
fix: restore lifecycle safety guards
NamedIdentity Aug 25, 2026
eb6d61b
test(session): restore closure model and wiring suites
NamedIdentity Aug 25, 2026
6bd3cc5
test(session): restore closure HTTP and task boundary suites
NamedIdentity Aug 25, 2026
e98556a
test(session): restore closure mutation authority corpus
NamedIdentity Aug 25, 2026
4df77b1
fix(server): restore substitutable HTTP session graph
NamedIdentity Aug 25, 2026
f17558e
fix(session): restore closure admission and metadata guards
NamedIdentity Aug 25, 2026
b86608c
fix(ui): restore closure-aware turn selection and timeline
NamedIdentity Aug 25, 2026
bc064e4
fix(tui): restore descendant attention and prompt sequencing
NamedIdentity Aug 25, 2026
c9d9f5d
test(tool): align the task wire-schema snapshot with the restored des…
NamedIdentity Aug 25, 2026
f8131f6
test: restore lifecycle acceptance coverage
NamedIdentity Aug 25, 2026
dfca98b
fix(provider): preserve cache breakpoint inputs
NamedIdentity Aug 25, 2026
a71434a
fix(ui): restore closure-aware selection guards
NamedIdentity Aug 25, 2026
cecbaac
docs(api): describe recursive session abort
NamedIdentity Aug 25, 2026
8094d33
fix(session): restore attachment scope boundaries
NamedIdentity Aug 27, 2026
d4dbd0e
session/attachment: gate supplemental borrow on scope resolution (CP-…
NamedIdentity Aug 31, 2026
1b03a15
session/attachment: refuse ownership only on a published resolution
NamedIdentity Aug 31, 2026
f3775e2
fix(core): preserve nonaccepted extension cause at the shared finalizer
NamedIdentity Aug 31, 2026
1815393
session/attachment: prove the scope-join refusal boundary end to end
NamedIdentity Aug 31, 2026
1cc44fa
feat(core): restore the answer-log delivery floor, keyed on sequence
NamedIdentity Aug 31, 2026
7d89206
test(session): layer the background flag on the R-08 supplement oracle
NamedIdentity Aug 31, 2026
109e77b
fix(task): gate answer filing on return eligibility and project termi…
NamedIdentity Aug 31, 2026
c36dd72
refactor(session): move return-eligibility off the public attachment …
NamedIdentity Aug 31, 2026
7ec8a78
fix(task): degrade the faulting attachment generation on scope mismatch
NamedIdentity Aug 31, 2026
2a0357c
feat(session): gate attachment results on Admission Freshness membership
NamedIdentity Sep 1, 2026
5a8dc67
session/attachment: freeze admission members at publication
NamedIdentity Sep 1, 2026
d9f700c
fix(task): preserve cancelled owner-scope terminal
NamedIdentity Sep 2, 2026
82597a4
test(task): prove selected evidence parity
NamedIdentity Sep 2, 2026
68b8091
fix(task): deliver truthful cancellation envelopes
NamedIdentity Sep 2, 2026
bac04f7
test(task): prove live sequence-floor ordering
NamedIdentity Sep 2, 2026
36a3a24
test(session): prove B-2 terminal winner composition
NamedIdentity Sep 2, 2026
ed2cf5e
test(task): close R-08 and wake evidence
NamedIdentity Sep 2, 2026
731c26b
session: add FIFO reply-required Runner generations
NamedIdentity Sep 4, 2026
b2f1ee1
session: route reply-required prompts through FIFO Runner
NamedIdentity Sep 4, 2026
26847ff
test(session): prove FIFO release-gate scheduling
NamedIdentity Sep 4, 2026
ca47439
test(session): verify dev prompt FIFO wiring
NamedIdentity Sep 4, 2026
File filter
Filter by extension

Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view
Prev Previous commit
Next Next commit
feat(session): gate attachment results on Admission Freshness membership
CP-032 v0.12. A pre-published resolution speaks for the turns it covers, not for every later caller. The coordinator now records which Assistants a resolution covers and consults that at result() time, inside the same synchronous transition that returns the selected structural result.

Mechanism, all private: State.members is a mutable monotonic Set of MessageID, and State.publishedMembers is a frozen non-aliasing snapshot taken at each of the three evidence publication points (the degraded and clean branches of gate(), and the never-attached immediate mint in result()). Resolution and TaskSelectedReturn are byte-unchanged, so no public schema, API, Current field, timer, poll, or lock is added. Enrolment happens at accepted observeTurn before gate() runs, and at every result(runFinal) entering unresolved before the fallback latch, so waiters enrol too. invalidate() clears candidate and observed only, never history. closeNow clears the mutable set only when a resolution exists, because apply() runs gate() after closeNow and an unconditional clear would let a close-triggered publication freeze an empty membership.

Decision in result(): a pre-published cancellation consumes globally and yields no controlling Assistant, so nothing files. Pre-published evidence, clean or degraded alike, consumes the selected structural result when the incoming Assistant is in the frozen membership, and otherwise returns fresh non-degraded evidence without mutating fallback, history, or resolution. Callers that entered unresolved are not reclassified: they park on the one-shot Deferred and consume the one result. The no-retained exception is removed.

Task: eligible() no longer samples scope state. Scope-less turns are immediately fresh; every scoped path announces its sequence and makes exactly one Scope.result(runFinal) call. The Task-facing Scope.resolved accessor is removed from the interface, implementation, and handle; the registry-private resolved() thunk that R-08 borrow refusal and atomic replacement depend on is unchanged.

Why membership rather than the frozen candidate/observed/fallback trio: those slots are replaceable. An Assistant observed and then displaced by a later admission is still covered by the resolution while occupying no slot, and testing slots would falsely revive it as fresh. Why not degraded-only, as v0.11 had it: a clean resolution minted while a distinct admitted run is still producing must not swallow that run answer.

Eight mutants, each killed by a discriminating arm. Trio proxy and clear-on-invalidate each kill only the displaced-observed arm. Omit-observe-registration kills four. Unconditional evidence kills four. Always-fresh kills five. Degraded-only kills the R-08 successor and no-retained arms. No-retained-exception kills the no-retained arm. Self-enrolment required contaminating the frozen snapshot through a ReadonlySet cast to be observable at all, because the post-publication decision reads only the frozen set.

Sixteen pre-existing rows were migrated rather than having expectations edited. Four were a lazy-fork ordering defect where a forked probe was only scheduled, never parked, and needed a yieldNow. Twelve read the settled selection by calling result() after publication with a foreign Assistant, which is now the fresh case by design; they read through a genuine pre-publication entrant instead. Three assertions that were themselves reader-idempotence are retired in place with their rationale, and the foreign-ID behaviour moved to the nonmember-fresh arms.

Verified with OPENCODE_EXPERIMENTAL and OPENCODE_EXPERIMENTAL_BACKGROUND_SUBAGENTS unset: 12-file affected radius 210 pass / 0 fail / 1701 expect; coordinator 48 / 0 / 199; core background-job 52 / 0 / 619 unchanged. Both package typechecks exit 0. git diff --check clean. oxlint 23 warnings 0 errors on the five changed files.

Ref: CP-ocp-032 v0.12 R-01, R-02, R-07, R-08, R-23, B-7
  • Loading branch information

Uh oh!

There was an error while loading. Please reload this page.

@NamedIdentity
NamedIdentity committed Sep 1, 2026
commit 2a0357ce9534ad4d491fadf44fca1e2a4373b47a

There are no files selected for viewing

134 changes: 94 additions & 40 deletions 134 packages/opencode/src/session/attachment/coordinator.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -56,20 +56,6 @@ export interface Scope extends AttachmentContract.Scope {
* admission failure and is deliberately unchanged.
*/
readonly own: (messageID: MessageID) => Effect.Effect<boolean>
/**
* This scope has already published its return-eligibility resolution.
*
* The gate is ONE-SHOT: it resolves once and latches. A scope outlives the run that resolved it —
* R-23 requires an opened scope to stay live through its descendants — so a later, sequential run
* on the same session can find a scope that has already spoken. That resolution was computed for a
* different turn and cannot speak for this one; a run that consumed it anyway would file at the
* earlier turn position, hit the filing guard, and lose its own answer silently.
*
* A thunk on the coordinator's own `Scope`, NOT a field on `AttachmentContract.Current`: return
* eligibility is a Task-boundary concern, while `Current` is the narrow read-only snapshot the
* closure observer contract consumes. Same reasoning as the registry entry's `resolved` below.
*/
readonly resolved: () => boolean
readonly owns: (messageID: MessageID) => boolean
readonly reserve: (jobID: SessionID) => Effect.Effect<Reservation>
readonly reject: (reservation: Reservation) => Effect.Effect<void>
Expand Down Expand Up @@ -192,10 +178,27 @@ type State = {
degraded: boolean
fallback?: SessionV1.WithParts
cancellationStatus?: string
cancelled: boolean
closed: boolean
resolution?: Resolution
}
cancelled: boolean
closed: boolean
/**
* CP-032 §3.3.2 — every Assistant a future resolution would legitimately speak for.
*
* Monotonic and append-only before publication: an accepted `observeTurn` enrols its Assistant,
* and so does every `result()` call that enters while unresolved, including waiters whose
* fallback never latches. `invalidate()` deliberately does NOT clear it. Candidate and observed
* are single replaceable slots, so a superseded or yielded Assistant disappears from them while
* remaining something the eventual resolution speaks for; membership is the history those slots
* cannot keep.
*/
readonly members: Set<MessageID>
/**
* The membership frozen at evidence publication: a new non-aliasing set, never mutated
* afterwards, so a delayed fiber reading it after `close` still sees what the resolution covered.
* Cancellation publishes none — it has no controlling Assistant to speak for.
*/
publishedMembers?: ReadonlySet<MessageID>
resolution?: Resolution
}

type RegistryState = {
readonly scopes: Map<
Expand Down Expand Up @@ -249,11 +252,12 @@ export const make = Effect.gen(function* () {
everAttached: false,
active: 0,
wakes: 0,
order: 0,
degraded: false,
cancelled: false,
closed: false,
}
order: 0,
degraded: false,
cancelled: false,
closed: false,
members: new Set(),
}

/** A synchronous critical section: no yield, Promise, callback, or IO can interleave it. */
const transition = <A>(fn: () => A): A => fn()
Expand Down Expand Up @@ -288,10 +292,13 @@ export const make = Effect.gen(function* () {
type: "evidence",
candidate: state.candidate,
observed: state.observed,
degraded: true,
}
state.closed = true
return
degraded: true,
}
// A new set, never aliased to the mutable history, so `close` cannot reach back into what
// this resolution covered.
state.publishedMembers = new Set(state.members)
state.closed = true
return
}
if (!state.everAttached) return
if (!state.candidate && !(state.observed && state.wakeEpoch === state.epoch)) return
Expand All @@ -305,10 +312,11 @@ export const make = Effect.gen(function* () {
type: "evidence",
candidate: state.candidate,
observed: state.observed,
degraded: false,
degraded: false,
}
state.publishedMembers = new Set(state.members)
state.closed = true
}
state.closed = true
}

const closeNow = () => {
if (registry.scopes.get(sessionID)?.scope.id === state.scopeID) registry.scopes.delete(sessionID)
Expand All @@ -317,9 +325,14 @@ export const make = Effect.gen(function* () {
state.fence = undefined
state.jobs.clear()
state.observers.clear()
state.undelivered.clear()
state.messages.clear()
}
state.undelivered.clear()
state.messages.clear()
// Only once the snapshot is frozen. `closeNow` can itself degrade an unresolved scope, and
// `apply` runs `gate()` AFTER this body, so clearing unconditionally would let that
// publication freeze an empty membership and make every later caller falsely fresh. The
// frozen `publishedMembers` is never touched here: delayed exact-scope fibers still read it.
if (state.resolution) state.members.clear()
}

const apply = <A>(fn: () => A) =>
Effect.uninterruptible(
Expand All @@ -343,8 +356,6 @@ export const make = Effect.gen(function* () {
cancelled: state.cancelled,
}))

const resolved: Scope["resolved"] = () => state.resolution !== undefined

const own: Scope["own"] = (messageID) =>
apply(() => {
// CP-032 R-08. The refusal keys on a PUBLISHED RESOLUTION, never on `closed`.
Expand Down Expand Up @@ -483,10 +494,14 @@ export const make = Effect.gen(function* () {
const observeTurn: Scope["observeTurn"] = (input) => {
const assistant = structuredClone(input.assistant)
return apply(() => {
if (state.degraded || state.cancelled || state.closed) return
const evidence = { epoch: state.epoch, order: ++state.order, assistant }
if (input.clean) state.candidate = evidence
if (!input.clean) state.observed = evidence
if (state.degraded || state.cancelled || state.closed) return
// Enrolled before `apply` runs `gate()`, so any resolution this observation enables is
// frozen with it already inside. A refused observation above never enrols, and `closed`
// covers the post-resolution case because every publication sets it.
state.members.add(assistant.info.id)
const evidence = { epoch: state.epoch, order: ++state.order, assistant }
if (input.clean) state.candidate = evidence
if (!input.clean) state.observed = evidence
})
}

Expand Down Expand Up @@ -561,10 +576,47 @@ export const make = Effect.gen(function* () {
const complete = (resolution: Resolution, fallback: SessionV1.WithParts): TaskSelectedReturn =>
resolution.type === "cancelled" ? resolution : { ...resolution, fallback }

/**
* CP-032 §3.3.2 Admission Freshness.
*
* The whole decision lives inside the existing synchronous transition, before any await or
* caller-visible selection, because the question it answers — was this scope already resolved
* when I arrived? — cannot be asked from outside and still be true when `result()` runs. A
* caller that samples first and calls second has no way to bind the two.
*
* The discriminator is `published`: the resolution as it stood when the transition BEGAN, read
* before the first-fallback latch and before `gate()`. A resolution that `gate()` publishes
* during this call was computed for THIS turn and is consumed unconditionally; only a resolution
* that predates the call is a candidate for freshness.
*/
const result: Scope["result"] = (fallback) =>
Effect.gen(function* () {
const cloned = structuredClone(fallback)
const immediate = transition(() => {
const published = state.resolution
if (published) {
// Cancellation is global: it carries no controlling Assistant, speaks for no membership,
// and outranks any turn arriving after it. Nothing files.
if (published.type === "cancelled") return complete(published, state.fallback ?? cloned)
// Evidence, clean or degraded alike. The question is not how good the resolution is, but
// whether it speaks for THIS Assistant. Membership answers that directly; the published
// candidate/observed/fallback slots cannot, because they are replaceable — an Assistant
// observed and then superseded is still covered by the resolution while no longer visible
// in any slot, and testing the slots would falsely revive it as fresh.
if (state.publishedMembers?.has(fallback.info.id)) {
return complete(published, state.fallback ?? cloned)
}
// Not covered: this run was admitted while unresolved but had not yet reached `result()`
// when the resolution minted, so nothing it produced is inside that answer. Returning it
// fresh is what keeps it from vanishing behind the already-filed position. Deliberately
// no mutation of fallback, history, or resolution — a fresh post-publication result never
// enrols itself, or a later arrival would match retroactively.
return { type: "evidence", fallback: cloned, degraded: false } satisfies TaskSelectedReturn
}
// Unresolved at entry: enrol before anything else, so any resolution this call enables is
// frozen with this Assistant inside. Every caller enrols, including waiters whose fallback
// never latches, because each of them is one the eventual resolution will speak for.
state.members.add(fallback.info.id)
state.fallback ??= cloned
gate()
if (state.resolution) return complete(state.resolution, state.fallback)
Expand All @@ -576,6 +628,9 @@ export const make = Effect.gen(function* () {
degraded: state.degraded,
}
state.resolution = resolution
// The third evidence publication point, alongside the two in `gate()`. This one mints
// immediately for a never-attached scope, so its membership is usually just this caller.
state.publishedMembers = new Set(state.members)
state.closed = true
return complete(resolution, state.fallback)
}
Expand All @@ -592,7 +647,6 @@ export const make = Effect.gen(function* () {
id: state.scopeID,
sessionID,
current,
resolved,
own,
owns,
reserve,
Expand Down
26 changes: 11 additions & 15 deletions 26 packages/opencode/src/tool/task.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -381,23 +381,19 @@ export const TaskTool = Tool.define(
*/
const eligible = (invocation: AttachmentCoordinator.Scope | undefined, result: SessionV1.WithParts) =>
Effect.gen(function* () {
// No scope, or a scope that has ALREADY published its resolution, means nothing is pending
// on this turn and it is immediately eligible.
//
// The gate is one-shot, and a scope outlives the run that resolved it (R-23 keeps an
// opened scope live through its descendants). So a second, sequential run on the same
// session can reach a scope that has already spoken for an EARLIER turn. Consuming that
// resolution would key this answer to the earlier turn position, where the filing guard
// would swallow it — the run would execute, produce a real answer, and deliver nothing.
//
// `locateBorrowable` refuses a scope already resolved at LOOKUP; this covers the scope
// that resolves while a borrowed run is still in flight. Immediate eligibility rather than
// refusal, because unlike the admission boundary this run has already produced a genuine
// answer: refusing here would discard it. Truthful too — a resolved scope accepts no new
// attachments, so this turn has no outstanding work on it to wait for.
if (!invocation || invocation.resolved()) {
// Scope-less: nothing can be pending on this turn, so the run-final Assistant IS the
// answer. This is the only place Task constructs evidence itself, and it is safe precisely
// because there is no coordinator to disagree with.
if (!invocation) {
return toDetected({ type: "evidence", fallback: result, degraded: false }, result)
}
// Scoped: announce, then exactly ONE atomic `Scope.result(result)`. Task deliberately does
// not sample scope resolution and pick a result from that sample (CP-032 R-13). A sample
// cannot bind its observation to the later call — the scope can resolve in between — and it
// cannot tell a resolution published FOR THIS TURN from one latched for an earlier turn, so
// acting on it either discards CP-028 structural selection or swallows a distinct answer.
// Both questions are answerable only inside the coordinator transition, which is where
// §3.3.2 now decides them.
const announce = yield* BackgroundJob.Announce
yield* announce()
const selected = yield* invocation.result(result)
Expand Down
Loading
Oops, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

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.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.