Skip to content

Document that task.progress does not renew leases - #919

Merged
zlareb1 merged 1 commit into
mainfrom
docs/task-progress-keeps-lease
Nov 18, 2026
Merged

zlareb1 merged 1 commit into
mainfrom
docs/task-progress-keeps-lease

Conversation

@zlareb1

@zlareb1 zlareb1 commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Documentation

Why

task.progress records a note without extending its lease. Its generated summary says that it extends the lease, contradicting the note field and the handler. A caller relying on that summary can let its claim expire while posting progress.

Scope and risk

Correct the handler docstring and regenerate the operations index and task reference with the maintained generator. The handler records the same event and preserves the same lease deadline. SDK tables and MCP listings do not derive their descriptions from this handler docstring.

Compatibility, rollout and rollback

  • Wire and operator steps: none.
  • Reverting restores the incorrect summary; stored data is unaffected.

Tests

  • python -m scripts.codegen.docs_reference regenerated both reference locations; --check passes.
  • Ruff lint and formatting checks pass for the changed Python file.
  • git diff --check passes. An AST comparison confirms that the module is identical after excluding the one changed docstring.
  • No behavior test was added for a documentation correction. Full checks run in GitHub CI before merge.

AI assistance in the code (leave one; writing this description with AI is fine):

  • AI-generated: Codex corrected the source summary and ran the maintained generator. The lease handler and generated diff were checked against the ownership and version-writing paths.

  • I can explain every line of this diff and how it interacts with the rest of Loom.

Checklist

  • Required GitHub CI passes on the current head.
  • Generated references are regenerated by the maintained generator.
  • Documentation describes the current behavior.
  • Commits are signed off.

Progress events preserve the claim deadline. Correct the handler summary and regenerate both operation references so callers use task.heartbeat for renewal.

Signed-off-by: zlareb1 <[email protected]>
@zlareb1
zlareb1 merged commit 2c9ccd4 into main Nov 18, 2026
49 checks passed
@zlareb1 zlareb1 mentioned this pull request Nov 18, 2026
6 tasks done
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