3f3a63c54d
Documents the v4.2.0 release window in Keep-a-Changelog format, including prompt gate fixes, internal audits, known issues, and the watchdog supersession history. Closes LOW-14, LOW-16
4.1 KiB
4.1 KiB
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
4.2.0 - 2026-05-15
Added
createPluginModuletest seam moved out of public API surface tosrc/testing/create-plugin-module.ts. New public exports for the prompt-async-gate primitives:promptAsyncAfterSessionIdle,promptAfterSessionIdle,releasePromptAsyncReservation,DEFAULT_PROMPT_ASYNC_POST_DISPATCH_HOLD_MS,DEFAULT_PROMPT_DISPATCH_TIMEOUT_MS.ParentWakeNotifiermodule (src/features/background-agent/parent-wake-notifier.ts) extracted fromBackgroundManager. Background-agent parent-wake state now lives in its own narrow class with dependency-injected client, directory, and notification enqueue callback.
Changed
prompt-async-gatenow uses a shared internal runner for both sync (prompt) and async (promptAsync) dispatch wrappers, deduplicating the reserve/settle/check/dispatch/hold/release flow.releasePromptAsyncReservationacceptsreservedByPrefixonly when the prefix ends in:(e.g.,model-fallback:), preventing accidental release of sibling reservations whose source merely starts with the same identifier characters.- Version bump from 4.1.2 to 4.2.0. Reason: added public exports for the gate primitives qualify as MINOR per semver. No removals or breaking signature changes.
Fixed
prompt-async-gate: dispatch timeout viaPromise.racewith a default 30s window. Previously a hungpromptAsyncdeadlocked the gate for that sessionID until process restart. (BLOCKER-1)prompt-async-gate: post-dispatch failure now keeps the reservation hold regardless of whetherpromptAsyncresolved or threw. AGENTS.md's documented race window ("returns before durably accepted, later failures arrive assession.error") is now covered. (BLOCKER-2)prompt-async-gate.test.ts: replacedsetTimeout-based synchronization with event-driven patterns to comply with the new.sisyphus/rules/test-discipline.mdrule. (BLOCKER-3)model-suggestion-retry: releases the reservation before the suggested-model retry so the second attempt can dispatch immediately. Without this, BLOCKER-2's post-dispatch hold trapped the retry path.
Internal
prompt-async-route-audit.test.tsmigrated to TypeScript compiler API for AST-based detection. Catches destructuring, bracket access, optional chaining, and type-cast aliasing bypass patterns. Two existing production callers are documented inRAW_PROMPT_ALLOWLISTwith justifications:src/plugin/event.ts(team-idle-wake-hint client facade) andsrc/hooks/session-recovery/recover-unavailable-tool.ts(capability check before gate-routed dispatch). (HIGH-5)- New
mock-module-lifecycle-audit.test.tsenforces cleanup pairing formock.module(...)calls in test files; existing offenders allowlisted with TODO references. (HIGH-10) .sisyphus/rules/test-discipline.mdadded in this release window forbiddingsetTimeout(resolve, N)andawait sleep(N)in test bodies unless time is the SUT. Several CI sharding commits earlier in the window were superseded by removing the sharded runner in favor of the rule.
Known Issues
- Delegated child-session early-failure fallback (BLOCKER-4): PR #3825's
fac90d69fwas reverted by PR #4044 because its own regression test failed on clean rootbun test. The delegate-task fallback bug for empty session history remains unaddressed in v4.2.0. Reland targets v4.2.1 once the regression test is stabilized against post-#4032 schema and the new gate semantics. Seedocs/reference/known-issues.mdfor details and workaround. - First-prompt watchdog supersession history (L16): PR #3952 was superseded by PR #4051 (rebased over #4007/factory refactor with
internallyAbortedSessionsthreading). The supersession represents conflict resolution, not a feature pivot. The final watchdog logic shipped via #4051 +a130fa70dcovers subagent first-prompt silence past 90 seconds with cleanup via session.deleted.