Skip to content

improve(ci): isolate installed recovery checks - #187568

Merged
vincentkoc merged 9 commits into
mainfrom
test/package-recovery-scheduler-cells-landed-20261029
Oct 31, 2026
Merged

vincentkoc merged 9 commits into
mainfrom
test/package-recovery-scheduler-cells-landed-20261029

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Installed-package recovery checks need independent scheduler cells and reliable producer cleanup so an interrupted cut cannot erase the remaining checks or publish evidence while its producer is still running. Successfully publishing a failed lane's diagnostics must also preserve its phase and exit annotation.

User Impact

Release maintainers can select package-installed-recovery to schedule seven recovery cuts independently and receive bounded, sanitized diagnostics. Ordinary recovery lanes keep their existing publication behavior. Installed product runtime and state formats are unchanged.

Why This Change Was Made

This is the scheduler half split from #177381. It preserves the separate Doctor compatibility work in #186506 and the landed monotonic-clock fixture repair.

Each cell binds one verified package to a private attempt. Publication and offline evidence reads require joined process/log ownership and exact-ID Docker container settlement. Scheduler-owned launchers preserve configured timeouts; both package aliases enter that owner directly. The wrapper delegates publication only when the scheduler supplied retained CID custody. The host consumes validated private failure metadata independently of the publisher's own exit status.

Against frozen successor baseline e8dade03, candidate 6adb2448 changes 32 paths: harness +687/−98, tests +994/−48, metadata +6/−2, installed product runtime 0.

Evidence

  • Current correction proof: 18 focused macOS tests passed, covering the actual publisher, ordinary wrapper, invalid/oversized private metadata, and shared timeout/group cleanup. The old consumer failed the new annotation regression; repaired source passed. Targeted format, lint, scripts/test typing and the test-line ratchet passed on the final bytes. This provides no Linux or Docker-daemon credit.
  • Parent Linux proof: Blacksmith run 41189027831 verified parent 9bc73760: 312 tests across seven files, no skips, plus formatting, lint, type graphs, Bash syntax and the ratchet. Native outcome was succeeded, exit 0, with the owned testbox stopped. This predates the metadata-consumer correction.
  • Current Docker/package/access proof: run 41192955847 passed all seven cuts on 6adb2448, each with one attempt, no timeout, successful publication and joined process/cleanup ownership. Native receipts confirm preserved package/config/launchers, healthy follow-up updates, and shared/outsider access checks. Selected source and workflow source both match the published commit. This targeted workflow does not run full Package Acceptance or the footprint gate.
  • Current required CI/security: CI 41192770754 and ci-gate 41193638443 passed on 6adb2448; the CodeQL workflow, Security Review and OpenGrep also passed. A separate CodeQL aggregate check is neutral because 18 main-branch configurations are absent on this PR.
  • Exact-head Claw review: the current review covers 6adb2448, with no findings, no remaining Before-merge requests and no Rank-up moves.
  • Complete source review: the exact 6adb2448 sixteen-assignment review is scoped-clean: all 16 assessments complete, zero findings. It covers all 32 changed paths with whole owner/caller/callee contracts. Source, manifests and authentication defaults remained unchanged; all owned review processes settled.
  • Historical package boundary: run 40855531828 passed seven cuts and access checks on ada1731, but its package aggregate failed at 47,608 installed entries against the 47,500 cap. That separate Doctor/package gate remains failed and unwaived; this targeted scheduler workflow does not run the footprint gate.
  • Historical CI: published 73a7 run 40916281223 failed TypeSafe transport and native-hook pressure tests. Those causes remain unproved; no inherited-failure exception, threshold increase or timeout relaxation is claimed.

Merged as 02b93967 after native squash admission. Exact-head source review, required CI, Periphery, Claw review and scoped Docker/package/access proof all qualified; no inherited-failure or admin waiver was used.

Run each installed recovery cut as a finite scheduler cell and publish package-bound receipts after its host process group joins. Preserve the landed timeout, deferred-schema witness, and installed-inventory owners.
@vincentkoc vincentkoc self-assigned this Oct 29, 2026
@clawsweeper

clawsweeper Bot commented Oct 29, 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 scripts Repository scripts docker Docker and sandbox tooling size: XL labels Oct 29, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review October 29, 2026 10:08
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. 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. labels Oct 29, 2026
@clawsweeper

clawsweeper Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR schedules seven installed-package recovery cuts independently and publishes sanitized diagnostics after producer cleanup.

Example: The partial-previous recovery cell times out.

  • Before: The interrupted wrapper can lose its diagnostic publication or leave its Docker producer running.
  • After: The scheduler joins the launcher, settles the retained container ID, and publishes failure coordinates while preserving the failed lane outcome.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful, coherent scheduler integration with exact-head Docker execution and focused lifecycle coverage; the author’s separate qualification hold remains operationally relevant.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (linked_artifact): The linked exact-head Docker workflow passed all seven installed recovery cells through the real scheduler and packaged CLI, including the partial-previous path that requires shared-reader success and outsider denial. The body reports preserved package/config/launchers and healthy follow-up updates; regression tests support timeout, signal, cleanup-failure, and annotation behavior. Raw artifact and log downloads were blocked by this review environment, so their contents were not independently inspected. Changes affect temporary diagnostic artifacts, with no operator-state migration required.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Release maintainers cannot schedule the seven recovery cuts independently or reliably retain diagnostics after their wrapper is interrupted.
Reason: The maintainer-authored direction closes the explicitly deferred scheduler integration while preserving installed runtime and state contracts.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR supplies recovery scheduling that main still lacks, with no actionable introduced defect found; the author’s recorded qualification hold remains.

Priority: P2
Reviewed head: 6adb2448727f4e1d880535cd75cdaf1f3bf7a352

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Docker E2E harness accepts a selected package and lane names, runs isolated recovery containers, and produces release-validation results and sanitized artifacts.

flowchart LR
A[Package command] --> B[Lane planner]
B --> C[Docker scheduler]
C --> D[Recovery container]
D --> E[Private evidence]
C --> F[Producer settlement]
F --> G[Host diagnostics publisher]
E --> G
Loading

Technical review

Best possible solution:

Land the cohesive scheduler integration after the recorded qualification hold clears, retaining the existing recovery, cleanup, and redaction owners.

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

Source comparison confirms that main lacks the seven scheduler cells and surviving publication owner; the added regression also targets the old consumer’s suppressed failure annotation, but no target code was executed during this review.

Is this the best way to solve the issue?

The change appropriately extends the existing scheduler and publisher, preserves ordinary wrapper behavior, and keeps producer settlement inseparable from reading candidate-written evidence.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Private recovery evidence permissions changes intended behavior with a stated reason (cdff9b0: Keep raw recovery errors private; the foundation explicitly deferred shared-group access and scheduler publication.)
  • Docker container cleanup changes intended behavior with a stated reason (0cfd6b0: Retain a container ID long enough to remove timed-out harness containers; this PR transfers final custody to the surviving scheduler.)
  • Bounded Docker launchers keeps the original intent (3736d7b: Require bounded Docker commands; configured deadlines remain while retained-CID launchers stay in the scheduler-owned process group.)
  • Shutdown and failure preservation keeps the original intent (df72708: Preserve earlier failures, stop admission during shutdown, and join owned processes and streams.)
  • Private failure metadata changes intended behavior with a stated reason (593401e: Expose only validated phase, exit status, and signal after host publication and cleanup; the new consumer also handles successful publication of a failed lane.)
  • Package-command launcher changes intended behavior with a stated reason (ce0fafe: Preserve pre-import tooling cache policy; the direct scheduler shim retains that policy while removing the extra env-wrapper termination owner.)
  • Shared diagnostic sanitization keeps the original intent (d50b286: Retain failing upgrade steps within bounded, fully redacted diagnostic output; extraction preserves that behavior for existing publication.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vincent Koc: Raw commit cdff9b0 adds scripts/e2e/lib/upgrade-survivor/diagnostics.mjs:199 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: cdff9b02c81b; files: scripts/e2e/lib/upgrade-survivor/diagnostics.mjs)

PR surface

Tests +946, Config +1, Other +592. Total +1539 across 32 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 13 994 48 +946
Docs 0 0 0 0
Config 1 2 1 +1
Generated 0 0 0 0
Other 18 691 99 +592
Total 32 1687 148 +1539

Review metrics

Metric Value Why it matters
Production versus test LOC Installed runtime +0; operational harness +687/−98; tests +994/−48. Growth supplies isolated scheduling, producer settlement, validated publication, and distinct process and access-boundary regressions.
CLI surface One new flag: --lanes=<names>. Package aliases enter the existing scheduler directly without an additional parent termination deadline.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit 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: Improves release-validation coverage and trustworthy failure reporting without changing installed application behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit 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.

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-10-29T10:26:02.954Z sha ada1731 :: needs real behavior proof before merge. :: none

Reviewed October 31, 2026, 7:00 AM ET / 11:00 UTC (Revision 2).

Baseline-Refresh: 69476d9cbf42e5723e1f6b631667f42f196a20be
Baseline-Refresh: bd304fa3f94d418e57bb224fceb6ec0d97ef5a87
@clawsweeper clawsweeper Bot removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 29, 2026
Baseline-Refresh: 5ed12c0a1297e07457c3e908f009a801e6d0377f
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Oct 31, 2026
@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 clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 31, 2026
@vincentkoc
vincentkoc merged commit 02b9396 into main Oct 31, 2026
304 checks passed
@vincentkoc
vincentkoc deleted the test/package-recovery-scheduler-cells-landed-20261029 branch October 31, 2026 14:54
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 1, 2026
* test(ci): schedule isolated installed recovery cells

Run each installed recovery cut as a finite scheduler cell and publish package-bound receipts after its host process group joins. Preserve the landed timeout, deferred-schema witness, and installed-inventory owners.

* fix(ci): settle recovery producers before publication

* fix(ci): retain scheduler ownership through package entry

* fix(ci): bind recovery publication to scheduler custody

* fix(ci): retain published recovery failure annotations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docker Docker and sandbox tooling P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XL 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