Skip to content

fix(runtime): honor agent prompt inheritance across roles - #648

Open
cookerpapa wants to merge 1 commit into
HenryLach:mainfrom
cookerpapa:fix/runtime-agent-prompt-loading
Open

cookerpapa wants to merge 1 commit into
HenryLach:mainfrom
cookerpapa:fix/runtime-agent-prompt-loading

Conversation

@cookerpapa

Copy link
Copy Markdown

Closes #619.

Runtime V2 ignores standalone worker/reviewer prompts and sends raw merger Markdown without the bundled instructions.

Move the existing loadAgentDef implementation into a shared module and use it for all three roles. Honor standalone: true, strip frontmatter, compose project guidance, and preserve explicit merger agent-root precedence. Runtime model/tool configuration and execution.ts exports remain compatible.

Resolve bundled files relative to the running package before global-install fallbacks, including Pi-managed npm installations.

Validation:

  • Typecheck, lint, and format checks passed.
  • 103 focused tests passed, including 8 new regression cases.
  • Full suite: 4,105 passed; 5 failed.
  • The same 5 Windows-path failures reproduce on unmodified upstream 293d9a8 on Linux, in execution-path-resolution.test.ts and workspace-config.integration.test.ts.

Tests inspect worker/merger launch options, reviewer prompts, and a simulated Pi-private installation. No live model run was performed.

This branch has not been deployed

No deployments
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.

bug: Runtime V2 ignores standalone prompts and bypasses merger composition

1 participant