Skip to content

feat: chore(prompts): formalize cross-prompt contract registry for develop + research machines - #323

Closed
canesin wants to merge 4 commits into
devfrom
feat/chore-prompts-formalize-cross_GH_322
Closed

feat: chore(prompts): formalize cross-prompt contract registry for develop + research machines#323
canesin wants to merge 4 commits into
devfrom
feat/chore-prompts-formalize-cross_GH_322

Conversation

@canesin

@canesin canesin commented Apr 11, 2026

Copy link
Copy Markdown
Owner

#322: chore(prompts): formalize cross-prompt contract registry for develop + research machines

Metadata

Problem

Prompt builders in the develop and research workflows use independent string literals to define section headings (e.g. Required sections (in order): ... in plan-review.machine.js). Consumer machines like implementation.machine.js hardcode these identical names when instructing the agent on what sections to process (e.g. Step 1: Address Critique). Because these lists are disconnected, renaming or adding a section in a producer prompt can silently break the consumer, causing the agent to skip sections. Additionally, hardcoded parsers (parsePlanVerdict, parseReviewVerdict) break silently or fall back incorrectly if the heading names they search for change. There is currently no shared source of truth enforcing that producer headings, consumer instructions, and parser regexes stay in sync.

Closes #322

canesin added 4 commits March 31, 2026 19:47
* chore(wip): checkpoint [skip ci]

* fix: use login shell in runShellSync fallback for full user PATH

Change bash -c to bash -lc in the runShellSync fallback path so that
user profile additions (go, cargo, etc.) are available when the MCP
server runs from a non-login context (systemd, VS Code, Claude Code).

Closes #306

* fix: pre-review cleanup — correct cmd field to match -lc flag
@canesin

canesin commented Apr 11, 2026

Copy link
Copy Markdown
Owner Author

Closing to redo from current dev — rebase conflicts with #321 were too entangled to preserve cleanly. Will reopen a fresh PR on a new branch.

@canesin canesin closed this Apr 11, 2026
@canesin
canesin deleted the feat/chore-prompts-formalize-cross_GH_322 branch April 11, 2026 07:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore(prompts): formalize cross-prompt contract registry for develop + research machines

1 participant