Repository navigation
fix(update): remove false dependency staleness - #124627
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 16, 2026, 10:15 AM ET / 14:15 UTC. ClawSweeper reviewWhat this changesThis PR makes update status treat an existing lockfile and dependency marker as installed instead of declaring dependencies stale solely from their modification times. Merge readinessNo correctness defect found: the PR removes a timestamp-only heuristic from the dependency-status owner while preserving concrete missing-marker diagnostics. Current main still has the heuristic, so the PR remains necessary; its maintainer label and member authorship route it through normal owner review rather than automated cleanup. Priority: P2 Review scores
Verification
How this fits togetherThe update-status subsystem inspects an installation root and produces dependency, Git, and registry signals for flowchart LR
A[CLI status command] --> B[Update status check]
C[Install root files] --> B
B --> D[Dependency status decision]
D --> E[Update summary]
E --> F[Operator output]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -31, Tests -11. Total -42 across 3 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Land the simplified presence-only diagnostic after normal maintainer review and exact-head CI, retaining the existing missing-lockfile and missing-marker signals. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible: a present lockfile and marker whose marker mtime is over one second older deterministically produces Is this the best way to solve the issue? Yes. The current implementation has only timestamp ordering, not dependency-content equivalence, so removing that false-precision state while retaining missing-artifact diagnostics is the narrowest maintainable repair. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 3e2edc7f229e. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Land-ready proof for #124627 Owner decision: land exact head 876eca24b7e599241d0ca724769417f98ea92884. The root cause is the dependency-status owner treating lockfile/marker timestamp ordering as proof that an installation is stale. Filesystem mtimes do not establish dependency-content equivalence, so the canonical fix deletes that unsupported state at Proof:
No rebase is needed solely because |
|
Merged via squash.
|
What Problem This Solves
Fixes an issue where package installs with a valid lockfile and dependency marker could be reported as stale solely because their filesystem modification times differed.
Why This Change Was Made
The mtime of
.modules.yamlornode_modulesis not a reliable measure of install freshness. Missing lockfile and marker diagnostics remain intact; when both required artifacts exist, status now reports the dependencies as installed.User Impact
openclaw statusno longer reports false dependency staleness for valid installs, while genuinely missing dependency metadata is still surfaced.Evidence