Skip to content

Housekeeping: forecast task, precontext fixtures, system-message injection #6

Description

Housekeeping — minor issues (low severity)

  1. TaskName omits forecast. Server accepts <task>forecast</task> (src/utils/messaging.ts:106), but TASK_NAMES / the TaskName literal don't include it, so create(task="forecast") isn't typeable. (tasks.forecast() prompt-path still works.) Add for parity.
  2. Fixtures give false confidence on precontext.conftest docstring claims precontext is always {name,result}, but TOOL_CALL has no precontext and the raw-toolcall-in-precontext case is untested (see the strict-validation crash issue). Add a mixed-shape fixture.
  3. task/guard injected as a separate leading system message.prepare() prepends a new {role:"system"}; if the caller already has a system message there are now two. Server extraction reads the first (works today) but is brittle — prefer merging tags into an existing system message.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions