Skip to content

fix(triage): verify startup repair before completing its task - #145456

Closed
fuller-stack-dev wants to merge 20 commits into
mainfrom
fix/original-startup-repair-20260911
Closed

fuller-stack-dev wants to merge 20 commits into
mainfrom
fix/original-startup-repair-20260911

Conversation

@fuller-stack-dev

@fuller-stack-dev fuller-stack-dev commented Sep 12, 2026 •

Copy link
Copy Markdown
Member

Summary

Verify startup repair independently in the original parent before reporting success or settling its optional task. Keep replacement-safe admission, exact task identity and native generation checks, bounded child results, and conservative retained-but-unconfirmed history. Operator Doctor repair continues to honor current update-history and migration resolution.

Current integration

Candidate 0878a88ce275700aae450201e1467f3a4404899e preserves original public and contributor ancestry and includes main f62c407778746f4654c3320842faa9e9ead7dd12. Latest inspected main has one direct overlap whose blob is identical; native drift guards still own transitive-input assessment. No refresh was performed merely for drift.

  • Fixed raw task creation identity: normalization could conceal a distinct persisted created_at and allow wrong-row settlement. Two negative controls reproduced false identity acceptance and actual wrong-row success; raw timestamps now compare before transactional settlement, with replacement and peer rows preserved.
  • Fixed expected-version identity: empty and overlong versions were discarded and both falsely passed real parent verification. Preserve exact input for existing protocol schemas to reject; never downgrade to any version. Both regressions fail on the prior code and pass after correction.
  • API review accepts raw identity, the version correction and the documented endpoint-health boundary. Startup endpoint health is not installation/build/activation proof: actual callers retain the original failure and exit, and task settlement explicitly leaves activation unconfirmed. Separate update-owner safety and rollback gates remain unchanged.
  • R6 affected run: 58 passing cases/7 files, production types, all 23 selected test-type graphs, lint and formatting pass. R7 requalifies the changed startup boundary: 17 passing cases/3 files (9 parent, 4 real configured-child, 4 physical-old-package removal/forwarded diagnostics). Production types, all23selected test-type graphs, affected lint and formatting pass. These runs overlap and are not additive totals.
  • Measured changed-test costs (pnpm test <file> --maxWorkers=1): exact-settlement suite 14.1s wall; original-parent suite 18.6s wall. Exact-head CI35536393798 is green.
  • Prior CI selector failure was reproduced and diagnosed: its fixture omitted the changed UI TypeScript path from expected stylelint arguments. Main independently contains the same correction; production selection is unchanged. The moved-codec-helper test import was also corrected at its owner after the local type gate exposed it.
  • Exact 0878a88c canonical package build and tarball integrity passed:78,878,720bytes, SHA256 af6ea17300db87bb4faafb5ad1816a6a983c43dd8bba3cc56e1b1cacd0a6f305. The unchanged published2026.9.4 updater’s isolated update --yes --no-restart --tag=<exact-archive> --json failed at global install swap after30,002ms. Candidate migration, Doctor, configuration, plugin, continuation and canary stages completed. The frozen driver’s full-content/metadata baseline hit its hard30s scan budget before swap; its missing baseline then produced the secondary retained-tree-changed message. This matches the old-driver path described in#146637 and is not a candidate-side triage regression claim.
  • Read-only reconciliation: all10,615 original published-package members match; both copied older task rows are unchanged, and the unconfirmed row remainsrunning. The tree has35,697regular files/471MB. ExactR7 is not installed, compatibility remains failed, and full rollback integrity is not proved. The fixture is retained; no update replay, integrity bypass or deadline increase occurred. Earlier2203’s successful hop is historical only.
  • The prior R6 CI release-tooling failure remains unresolved: the sparse release-check case timed out at120s with no child-stage trace. Diagnostic reproduction of the original three-group order passed609cases/23files on Darwin; the natural new-head Linux run passed the same unchanged case in12.4s. A subsequent original-order Linux4CPU/Node24.19.0 diagnostic also passed609cases/23files (sparse case10.2s); Testbox run35538597280 and its staged source were closed cleanly. General tracing did not capture release-check child starts, so no child-stage cause was identified. None of these passes explains the original failure or waives it. Existing stall fix#153884 was already included; no speculative batching, retry, timeout increase or weaker assertion was applied. Native review remains not-ready until the cause/owning fix is established.
  • Exact0878 package passed; installed compatibility failed as described above. Supported native preparation/landing remain open. No failed gate is waived; no live service is being updated.

Acceptance and limits

The maintainer explicitly accepted conservative indefinite retention on September13. That decision is no longer pending. Unconfirmed history grants no liveness, completion, cancellation, retry or deletion authority; only fresh matching native backing can block restart.

Compatibility, original-parent authority, action-specific lifetime/rollback obligations and the existing coupled data-safety gates remain required. No installed end-to-end update journey, managed-parent forwarding, activation or rollback proof is inferred from source tests. No live service is being updated.

Historical source-bound qualification and publication records — status below is superseded by the current section

What Problem This Solves

Fixes an issue where automatic startup repair could run without returning an independently verified outcome to the original updater, or fail to launch when package replacement removed modules that the old updater had not loaded yet.

Why This Change Was Made

Keep startup-symptom verification separate from operator Doctor repair. The admitted repair keeps the configured agent runtime; the original parent consumes bounded typed output only after native drain/release, matches the original request and native generation, then independently probes the original startup target. Validation dependencies needed by the old parent are captured before package replacement.

Task projection uses the actual admitted repair generation and exact configured-store task identity. Missing task creation or optional projection does not block authorized repair. Read-only native observation is not cancellation authority or a replacement for the original parent's validated result.

User Impact

Startup repair can return a truthful verified or unverified result and project its actual task outcome without rewriting the original update failure, JSON output, or exit code. Non-TTY triage --run uses the supported operator route; diagnostics-only use remains read-only. An agent exit code or Doctor-only result cannot certify startup repair.

This does not claim requested-core activation, installation-root/OS-start proof, remote cancellation, managed-parent result forwarding, or an installed end-to-end update journey.

Evidence

  • Seven original-parent startup controls cover successful verification, no effect, forged success, and wrong request/root/generation/boot.
  • Three fresh-child controls exercise actual native admission, configured-agent entry, a real local endpoint repair effect, no-effect refusal, and already-healthy admission avoidance. The agent and local HTTP/RPC service are controlled fixtures, not installed-service proof.
  • Physically removing the old package's owner/validator/task modules reproduced failed child admission before the fix. The corrected case passes while retaining original JSON and exit code; the unchanged preserve sibling was not replayed.
  • Consent and adjacent command controls pass, including unattended operator dispatch and diagnostics-only behavior.
  • The initial connected gate passed core/test types and export scans, then stopped at a test line-limit issue. The test-only correction and remaining ten checks passed. The final old-parent correction passed core/test types, typed lint, formatting, diff, import-cycle and runtime-loader checks. This is preserved source-bound qualification, not a claimed single rerun of every gate on the final tree.
  • Existing scoped source review found the old-parent dependency P1; its regression was reproduced and the final correction reviewed clean. No duplicate supplier proof or reviewer was started.

Native lease, cleanup, and schema mutation behavior is unchanged. The added store identity hook is read-only and returns unavailable for incompatible or migration-required content.

CI and review correction

The failed run 34662646538 was inspected at its exact merge tree, 3c3dd83c (this PR with main ab2219d3). The correction retains that ancestry and does not import the broader UI repair branches.

  • Route task-registry reads through the existing runtime-internal facade; the unchanged task-boundary suite passes.
  • Test explicit --run --json and --run --non-interactive through the registered command and admitted operator route. Diagnostics-only flags remain read-only; docs now state the distinction.
  • Keep a support-export failure from preventing authorized repair. The existing private operator handoff carries sanitized, schema-validated failure diagnostics capped at 4 KiB; this grants no update ownership or activation authority.
  • Do not create tasks for automatic preserve-mode repair, which has no matching terminal-result consumer. The configured repair still runs and the stopped Gateway stays stopped.
  • Preserve redacted terminal failure reasons and suppress late publication after the original owner closes.

Correction evidence

The unwritable-export and preserve-mode orphan-task cases were reproduced before the fix and pass afterward. Two fresh parent/child IPC controls deliver memory/file diagnostics while the actual support directory is unwritable. Those controls use synthetic inference/Doctor fixtures and establish admission/transport, not a repair effect. The original configured-runtime startup validator is unchanged.

Registered maintenance CLI: 108 passing cases. Unchanged task-boundary suite: 5 passing cases. The affected command/parent controls pass across the retained correction runs; both real isolation cases pass, including executor failure. The removed-old-package verify-running control also passes after the diagnostic-schema import. The final IPC tests explicitly enable test-runtime stdout and pass without an external environment override.

One repository-required autoreview found the IPC fixture's missing runtime-output setting. It was fixed and its two cases pass; the original review finding is retained, with no second-clean-review claim. Core/test types pass. Final typed lint, native-schema, storage, loader, import-cycle and authorization guards pass. That historical selected-source gate was not green: it failed on the two unchanged cloud-target.ts exports also present in the CI main parent. That failure has not been suppressed or waived.

Current source publication

The independently reviewed successor is signed commit 45284a2f72669f4188d17fe29f182e1626e03226, tree 9783e4a96b19d79039060252889f953d3190da5a. Its two parents are the prior public b5671958 and captured main 2acbeee4. The task-store reconciliation preserves both the exact read-only identity query and main's admitted mutation snapshot, without changing startup authority, original failure, or conservative retention behavior.

Independent scoped review found no issues. All 70 affected controls and 30 required source phases pass. Existing supplier evidence remains preserved. The exact verification package is sealed at SHA256 a3cee5b432b6de80344449f41efb569533c80443bf377420ff219ab86b10e0bc, with 11,370 inventory entries and embedded commit 45284a2f. Its initial timestamp-format failure, successful compiler prefix, and corrected canonical continuation remain distinct. This archive is not relabeled from an older candidate.

The prior b5671958 CI and native preparation remain historical. Resulting-head CI34748402691 completed successfully at 45284a2f. The required openclaw/ci-gate, native hosted gates, and final native preparation passed. The initial optional Labeler, Security Sensitive Guard, and six CodeQL checks failed. One failed-only recovery passed Security Sensitive Guard attempt 2 and all six retried profiles in CodeQL attempt 2. Passing sibling results and required CI were not replayed. These are scoped workflow results, not a blanket clean-security claim. Labeler remains unresolved: the primary GitHub App token request returned HTTP 500, then the fallback installation rejected the requested permissions with HTTP 422. The existing App administrator must reconcile that installation; no permissions were changed and the failed Labeler job was not retried. No package rebuild or completed test-suite replay was needed for source publication.

Source publication is authorized separately from the unresolved retention choice. No retention alternative, automatic task reconciliation, cancellation authority, or data deletion has been selected. Merge remains held for human persistence acceptance and actual published-driver x exact-successor x older-data compatibility. Compatibility is NOT_RUN; Linux resource, immutable runtime, and architecture-complete offline cache bindings are still unbound.

Task lifecycle correction

Two late task-lifecycle findings were reproduced and corrected while preserving the implementation’s retention behavior. Explicit maintainer acceptance of the material persistence design remains pending:

  • Only foreground admitted repair can create the optional task projection. Managed repair still runs, but creates no task until its parent has a supported terminal-result consumer. Preserve-mode exclusion remains unchanged.
  • Retention does not imply restart liveness. Progress and restart blocking now share the same exact configured-store identity check and native observation: matching generation/lifetime, live helper and executor, and running/closing phase. Released, dead, prior-boot, uncertain or unreadable backing remains retained and unconfirmed without blocking restart.

No task deletion, rebinding, normalization, migration, native lifecycle change, or cancellation grant was added. If a foreground parent disappears or optional settlement fails, the task remains unconfirmed. Only the existing independently validated, correlated original-parent result may finalize it; backing absence alone is neither success nor a veto of that result.

The managed-lifetime regression failed before the fix while the foreground control passed. Eight stale/uncertain restart controls failed while live/settling controls passed. All 12 now pass, as do the four existing affected foreground repair/no-effect/already-healthy/preserve controls. The new focused tests substitute observations/store hooks; they prove the projection and filter contracts, not installed native execution. The existing reviewer examined the exact five-file correction and resolved both findings with no new actionable finding.

Compatibility remains scoped: the package-removal control uses a current-source parent which loaded this implementation before mutation. No retrospective validation capability is claimed for a historical already-running updater. Published-updater-to-candidate and installed BE activation evidence remain separate; component landing does not release an installed HOLD.

Outstanding merge qualification

The exact-head review resolves both lifecycle findings and reports no actionable code defect. Two non-code requirements remain before merge:

  1. Maintainer acceptance of the persistence design. Optional triage_repair projection uses the existing task store and schema, but adds durable retention semantics. Parent loss or uncertain settlement may leave running-but-unconfirmed records indefinitely, with accumulation and no automatic expiry/reconciliation. The proposal keeps native execution authoritative, creates records only for supported foreground parents, and requires fresh exact identity/native liveness to block restart. Storage or observation failure does not prevent repair. Existing deletion/store owners remain unchanged. Revert stops new projection; it does not delete retained records or establish older-reader compatibility. These tradeoffs are proposed, not yet accepted.
  2. Published-driver × exact-candidate and older-data compatibility evidence. The current-source package-removal controls do not establish this. The responsible maintainer path has retained this component requirement; it is not waived by separating the other installed BE cases or the wider journey. No exception is granted and no installed qualification is claimed.

Required resulting-head CI and native gates remain mandatory. Historical runner interruption and retry receipts are retained; they do not describe the new head. No healthy check is rerun or failure waived.

@clawsweeper

clawsweeper Bot commented Sep 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.

@openclaw-barnacle openclaw-barnacle Bot added cli CLI command changes commands Command implementations size: XL maintainer Maintainer-authored PR labels Sep 12, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 12, 2026
@clawsweeper

clawsweeper Bot commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed October 5, 2026, 5:26 AM ET / 09:26 UTC (Revision 15).

ClawSweeper review

What this changes

The PR independently checks startup repair in the original parent, settles its optional task only against exact stored identity, and supports explicit unattended operator repair.

Merge readiness

⛔ Blocked before merge - 6 items remain

The independent startup-verification work remains useful, but the branch needs reconciliation with current main’s Tasks retirement. The previous compatibility and timeout-diagnosis blockers remain unresolved. Maintainer authorship and the protected label also preclude automatic closure.

Likely related people: steipete, with high routing confidence from merged triage and runtime work.

Priority: P2
Reviewed head: 0878a88ce275700aae450201e1467f3a4404899e
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The reviewed verification and settlement code has useful validation, but unresolved installed compatibility and changed architectural context limit readiness.
Proof confidence 🌊 off-meta tidepool Not applicable: The MEMBER-authored PR is exempt from ordinary contributor proof. Its source-bound IPC and real RPC/HTTP controls support parent verification, but the exact packaged candidate failed published-updater installation; older-state and full rollback compatibility remain insufficient.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The MEMBER-authored PR is exempt from ordinary contributor proof. Its source-bound IPC and real RPC/HTTP controls support parent verification, but the exact packaged candidate failed published-updater installation; older-state and full rollback compatibility remain insufficient.
Evidence reviewed 9 items Pinned introduction and clean checkout: Reviewed the pinned merge-base-to-head production changes, rather than attributing current-main drift to this PR. The checkout remained clean.
Independent original-parent verification: The parent validates bounded output against the original request, installation root and admitted generation, then independently probes and compares the observed boot before optional settlement.
Exact final-write fencing: Settlement checks current authority, raw persisted identity and the complete expected running row inside the write transaction. Inspected regression controls cover replaced timestamps, detail, identity, terminal rows and closed authority.
Findings None None.
Security None None.

How this fits together

Triage receives startup failures or explicit operator repair requests and runs bounded repair through installation-owned execution. The original parent checks the returned outcome before reporting verification or updating the optional task record.

flowchart TD
  A[Startup failure or operator request] --> B[Installation-owned admission]
  B --> C[Bounded repair child]
  C --> D[Joined result after cleanup]
  D --> E[Original parent verification]
  E --> F[Verified or unverified report]
  E --> G[Optional exact task settlement]
Loading

Decision needed

Question Recommendation
Should this work be narrowed to independent startup verification on current recovery owners, dropping the optional projection into the retired Tasks runtime? Narrow to current recovery owners: Retain the parent-verification behavior while removing the retired task projection and reconciling current automatic-repair and restart contracts.

Why: The prior retention acceptance predates the merged Tasks retirement and does not authorize restoring that runtime or choosing a replacement durable projection.

Before merge

  • Resolve merge risk (P1) - The exact candidate failed the published-updater installation cell; installed admission, result handling, older-state compatibility and full rollback integrity remain unqualified.
  • Resolve merge risk (P2) - The original release-check timeout still lacks an established cause and owning correction; later passing runs do not resolve that repository-required gate.
  • Resolve merge risk (P1) - Current main retired the task runtime and changed automatic recovery ownership, while this branch conflicts; maintainer direction and refreshed integration review are required before carrying its task projection forward.
  • Complete next step (P2) - Obtain direction on the retired task projection, reconcile current-main conflicts and recovery contracts, complete exact-package upgrade compatibility, and identify the original release-check timeout’s cause or owning fix.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Source +1578, Tests +2223, Docs +2. Total +3803 across 43 files.

View PR surface stats
Area Files Added Removed Net
Source 22 1856 278 +1578
Tests 20 2525 302 +2223
Docs 1 9 7 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 43 4390 587 +3803

Review metrics

Metric Value Why it matters
Production versus test growth production net +1,578 lines; tests net +2,223 lines Verification, native observation and exact settlement explain the growth, but task-related production additions need reassessment after the runtime retirement.

Stored data model

Persistent data-model change detected: database schema: src/tasks/task-registry.store.identity.ts, migration/backfill/repair: src/commands/triage-doctor.ts, migration/backfill/repair: src/commands/triage-operator.ts, migration/backfill/repair: src/commands/triage-prompt.ts, migration/backfill/repair: src/commands/triage-repair.ts, migration/backfill/repair: src/commands/triage-startup-result.ts, and 5 more. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Reconcile and qualify a narrower candidate (recommended)
    After the owner chooses scope, preserve current recovery contracts and complete exact-package upgrade, older-state and rollback qualification.
  2. Pause pending owner direction
    Hold integration until the task-retirement decision and the original timeout’s owning correction are established.

Technical review

Best possible solution:

Preserve independent parent verification within current recovery owners, omit retired task projections unless explicitly sponsored, and qualify the resulting package through published-updater and existing-state proof.

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

Yes at the source boundary: current main returns foreground completion after cleanup and exit checks without this independent parent startup probe. Supplied endpoint controls demonstrate the distinction, but this review executed no runtime reproduction.

Is this the best way to solve the issue?

Unclear for the complete branch: parent verification is a sound boundary, but its task projection must be reconciled with the intentionally retired runtime and current recovery owners.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦐 gold shrimp, so this older rating label is no longer current.

Label justifications:

  • P2: Truthful startup-repair reporting is a bounded reliability improvement without evidence of a current emergency.
  • merge-risk: 🚨 compatibility: The exact candidate’s published-updater compatibility failed and current-main recovery contracts require reconciliation.
  • merge-risk: 🚨 session-state: The branch adds durable repair-task retention and settlement whose installed older-state and rollback behavior remains unqualified.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The MEMBER-authored PR is exempt from ordinary contributor proof. Its source-bound IPC and real RPC/HTTP controls support parent verification, but the exact packaged candidate failed published-updater installation; older-state and full rollback compatibility remain insufficient.

Evidence

What I checked:

  • Pinned introduction and clean checkout: Reviewed the pinned merge-base-to-head production changes, rather than attributing current-main drift to this PR. The checkout remained clean. (0878a88ce275)
  • Independent original-parent verification: The parent validates bounded output against the original request, installation root and admitted generation, then independently probes and compares the observed boot before optional settlement. (src/commands/triage-startup-result.ts:31, 0878a88ce275)
  • Exact final-write fencing: Settlement checks current authority, raw persisted identity and the complete expected running row inside the write transaction. Inspected regression controls cover replaced timestamps, detail, identity, terminal rows and closed authority. (src/tasks/task-registry.store.sqlite.ts:137, 0878a88ce275)
  • Complete captured proof context: Read the full live body and verified that its SHA256 matches the supplied snapshot: 11c59a05e16d018093b437b5855c193515acb253608b43b16b2c037e0e8e6432, 17,562 UTF-16 units. It records controlled real IPC/RPC/HTTP coverage, but explicitly reports that the exact candidate was not installed by the published 2026.9.4 updater, older task rows remained unchanged, and full rollback integrity was not proved. The original release-check timeout remains undiagnosed despite subsequent passing diagnostics. (0878a88ce275)
  • Accepted retention limitation: The current body records explicit September 13 acceptance of indefinite unconfirmed retention. The inspected implementation still separates retention from restart liveness and grants no cancellation, retry or completion authority from historical backing. That accepted tradeoff is not reopened. (src/tasks/triage-task.ts:66, 0878a88ce275)
  • Current-main architectural retirement: GitHub verifies that refactor: remove Tasks and TaskFlow runtime #159179 merged on September 27 and intentionally retired Tasks/TaskFlow without a compatibility facade. Current main has no src/tasks tree. This changes the integration context for the PR’s optional durable projection; it does not prove that merging this conflicting branch would restore retired files. (6652f7eac8d9)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

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

  • Reconcile independent verification with current recovery owners and the accepted Tasks retirement.
  • Complete published-updater compatibility with the resulting exact package and copied older operator state, including rollback integrity.
  • Establish the original release-check timeout’s cause and cite its owning correction.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (14 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-13T05:08:26.644Z sha b567195 :: blocked before merge. :: none
  • reviewed 2026-09-13T09:13:05.501Z sha 45284a2 :: blocked before merge. :: none
  • reviewed 2026-09-13T09:44:46.601Z sha 45284a2 :: blocked before merge. :: none
  • reviewed 2026-09-20T19:15:46.500Z sha 8507628 :: blocked before merge. :: none
  • reviewed 2026-09-20T20:01:53.254Z sha 2203bb9 :: blocked before merge. :: none
  • reviewed 2026-09-20T20:56:06.801Z sha 0878a88 :: blocked before merge. :: none
  • reviewed 2026-09-20T21:15:32.741Z sha 0878a88 :: blocked before merge. :: none
  • reviewed 2026-09-20T21:41:47.960Z sha 0878a88 :: blocked before merge. :: none

@clawsweeper clawsweeper Bot added the merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. label Sep 12, 2026
@openclaw-barnacle openclaw-barnacle Bot added the docs Improvements or additions to documentation label Sep 12, 2026
@clawsweeper clawsweeper Bot added 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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 12, 2026
fuller-stack-dev and others added 5 commits September 12, 2026 22:22
Preserve conservative task retention and the original startup repair authority. Incorporate reviewed current-main conflict resolutions.
Integrate landed task flow summary and affirmative-only interactive repair consent without changing conservative startup task retention or validation ownership.
Preserve the exact timeout message assertion while keeping the composed test within the existing line limit.
Preserve the startup repair identity query alongside the managed task mutation snapshot. Retain existing startup verification, original failure, and conservative retention semantics.
Preserve contributor ancestry and reviewed startup-repair semantics.
Restore current-main platform and execution-owner fixes; extract read-only identity query.
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Oct 5, 2026
@fuller-stack-dev

Copy link
Copy Markdown
Member Author

Closing. Leaving this note in case the work is picked up again.

Final head: 0878a88ce275700aae450201e1467f3a4404899e (branch fix/original-startup-repair-20260911). The branch is kept, so the commits can still be restored.

What it did: After a startup repair, the original parent process verified the repair independently before reporting success or settling the optional repair task. Settlement was checked against the exact stored task identity: the raw created_at timestamp and the expected version are compared before the transaction, so a lookalike row is never settled by mistake. It also added an explicit unattended operator path for Doctor repair.

Why it is closed:

  • Main has since retired the Tasks runtime and changed who owns automatic recovery. A large part of this PR (+4390/−587, 43 files) writes to that retired task projection.
  • The packaged candidate failed the published-updater installation check. Older-state compatibility and full rollback integrity were never proven.
  • The original release-check timeout never got a known cause or an owning fix.
  • The branch conflicts with main.

If this is revisited: Start a fresh, much smaller PR on main's current recovery code that keeps only the independent parent verification and drops the task projection, as the last review recommended. Reuse the identity checks (raw timestamp, expected-version validation, preserving replacement and peer rows) and their negative-control tests.

@RomneyDa
RomneyDa deleted the fix/original-startup-repair-20260911 branch October 22, 2026 05:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI command changes commands Command implementations docs Improvements or additions to documentation maintainer Maintainer-authored 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. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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