Skip to main content

Module emission_shape

Module emission_shape 

Source
Expand description

Emission shapes a coder plugin can produce, surfaced in TaskReply.emission_shape when the newt-coder plugin processed the request.

Downstream consumers (drake-foreman scorecard, audit logs, the pilot dashboard) compare against these constants so the wire-level strings can’t drift between producer and consumer.

The taxonomy is documented in ~/workspaces/knowledge/board/drake/2026-05-29_newt-coder-failure-mode-taxonomy.md.

Constants§

PROSE
No structured emission detected; the model emitted prose only (failure mode T0a in the taxonomy).
UNIFIED_DIFF
A unified diff (fenced or unfenced). Legacy path; useful when a model ignores the whole-file directive but lands a valid hunk.
WHOLE_FILES
One or more FILE: <path>\n<contents>\nEND-FILE blocks — the S5 whole-file-emit strategy’s preferred shape.