Skip to content

fix(gateway): recover remote workers without blocking readiness - #192542

Merged
roboclaw-bot merged 2 commits into
mainfrom
roboclaw/native-startup-20261104
Nov 4, 2026
Merged

roboclaw-bot merged 2 commits into
mainfrom
roboclaw/native-startup-20261104

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes: slow or unavailable remote worker recovery can keep the Gateway from becoming ready after restart.

User Impact

The Gateway can become ready while remote workers reconcile. Local workspace journals still settle first, and shutdown waits for tracked recovery before closing environments. Remote recovery errors remain reported through the existing owner.

Why This Change Was Made

Schedule provider reconciliation through the existing tracked recovery chain instead of awaiting it on the readiness path. Reuse the native placement lifecycle and shutdown drain; restart recovery only owns the exact interrupted claims captured before new admission.

Evidence

  • Fixed the hosted-review race: restart recovery records the pre-start claim identities and only recovers a still-matching interrupted claim. A worker-turn or remote-exec claim admitted after startup is left active; matching includes claim ID, run ID, generation, owner and owner epoch.
  • Added coverage for both execution modes, with and without a replaced interrupted claim, through the production recovery service and SQLite placement store. Assertions preserve the new claim and reject tunnel stop or pending-result creation.
  • Final recovery suite: 42/42 passed; newly admitted/replaced worker-turn cases failed against the published owner, and remote-exec siblings reproduced a startup sweep failure before repair.
  • Original nonblocking-readiness and tracked shutdown-drain coverage is retained. Existing interrupted-claim/file recovery remains covered.
  • Reproduction: node scripts/run-vitest.mjs src/gateway/worker-environments/placement-dispatch-recovery.test.ts src/gateway/server-worker-placement-startup.test.ts src/gateway/server-worker-placement-recovery-events.test.ts --maxWorkers=1.
  • Fresh installed autoreview P0–P2: scoped-clean, including complete claim-identity comparison for both execution modes. Scoped type/lint/format checks pass.
  • The earlier incomplete real-Gateway experiment is retained as historical failed setup; the completed, source-bound native proof below supersedes its proof limitation.

Native restart and shutdown proof

The isolated shipped-runtime proof now passes on native base 8bc44540c46d8d1e3d80800c7ea1b11277c2db02 plus the unchanged published production owners from 6e521f0f1b752f535778cfd9dc538c8a11866fe9. Parent readback verifies both owner-file hashes against that PR head. This supersedes the earlier incomplete fixture experiment; it does not relabel the old failed experiment as a pass.

A built Gateway and genuine paired Node CLI prepare real native worker state through public session APIs. An independent retained lease delays provider inspection while the target accepts a new native turn. The canonical read-only placement owner records the committed claim; after successful startup recovery the same complete claim remains, and that original native command and turn finish. No internal recovery/admission/authority decision hooks or fabricated placement records are used.

For shutdown, public reclaim records a retryable provider destruction after an expected synthetic DELETE503. A real restart retries that write. With its response held, the production close phase remains pending and the Gateway stays alive. Releasing the response permits close-phase completion and process exit before the fixture's escalation bound. Native inspection and shutdown budgets are unchanged.

Source variant Observed result
Both published owners Pass; new claim preserved, original native turn completes, pending write drained before exit
Only recovery owner restored to base Expected failure: startup tries to reconcile the newly admitted active local turn
Only startup owner restored to base Expected failure: public readiness waits on held provider inspection
Captured final-effect trace, original-owner failures, and exact oracles

Original fixed-run stdout (ANSI styling removed; no outcome reconstructed):

[restart-product] independent-retained-lease-prepared at=1793809710881
[restart-product] genuine-native-worker-state-persisted at=1793809710881
[restart-product] startup-provider-inspection-held at=1793809719868
[restart-product] public-readiness-before-provider-inspection at=1793809720951
[restart-product] new-turn-request-accepted at=1793809721096
[restart-product] actual-resource-owner-observed at=1793809721499
[restart-product] new-turn-claim-observed at=1793809721653
[restart-product] startup-recovery-preserved-claim at=1793809721750
[restart-product] native-command-started at=1793809722932
[restart-product] new-turn-completed at=1793809723545
[restart-product] producer-recorded-destroy-retry at=1793809723781
[restart-product] provider-destroy-held at=1793809730670
[restart-product] shutdown-pending-recovery-observed at=1793809736707
[restart-product] shutdown-drained-and-exited-before-escalation at=1793809737476
      Tests  1 passed (1)
[vitest:isolated] exit=0; container absence confirmed

Original-owner control output (one synthetic session UUID redacted; all budgets and the frozen driver unchanged):

external-race-red-final-r2.log:
+ 2026-11-04T16:47:23.591+00:00 [gateway] Worker placement reconcile sweep failed: Cannot reconcile session <synthetic-session> while its local turn is active
[vitest:isolated] exit=1; container absence confirmed

external-startup-red-final.log:
Caused by: AssertionError: public Gateway readiness must precede blocked provider inspection: expected false to be true // Object.is equality
[vitest:isolated] exit=1; container absence confirmed

The recovery control proves erroneous recovery rejection, not physical erasure of the claim. Both original owner files were verified against the pinned native Git base. Every final run reported owned-container absence.

Exact excerpts from the frozen proof driver show the observation and final-effect assertions. This task-only driver adapts the native Codex/paired-node fixture; it is not a proposed replacement for the upstream Codex regression. Omitted sections prepare the two real leases and transport fixtures; the body above identifies those external fixtures as synthetic.

// Frozen driver lines 491-500
        const recoveryCompleted = () =>
          gateway!
            .readLogsSince(recoveryLogMark)
            .split("\n")
            .some(
              (line) =>
                line.includes("startup trace: sidecars.worker-environments.active ") &&
                /active [0-9.]+ms/.test(line),
            );
        mark("genuine-native-worker-state-persisted");

// Frozen driver lines 546-586
        const readClaim = async () => {
          const reply = await executeExistingOpenClawStateRead(
            { path: statePath },
            { type: "workers.placementEnvironmentOwner", environmentId },
            { current: true, signal },
          );
          expect(
            reply?.placement,
            "the reader must resolve the actual resource owner before inspecting its claim",
          ).toMatchObject({ environmentId, sessionKey: KEY });
          if (!ownerObserved) {
            mark("actual-resource-owner-observed");
            ownerObserved = true;
          }
          return reply?.placement?.turnClaim;
        };
        let admittedClaim: Awaited<ReturnType<typeof readClaim>>;
        await vi.waitFor(async () => {
          const claim = await readClaim();
          expect(
            claim?.runId,
            "the new turn must own a real committed claim before recovery resumes",
          ).toBe(heldRun);
          admittedClaim = claim;
        }, WAIT);
        mark("new-turn-claim-observed");
        const admitted = await session(gateway);
        expect(admitted.placement).toMatchObject({
          state: "active",
          environmentId: persisted.placement!.environmentId,
        });
        gate.release();
        await vi.waitFor(() => expect(recoveryCompleted()).toBe(true), WAIT);
        expect(gateway.readLogsSince(recoveryLogMark)).not.toContain(
          "Worker placement reconcile sweep failed",
        );
        expect(
          await readClaim(),
          "startup recovery must preserve the admitted claim identity",
        ).toEqual(admittedClaim);
        mark("startup-recovery-preserved-claim");

// Frozen driver lines 587-613
        // Execution preparation may serialize behind provider inspection. Require
        // the original admitted turn to run afterwards, not an invented live PID.
        await withinTest(
          withTestTimeout(
            receipts.waitFor(MARKERS.cancel, "started"),
            30_000,
            "the original admitted native command did not start after recovery",
          ),
          signal,
        );
        const heldEvidence = JSON.parse(
          await fs.readFile(
            path.join(admitted.placement!.remoteWorkspaceDir!, "p8-cancel.json"),
            "utf8",
          ),
        ) as { pid: number };
        expect(processIsAlive(heldEvidence.pid)).toBe(true);
        mark("native-command-started");
        receipts.release(MARKERS.cancel, "never-released");
        await finish(heldRun);
        mark("new-turn-completed");
        await expectRealNodeAuth();
        expect(
          provider.requests.some(
            (request) => request.scenario === "cancel" && request.workerAuth && request.completed,
          ),
        ).toBe(true);

// Frozen driver lines 616-669
        // Reclaim records real retryable destruction after a provider outage.
        // Startup then resumes that write, which cannot be abandoned at drain
        // like the intentionally cancelable read-only inspection above.
        gate.failDestroy();
        await expect(
          gateway.call("sessions.reclaim", { key: slowKey }, { timeoutMs: 90_000 }),
        ).rejects.toThrow("release refused: 503");
        await vi.waitFor(() => expect(gate.failedDestructions).toBeGreaterThan(0), WAIT);
        mark("producer-recorded-destroy-retry");
        replacement = gateway.restartAfterStateMutation(async () => {
          gate.holdDestroy();
          recoveryLogMark = gateway!.markLogs();
        });
        await vi.waitFor(() => expect(gate.pendingDestructions).toBeGreaterThan(0), WAIT);
        await replacement;
        const gatewayPid = gateway.pid;
        if (gatewayPid === null) {
          throw new Error("replacement Gateway has no observed process identity");
        }
        const closeLogMark = gateway.markLogs();
        const closeStartedAt = performance.now();
        const closing = stopQaGatewayFixture(owner);
        const closeLines = () => gateway!.readLogsSince(closeLogMark).split("\n");
        const drainPhase = "shutdown.worker-placement.startup.active";
        // The production pending report is emitted only for an outstanding close
        // join (every 5s), unlike fixture cleanup or a sleep-based observation.
        await vi.waitFor(
          () => {
            expect(
              closeLines().some(
                (line) => line.includes("shutdown pending:") && line.includes(drainPhase),
              ),
            ).toBe(true);
          },
          { timeout: 15_000, interval: 50 },
        );
        mark("shutdown-pending-recovery-observed");
        expect(processIsAlive(gatewayPid)).toBe(true);
        expect(gate.pendingDestructions).toBeGreaterThan(0);
        expect(
          closeLines().some((line) => line.includes("restart trace: " + drainPhase + " ")),
        ).toBe(false);
        gate.release();
        await vi.waitFor(() => {
          expect(
            closeLines().some((line) => line.includes("restart trace: " + drainPhase + " ")),
          ).toBe(true);
        }, WAIT);
        await closing;
        expect(processIsAlive(gatewayPid)).toBe(false);
        // This pinned QA process helper cannot escalate SIGTERM to SIGKILL until
        // 30s. Completion before that deadline excludes its forced-cleanup path.
        expect(performance.now() - closeStartedAt).toBeLessThan(30_000);
        expect(gateway.readLogsSince(closeLogMark)).not.toContain("shutdown deadline reached");

Executing-source and captured-log identities:

{
  "nativeBase": "8bc44540c46d8d1e3d80800c7ea1b11277c2db02",
  "publishedOwnerHead": "6e521f0f1b752f535778cfd9dc538c8a11866fe9",
  "driverSha256": "b7f49656887db3f85b9b4eff768115d2089baa22ae4a911724d3448c030da534",
  "fixedSourceSha256": "source sha256:4ebf5e41d149cbe104869c3be66b995987917096f9dadc9cf14274b0394e1b28",
  "fixedLogSha256": "a5088b887815eea8b7fece5e856cca72b1faef93327d435b9473d1ad542926e8",
  "fixedOwners": [
    {
      "path": "src/gateway/server-worker-placement-startup.ts",
      "bytes": 29424,
      "sha256": "160b7aebbb0555dfa64072c0962cf4747cacdee0abd8c2fa373d1a918ad335d6"
    },
    {
      "path": "src/gateway/worker-environments/placement-dispatch-recovery.ts",
      "bytes": 23047,
      "sha256": "42d8fcbadc1b8fb61424ebd2f95c63e6289d0045d22376870dc9a69ae60a9eef"
    }
  ],
  "controls": [
    {
      "variant": "race-red",
      "sourceIdentity": "source sha256:82a9a7f45a951b719a0a5d5aaeb0c9c151be644e923b4a1194057ae9924989d4",
      "exitCode": 1
    },
    {
      "variant": "startup-red",
      "sourceIdentity": "source sha256:632424a7ff3ffe2ede35e90a650e6380e0fa33f3f0e09ba2b7037538e3f510d4",
      "exitCode": 1
    }
  ]
}

Qualification: formatter, typed lint, targeted TypeScript and whitespace checks passed on the frozen driver; original-owner controls were typechecked. Fresh independent P0–P2 review found no findings in the frozen passed proof and relevant fixed owners. All seven final source files match the executed R19 snapshot; the input copy is synchronized. No production source change was required by this proof.

Limits: external model/provider responses and credential fixtures are synthetic, not live cloud or commercial inference. The write-capable recovery join and process-exit ordering are proven, but terminal destruction of the persisted environment row was not separately asserted. The first race-control attempt failed during setup with database is locked; its unchanged-source isolated replay reached the intended failure, and no database fix is claimed. This is a pinned native-base composition, not execution of every current-main change or an exact-head CI claim. Current CI, review and landing remain separate gates.

CI attribution — exact startup base and merge

The failed CI attempt remains failed; this is maintainer attribution for the repository's supported pre-existing-failure path, not green-CI evidence.

CI run 41785818022, attempt 1, has 76 terminal jobs. Only checks-node-changed-13 (job126428180090) and its downstream openclaw/ci-gate (job126436810484) failed. security-fast passed. Security High is successful; CodeQL is neutral, not represented as success or waived.

The actual CI checkout is 632396007bed23029addefaf03d2518e1a76b220, with ordered parents baseline 15e38612b4bed88f6595be4d16c0c7b2d4fe20a9 and this PR's 6e521f0f1b752f535778cfd9dc538c8a11866fe9. The failed case is codex-node-app-server.e2e.test.ts:381:42: an empty observed nativePids array omits the known app-server PID. A fresh, matched isolated run on each exact tree failed at that same assertion; base exit1 and candidate exit1. No PR source was removed from the candidate. The selected test, PID observer, shared wire fixture, isolation builder, pinned Bun and lock inputs have identical blobs across the two trees.

CI:        expected [] to include 7511   codex-node-app-server.e2e.test.ts:381:42
Base:      expected [] to include 2245   codex-node-app-server.e2e.test.ts:381:42   exit 1
Candidate: expected [] to include 2234   codex-node-app-server.e2e.test.ts:381:42   exit 1

The differing numeric PIDs are expected; the invariant is the empty observed list omitting the known parent. This establishes baseline reproduction, not the introducing commit or a full diagnosis of the PID observer. Both replays built qaRuntime and used the pinned Bun in the same source-bound network-none image; build/launcher Node26.12.1 differs from CI24.22.1, and selected serial execution is not whole-shard timing equivalence. The admitted source digests are candidate 52a89703efa7cccc2d451a7daa306515ff57faf042761457fbc5ede6040259f5 and base 7c7fe1755e2207e80e3d2f7110447e5f62cb4250eb59fc9697bc6c10ca878a9f. Both owned containers were confirmed absent.

The earlier database is locked failure in the separate race-control setup remains unexplained and retained above; this CI comparison does not clear it. The independently passing native startup/recovery/shutdown proof, its original-source limits, and the exact-head overall Platinum review remain separate facts. Source, live authority, security and enforced review gates remain required.

Contributor credit

Co-authored with @galiniliev.

Work sessions

@clawsweeper

clawsweeper Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime size: S labels Nov 4, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 4, 2026
@clawsweeper

clawsweeper Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR moves remote worker recovery into tracked background startup work while preserving newly admitted turn claims.

Example: A Gateway restarts while provider inspection is held and a new native worker turn is submitted.

  • Before: Provider inspection holds Gateway readiness.
  • After: The Gateway becomes ready, preserves the new turn's claim during recovery, and lets that turn complete.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Focused implementation with source-bound native runtime proof and the prior finding resolved; the failed required CI check remains unclassified.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (logs): Supplied native Gateway and paired Node output exercises the unchanged published owners: readiness precedes held provider inspection, the admitted claim survives recovery and its original turn completes, and shutdown joins a held write before exit; external provider/model peers are synthetic and the run uses a pinned native-base composition.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Slow remote recovery can leave unrelated Gateway work unavailable after restart.
Reason: The maintainer-authored direction restores availability while keeping local settlement and tracked shutdown drainage.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it addresses a current readiness blocker, fixes the previously reported claim-recovery defect, and supplies relevant native runtime proof; failed CI still needs attribution.

Priority: P1
Reviewed head: 6e521f0f1b752f535778cfd9dc538c8a11866fe9

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Gateway placement runtime coordinates persisted session placements, provider reconciliation, workspace settlement, admission, and shutdown; it produces recovered placement state and session-change events.

flowchart TD
  A[Gateway startup] --> B[Settle local journals]
  B --> C[Open readiness]
  B --> D[Tracked remote recovery]
  C --> E[New turn admission]
  D --> F[Match pre-start claims]
  E --> F
  D --> G[Shutdown drain]
Loading

Technical review

Best possible solution:

Retain the existing recovery and shutdown owners, defer remote reconciliation, and restrict interrupted-claim recovery to the captured pre-start identity.

Do we have a high-confidence way to reproduce the issue?

Current-main source directly awaits remote reconciliation on readiness, and supplied original-owner controls demonstrate blocked readiness; no target code was executed during this review.

Is this the best way to solve the issue?

The patch is a focused fix using the existing tracked reconciliation slot and canonical claim store, with no competing recovery owner or unnecessary production layer.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against da4d414e4bd6.

Provenance checked

  • Startup recovery ordering changes intended behavior with a stated reason (perf(gateway): keep publication recovery off the readiness path #180128: Publication recovery was deferred while required placement recovery remained before dispatch.)
  • Interrupted active-claim recovery keeps the original intent (9344233: Interrupted worker claims transfer file custody to recovery without reviving execution authority.)
  • Tracked startup cleanup and shutdown keeps the original intent (ac129b6: Startup recovery must remain inside the cleanup-protected lifecycle so shutdown drains accepted work.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

PR surface

Source +19, Tests +52, Docs +8, Other +2. Total +81 across 7 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 2 43 24 +19
Tests 3 77 25 +52
Docs 1 8 0 +8
Config 0 0 0 0
Generated 0 0 0 0
Other 1 2 0 +2
Total 7 130 49 +81

Review metrics

Metric Value Why it matters
Production versus test changes Production +43/-24; tests +77/-25 The production growth scopes recovery to initial claims, while tests protect readiness, shutdown ordering, claim preservation, and event delivery.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove rating: 🧂 unranked krab: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove merge-risk: 🚨 session-state: Current PR review selected no merge-risk labels.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P1: An unavailable remote provider can prevent the whole Gateway from becoming ready after restart.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Obtain the underlying Codex composition failure and establish whether it is caused by this diff or inherited before landing.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (1 earlier review cycle)
  • reviewed 2026-11-04T04:50:24.168Z sha 1b09ff4 :: needs changes before merge. :: [P1] Exclude newly admitted turns from restart recovery

Reviewed November 4, 2026, 12:11 PM ET / 17:11 UTC (Revision 2).

Address hosted review with production-owner proof and preserve current authority and lifecycle ownership.

Co-authored-by: galiniliev <[email protected]>
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Nov 4, 2026
@roboclaw-bot
roboclaw-bot merged commit d4f79d5 into main Nov 4, 2026
159 of 163 checks passed
@roboclaw-bot
roboclaw-bot deleted the roboclaw/native-startup-20261104 branch November 4, 2026 17:28
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 5, 2026
…claw#192542)

* fix(gateway): recover remote workers without blocking readiness

Co-authored-by: galiniliev <[email protected]>

* fix(gateway): preserve newly admitted claims during startup recovery

Address hosted review with production-owner proof and preserve current authority and lifecycle ownership.

Co-authored-by: galiniliev <[email protected]>

---------

Co-authored-by: galiniliev <[email protected]>
github-actions Bot pushed a commit to clawhaven/openclaw that referenced this pull request Nov 23, 2026
…claw#192542)

* fix(gateway): recover remote workers without blocking readiness

Co-authored-by: galiniliev <[email protected]>

* fix(gateway): preserve newly admitted claims during startup recovery

Address hosted review with production-owner proof and preserve current authority and lifecycle ownership.

Co-authored-by: galiniliev <[email protected]>

---------

Co-authored-by: galiniliev <[email protected]>

Source: d4f79d5

Release adaptation: Bounded readiness repair and exact pre-start claim snapshot, with all three focused consumer regressions. Local journals remain awaited, remote reconciliation tracked and drained on close. Baseline startup awaited provider and interrupted any current claim. Excluded docs/allocation. Later workspace publication-size repairs independent. Formatting passed; runtime proof blocked by shared-install setup. No schema change.

Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 9a848f64374fc14866ab66cf1f3c4275c4367902)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation gateway Gateway runtime P1 High-priority user-facing bug, regression, or broken workflow. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant