feat(FN-3097): wire plugin prompt contributions into execution surfaces
- Add plugin prompt contribution support across executor, triage, reviewer, and heartbeat instruction builders - Thread plugin runner context into execution prompt assembly and preserve source issue commit reference hints - Expand engine tests to cover prompt contribution injection behavior and regression scenarios - Update architecture and plugin authoring docs with prompt surface integration details Fusion-Task-Id: FN-3097
This commit is contained in:
@@ -210,6 +210,18 @@ Concrete references:
|
||||
- `prompt-overrides.ts` defines prompt key catalogs and per-role override validation
|
||||
- Provides override resolution/validation helpers (`resolvePrompt`, `resolveRolePrompts`, `assertValidPromptOverrideMap`)
|
||||
|
||||
### Plugin Prompt Contributions
|
||||
|
||||
- Plugin prompt contributions are filtered per surface through `PluginRunner.getPromptContributionsForSurface(surface)`.
|
||||
- Prompt assembly uses `buildPluginPromptSection(surface, pluginRunner)` in `packages/engine/src/agent-instructions.ts`.
|
||||
- Supported prompt surfaces:
|
||||
- `executor-system`
|
||||
- `executor-task`
|
||||
- `triage`
|
||||
- `reviewer`
|
||||
- `heartbeat`
|
||||
- Integration points append the built plugin section to the role-specific system/task prompt only when contributions exist, preserving existing prompts when no plugins contribute.
|
||||
|
||||
### Agent Permissions
|
||||
|
||||
- `agent-permissions.ts` normalizes permissions and computes effective access state
|
||||
|
||||
Reference in New Issue
Block a user