Repository navigation
feat(intake-triage): set the Issue Type and clear the triage floor - #741
Conversation
A run that was not escalated sets the Issue Type it named from the repository's enabled types and reads it back. When the type took and exactly one priority label and no status or security label was applied, it removes the floor label (new input floor-label, default needs-triage). Refs: #662 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Claude finished @kyle-sexton's task in 6m 5s —— View job Code review complete
Scope: this is the code-review lane; Finding (posted inline)One correctness finding, confirmed by independent verification, posted as an inline comment on The Other things checked, no issues found
|
|
Claude finished @kyle-sexton's task in 4m 23s —— View job Security review (
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5055c36e5c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
claude-security-review has reviewed this pull request through 02c0fa2; a later push is reviewed from there. |
|
claude-review has reviewed this pull request through 02c0fa2; a later push is reviewed from there. |
An escalated run whose triage was usable (clean, no permission denial, a type named) now sets the Issue Type, posts a proposed work class in its note, and removes the floor label, since needs-human replaces it. Without a usable triage the floor stays. Admission labels (agent-ready, work-class:) can never be applied, whatever the caller allows, and a floor label the run applied itself is never removed. Refs: #662 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Claude finished @kyle-sexton's task in 4m 16s —— View job Code review complete
Scope: incremental review of HEAD FindingsNone. I traced the new README.md's updated paragraph matches the implemented behavior (usable-triage definition, floor removal on escalation-or-single-priority, No Not independently verified: I could not run Out of scope here (already raised on this PR, on unchanged lines): the |
|
Claude finished @kyle-sexton's task in 3m 45s —— View job Security review (
|
An enabled Issue Type named none (any case or padding) is dropped at compose time so it cannot be mistaken for the no-type sentinel. The lane now owns the floor label: after any run that ran, it removes it from a routed triage and otherwise adds it if missing, so the result no longer depends on which workflow finishes first. The floor labeler reads live labels instead of the opened payload, falls back to the payload when that read fails, and skips an issue already routed to a person. A floor label that is an admission label fails compose; one missing from the repository turns floor handling off. Formats the test files with Biome. Refs: #662 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Claude finished @kyle-sexton's task in 5m 57s —— View job Code review complete
Scope: incremental review of HEAD Finding (posted inline)One correctness finding, confirmed by independent verification, posted inline on
Other things checked, no issues found
No |
|
Claude finished @kyle-sexton's task in 5m 11s —— View job Security review (
|
addLabels creates an unknown label, so the lane now fetches the floor label right before adding it and skips with a warning on a 404, the same fail-closed check intake-label-needs-triage uses. The summary reports the floor as removed only after a remove that succeeded, not after a swallowed 404. Refs: #662 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Claude finished @kyle-sexton's task in 1m 19s —— View job Security review (
|
|
Claude finished @kyle-sexton's task in 1m 44s —— View job Code review complete
Scope: incremental review of HEAD
FindingsNone. I traced both changed branches in
Both new tests exercise exactly the previously-missing cases: No other lines changed in this increment, and no new injection, correctness, or test-gap issues found. |
No related issue: runner-policy contract for ci-workflows v0.42.0 (ci-workflows#741) ## Summary Lets callers pin the intake lanes at ci-workflows v0.42.0, where the triage lane sets the Issue Type and clears the `needs-triage` floor (melodic-software/ci-workflows#741). ## Fix `components/runner-policy/policy.json` gains two contracts at `182aca3ad32b79fd002def94e58eb498ac49e7af` (v0.42.0), each its v0.39.8 entry plus the one new input: | Reusable | New input (default) | Secrets | Caller permissions | | --- | --- | --- | --- | | `intake-triage.yml` | `floor-label` (`needs-triage`) | `CLAUDE_CODE_OAUTH_TOKEN`, unchanged | `contents: read`, `issues: write`, unchanged | | `intake-label-needs-triage.yml` | `human-label` (`needs-human`) | none, unchanged | `issues: write`, unchanged | `claude-args` exists on `intake-triage.yml` at both tags but stays out of `allowedInputs`, matching the v0.39.8 entry. The README gains a rollout note, and `runner-policy.test.mjs` asserts each v0.42.0 entry is its v0.39.8 entry plus that input and that exactly two v0.42.0 keys exist. `fixtures/historical-contracts.json` is unchanged: it holds retired contracts only. ## Verification - Parsed `on.workflow_call` (inputs, secrets), workflow `permissions` and job `permissions` of both files at `594987a` (v0.39.8) and `182aca3` (v0.42.0): only the two inputs differ. The new steps use the job's existing `github.token`; no `uses:`, secret or permission is added. - `npm run test:runner-policy`: 301/301 pass. - `npm run lint:runner-policy`: "Runner policy passed." - lefthook pre-commit (typos, editorconfig, markdownlint, gitleaks, biome): pass. ## Related - melodic-software/ci-workflows#741 - Precedent: #762 (v0.39.8 contracts) - Consumer repin: melodic-software/claude-code-plugins (draft, follows) 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01W6SjPvY7DmXBGzboeCq8nj --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
Refs: #662
Summary
The intake-triage lane now sets the native Issue Type and takes a triaged
issue off the
needs-triagefloor, so it stops reading as raw intake. Anescalation now routes to a person through
needs-humanwith a proposed workclass, not through the floor.
Fix
live
work-class:labels, and addstypeandproposed_classenums (eachplus
none) to the output schema and the prompt. If the types cannot beread,
typeis left out and the floor stays.named one of the Issue Types. Apply then sets the type through
updateIssue(issueTypeId)and reads it back. GitHub's docs say a typechange made without push access is dropped silently, so a type that did
not take logs a warning and keeps the floor.
floor-labelinput (defaultneeds-triage; empty turns removal off) if:needs-humanreplaces the floor and the fixednote gains a
Proposed work class:line (apply-outcome.md, "Lane barredfrom recording a class"); or
priority:label, and appliedno
status:orarea: securitylabel.floor stays. After any run that is not routed, the lane adds the floor if
it is missing. A floor label that does not exist in the repository turns
floor handling off, and one that is an admission label fails compose.
none(in any case, with or withoutpadding) is dropped at compose time, so it cannot collide with the
no-type sentinel.
intake-label-needs-triage.ymlnow reads the issue's live labels insteadof the
openedpayload, falling back to the payload if that read fails.It also skips an issue that carries the new
human-labelinput (defaultneeds-human). A run that lands late no longer re-adds a floor the laneremoved.
agent-readyor awork-class:label. Composeremoves both from
allowed-labelsand fails ifescalation-labelis oneof them. The autonomy admission policy forbids any agent-writable surface
from supplying the admission work class.
contents: read,issues: write), and themodel gets no write path.
Verification
node --test .github/scripts/*.test.cjs: 366 pass, including the newintake-label-needs-triage.test.cjs. The sentinel test and the twolate-labeler tests fail against 5243c96.
biome cion.github/scriptswith the fixture config: no errors.which kept the floor on every escalation.
report-lane-outcometests: 21 pass.actionlint,zizmor --offline,markdownlint-cli2andtyposreportnothing on the changed files.
fixes are in:
comment is corrected, and a failed label write has a test. Two are open:
work-items:escalationmarker,so attend-queue does not read the proposed class yet.
GITHUB_TOKENcan set an IssueType with
contents: read. The first run's summary lineIssue Type:answers it.
Related
release-tag.yml, a standards runner-policy contractfor the new SHA (
allowedInputsmay addfloor-label), and a callerrepin in claude-code-plugins.
🤖 Generated with Claude Code