Repository navigation
fix(prism): respect active descendants before stale notices - #342
Conversation
|
What: Independent Sol review PASS, with no supported blocking findings at Reviewed the complete three-file diff against main base Findings: none requiring correction in the inspected scope. Checked paths and cleared concerns:
Evidence inspected:
Commands actually executed for this review were read-only Git identity/status/diff/show/remotes/divergence commands, Requirements and who asked: The #341 review brief requires an independent exact-head Sol verdict for descendant-aware stale notices, preserving #269/#279 thresholds and delivery; this protects delegated Drafters/Spectrum work in the Objective. |
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Baseline: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
|
What: Independent Grok review passes Reviewed head FindingsNo required correction in the inspected scope. Cleared concerns
EvidenceInspected #341, diagnosis comment 6181497222, #269, and PR #279. The earlier no-nested-suppressor note covered two first-reply alerts with no newer work. This patch answers the separate idle-parent, streaming-grandchild case and does not retune those thresholds.
Commands I ran were read-only: git identity, status, log, merge-base, diff, and show; Requirements and who asked: The user's #341 review brief requires one independent Grok verdict on this exact head, for descendant-aware stale notices that keep the #269/#279 thresholds and delivery. Reviewer: Grok |
|
What: PR #342 passes both required independent reviews and current CI on exact head Reviewed source base is
Requirements and who asked: User delegated #341 through merge, requiring red-first focused proof, Sol gpt-6.1-sol and Grok grok-4.7 child reviews with exact-head success after comments, current green CI and the map's Child notices linkage. |
* fix(prism): respect active descendants before stale notices * docs(map): link descendant activity fix to Child notices
What: Quiet parent runs no longer send stale-child notices while a descendant has an active provider attempt.
Why: The silence detector only saw the parent's own provider events, so a parent waiting on healthy nested work looked stalled.
So what: Merged as
e2aff187811ad0e0691bb927ddc3a07a0d973018into main after both exact-head reviews and green CI; #341 is closed.Closes #341. Supports Drafters and Spectrum in the Objective by keeping healthy delegated work from being cancelled on a misleading notice.
The existing monitor now checks the other live attempts only when a silence is suspected. It validates persisted running status and attempt identity, then follows canonical parent links, including deleted intermediates, to distinguish descendants from siblings. Active descendants renew the watched silence allowance. Completed/replaced attempts cannot suppress notices, and notices resume once descendant work ends. Provider timing samples, thresholds, notification delivery and notice text stay unchanged.
Upstream search and the red-first diagnosis: #341 (comment). Current upstream main has no fork stale detector or same-cause fix to port. This is an existing-component fix, with no new design round, versions or protocol changes. SN remains #269's Child notices part in the feature map.
Delivery: merged at 2026-10-15T00:46:10Z. Reviewed head
1f7e1a453d319ed069a5c7ed4d9ab30e5ffd986a; Sol PASS and Grok PASS each preceded their authenticated exact-head success status. Aggregate review also succeeds. Admission and current-base inspection records green CI, the disjoint #340 main advance and proof limits. Verified merged parent2ba387388074ac4ee09cc256f9800cdd9ce2b520and treee10b459dfdbbabb6436982efc7e1afc08122fc40, exactly matching the pre-merge result. Own clean worktree and local/remote branch are removed; completed reviewer children retired, no persistent process or watch. Proof logs remain outside the repository. No restart or deployment.Validation:
9ab53882e87a9e0a6413f74d8b313ce516721d40: idle parent, quiet delegated child, grandchild streaming every second, unexpected persisted notice at 151 seconds.npx -y pnpm@11.10.0 installsucceeded.npx -y pnpm@11.10.0 exec vp test run apps/server/src/prism/staleTurnMonitor.integration.test.ts apps/server/src/prism/staleTurnDetector.test.ts apps/server/src/prism/streamClock.test.ts: 24 passed across three files.git diff --checkpass. Full-suite proof belongs to CI.Tests use memory-only V2 persistence, deterministic TestClock sweeps and real StreamClock observations. Providers are faked at the external boundary. No browser, server, native client or live-provider session was started; no live userdata access. This server-owned guard applies before the existing shared notice path for all clients and local provider drivers. Remote-environment activity is outside this local StreamClock correction. Website/SEO impact: none, no public site or URL changes.
Requirements and who asked: The user's #341 brief requires descendant-aware stale notices, failing-before focused proof, Sol gpt-6.1-sol and Grok grok-4.7 child reviews with exact-head statuses after comments, green CI and delegated merge.
Deleted: Threshold tuning, new clocks/schemas/messages, UI changes, a design round, version bumps, restart/deployment and blanket hasPendingChildRuns suppression.
Bottleneck: The final notice guard ignored other live attempts; the focused persisted-state reproduction isolates that seam.
Checked myself: Read #341, #269 and PR #279 with their complete discussion, inspected the owning clock/detector/monitor/lineage code and upstream search, observed the red notice and 24 passing focused cases, reviewed the complete task diff.
Implementation: Codex gpt-6.1-sol, medium reasoning, Codex harness.