Skip to main content

Pack · tracking

tracking.issue

packs/tracking/blocks/issue.yaml

packtracking
2entities
9commands
9events
2views
20refusals
3KPIs

A piece of work or a problem somebody wrote down: opened by a principal, assigned to one, labelled, closed with a resolution and reopened. An issue may become a task (agentic.work) and may be linked to the change requests (agentic.scm.change) that fix it or relate to it. The block holds no text, only the digests of the title and the body.

Depends on​

  • scm.change · pack source-control · 6 references
  • work · layer 5 · 6 references
  • principal · layer 1 · 15 references
  • shared · layer 0 · 3 references

Used by​

Entities​

Issue​

One issue, open or closed.

Identified by issue_id (IssueId).

fieldtypemeaning
titleContent
bodyContent
opened_byPrincipalId
opened_attimestamp
assigneeoptional PrincipalId
labelslist of Label
task_idoptional TaskIdThe task the issue became, when work on it was asked for.
closed_asoptional Resolution

Relations:

  • opener references Principal of principal (one, by opened_by)
  • assigned_to references Principal of principal (one, by assignee)
  • task references Task of work (one, by task_id)
  • links owns IssueLink (many, by issue_id)

Lifecycle of Issue

ClosedOpenclosereopenClosedOpenclosereopen

A link from an issue to a change request.

Identified by link_id (IssueLinkId).

fieldtype
issue_idIssueId
change_request_idChangeRequestId
kindLinkKind
linked_byPrincipalId
linked_attimestamp

Relations:

  • change_request references ChangeRequest of scm.change (one, by change_request_id)
  • linker references Principal of principal (one, by linked_by)

Lifecycle of IssueLink

LinkedUnlinkedunlinkLinkedUnlinkedunlink
Ends in Unlinked.

Commands​

AssignIssue​

Assign an issue to a principal.

Called by: Triager.

fieldtype
issue_idIssueId
assigneePrincipalId
attimestamp
outcomewhenresult
no-such-issue refusedno such IssueIssueNotFound: No issue of this identity exists.
closed refusedstate == ClosedIssueNotOpen: The issue is closed.
unknown-assignee refusedno Principal for assigneeUnknownPrincipal: No principal of this identity is registered.
assignee-retired refusedthe Principal of assignee has state == RetiredPrincipalNotActive: The principal is retired; it takes no new issue.
assignedotherwiseupdates the Issue; emits IssueAssigned

CloseIssue​

Close an issue.

Called by: Triager.

fieldtype
issue_idIssueId
resolutionResolution
attimestamp
outcomewhenresult
no-such-issue refusedno such IssueIssueNotFound: No issue of this identity exists.
closedotherwisemoves the Issue Open → Closed; emits IssueClosed
wrong-state refusedthe Issue is in a state that does not allow itIssueStateConflict: The issue is not in a state this command acts from.

LabelIssue​

Add a label to an issue.

Called by: Reporter, Triager.

fieldtype
issue_idIssueId
labelLabel
attimestamp
outcomewhenresult
no-such-issue refusedno such IssueIssueNotFound: No issue of this identity exists.
labelledotherwiseupdates the Issue; emits IssueLabelled

LinkChangeRequest​

Link an issue to a change request.

Called by: Reporter.

fieldtype
link_idIssueLinkId
issue_idIssueId
change_request_idChangeRequestId
kindLinkKind
linked_byPrincipalId
attimestamp
outcomewhenresult
already-linked refusedthe IssueLink exists alreadyLinkExists: A link of this identity exists.
no-such-issue refusedno Issue for issue_idIssueNotFound: No issue of this identity exists.
unknown-change-request refusedno ChangeRequest for change_request_idUnknownChangeRequest: No change request of this identity exists.
unknown-linker refusedno Principal for linked_byUnknownPrincipal: No principal of this identity is registered.
linkedotherwisecreates a IssueLink in Linked; emits ChangeRequestLinked

OpenIssue​

Open an issue.

Called by: Reporter.

fieldtype
issue_idIssueId
titleContent
bodyContent
opened_byPrincipalId
labelslist of Label
task_idoptional TaskId
attimestamp
outcomewhenresult
already-open refusedthe Issue exists alreadyIssueExists: An issue of this identity exists.
unknown-opener refusedno Principal for opened_byUnknownPrincipal: No principal of this identity is registered.
unknown-task refusedno Task for task_idUnknownTask: No task of this identity exists.
openedotherwisecreates a Issue in Open; emits IssueOpened

ReopenIssue​

Reopen an issue.

Called by: Triager.

fieldtype
issue_idIssueId
attimestamp
outcomewhenresult
no-such-issue refusedno such IssueIssueNotFound: No issue of this identity exists.
reopenedotherwisemoves the Issue Closed → Open; emits IssueReopened
wrong-state refusedthe Issue is in a state that does not allow itIssueStateConflict: The issue is not in a state this command acts from.

SetLabels​

Replace the labels of an issue. Replaces the whole list; this is how a label is taken off.

Called by: Reporter, Triager.

fieldtype
issue_idIssueId
labelslist of Label
attimestamp
outcomewhenresult
no-such-issue refusedno such IssueIssueNotFound: No issue of this identity exists.
setotherwiseupdates the Issue; emits IssueLabelsSet

UnassignIssue​

Take the assignee off an issue.

Called by: Triager.

fieldtype
issue_idIssueId
attimestamp
outcomewhenresult
no-such-issue refusedno such IssueIssueNotFound: No issue of this identity exists.
unassignedotherwiseupdates the Issue; emits IssueUnassigned

UnlinkChangeRequest​

Remove a link from an issue.

Called by: Reporter.

fieldtype
link_idIssueLinkId
attimestamp
outcomewhenresult
no-such-link refusedno such IssueLinkLinkNotFound: No link of this identity exists.
unlinkedotherwisemoves the IssueLink Linked → Unlinked; emits ChangeRequestUnlinked
wrong-state refusedthe IssueLink is in a state that does not allow itLinkStateConflict: The link is already removed.

Events​

eventfieldsemitted by
ChangeRequestLinkedlink_id IssueLinkId, issue_id IssueId, change_request_id ChangeRequestId, kind LinkKind, at timestampLinkChangeRequest
ChangeRequestUnlinkedlink_id IssueLinkId, at timestampUnlinkChangeRequest
IssueAssignedissue_id IssueId, assignee PrincipalId, at timestampAssignIssue
IssueClosedissue_id IssueId, resolution Resolution, at timestampCloseIssue
IssueLabelledissue_id IssueId, label Label, at timestampLabelIssue
IssueLabelsSetissue_id IssueId, labels list of Label, at timestampSetLabels
IssueOpenedissue_id IssueId, opened_by PrincipalId, labels list of Label, task_id optional TaskId, at timestampOpenIssue
IssueReopenedissue_id IssueId, at timestampReopenIssue
IssueUnassignedissue_id IssueId, at timestampUnassignIssue

Views​

viewrowsfields
IssueLinks
Issue links
each IssueLinklink_id IssueLinkId, issue_id IssueId, change_request_id ChangeRequestId, kind LinkKind, linked_by PrincipalId, linked_at timestamp, state State
Issues
Issues
each Issueissue_id IssueId, title Content, body Content, opened_by PrincipalId, opened_at timestamp, assignee optional PrincipalId, labels list of Label, task_id optional TaskId, closed_as optional Resolution, state State

Types​

typeisvalues or fields
IssueIdan identifier or valueuuid
IssueLinkIdan identifier or valueuuid
Label
A short tag that sorts issues, such as defect or area/docs.
an identifier or valuestring
LinkKind
Fixes means merging the change request resolves the issue; RelatesTo is a pointer only.
one ofFixes, RelatesTo
Resolution
Resolved means the work was done or the problem fixed; Declined means it will not be.
one ofResolved, Declined

KPIs​

3 KPIs from the pack's catalogue, packs/tracking/kpis.yaml. A gate must be zero for a variant of an architecture to count.

Completeness​

KPIunitbettergatestatus
fixed_issue_open_after_merge
Issues still open after a change request that fixes them was merged.
How: ChangeRequestLinked events of kind Fixes whose change request has a ChangeRequestMerged while the issue has no later IssueClosed, at the end of the window.
countlower–planned
source: design

Quality​

KPIunitbettergatestatus
issue_close_seconds
Seconds from an issue being opened to it being closed as resolved.
How: Median of IssueClosed time minus IssueOpened time over issues closed with resolution Resolved; declined issues are counted apart.
secondslower–planned
source: design
issue_reopen_share
Share of closed issues that were opened again.
How: Issues with an IssueReopened after an IssueClosed, divided by issues with an IssueClosed. A reopened issue was closed before its work was done.
sharelower–planned
source: design

Settings​

The settings a part of this block carries in an architecture document. agenticspec sim check refuses any other setting (setting_unknown) and a value outside its type (setting_invalid), and a part that lacks a setting marked required in the default column; the contract copies a setting into the ports it narrows. The last rows of each table are the settings every part takes. What no setting here types (a file, a path, an audience, the use of a model) goes into the part's notes, a map with free keys and values that the check takes as written and nothing reads.

A part tracking.issue:

settingtypeunitdefaultcontractwhat
countinteger of at least 11How many copies of the part run.
perpartOne copy of the part for each copy of the named part.
notesnotesFree notes on the part, a map with keys and values of any kind: what no setting of its block types. The check takes any map; the simulator, the search and the contract never read it.