Skip to content

Add temporal context to workers#94

Merged
pmbstyle merged 1 commit into
mainfrom
fix/worker-temporal-context
May 15, 2026
Merged

Add temporal context to workers#94
pmbstyle merged 1 commit into
mainfrom
fix/worker-temporal-context

Conversation

@pmbstyle
Copy link
Copy Markdown
Owner

Summary

  • inject current local and UTC date/time into every worker system prompt
  • centralize worker temporal context formatting
  • cover the prompt injection with focused tests

Why

Workers should not need scheduled task text to carry explicit dates just to understand "today", "this morning", or the current weekday. The runtime now gives every worker a consistent temporal context before it starts reasoning.

Validation

  • uv run ruff check src/octopal/runtime/temporal_context.py src/octopal/runtime/workers/agent_worker.py src/octopal/runtime/octo/scheduled_runtime.py tests/test_temporal_context.py tests/test_scheduler_safety.py tests/test_agent_loop_improvements.py
  • uv run pytest tests/test_temporal_context.py tests/test_scheduler_safety.py tests/test_agent_loop_improvements.py tests/test_runtime_mcp_integration.py tests/test_octo_runtime_contracts.py tests/test_worker_child_spawning.py tests/test_parallel_worker_orchestration.py -q

@pmbstyle pmbstyle self-assigned this May 15, 2026
@pmbstyle pmbstyle marked this pull request as ready for review May 15, 2026 11:56
@pmbstyle pmbstyle merged commit f5d0490 into main May 15, 2026
4 checks passed
@pmbstyle pmbstyle deleted the fix/worker-temporal-context branch May 15, 2026 11:59
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