ts.rtl.lineage

Walk the version chain for a ritual (oldest to newest).

Walk the version chain for a ritual (oldest to newest).

Requires authentication

Description

Traces the lineage of a ritual by walking the predecessor chain.

Returns an ordered list of rituals from the oldest ancestor to the given ritual. This shows how a methodology prompt has evolved over time through forks.

Parameters

NameTypeRequiredDefaultDescription
idstringYesRitual ID to trace lineage from

Response

Returns the lineage chain as an ordered list (oldest first).

{
  "lineage": [
    {
      "created_at": "2026-02-09T10:00:00Z",
      "id": "rtl_a1b2c3d4e5f6...",
      "name": "Daily standup",
      "origin": "custom"
    },
    {
      "created_at": "2026-02-09T12:00:00Z",
      "id": "rtl_b2c3d4e5f6a1...",
      "name": "Daily standup v2",
      "origin": "fork"
    }
  ]
}

Errors

CodeDescription
not_authenticatedNo active login for this session
not_foundRitual with this ID does not exist

Examples

Trace ritual lineage

See the full version history of a forked ritual.

Request:

{
  "id": "rtl_b2c3d4e5f6a1..."
}

Response:

{
  "lineage": [
    {
      "id": "rtl_a1b2c3d4e5f6...",
      "name": "Daily standup",
      "origin": "custom"
    },
    {
      "id": "rtl_b2c3d4e5f6a1...",
      "name": "Daily standup v2",
      "origin": "fork"
    }
  ]
}