Skip to content

Add delegated agent workflows and same-chat scheduling - #714

Merged
cfal merged 19 commits into
mainfrom
design-start-agent-and-schedule
Sep 8, 2026
Merged

cfal merged 19 commits into
mainfrom
design-start-agent-and-schedule

Conversation

@cfal

@cfal cfal commented Sep 7, 2026 •

Copy link
Copy Markdown
Owner

let agents delegate work and receive exact-turn results without arranging manual callbacks. add single-child starts and direct-child resume with correlated acknowledgments, optional async-only reporting, transcript snapshots, custom titles, and preamble-free starts while preserving inherited start permissions and project paths. add one-off and recurring scheduling back to the existing chat, with independent command toggles and whole-minute recurrence. existing schedules migrate to version 3 with cadence preserved and a private source backup; server and client now use intervalMinutes instead of intervalHours. pending callbacks remain process-local and are never replayed after restart.

cfal added 11 commits September 7, 2026 23:29
Use one integer-minute contract across HTTP, scheduling, and the editor. Migrate v1/v2 schedules to v3 with exact private source backups and preserved cadence. Cover minute claims, unit conversion, migration, HTTP edits, and restart preservation.
Allow already-recorded outcomes to use private controls without adding a second notice. Validate every control against the current transcript view at dequeue, dropping stale entries without blocking valid successors. Generalize the existing delivery name while preserving inter-agent routing and receipt behavior.
Add strict single-child and schedule envelopes, escaped action bodies, and view-qualified result contracts. Separate delay and recurrence bounds, resolve first-run timing under the scheduler lock, and report uncertain persistence without retrying.
Commit private request evidence before actions, inherit the parent's path and permission for independent children, and persist delegation edges through normal admission. Record typed creation outcomes, identify preamble-retained children, and deliver view-fenced private replies without retries. Reconstruct historical evidence and correlation without replaying actions, with independent settings gates and composed regression coverage.
Add independent start and schedule gates with inherited-authority guidance. Decode scheduled action titles without changing saved prompts, and cover settings persistence and minute scheduling through the browser.
Reject a raw nested opener while scanning envelope attributes. Preserve the outer family boundary so a nested self-closing command cannot expose a later side effect.
Latch controller shutdown permanently and close action admission before asynchronous teardown. Late provider emissions cannot persist work after the scheduler stops.
Exercise child starts and private results through pinned providers, with Cursor covered at its unit-only boundary. Compose ledger publication, minute claims, and ordinary queue or skip admission, including malformed input and shutdown regressions.
Assert that action controllers stop after the server shutdown latch and before queue teardown or the first await. This protects the production ordering independently of controller lifecycle tests.
Track recognized envelope nesting and fence malformed quoted openers so inner closing tags cannot expose later side effects. Preserve independent trailing commands only after a trustworthy outer boundary, with parser and composed scheduling regressions.
Skip comment, CDATA, and processing-instruction contents when recovering malformed command envelopes. Leave unclosed regions and unsupported declarations opaque so embedded closing tags cannot admit nested actions.
@cfal
cfal force-pushed the design-start-agent-and-schedule branch from f5fdc7c to a1b1354 Compare September 7, 2026 23:30
cfal added 6 commits September 8, 2026 00:09
Observe public terminal receipts atomically before retention can remove their output, and retire waiters on cancellation, private rejection, or retry replacement. Centralize sorted multi-chat locking for delegated admission.
Seed fixed transcript snapshots before child publication, persist custom titles before dispatch, and explicitly disable preambles for markup starts. Add cancellation-aware direct-child resume admission using current saved configuration, without exposing configuration overrides.
Expose a default-enabled resume gate under the agent-command master switch, with independent settings UI and complete persisted, HTTP, WebSocket, and browser fixtures.
Add correlated admission and terminal results with optional async-only acknowledgments. Keep resume restricted to direct delegation and current child settings, and wire transcript snapshots, custom titles, and preamble-free starts into the shared command path.

Capture bounded completion before acknowledgment delivery, preserve original correlation on native import, and distinguish confirmed preparation or compensation failures from uncertain admission. Add lifecycle, locking, privacy, and exact-output regressions.
Verify exact acknowledgments and child-turn output through scripted Claude, Codex, Pi, and OpenCode. Cover same- and cross-agent snapshots, delegated resume, title persistence, interruption, deletion, restart callback loss, and native reload correlation without replay.
@cfal cfal changed the title Restore single-child agent starts and add same-chat scheduling Add delegated agent workflows and same-chat scheduling Sep 8, 2026
@cfal
cfal merged commit 5eda962 into main Sep 8, 2026
16 checks passed
@cfal
cfal deleted the design-start-agent-and-schedule branch September 8, 2026 04:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant