feat(log): add code field to all daw_log/v1 call sites #116

Open
opened 2026-06-03 06:24:49 +02:00 by michael · 0 comments
Owner

Background

daw_log/v1 schema v0.2 introduces a stable machine-readable code field
for log messages. In v0.2 the field is optional to avoid breaking existing
callers. It will become required in a future version.

Goal

Add code field to all existing daw_log/v1 call sites across the DAW
ecosystem. This enables filtering, testing, and UI differentiation by
message code.

Format

code: string, uppercase, underscore-separated
example: PACK_NOT_FOUND, ADAPTER_NOT_AVAILABLE, DEBUG_METRICS

Known call sites (fragjan)

  • core/commands/code.lua -- FAULT calls for loader, validator, runner faults
  • core/commands/article.lua -- FAULT calls for loader, validator, runner faults
  • core/commands/init.lua -- INFO for updates, version
  • core/runner/file.lua -- DEBUG metrics output
  • core/runner/project.lua -- DEBUG metrics output
  • adapters/ui/init.lua -- render_daw_log translator

Other repos to check

  • All repos that have adopted daw_log/v1 since DAW/fragjan v0.3.0

Notes

  • daw_log/v1 schema v0.2: code is optional
  • Future version: code becomes required
  • See docs/standards/daw-log-schema.json
## Background daw_log/v1 schema v0.2 introduces a stable machine-readable `code` field for log messages. In v0.2 the field is optional to avoid breaking existing callers. It will become required in a future version. ## Goal Add `code` field to all existing daw_log/v1 call sites across the DAW ecosystem. This enables filtering, testing, and UI differentiation by message code. ## Format code: string, uppercase, underscore-separated example: PACK_NOT_FOUND, ADAPTER_NOT_AVAILABLE, DEBUG_METRICS ## Known call sites (fragjan) - core/commands/code.lua -- FAULT calls for loader, validator, runner faults - core/commands/article.lua -- FAULT calls for loader, validator, runner faults - core/commands/init.lua -- INFO for updates, version - core/runner/file.lua -- DEBUG metrics output - core/runner/project.lua -- DEBUG metrics output - adapters/ui/init.lua -- render_daw_log translator ## Other repos to check - All repos that have adopted daw_log/v1 since DAW/fragjan v0.3.0 ## Notes - daw_log/v1 schema v0.2: code is optional - Future version: code becomes required - See docs/standards/daw-log-schema.json
michael added this to the Basic Version milestone 2026-06-04 11:29:28 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
DAW/fragjan#116
No description provided.