Skip to content

Feature: template interpolation in route config session_key #120

Open

Description

@warren-t-c

When routing events to actors, we need per-resource session isolation — e.g., different sessions for each PR or issue number. Currently session_key in route config is passed as a static string to the target connector.

Request: Support {{path.to.field}} interpolation in session_key (and potentially other route config fields) using event data (payload.*, provenance.*).

Example:

then:
  actor: burke
  config:
    session_key: "orgloop:github:pr:{{payload.pull_request.number}}"

Current workaround: Patching @orgloop/connector-openclaw/dist/target.js locally to add a simple regex-based interpolator. Works but fragile across upgrades.

Why this matters: Without per-resource session keys, all events for the same route type go to one session. Two concurrent PRs being reviewed collide in the same session context. This is the #1 scaling blocker for autonomous dev pipelines.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions