Skip to content

[deep-report] Fix Design Decision Gate 100% failure — empty prompt when --print flag used #25670

@github-actions

Description

@github-actions

All 10/10 runs of the Design Decision Gate workflow failed on 2026-04-09 with the same root cause: the Claude Code CLI receives an empty prompt when invoked with --print.

Error: Input must be provided either through stdin or as a prompt argument when using --print
ERR_CONFIG: Claude execution failed: no structured log entries were produced.

The failure originates in the prompt construction step that reads from .github/agents/adr-writer.agent.md. An awk command extracts the agent body from the frontmatter, then printf combines it with the activation prompt. A malformed frontmatter or empty agent body produces an empty PROMPT_TEXT.

Expected Impact

Restoring Design Decision Gate will resume automated architectural decision records (ADR) for all PRs. Currently 100% of PR-triggered runs silently fail with no ADR written, creating a gap in architectural documentation.

Suggested Agent

Claude engine — Inspect .github/agents/adr-writer.agent.md for malformed frontmatter, test the awk extraction command locally, and fix the prompt construction step in the workflow.

Estimated Effort

Fast (< 30 min): Read the agent file, identify the frontmatter/awk extraction issue, fix the one-liner.

Data Source

[DeepReport Intelligence Briefing — April 10, 2026] | [Agentic Workflow Audit - April 9, 2026](discussion in audits category) | Run §24194682643

Generated by DeepReport - Intelligence Gathering Agent · ● 368.7K ·

  • expires on Apr 12, 2026, 3:03 PM UTC

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions