Long successful startup consumes the daemon idle timeout and exits before activation polling #415
Labels
No labels
code-review
correctness
dos
performance
security
severity/high
severity/low
severity/medium
tech-debt
Kind/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
h-dv/code-index#415
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Observed on code-index 0.41.10, e3-16/16.0 (Windows), reported through the development channel by its operator agent:
An approval change made during startup had not yet reached the activation poll. No next-start outcome has been measured.
Source inspection: ServerHandle.last_activity starts at bind and tracks authenticated RPC frames. The steady-state loop checks that old clock immediately after the successful initial reconciliation, and can exit on its first idle tick before the first activation tick. Successful initial reconciliation and successful activation re-arm should establish a fresh idle window; explicit shutdown and degraded-startup policy should remain intact.
Related: #412 (unnecessary extraction after release-label changes), #410 (bounded package-only invalidation). This is a separate lifecycle defect.
Confirmed by a real-binary regression using the existing reconcile-delay hook: startup delayed 61 seconds with --idle-min 1 and no RPC traffic. With the fix, the original daemon remains alive after watcher/poll startup. Removing only the startup idle-clock reset makes the same test fail: it logs initial reconciliation complete, arms the activation poll, then exits idle=60s on its first housekeeping tick. Mutation restored. Successful activation re-arm also refreshes the window. Explicit shutdown and degraded-startup handling are unchanged. The candidate is not yet merged/released.