Repository navigation
fix(triage): verify startup repair before completing its task - #145456
fuller-stack-dev wants to merge 20 commits into
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: blocked before merge. Reviewed October 5, 2026, 5:26 AM ET / 09:26 UTC (Revision 15). ClawSweeper reviewWhat this changesThe 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 Review scores
Verification
How this fits togetherTriage 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]
Decision needed
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
Agent review detailsSecurityNone. PR surfaceSource +1578, Tests +2223, Docs +2. Total +3803 across 43 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest 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. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (14 earlier review cycles; latest 8 shown)
|
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.
Keep current-main task identifier ownership while retaining exact-row triage settlement. Combine pending-migration environment controls from both branches and correct the reproduced CI fixture to include the existing TypeScript stylelint target.
|
Closing. Leaving this note in case the work is picked up again. Final head: 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 Why it is closed:
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. |
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
0878a88ce275700aae450201e1467f3a4404899epreserves original public and contributor ancestry and includes mainf62c407778746f4654c3320842faa9e9ead7dd12. 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.created_atand 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.pnpm test <file> --maxWorkers=1): exact-settlement suite 14.1s wall; original-parent suite 18.6s wall. Exact-head CI35536393798 is green.0878a88ccanonical package build and tarball integrity passed:78,878,720bytes, SHA256af6ea17300db87bb4faafb5ad1816a6a983c43dd8bba3cc56e1b1cacd0a6f305. The unchanged published2026.9.4 updater’s isolatedupdate --yes --no-restart --tag=<exact-archive> --jsonfailed 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.running. 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.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 --runuses 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
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
34662646538was inspected at its exact merge tree,3c3dd83c(this PR with mainab2219d3). The correction retains that ancestry and does not import the broader UI repair branches.--run --jsonand--run --non-interactivethrough the registered command and admitted operator route. Diagnostics-only flags remain read-only; docs now state the distinction.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.tsexports 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, tree9783e4a96b19d79039060252889f953d3190da5a. Its two parents are the prior publicb5671958and captured main2acbeee4. 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 commit45284a2f. 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
b5671958CI and native preparation remain historical. Resulting-head CI34748402691 completed successfully at45284a2f. The requiredopenclaw/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:
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:
triage_repairprojection 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.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.