Skip to content

Support function-based workflow harness template while preserving behavior#291

Merged
tbrandenburg merged 4 commits intomainfrom
codex/incorporate-new-workflow-bash-template
Mar 14, 2026
Merged

Support function-based workflow harness template while preserving behavior#291
tbrandenburg merged 4 commits intomainfrom
codex/incorporate-new-workflow-bash-template

Conversation

@tbrandenburg
Copy link
Owner

Motivation

  • Make the harness-generation prompt contract explicit about supporting function-wrapped step implementations while ensuring safety and existing semantics are preserved.

Description

  • Added a run_agent() helper contract to the WORKFLOW_TO_HARNESS_PROMPT_TEMPLATE.md to define prompt piping and CLI invocation semantics for type: agent steps.
  • Added an optional catch() hook description for centralized failure logging/recovery behavior and its expected semantics.
  • Documented that wrapper functions (for example step1(), step2()) are allowed provided they preserve execution order, dry-run semantics, prompt delivery, and non-zero exit status behavior.
  • Updated the template guidance around step structure and behavior-preservation requirements so generated scripts remain deterministic and safe.

Testing

  • Ran frontend unit tests for the harness prompt rendering with npm --prefix packages/frontend run test -- --run src/utils/workflowHarnessPrompt.test.ts and the test suite passed.

Codex Task

@vercel
Copy link

vercel bot commented Mar 14, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
made Ready Ready Preview, Comment Mar 14, 2026 7:39pm

@tbrandenburg tbrandenburg merged commit 766dbd9 into main Mar 14, 2026
8 checks passed
@tbrandenburg tbrandenburg deleted the codex/incorporate-new-workflow-bash-template branch March 14, 2026 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant