Skip to content

feat(tasks): add <log> append zone and background-mode description gate#898

Merged
harshithmullapudi merged 1 commit into
mainfrom
fix/task-description-log-zone-v2
Jun 11, 2026
Merged

feat(tasks): add <log> append zone and background-mode description gate#898
harshithmullapudi merged 1 commit into
mainfrom
fix/task-description-log-zone-v2

Conversation

@saimanoj

@saimanoj saimanoj commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

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.

  • Add as a third structured zone with APPEND semantics, alongside / (replace). Server parser, client editor node, and the zone merger all updated.
  • Add clearLog flag on update_task to wipe only — for the accumulate-daily, send-weekly, clear pattern.
  • Gate / writes behind isBackgroundExecution: scheduled fires and background runs may only append to (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 .
  • 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).

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>
@harshithmullapudi harshithmullapudi merged commit 366bd7a into main Jun 11, 2026
1 check passed
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.

2 participants