feat(tasks): add <log> append zone and background-mode description gate#898
Merged
Merged
Conversation
Recurring tasks were overwriting their description each fire because the agent kept rewriting <plan>/<outcome> zones (replace semantics) and any update bundling a scheduling field with description still wholesale- replaced the page via setPageContentFromHtml. - Add <log> as a third structured zone with APPEND semantics, alongside <plan>/<outcome> (replace). Server parser, client editor node, and the zone merger all updated. - Add clearLog flag on update_task to wipe <log> only — for the accumulate-daily, send-weekly, clear pattern. - Gate <plan>/<outcome> writes behind isBackgroundExecution: scheduled fires and background runs may only append to <log> (or clearLog). Live chat unchanged. The plan is frozen unless the user is in the loop. - Route updateScheduledTask description writes through upsertPageSection instead of setPageContentFromHtml so scheduling-bundled updates can't obliterate <plan>. - Update capabilities and trigger_context prompts with the new zone model and background restriction. - Add 28 unit tests covering the merger (replace vs append, validation, user-prose preservation) and the background gate (rejection paths, allowed paths, scheduling+description regression). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Recurring tasks were overwriting their description each fire because the agent kept rewriting / zones (replace semantics) and any update bundling a scheduling field with description still wholesale- replaced the page via setPageContentFromHtml.