Skip to content

fix(ci): align memory quarantine and worker publication fixtures - #197543

Merged
vincentkoc merged 1 commit into
mainfrom
fix/memory-integrity-fixture-policy
Nov 12, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/memory-integrity-fixture-policy

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

Related: #192954
Related: #194484

What Problem This Solves

Fixes CI fixtures that expect ordinary memory startup to perform explicit full verification, and a worker-exit fixture that can expose an empty PID marker before publication finishes. These repairs are required to validate the installed-update fix in #192954 against the current admission policy.

User Impact

No production behavior, public API, schema, or dependency changes. The fixtures exercise real persisted corruption and worker publication without weakening the original refusal, output, identity, or cleanup assertions.

Why This Change Was Made

The memory fixtures now use the canonical startup verifier and require a fresh durable quarantine record before checking the ordinary CLI and manager refusal. Ordinary restarts retain bounded admission with either seal; a separate explicit-full case preserves full-verification coverage. The private, nonshipping test facade exposes the existing verifier owners. Worker fixtures publish their PID markers with synchronous temporary-write/rename, then wait for the exact final filename.

Seven files: +117/-56 overall; tests net +57, private test facade +4, production logic unchanged. No policy override, retry, timeout increase, or CI waiver.

Evidence

Source: 4fd08d05c607f8f013def70d65979cb94744f8ed, tree 491084e27f791063998eef115e21718a93c9023d, based on 6548c068c3ce10e6155f8a128644526487e29662. The signed commit matches the reviewed and remotely tested seven-file tree exactly. Fresh scoped review reported no P0-P3 findings.

  • Node 24.22.1 and pinned Bun 191755ec11: all three complete memory files passed, 87/87 per runtime (CLI 58, borrowed-connection 22, publication-admission 7), with zero failures/skips and joined exit 0. Required corruption and restart regressions passed.
  • Targeted formatting with Bun parity, both lint scopes, and both affected type projects passed on that same tree. Fixed-base test-line ratchet passed: 6,669,535 <= 6,669,539.
  • Original ten-file worker shard: 209/209 on Node and 209/209 on Bun in the prior reviewed run. The final worker change is braces-only; exact inverse comparison recovered those tested bytes. This is carried proof by verified equivalence, not a fresh worker run.
  • The remote run's original overall exit 1 and failed summary remain unchanged. Its census checker incorrectly rejected two legitimate table cases sharing the title “propagates rank operation failure without a success report.” Independent posthoc reconciliation checked the complete source-derived per-file order and multiset, including exactly two occurrences at CLI positions 33/35 and each named regression once, against both retained raw JSON reports. It did not blanket-accept duplicate names or rerun the tests.
  • A separate, temporary Telegram diagnostic reproduced the existing notification-settlement failure; it is unresolved and not companion proof. The diagnostic overlay was restored byte-for-byte before export. The native run, streams, temporary inputs, and remote resource were joined and closed. That Telegram failure still blocks the primary work and any selected failing check here; no inherited-failure exception is requested.
Focused commands and remaining gates

The remote runs used node scripts/run-vitest.mjs run --config test/vitest/vitest.extension-database-workers.config.ts with these three complete files, --maxWorkers=1 --no-cache, and actual JSON census validation on both runtimes:

  • extensions/memory-core/src/cli.test.ts
  • extensions/memory-core/src/memory/manager.borrowed-connection.test.ts
  • extensions/memory-core/src/memory/manager-publication-admission.test.ts

Static proof used scripts/run-format.mts --check, scripts/run-oxlint.mjs --deny-warnings with the extension and core configurations, and scripts/run-tsgo.mjs with test/tsconfig/tsconfig.extensions.test.json and test/tsconfig/tsconfig.core.test.plugin-sdk.json. The ratchet used scripts/check-test-lines-ratchet.mts --base 6548c068c3ce10e6155f8a128644526487e29662 --no-merge-base.

Hosted exact-head CI, security, review, and native landing gates remain required. Raw selected job conclusions must pass; an aggregate gate that tolerates inherited failures is insufficient.

@vincentkoc vincentkoc self-assigned this Nov 12, 2026
@clawsweeper

clawsweeper Bot commented Nov 12, 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.

@vincentkoc
vincentkoc marked this pull request as ready for review November 12, 2026 05:08
@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. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. 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 12, 2026
@clawsweeper

clawsweeper Bot commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR aligns memory corruption and restart fixtures with current verification policy and atomically publishes worker-exit PID markers.

Example: Restart a reindexed memory database with its seal replaced by "interrupted seal write".

  • Before: The fixture expects ordinary startup to complete full verification, contradicting current bounded admission.
  • After: The fixture checks bounded startup separately from explicit full verification while retaining schema and FTS assertions.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful, focused fixture repair with no concrete finding; execution confidence rests on reported source-bound harness results and incomplete exact-head CI.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored test-only repair is outside the ordinary contributor demonstration gate; the body reports real SQLite and worker-process fixture execution, but the retained raw reports were not independently inspected.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: Maintainers cannot reliably validate memory refusal, restart admission, and interrupted worker publication when fixtures assume obsolete policy or observe incomplete markers.
Reason: Maintainer-authored direction is established, and the diff repairs real validation boundaries without adding runtime policy or weakening the retained observable assertions.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it repairs obsolete integrity expectations and incomplete PID publication without changing runtime behavior; no actionable introduced defect was found.

Priority: P2
Reviewed head: 4fd08d05c607f8f013def70d65979cb94744f8ed

Before merge

None.

Findings

None.

Agent review details

How this fits together

Memory fixtures exercise SQLite verification, durable quarantine, and CLI/manager refusal; Crabbox fixtures observe child-process exit publication and cleanup.

flowchart TD
  A[Damaged SQLite fixture] --> B[Startup verification owner]
  B --> C[Durable quarantine]
  C --> D[CLI and manager refusal]
  E[Restart fixture] --> F[Bounded or explicit full admission]
  G[Worker exit fixture] --> H[Atomic PID publication]
Loading

Technical review

Best possible solution:

Retain this focused fixture repair and land it after the selected exact-head checks satisfy the existing merge gates.

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

Source establishes the mismatch: current main permits bounded ordinary admission while the existing restart helper requires full-verification evidence; no tests were executed during this read-only review.

Is this the best way to solve the issue?

The patch uses existing verification, quarantine, maintenance, and lifecycle owners, preserves distinct refusal and restart assertions, and fixes marker publication at its producer.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 05848c1 adds extensions/memory-core/src/memory/manager-publication-admission.test.ts:49 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 05848c1714bd; files: extensions/memory-core/src/memory/manager-publication-admission.test.ts)
  • Vincent Koc: Raw commit 04681a3 adds extensions/memory-core/src/memory/manager-publication-admission.test.ts:90 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 04681a3efcb1; files: extensions/memory-core/src/memory/manager-publication-admission.test.ts)
  • RoboClaw: Raw commit 09530a1 adds extensions/memory-core/src/memory/manager-publication-admission.test.ts:268 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 09530a1eb38b; files: extensions/memory-core/src/memory/manager-publication-admission.test.ts)

PR surface

Source +4, Tests +57. Total +61 across 7 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 4 0 +4
Tests 6 113 56 +57
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 7 117 56 +61

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P2: Repairs meaningful memory-integrity and worker-lifecycle validation with no direct runtime behavior change.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: Repairs meaningful memory-integrity and worker-lifecycle validation with no direct runtime behavior change.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

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.

Reviewed November 12, 2026, 12:25 AM ET / 05:25 UTC.

@vincentkoc
vincentkoc merged commit 3b13df5 into main Nov 12, 2026
232 checks passed
@vincentkoc
vincentkoc deleted the fix/memory-integrity-fixture-policy branch November 12, 2026 06:02
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

steipete added a commit that referenced this pull request Nov 12, 2026
Prevent large shared clones from exporting every Git config entry into isolated hydration process environments. Preserve selected transport policy in a private temporary config file with fixed environment overrides and existing cleanup ownership.

Regression provenance: #195505 introduced the environment transport; #197251 routed content hydration through it. Real 20k-config Gateway and native review-init regressions fail E2BIG before the fix and pass on the final head. Synthetic 62k-path proof reduces fetch environment bytes from 1,827,626 to 10,954; all five candidate hydrations succeed.

Codex autoreview and final-head ClawSweeper: no actionable findings. Native CI: 17 passed, two platform skips; large-config case 20.022s. All applicable type/lint/docs/security checks pass. The sole CI red is inherited test-line debt 25, reproduced on exact main parent c7962d6 and introduced by #197543 (3b13df5); this PR's 44 test lines have 44 allocation.

Explicitly authorized maintainer bootstrap fallback: SHA-pinned synchronous REST squash via protected gh, because the main-anchored native bootstrap is broken by this bug. No native review/prepare success receipt is claimed. Real shared-clone review-init verification follows official-main publication.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 13, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 13, 2026
…97593)

Prevent large shared clones from exporting every Git config entry into isolated hydration process environments. Preserve selected transport policy in a private temporary config file with fixed environment overrides and existing cleanup ownership.

Regression provenance: openclaw#195505 introduced the environment transport; openclaw#197251 routed content hydration through it. Real 20k-config Gateway and native review-init regressions fail E2BIG before the fix and pass on the final head. Synthetic 62k-path proof reduces fetch environment bytes from 1,827,626 to 10,954; all five candidate hydrations succeed.

Codex autoreview and final-head ClawSweeper: no actionable findings. Native CI: 17 passed, two platform skips; large-config case 20.022s. All applicable type/lint/docs/security checks pass. The sole CI red is inherited test-line debt 25, reproduced on exact main parent dc5e7b7 and introduced by openclaw#197543 (97741b2); this PR's 44 test lines have 44 allocation.

Explicitly authorized maintainer bootstrap fallback: SHA-pinned synchronous REST squash via protected gh, because the main-anchored native bootstrap is broken by this bug. No native review/prepare success receipt is claimed. Real shared-clone review-init verification follows official-main publication.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extensions: crabbox extensions: memory-core Extension: memory-core P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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