Repository navigation
Conversation
Run summaries carry root and parent lineage (stored runs before this version read as roots); flowsafe.runLineage is reserved; table flowsafe_child_runs keys children by parent run and child key and bounds stored outcomes; the child-runs drain category counts unsettled children.
Carry CP-Q1 and CP-P2 fixes; the spike inventory counts ten work categories with child-runs.
Carry bounded question recovery, stored-answer re-authorization and the CP-P1/CP-P2 fixes.
childRuns().start() and result() bind to the active leg; child ids derive from the parent run and a run-scoped key; depth and per-parent caps, the host's beforeStartChild hook and the version pin gate admission; the child inherits the parent's registered owner and the root's stored requester.
Biome's noAssignInExpressions refuses the logical-assignment return. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… lineage Co-Authored-By: Claude Opus 5.5 <[email protected]>
…n start Co-Authored-By: Claude Opus 5.5 <[email protected]>
childRuns().awaitChildren() suspends a step until any or all named children finish or the wait expires; the parent resumes once against the suspension fingerprint with every known outcome. A child's alarm retries its settlement notice for up to 24 hours and stops when the parent is gone; the parent acknowledges outside its operation lock. Results over 16 KiB are omitted from the envelope and stay readable through result(key). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ables Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A terminate or a matched run deadline cascades to every unfinished child in parallel (25 s per call) before the parent commits; a child that does not answer is recorded indeterminate and retried by the parent's alarm for up to 24 hours. A parent that finishes on its own cancels its unfinished children, and a cancellation stamp fences a child start still in transit. Co-Authored-By: Claude Opus 5.5 <[email protected]>
A child start passes the router's role, catalog and beforeStart checks for the parent's registered owner, and beforeStartChild receives that owner. The parent waits at most 25 s for the child's durable admission instead of its first leg; a starting row resolves to started or refused by probing the child. Child starts carry the deployment's current mutation epoch, a resume deadline stays within the parent's, the child records a start-principal receipt, agent targets and keys over 128 bytes are refused, and two strict-index reads are fixed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…to child-run start Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A ready or expired await that cannot resume shares the five-attempt deadline budget with backoff, and a resume schema that rejects the outcome settles the run as CHILD_AWAIT_RESUME_FAILED. A nested or malformed children wait fails at suspension as INVALID_CHILD_AWAIT, and both summary views classify it. Recording a child outcome after a committed transition no longer fails that transition; re-awaits resume only for an undelivered outcome; deep results are omitted as too-deep; error cuts keep surrogate pairs whole. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Keep bounded admission and reservation recovery with child await delivery. Record terminal outcomes after ownership commits and retry parent notices. Update await fixtures for admission before first-leg completion. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The runtime's active-leg scope imports AsyncLocalStorage from node:async_hooks, which the showcase Worker provides under nodejs_compat; its Worker typecheck now includes the pinned Node types to resolve it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ild-run start Co-Authored-By: Claude Opus 5.5 <[email protected]>
…mitted The child topology must implement cascadeTerminate, and a terminate or deadline with unfinished children refuses as CHILD_CASCADE_UNAVAILABLE without it. The parent's terminal intent commits under compare-and-set before any child is called, and the alarm re-checks it before retrying a child. Deadline sweeps run eight transitions at a time, and a cascade keeps a direct terminate's replay principals. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…) into child awaits Co-Authored-By: Claude Opus 5.5 <[email protected]>
Probe starting children within the cascade budget and preserve abortable admission waits. Keep outcome recording best effort after terminal cleanup. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The showcase's browser program reads two resume refusal codes, and importing them from runtime.ts pulled node:async_hooks into it. Both now import the codes from a leaf module; behaviour and public exports are unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ld awaits Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e termination Co-Authored-By: Claude Opus 5.5 <[email protected]>
…st needs The parent resume in the requester-header test omitted requestedBy and requestedByKind, which /resume requires, so it answered 400 before the child-start property was exercised.
The child-run settle path now raises RunStateUnreadableError for an initial or non-terminal snapshot before it touches the ledger, so the existing retry path applies and settle always receives a terminal summary. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…s entry The await-children work exports CHILDREN_RESUME_KEY from `do-runner/constants` for hosts that read the resume envelope, so the packed agent-host surface check lists it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…nate feat(flowsafe): end child runs before their parent's terminal state
release: version packages
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
anchorage-showcase-single-tenant | 83fd910 | Nov 29 2026, 09:29 PM |
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.
Promotes
devtomainfor@proofoftech/flowsafe0.37.0 (version PR #197; wave 2b release R2, child runs).0.37.0: run lineage on summaries (
rootRunId,rootWorkflowId,depth,parentRunId,parentWorkflowId) with tableflowsafe_child_runsand thechild-runsdrain category;childRuns().startfrom a workflow step, with version pins, depth and per-parent limits, inherited owner and requester, andbeforeStartChild;childRuns().awaitChildren(keys, { mode, timeoutMs })to suspend a step until any or all children finish; cascade termination of unfinished children on terminate, deadline and natural completion. Breaking type changes:RunLegstart legs can carryparent, customChildRunTopologyimplementations gain start-principal lookup, child-start resolution andcascadeTerminate, and exhaustiveInventoryCategoryhandlers must includechild-runs.No pending changesets on
dev;devpush CI on83fd9106is green on the required jobs.🤖 Generated with Claude Code