メインコンテンツまでスキップ

スキーマリファレンス

Tasq は作成・更新時に、ストア層でエンティティのデータを検証します。このページでは、クライアントが守るべき公開フィールドの制約を要約します。

Issue Tracker Entities

EntityRequired fieldsKey constraints
IssueprojectId, titletitle 1-500 chars、description max 10,000 chars、assignee max 200 chars、immutable project ownership
Artifacttype, dataType, dataValue課題と type の組み合わせごとに 1 件。初期 type の pull_request は data type url。URL は前後の空白を除去し、絶対 HTTP(S) URL、host 必須、userinfo なし、UTF-8 で最大 4,096 bytes
CommentissueId, author, bodybody 1-10,000 chars、type defaults to general
ChangeRequestissueId, author, body本文は 1〜10,000 文字で、open の間だけ編集可能。状態の既定値は open。終端状態では変更不可
AttachmententityType, entityId, fileimage PNG/JPEG/GIF/WebP、max 5 MiB
Projectkey, name, locationkey は大文字始まりの legacy 形式(A-Z, 0-9, _、1-20 文字)または小文字の kebab-case(1-64 文字)— 正確な正規表現は design reference を参照。name 1-200 chars、description max 10,000 chars、absolute location
ProjectWorkflowprojectId, frontmatter, body, checksumone workflow override per project、checksum は SHA256 hex

Orchestrator Entities

EntityRequired fieldsKey constraints
RunissueId, attempt, orchestratorIdrun ID generated、status defaults to queued
RunnerEventrunId, occurredAtpayload JSON must be valid when present
WorkspaceMetadataworkspaceKey, issueId, pathworkspace key max 200 chars、paths must be absolute
WorkspaceSetupFailureissueId, errorrecords setup failure context

Enums

FieldValues
Issue statusbacklog, ready, in_progress, review, done, blocked, failed, cancelled, duplicate
Queue statusbacklog, pending, queued, processing, completed, inactive
Issue prioritylow, normal, high, urgent
Comment typeprogress, blocker, handoff, general
Change request statusopen, in_progress, resolved, canceled
Attachment entity typeissue, comment
Artifact typepull_request
Artifact data typeurl
Run statusqueued, running, succeeded, failed, cancelled

文字列とパスの上限

絶対パスのフィールドは / で始まる必要があります。tq project add などのクライアントは、対象ファイルシステムへアクセスできる場合にローカルディレクトリの存在を確認します。

状態遷移

change request は open から in_progress または canceledin_progress から resolved または canceled へ遷移できます。解決時には orchestrator の実行 ID と、同じ課題に属する結果コメントを記録できます。resolvedcanceled は終端状態です。