Skip to content

chore: release - merge dev into main#1419

Merged
zbigniewsobiecki merged 4 commits into
mainfrom
dev
Jun 22, 2026
Merged

chore: release - merge dev into main#1419
zbigniewsobiecki merged 4 commits into
mainfrom
dev

Conversation

@zbigniewsobiecki

Copy link
Copy Markdown
Member

Release: merge dev into main. Includes the optional-PM-provider fix (SCM-only projects with no PM provider) plus prior dev commits. (Created manually — the release workflow's gh pr create choked on a double-quote in a commit headline.)

aaight and others added 4 commits June 22, 2026 12:39
Co-authored-by: Cascade Bot <bot@cascade.dev>
…ting to Trello

A project configured with only an SCM (GitHub) integration and no PM provider was
silently treated as Trello: the DB→config mapper defaulted pm.type to 'trello'
when no PM integration row existed (and the schema + registry re-applied that
default). Every SCM trigger (review, respond-to-review, check-suite-*,
respond-to-pr-comment) then failed dispatch trying to load a Trello credential
that does not exist:

  Integration credential 'pm/trello/api_key' not found for project '<id>'

Make the PM provider optional end-to-end:

- schema: `pm` is optional with no Trello default (src/config/schema.ts).
- config mapper: derive pm.type only from a present trello/jira/linear
  integration; leave `pm` undefined for SCM-only projects
  (src/db/repositories/configMapper.ts).
- registry: createProvider returns a new NO_PM_PROVIDER sentinel (and
  resolveLifecycleConfig an empty config) when pm is undefined — never a phantom
  Trello provider (src/pm/registry.ts, src/pm/no-pm-provider.ts). withPMProvider
  requires a non-null PMProvider, so a no-op sentinel keeps every call site
  type-safe; its PM operations throw loudly if ever reached.
- propagate the optional type through router config, prompt context, friction
  types, and the worker env (CASCADE_PM_TYPE is omitted for SCM-only projects).

withPMCredentials already short-circuits on an undefined pmType, and the capacity
gate only runs for PM status-changed dispatch, so SCM triggers are unaffected.
Genuine Trello/JIRA/Linear projects keep pm.type exactly as before.

Tests: NO_PM_PROVIDER + registry no-op, configMapper/schema leave pm undefined,
github adapter dispatches an SCM-only project with withPMCredentials(undefined),
plus updates to the previously trello-defaulting tests.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Address review: the SCM-only sentinel is truthy, so buildPromptContext still
used it for workItemUrl and terminology — and NO_PM_PROVIDER.getWorkItemUrl()
throws synchronously, boot-failing an SCM-only run that carries a workItemId
(e.g. a stale pr_work_items row or a manual/retry path) before the agent runs.

Normalize the sentinel to null once and use that value for workItemUrl,
terminology, and pmType. Adds a regression test that buildPromptContext with
NO_PM_PROVIDER in scope + a workItemId does not throw.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…ovider

fix(pm): support SCM-only projects (no PM provider) instead of defaulting to Trello
@zbigniewsobiecki zbigniewsobiecki merged commit cbc565c into main Jun 22, 2026
15 of 16 checks passed
@codecov

codecov Bot commented Jun 22, 2026

Copy link
Copy Markdown

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.

2 participants