Documentation

Data model

The graph holds Hydra's own nodes and the nodes Hydra copies from each connected source. Each node has a kind, an id and fields. Edges join two nodes with a relation.

An expression reads a node's fields as self.<field> on the node an agent lives on, and as event.subject.<field> on an event's subject. event.old is an Option, so read its fields in a method, as in event.old.map(o => o.<field>). Every kind also has the field id, a String that holds the node id. The syntax is in Expression language. The events that carry a subject are in Events. lives_on in Agent definition takes a kind name from this page.

Names

Hydra's kinds, ids and relations have no prefix. An outside source's kinds, ids and relations start with the source name and /.

NameHydraOutside source
Kindissuelinear/issue
Node idi-abcdefgithub/owner/repo#123
Relationchild-ofgithub/for-issue

An edge has a direction. A pattern writes it from the edge's From node to its To node.

(self)-[child-of]->(parent:issue)
(event.subject)-[github/for-issue]->(self)

The tables below use these types:

  • timestamp is a String in RFC 3339, such as 2026-10-08T12:00:00.000Z.
  • Option[T] is a T or null. A field of this type may be absent. An expression reads null and an absent field as None.
  • An enum lists the strings the field allows, such as "open" | "closed". Hydra reports an error when an expression compares the field with another string.
  • record is an object. A dotted field, such as github.number, is a field of a record field.
  • An expression cannot read a field of type map of String to String.

Hydra

A Hydra node id is a prefix and a random string of letters.

KindId format
issuei-…
patchp-…
documentd-…
sessionc-…
boardj-…
labell-…

issue

FieldTypeDescription
idStringThe issue's id.
org_idStringThe organization's id.
type"bug" | "feature" | "task" | "chore" | "merge-request" | "review-request" | "unknown"The issue's type.
titleStringThe title.
descriptionStringThe description.
statusStringThe key of the issue's status on its board.
board_idStringThe board's id.
board_keyOption[String]The board's key. Hydra leaves the field absent when it cannot read the board.
assigneeOption[Principal]The assignee's username.
assignee_user_idOption[String]The assignee's user id.
archivedBooleanWhether the issue is archived.
versionIntThe issue's version number, which rises with each change to the issue.

patch

FieldTypeDescription
idStringThe patch's id.
org_idStringThe organization's id.
titleStringThe title.
status"open" | "closed" | "merged" | "unknown"The patch's status.
is_automatic_backupBooleanWhether the patch is an automatic backup.
review_summary.countIntThe number of reviews.
review_summary.approvedBooleanWhether a review approved the patch.
review_summary.changes_requestedBooleanWhether a review requested changes.
service_repo_nameStringThe repository name in the form owner/repo.
githubOption[record]The patch's GitHub pull request.
github.ownerStringThe repository owner.
github.repoStringThe repository name.
github.numberIntThe pull request number.
github.head_refOption[String]The head branch.
github.base_refOption[String]The base branch.
github.head_shaOption[String]The head commit.
github.urlOption[String]The URL of the pull request's page.
github.ciOption[record]The CI state of the pull request's head.
github.ci.state"pending" | "success" | "failed" | "unknown"The CI state.
github.ci.head_shaOption[String]The commit the CI state is for.
branch_nameOption[String]The patch's branch.
base_branchOption[String]The branch the patch merges into.
archivedBooleanWhether the patch is archived.
aggregate_review_stateOption["approved" | "changes-requested" | "commented" | "dismissed" | "unknown"]The aggregate review state.
versionIntThe patch's version number, which rises with each change to the patch.

document

FieldTypeDescription
idStringThe document's id.
titleStringThe title.
pathOption[String]The document's path.
archivedBooleanWhether the document is archived.
versionIntThe document's version number, which rises with each change to the document.

session

FieldTypeDescription
idStringThe session's id.
session_idStringThe session's id.
titleOption[String]The title.
agent_nameOption[String]The name of the agent that runs the session.
agent_instanceOption[record]The agent instance that runs the session.
agent_instance.address.actorStringThe agent's name.
agent_instance.incarnationIntThe instance's incarnation.
versionIntThe session's version number, which rises with each change to the session.

board

FieldTypeDescription
idStringThe board's id.
org_idStringThe organization's id.
keyStringThe board's key.
nameStringThe display name.
statusesList[record]The board's statuses in display order.
statuses.keyStringEach status's key.
statuses.labelStringEach status's display name.
statuses.colorStringEach status's color as #rrggbb.
statuses.unblocks_parentsBooleanWhether an issue that enters the status unblocks its parents.
archivedBooleanWhether the board is archived.
description_pathOption[String]The path of the board's description document.
priorityDoubleThe number that boards sort by, in ascending order.
versionIntThe board's version number, which rises with each change to the board.

label

FieldTypeDescription
idStringThe label's id.
label_idStringThe label's id.
nameStringThe name.
colorStringThe color as #rrggbb.
recurseBooleanWhether attaching the label to an issue can also attach it to the issue's descendants.
hiddenBooleanWhether the label is hidden.
versionIntThe label's version number, which rises with each change to the label.

Hydra relations

RelationFromToMeaning
child-ofissueissueThe issue is a child of the target issue.
blocked-onissueissueThe issue waits on the target issue.
related-toissue, sessionissue, sessionThe two nodes are related.
has-patchany kindpatchThe patch belongs to the node.
has-documentany kinddocumentThe document belongs to the node.
has-sessionissuesessionThe issue spawned the session.
spawned-fromsessionany kindThe session was spawned from the target.
refers-tosessionissue, patch, documentThe session wrote the target.
has-labelissue, patch, document, session, boardlabelThe node has the label.

GitHub

KindId format
github/prgithub/<owner>/<repo>#<number>
github/check-rungithub/<owner>/<repo>/check-runs/<id>
github/reviewgithub/<owner>/<repo>#<number>/reviews/<id>
github/statusgithub/<owner>/<repo>/statuses/<sha>/<context>
github/usergithub/users/<id>, where <id> is GitHub's numeric user id

github/pr

FieldTypeDescription
idStringThe node id.
repoStringThe repository name in the form owner/repo.
numberIntThe pull request number.
titleStringThe title.
state"open" | "closed" | "merged"The pull request's state. A draft pull request also has one of these states.
draftBooleanWhether the pull request is a draft.
head_branchStringThe head branch.
base_branchStringThe base branch.
head_shaStringThe head commit.
authorStringThe author's login.
created_attimestampThe time the author opened the pull request.
updated_attimestampThe time the pull request last changed.
merged_atOption[timestamp]The time the pull request was merged.
closed_atOption[timestamp]The time the pull request was closed.
urlOption[String]The URL of the pull request's page.
additionsOption[Int]The number of lines the pull request adds.
deletionsOption[Int]The number of lines the pull request deletes.
files_changedOption[Int]The number of files the pull request changes.

github/check-run

FieldTypeDescription
idStringThe node id.
nameStringThe check's name.
statusStringGitHub's status, such as in_progress.
conclusionOption[String]GitHub's conclusion, such as timed_out.
head_shaStringThe commit the check ran on.
urlOption[String]The URL of the check run's page.

github/review

FieldTypeDescription
idStringThe node id.
stateStringGitHub's state, such as approved or changes_requested.
urlStringThe URL of the review's page.
submitted_atOption[timestamp]The time the reviewer submitted the review. The value is null for a pending review.

github/status

FieldTypeDescription
idStringThe node id.
contextStringThe status's context.
stateStringGitHub's state, such as success or error.
head_shaStringThe commit the status is on.
urlOption[String]The status's target_url from GitHub.

github/user

FieldTypeDescription
idStringThe node id.
loginStringThe login.
avatar_urlOption[String]The URL of the avatar image.
kindStringGitHub's account type, such as user, bot or organization.

GitHub relations

RelationFromToMeaning
github/for-issuegithub/prissueThe pull request's head branch names the Hydra issue.
github/authored-bygithub/prgithub/userThe user opened the pull request.
github/check-ofgithub/check-rungithub/prThe check ran on the pull request.
github/status-ofgithub/statusgithub/prThe pull request's checks listed the status.
github/review-ofgithub/reviewgithub/prThe review is on the pull request.
github/reviewed-bygithub/reviewgithub/userThe user wrote the review.

Check runs and statuses on older commits keep their edge to the pull request.

Linear

Every Linear kind has the id format linear/<uuid>, where <uuid> is Linear's id.

KindId format
linear/issuelinear/<uuid>
linear/projectlinear/<uuid>
linear/commentlinear/<uuid>
linear/userlinear/<uuid>
linear/workflow-statelinear/<uuid>
linear/project-statuslinear/<uuid>

linear/issue

FieldTypeDescription
idStringThe node id.
identifierStringThe issue's key, such as ENG-1.
titleStringThe title.
urlStringThe URL of the issue's page in Linear.
teamStringThe team's key.
stateStringThe team's name for the workflow state.
state_typeStringLinear's type of the state, such as started.
priorityIntThe issue's priority, from 1 (urgent) to 4 (low), or 0 for no priority.
assigneeOption[String]The assignee's name.
assignee_idOption[String]The assignee's uuid.
creatorOption[String]The creator's name.
labelsList[String]The names of the issue's labels.
project_idOption[String]The project's uuid.
parent_idOption[String]The parent issue's uuid.
created_attimestampThe time the issue was created.
updated_attimestampThe time the issue last changed.
completed_atOption[timestamp]The time the issue was completed.
canceled_atOption[timestamp]The time the issue was canceled.
descriptionOption[String]The first 8 KiB of the description.
description_truncatedBooleanWhether Hydra cut the description to 8 KiB.

linear/project

FieldTypeDescription
idStringThe node id.
nameStringThe name.
urlStringThe URL of the project's page in Linear.
stateStringThe name of the project's status.
leadOption[String]The lead's name.
target_dateOption[String]The target date, as YYYY-MM-DD.
teamsList[String]The keys of the project's teams.
created_attimestampThe time the project was created.
updated_attimestampThe time the project last changed.

linear/comment

FieldTypeDescription
idStringThe node id.
issue_idStringThe issue's uuid.
authorOption[String]The author's name.
created_attimestampThe time the author posted the comment.
updated_attimestampThe time the comment last changed.
bodyStringThe first 2 KiB of the body.
truncatedBooleanWhether Hydra cut the body to 2 KiB.
urlOption[String]The URL of the comment in Linear.

linear/user

FieldTypeDescription
idStringThe node id.
nameStringThe name.
avatar_urlOption[String]The URL of the avatar image.
is_hydra_appBooleanWhether Hydra's Linear app acts as this user. The field is present only when its value is true.

linear/workflow-state

FieldTypeDescription
idStringThe node id.
nameStringThe name, such as In Review.
colorOption[String]The color as #rrggbb.

linear/project-status

FieldTypeDescription
idStringThe node id.
nameStringThe name, such as In Progress.
colorOption[String]The color as #rrggbb.

Linear relations

RelationFromToMeaning
linear/child-oflinear/issuelinear/issueThe issue is a sub-issue of the target issue.
linear/in-projectlinear/issuelinear/projectThe issue is in the project.
linear/in-statelinear/issuelinear/workflow-stateThe issue is in the workflow state.
linear/assigned-tolinear/issuelinear/userThe user is the assignee.
linear/created-bylinear/issuelinear/userThe user created the issue.
linear/comment-onlinear/commentlinear/issueThe comment is on the issue.
linear/authored-bylinear/commentlinear/userThe user wrote the comment.
linear/led-bylinear/projectlinear/userThe user leads the project.
linear/has-statuslinear/projectlinear/project-statusThe project has the status.

An edge can point at a user, workflow state or project status that Hydra has not stored yet.

Grafana

KindId format
grafana/alertgrafana/<fingerprint>

grafana/alert

FieldTypeDescription
idStringThe node id.
fingerprintStringGrafana's fingerprint of the alert.
status"firing" | "resolved"The alert's status.
alertnameOption[String]The alert's name.
folderOption[String]The folder of the alert rule.
rule_uidOption[String]The alert rule's uid.
labelsmap of String to StringThe alert's labels.
annotationsmap of String to StringThe alert's annotations, without Grafana's __-wrapped ones.
starts_atStringThe time the alert started, in the form Grafana sent.
ends_atOption[String]The time the alert ended, in the form Grafana sent.
generator_urlOption[String]The URL of the alert rule's page.
silence_urlOption[String]The URL of the page that silences the alert.
dashboard_urlOption[String]The URL of the dashboard's page.
panel_urlOption[String]The URL of the panel's page.
silencedBooleanWhether the alert is silenced.

Grafana alerts have no relations.