Repository navigation
refactor(claws): split lifecycle modules and preserve test coverage - #163306
Patrick-Erichsen wants to merge 15 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. What this changesThe branch separates Claw agent-package lifecycle helpers, CLI export handling, and large test suites into smaller modules while retaining their existing entry points and coverage routing. Review scores
Merge readiness⛔ Blocked before merge - 2 items remain This remains useful work in an active coordinated stack. No concrete introduced defect was found, but the integrated stack and refreshed runtime evidence are not yet ready for landing. Priority: P3 Before merge
FindingsNone. Agent review detailsHow this fits togetherClaws packages create agents and manage their workspace files, plugins, skills, and scheduled jobs. CLI and Gateway requests enter the lifecycle owner, which reviews package identity and ownership before changing configuration or installed resources. flowchart TD
A[CLI and Control UI] --> B[Gateway and lifecycle requests]
B --> C[Package and ownership review]
D[ClawHub package metadata] --> C
E[Stored lifecycle facts] --> C
C --> F[Add Update and Remove]
F --> G[Agent configuration and resources]
Technical reviewBest possible solution: Retain the focused extractions and preserved coverage within one reconciled, behavior-verified stack. Do we have a high-confidence way to reproduce the issue? Not applicable: this refactor reports file-size and reviewability concerns, rather than a runtime defect; no introduced failing behavior was established. Is this the best way to solve the issue? Yes: extracting existing responsibilities and retaining caller contracts is a focused solution, provided the reconciled stack preserves its lifecycle behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 40d735e451b1. Merge-risk optionsMaintainer options:
SecurityNone. EvidenceWhat I checked:
PR surfaceSource +247, Tests +410, Generated 0, Other +5. Total +662 across 45 files. View PR surface stats
Review metrics
LabelsLabel changes: No label changes. Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 HistoryReviewed October 7, 2026, 7:26 PM ET / 23:26 UTC (Revision 3). |
df4d831 to
4cac01d
Compare
|
Closing as superseded: #171623 replaced the Claws plan/review/update/remove lifecycle with a one-way Add operation, and Closed by Roboclaw at the author's request after an audit of his open PRs. The branch is kept, so this can be reopened if needed. |
Publication Refresh: October 7
Layer 11/16. Previous: #163305 | Next: #163307. Published checkpoint:
4cac01dcb10a.The stack now includes 45 previously local follow-up commits in four additional draft PRs, ending at #166801 (
9e653a8ed286). Fresh combined-tip checks passed: 100 backend tests and 13 built-UI browser tests with a mocked Gateway. Before/after review captures are attached. Evidence below that names6765a8741e4remains historical evidence for that revision, not a new real-ClawHub run or per-layer CI result.The stack remains draft and its first layer conflicts with current
main. Reconciliation, exact-head CI/review, and the existing release gates remain outstanding. No merge or deployment is authorized by this publication.What Problem This Solves
The launch changes grew several lifecycle and UI files beyond the repository's maintainability limits.
User Impact
No intended user-visible behavior changes. The same Claw flows remain covered while modules and tests become reviewable under existing file-size and CI rules.
Why This Change Was Made
Shared-state reads, package preflight, Add/Update helpers, official-source checks, CLI export, and large test suites are separated by responsibility. CI test inventory and assertion/config baselines reflect the moved coverage rather than waiving it.
Evidence
Split suites and coverage-tier checks are committed in this diff. At final stack tip
6765a8741e4,pnpm check:changedpassed its structural ratchets, documentation checks, typecheck shards, dead-code check, lint, and UI checks. Focused backend tests passed 63/63 and Agents UI tests passed 34/34 at that tip. The installable tarball build/integrity also passed with build-info matching HEAD. No independent behavior proof is claimed for this refactor layer.Release gate: Land the OpenClaw stack together only after ClawHub #3883 and local publish-to-real-task lifecycle proof.