output-api and workflow execution in @outputai/core.
API HTTP request logging
The API server was refactored to remove themorgan dependency and emit richer request logs. The public HTTP API contract is unchanged, but the shape, level, and message of the per-request log lines the server emits are different. This only affects you if you consume output-api logs in an observability tool (Datadog, CloudWatch, Loki, etc.) or match on them in scripts.
Log level now derives from response status
This is the most impactful change. Previously every request was logged at thehttp level regardless of outcome. Now the level is chosen from the response status:
| Status | Level (before) | Level (after) |
|---|---|---|
| 2xx / 3xx | http | http |
| 4xx | http | warn |
| 5xx | http | error |
error or warn will fire on 4xx/5xx HTTP responses that previously logged at http.
The status field was renamed to http.status_code
The structured metadata field carrying the numeric response status changed name. This aligns with Datadog’s standard http.status_code attribute.
The log message changed from a constant to a request summary
Previously the message was the constant string"HTTP request", with all detail in the metadata. Now the message is a human-readable summary and the structured record is still attached as metadata.
responseTime is now an integer
responseTime is now whole milliseconds (measured with Date.now()) rather than a sub-millisecond float.
Before and after
A successful request, before (v0.10.0):http:
error, with the renamed field:
Migration steps
Update alerts and level-based filters
If you alert or filter on winston levels, audit those rules. HTTP 4xx now arrives atwarn and 5xx at error. Decide whether that is what you want:
- To keep alerting only on application errors, scope alerts to exclude HTTP request logs (for example, filter on the presence of
http.status_code). - To alert on failing requests, this is now available directly from the log level with no extra query.
Update queries and facets that reference status
Anywhere you query, facet, or dashboard on the request-log status field, switch to http.status_code.
http.status_code is a standard attribute and maps to the built-in HTTP status facet, so you may be able to drop a custom status facet definition.
Update anything that matches the message string
Scripts, log processors, or saved searches that match the literal message"HTTP request" will no longer match. Match on a structural field instead (for example, the presence of http.status_code or requestId), or update the matcher to the new summary format <METHOD> <URL> <STATUS> <ms>ms.
Adjust responseTime consumers expecting sub-millisecond precision
If a dashboard or aggregation relied on fractional milliseconds in responseTime, note that values are now whole milliseconds.
API logging checklist
- Review winston level-based alerts and filters; 4xx now logs at
warn, 5xx aterror. - Rename
statustohttp.status_codein log queries, facets, and dashboards. - Replace any match on the constant message
"HTTP request"with a structural field or the new summary format. - Confirm
responseTimeconsumers tolerate integer milliseconds.
Workflow runtime changes
This section covers the workflow execution changes in@outputai/core v0.11.0.
What changed
- Steps, evaluators, and shared activities now use one workflow-scoped runtime dispatcher.
- Shared activities are registered as
<workflow-name>#<activity-name>instead of$shared#<activity-name>. - Child workflow invocation options are passed as workflow arguments instead of being propagated through Temporal memo.
- A child workflow’s definition-level
activityOptionsnow override inherited parent options. Invocation-level and step-level options remain more specific.
Before upgrading running workers
The v0.11.0 runtime changes Temporal command attributes:- A shared activity previously scheduled as
$shared#send_eventis now scheduled aslead_enrichment#send_event. - A child workflow is now started with its invocation-level activity options in its argument payload instead of inherited through memo.
Choose a safe rollout strategy
Use one of these strategies before changing the worker version:- Drain the existing task queue. Stop starting new workflows on the v0.10.x queue, wait for affected executions to complete, and then replace the worker.
- Move v0.11.0 to a new task queue. Keep the v0.10.x worker serving its existing queue while new executions are routed to a separate v0.11.0 queue.
- Restart affected executions. If an execution can be safely terminated and restarted from its original input or a checkpoint, restart it after the v0.11.0 cutover.
Update activity-type consumers
Update dashboards, alerts, history processors, and scripts that match the old$shared activity prefix.
Before
After
Shared and local activities use the same workflow namespace. Match the full workflow activity type when possible:Review child workflow activity options
Activity options are merged from broad defaults to specific overrides. v0.11.0 changes the relative precedence of inherited parent options and the child workflow’s definition.v0.10.x precedence
- Output’s default activity options
- The child workflow’s definition-level
options.activityOptions - Activity options inherited from the parent workflow
- The
activityOptionspassed to this child invocation - The called step’s own
options.activityOptions
v0.11.0 precedence
- Output’s default activity options
- Activity options inherited from the parent workflow
- The child workflow’s definition-level
options.activityOptions - The
activityOptionspassed to this child invocation - The called step’s own
options.activityOptions
maximumAttempts: 8, the child used 8 attempts in v0.10.x. In v0.11.0, the child uses 2 attempts.
Preserve a parent-selected override
Pass the policy on the child invocation when the parent must override the child’s definition:Step-level
options.activityOptions still have final precedence. Review step definitions as well as parent and child workflow definitions when calculating the effective policy.Workflow runtime checklist
- Inventory open v0.10.x executions that call shared activities or child workflows.
- Drain the old task queue, keep a v0.10.x worker for old executions, or restart affected executions before the cutover.
- Do not run v0.10.x and v0.11.0 workers on the same Temporal task queue.
- Update dashboards and history tooling that match
$shared#<activity-name>. - Audit parent and child workflows that configure the same retry or timeout fields.
- Pass
activityOptionson child invocations where the parent must override the child’s definition. - Update tests that assert inherited parent options override child definition options.