agent-orchestrator/packages/plugins/scm-github/test
Harsh Batheja 058b3bdf14 feat(pipeline): v1.2 — command executor + builtin router + builtin compose
Adds three new stage executor kinds to the pipeline engine:

- `command`: shell-based stages parsed via stdout JSON/JSONL. Refuses
  fork PRs unless the stage opts in via Stage.allowFork; the refusal is
  surfaced as a STAGE_FAILED with the documented message. Not
  talk-to-able (per locked decision 10).
- `builtin/router`: replaces the original SEND_TO_AGENT reducer command;
  reads upstream findings, formats a payload, and delivers it to a
  target session via BuiltinTaskContext.sendToSession.
- `builtin/compose`: merges findings from multiple upstream stages into
  a single composite json artifact for downstream consumption.

Other surface changes:
- PRInfo gains `isFromFork: boolean`; scm-github and scm-gitlab populate
  it from `isCrossRepository` / source-vs-target project ids.
- Stage gains optional `allowFork` flag.
- New BuiltinTaskContext interface exposes only the capabilities
  builtins need (readSiblingArtifacts, sendToSession).
- Shared findings-parser extracted from agent.ts so command + agent
  stages validate ArtifactInput records the same way.
- Engine dispatches START_STAGE by executor kind; missing
  command/builtin executors fail the stage with a clear error rather
  than hanging.

Closes #1631
2026-05-16 23:00:56 +05:30
..
graphql-batch.integration.test.ts feat(core): opt-in gh CLI tracer + scm/tracker migration (Phase A1a) (#1238) 2026-04-25 18:57:04 +05:30
graphql-batch.test.ts fix(scm-github): silence HTTP 304 warnings in ETag guards (#1581) 2026-05-03 18:30:27 +05:30
index.test.ts feat(pipeline): v1.2 — command executor + builtin router + builtin compose 2026-05-16 23:00:56 +05:30