Skip to content

docs(agents): align triage state labels - #2809

Closed
elezar wants to merge 1 commit into
mainfrom
codex/update-triage-state-labels
Closed

docs(agents): align triage state labels#2809
elezar wants to merge 1 commit into
mainfrom
codex/update-triage-state-labels

Conversation

@elezar

@elezar elezar commented Aug 19, 2026

Copy link
Copy Markdown
Member

Summary

Align the triage skill with the repository’s state-label workflow and clarify who may change each label.

Related Issue

No issue required: localized agent-workflow documentation correction.

Changes

  • Document the triage, disposition, delegation, and execution state labels.
  • Keep state:accepted and state:agent-ready human-only.
  • Permit triage agents to apply evidence and routing labels only.

Testing

  • mise run markdown:lint passes in ~/.dotfiles/devenvs/openshell.
  • mise run pre-commit passes (blocked because cargo is unavailable in that devenv session).
  • Unit tests added/updated (documentation-only change).
  • E2E tests added/updated (not applicable).

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)

@elezar
elezar requested a review from krishicks August 19, 2026 14:47
@elezar
elezar requested a review from a team as a code owner August 19, 2026 14:47
Signed-off-by: Evan Lezar <elezar@nvidia.com>
@elezar
elezar force-pushed the codex/update-triage-state-labels branch from 46785d7 to d11f351 Compare August 24, 2026 14:49
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown

This pull request has had no activity for 14 days and is now marked stale. It may be closed in 7 days if there is no further activity.

@github-actions github-actions Bot added the state:stale Inactive item at risk of automatic closure. label Sep 8, 2026
@elezar

elezar commented Sep 8, 2026

Copy link
Copy Markdown
Member Author

As per offline discussion. Let's close this and reopen or create a follow-up.

@elezar elezar closed this Sep 8, 2026
@elezar
elezar deleted the codex/update-triage-state-labels branch September 8, 2026 12:24
purp added a commit to purp/OpenShell that referenced this pull request Sep 9, 2026
PR NVIDIA#2524 replaced the `state:*` lifecycle vocabulary with an `agent:*`
namespace whose labels were never created on GitHub. `gh label list`
returns nine `state:*` labels and zero `agent:*` labels, so every gate
referring to the `agent:*` names was unreachable.

This had a live functional consequence beyond documentation drift.
`.github/workflows/stale.yml` exempted five phantom labels and omitted
the four real in-flight states. As of 2026-09-09, 18 open issues carry
`state:stale` while sitting in a state the workflow intends to exempt,
including issues with open PRs and issues mid-implementation. That count
was 17 on 2026-09-02, so the exposure is still growing.

Restore the real vocabulary across the skills, contributor docs, and
the stale workflow, and add `.agents/issue-lifecycle.yaml` as the
canonical machine-readable source of truth. `agent:plan-requested` has
no `state:*` predecessor; queue-mode planning is authorized by
`state:accepted` or roadmap placement, which is what that label already
means. The file records the phantom names under `never_existed` so
future readers recognize stale references instead of treating them as
valid gates.

Document staleness as an orthogonal boundary rather than a lifecycle
state, complete the CONTRIBUTING.md state table from four states to
eight, and add a two-way drift check to `sync-agent-infra` so
documentation and GitHub cannot diverge again unnoticed.

PR NVIDIA#2809 fixed `.agents/skills/triage-issue/SKILL.md` alone and was
closed unmerged on 2026-09-08. This change absorbs that file so the
reconciliation stays complete.

Refs: NVIDIA#2524, NVIDIA#2809, NVIDIA#454
Signed-off-by: Jim Meyer <jimeyer@nvidia.com>
purp added a commit to purp/OpenShell that referenced this pull request Sep 9, 2026
The issue lifecycle was documented only in CONTRIBUTING.md, where it had
grown to roughly 150 lines in the middle of a file that also covers build
prerequisites, Rust cache setup, and CI. Contributors and agents who need
the lifecycle have to read past unrelated material to find it, and there
is no published page to link from an issue comment.

Add a Contributing section to the published docs and move the lifecycle
reference there as `docs/contributing/issue-lifecycle.mdx`. The page adds
two diagrams that the prose could not express: the full state machine
including the delegated states and the `state:needs-info` self-loop, and
staleness as a boundary orthogonal to the lifecycle rather than a state
within it.

Reduce the CONTRIBUTING.md section to a pointer plus the two rules that
come up day to day, and point `sync-agent-infra` at the published page so
the drift check follows the content. CONTRIBUTING.md drops from 517 to
371 lines.

`mise run docs` reports 0 errors, matching the pre-change baseline.

Refs: NVIDIA#2524, NVIDIA#2809
Signed-off-by: Jim Meyer <jim@geekdaily.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

state:stale Inactive item at risk of automatic closure.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant