Skip to content

feat(durable): add beta3 runtime core foundation - #104327

Closed
mjnkao wants to merge 36 commits into
openclaw:release/2026.7.1from
mjnkao:codex/openclaw-durable-beta3-newstack-pr2-runtime-core
Closed

mjnkao wants to merge 36 commits into
openclaw:release/2026.7.1from
mjnkao:codex/openclaw-durable-beta3-newstack-pr2-runtime-core

Conversation

@mjnkao

@mjnkao mjnkao commented Jul 11, 2026

Copy link
Copy Markdown

PR2/5 — runtime foundation/core + terminal immutability guard

Context capsule

This PR is item 2 of the rebuilt beta3 durable core stack. It asks reviewers to evaluate the runtime foundation/core + terminal immutability guard slice on its own base while recognizing that later PRs build cumulatively on top.

Durable core stack overview

  • PR1/5 — docs/RFC/boundary anchor and proof plan.
  • PR2/5 — runtime foundation/core plus terminal SQLite row immutability guard.
  • PR3/5 — wake targets, durable producers, replay/resume semantics.
  • PR4/5 — controls/inspection plus CLI/Gateway surface.
  • PR5/5 — internal session delivery handoff, final hardening, and cumulative E proof.

Stack position

  • Stack item: PR2/5
  • Current PR summary: Durable store/runtime foundation, session/task primitives, gateway/CLI protocol foundation, terminal SQLite row immutability guard.
  • Does not claim: No wake-target/replay controls/internal handoff; no plugin SDK DTS size fix.
  • Dependency/base: 5d9fb965cada2083c532c68cc9b95fb0f4f7d7a2 (PR1 public submitted head, docs(durable): rebuild 2026.7.1 beta 3 durable core RFC and proof plan #104246)
  • Downstream dependency: PR3 depends on this PR
  • Canonical upstream gate(s): PR1 has ClawSweeper threshold met (platinum hermit) and awaits maintainer decision; PR2 was rebased and verified after syncing PR1 private branch.
  • This PR head: codex/openclaw-durable-beta3-newstack-pr2-runtime-core at 2e4129630ac2e90fe6fe66236d8e1309795d3827
  • Intended base: 5d9fb965cada2083c532c68cc9b95fb0f4f7d7a2

Dependency / promotion gate

  • Submit/merge gate: PR2 should only be promoted after its base is canonical and threshold-met.
  • Current gate state: PR1 reviewer threshold met; PR2 exact-head ancestry and local proof pass after rebase.
  • Next dependent PR: PR3 depends on this PR.

What Problem This Solves

Durable store/runtime foundation, session/task primitives, gateway/CLI protocol foundation, terminal SQLite row immutability guard. This narrows review to the intended durable-runtime layer, keeps the cumulative stack ancestry clean, and gives reviewers exact-head evidence instead of relying on stale or downstream proof.

Scope

  • Durable store/runtime foundation, session/task primitives, gateway/CLI protocol foundation, terminal SQLite row immutability guard.
  • Exact-head local status captured in new-pr2-build-status.md and refreshed by the PR2 promotion status artifact.
  • Branch/head/base captured in new-5pr-stack-final-audit.md.

Non-scope

  • No wake-target/replay controls/internal handoff; no plugin SDK DTS size fix.
  • No wake-target/replay controls/internal handoff is part of this slice.
  • No plugin SDK DTS size fix is included in the durable behavior narrative.

Base / diff hygiene

  • Base comparison: 5d9fb965cada2083c532c68cc9b95fb0f4f7d7a2..2e4129630ac2e90fe6fe66236d8e1309795d3827
  • Non-cumulative check: git merge-base --is-ancestor 5d9fb965cada2083c532c68cc9b95fb0f4f7d7a2 codex/openclaw-durable-beta3-newstack-pr2-runtime-core passed after PR2 rebase.
  • Conflict/replay notes: PR2 rebased cleanly from old PR1 head 8681317a9ec25fd14bf2253eb77c4d8abba3a41a onto current PR1 head 5d9fb965cada2083c532c68cc9b95fb0f4f7d7a2; intentional scope exclusions documented in status artifacts.

Proof matrix

Gate Command / artifact Result
Unit / focused behavior exact-head rerun after rebase passed locally on 2e4129630ac2e90fe6fe66236d8e1309795d3827
Typecheck / static pnpm tsgo:core and docs map check passed
Diff hygiene git diff --check 5d9fb965cada2083c532c68cc9b95fb0f4f7d7a2..HEAD and ancestry check passed
Upgrade/schema, if applicable status artifact and generated schema diffs applicable for runtime/schema PRs; docs-only for PR1
Live proof, if applicable status artifact not run in final audit; add before promotion if required

Live proof

  • Environment: local worktree only for this promotion pass.
  • Result: Remote/Testbox proof was not rerun; existing status artifact records earlier crabbox sanity blocker. Local exact-head focused proof passed after rebase. Runtime live proof should be added before final merge if required.
  • Artifact(s): new-pr2-build-status.md, new-5pr-stack-final-audit.md, PR2 promotion status artifact.

ClawSweeper requirements

  • Includes authored What Problem This Solves section: yes.
  • Includes authored Evidence/proof content: yes.
  • Names stored data model / migration impact when schema or persisted state changes: yes; durable state/schema impact is covered in status artifact.
  • Names risk labels ClawSweeper should evaluate: compatibility, session-state, message-delivery, durable-runtime, diff-hygiene.
  • Keeps proof artifacts accessible in body or durable stack state.

Risk / upgrade notes

  • Runtime risk: durable runtime/session behavior changes require exact-head and live proof before promotion.
  • Compatibility/upgrade risk: schema/runtime compatibility must be reviewed against generated state schema and status artifact evidence.
  • Rollback/feature-flag posture: stack is cumulative; rollback should revert/promote by PR boundary rather than cherry-picking descendants.

Evidence

  • Focused durable/unit/commands/gateway/protocol/agents tests passed locally after rebase:
    • durable unit: 16 files, 68 tests
    • durable command: 1 file, 7 tests
    • gateway bundle: 12 files, 863 tests
    • gateway protocol: 1 file, 51 tests
    • agent/session adjacent shards: 11 files, 431 tests
  • pnpm tsgo:core and pnpm docs:map:gen --check passed.
  • git diff --check 5d9fb965cada2083c532c68cc9b95fb0f4f7d7a2..HEAD passed.
  • Scope exclusion grep found no src/durable/wake-*, src/durable/wake-controls-inspection*, src/durable/wake-internal-delivery*, or scripts/write-plugin-sdk-entry-dts.ts paths.
  • Final ancestry audit passed for 5d9fb965cada2083c532c68cc9b95fb0f4f7d7a2 -> codex/openclaw-durable-beta3-newstack-pr2-runtime-core at 2e4129630ac2e90fe6fe66236d8e1309795d3827.

Next gate

Review this PR after PR1; PR3 remains private until PR2 reaches the configured reviewer threshold.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime cli CLI command changes scripts Repository scripts commands Command implementations agents Agent runtime and tooling size: XL labels Jul 11, 2026
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P2 Normal backlog priority with limited blast radius. labels Jul 11, 2026
@mjnkao

mjnkao commented Jul 12, 2026

Copy link
Copy Markdown
Author

@clawsweeper re-review

PR2 exact-head blocker repair pushed: 31774f7ba087fe24bf635d79072fb20a396a988c.

Mechanical fixes only:

  • removed the duplicate non-matrix Verify docs i18n Go toolchain step from checks-node-compat in .github/workflows/ci.yml; the remaining matrix.requires_go guard is in checks-node-core-test-nondist-shard, which has a matrix.
  • restored config/swiftformat to --min-version 0.62.1.

Local proof on exact head:

  • node scripts/check-workflows.mjs passed, including actionlint and zizmor.
  • node scripts/run-vitest.mjs test/scripts/ci-workflow-guards.test.ts passed: 37 tests.
  • git diff --check -- .github/workflows/ci.yml config/swiftformat passed.

No durable runtime behavior, PR3-PR5 branches, cron settings, or service credentials were changed.

@clawsweeper

clawsweeper Bot commented Jul 12, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

@mjnkao

mjnkao commented Jul 12, 2026

Copy link
Copy Markdown
Author

@clawsweeper re-review

PR2 follow-up pushed after hosted iOS proved the restored SwiftFormat floor still needed fresh Homebrew metadata on the macOS runner.

Current exact head: baa9f679b81092e4bcb435531be661e4fe4d3b43.

Delta since the previous re-review request:

  • ios-build log for 31774f7ba087fe24bf635d79072fb20a396a988c failed in SwiftFormat (lint) with Project specifies SwiftFormat --min-version of 0.62.1; the install step showed cached swiftformat 0.61.1 is already installed and up-to-date.
  • Reintroduced the narrow brew update before brew install xcodegen swiftlint swiftformat in the iOS Swift tooling install step, preserving the supported config/swiftformat floor at 0.62.1.

Local proof on baa9f679b81092e4bcb435531be661e4fe4d3b43:

  • git diff --check -- .github/workflows/ci.yml config/swiftformat passed.
  • node scripts/check-workflows.mjs passed, including actionlint and zizmor.
  • node scripts/run-vitest.mjs test/scripts/ci-workflow-guards.test.ts passed: 37 tests.

No durable runtime behavior, PR3-PR5 branches, cron settings, OpenClaw E/service state, or credentials were changed.

@clawsweeper

clawsweeper Bot commented Jul 12, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

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. feature: ✨ showcase ClawSweeper spotlight: unusually compelling feature idea for maintainer attention. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. feature: ✨ showcase ClawSweeper spotlight: unusually compelling feature idea for maintainer attention. labels Jul 12, 2026
@mjnkao

mjnkao commented Jul 18, 2026

Copy link
Copy Markdown
Author

Archived as superseded by the official-7.1 owner-first rewrite and the PR1/6 decision gate in #107375. The fresh-install, restart/reopen, 6.11-upgrade, SQLite-integrity, terminal-immutability, and live completion proof remains valuable and will be ported. This cumulative 19k-line beta3 snapshot is not the replacement merge candidate, and its unconditional shared-schema boundary must not be carried forward.

@mjnkao mjnkao closed this Jul 18, 2026
@mjnkao mjnkao reopened this Jul 18, 2026
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed 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. labels Jul 18, 2026
@mjnkao mjnkao closed this Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui cli CLI command changes commands Command implementations docs Improvements or additions to documentation feature: ✨ showcase ClawSweeper spotlight: unusually compelling feature idea for maintainer attention. gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. scripts Repository scripts size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants