Repository navigation
fix(ci): align memory quarantine and worker publication fixtures - #197543
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis 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".
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete 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 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherMemory 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]
Technical reviewBest 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
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +4, Tests +57. Total +61 across 7 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 12, 2026, 12:25 AM ET / 05:25 UTC. |
|
Merged via squash.
|
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.
…nclaw#197543) Co-authored-by: Vincent Koc <[email protected]>
…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.
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, tree491084e27f791063998eef115e21718a93c9023d, based on6548c068c3ce10e6155f8a128644526487e29662. The signed commit matches the reviewed and remotely tested seven-file tree exactly. Fresh scoped review reported no P0-P3 findings.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.Focused commands and remaining gates
The remote runs used
node scripts/run-vitest.mjs run --config test/vitest/vitest.extension-database-workers.config.tswith these three complete files,--maxWorkers=1 --no-cache, and actual JSON census validation on both runtimes:extensions/memory-core/src/cli.test.tsextensions/memory-core/src/memory/manager.borrowed-connection.test.tsextensions/memory-core/src/memory/manager-publication-admission.test.tsStatic proof used
scripts/run-format.mts --check,scripts/run-oxlint.mjs --deny-warningswith the extension and core configurations, andscripts/run-tsgo.mjswithtest/tsconfig/tsconfig.extensions.test.jsonandtest/tsconfig/tsconfig.core.test.plugin-sdk.json. The ratchet usedscripts/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.