Skip to content

fix(work-items): escalate an unread body edit time once instead of refusing every cycle - #11662

Merged
kyle-sexton merged 2 commits into
mainfrom
work-resolve-issue/issue-7240-41225301302-1
Oct 31, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
work-resolve-issue/issue-7240-41225301302-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Refs: #7240

Summary

Opened by the work-resolve-issue lane. The run's own summary:

Built the recorded decision (2026-10-13, restated 2026-10-31): when label-provenance cannot read an item's body edit time (body_edit.after_admission null), the work-loop now escalates the item once to human attention, as it already did for a body edited after admission, instead of refusing it again every cycle. The escalation names the read as unavailable, quotes body_edit.reason, and says relabeling does not clear it. label-provenance.sh still refuses on a failed read and gains no REST source, because GitHub's issue event types list no body-edit event. The review found that a cloud session never reaches this check: the GitHub adapter's list-items (used by list-frontier) exits 3 in a remote session (list-items.sh:43, wit_require_graphql_session), so the cycle aborts at the frontier read first. The new rule covers any failed edit-time read, and the docs no longer claim it fixes cloud admission.

Remaining work

  • A cloud session still never reaches label-provenance. The GitHub adapter's list-items, behind list-frontier, exits 3 without GraphQL (list-items.sh:43), so the cycle aborts at the frontier read. Admitting or escalating items in a cloud session waits on a REST frontier read (#7219)

Not verified

  • label-provenance.test.sh and the plugin's other test suites were not run: the lane runs only the named wrappers. label-provenance.sh changed only in comments; left to the PR's CI
  • Tidy ran passes 1-4 with no edits. Pass 5 (ai-slop) was only a manual rubric read, because the lane cannot run the ai-slop detector script. The review fixes landed after tidy and were not tidied again
  • Evals were not executed (no eval runner in this lane); case 37 passed only the static evals-quality check
  • The CI-only checks check-affected lists (evals-schema, cant-fail-scan, line-citations, purged-em-dashes and the rest) are left to the PR's CI

Fix

  • plugins/work-items/skills/work-loop/SKILL.md: labeler precondition escalates once a refusal only on the body edit time (edited after admission or unread), adds the cycle-report line 'body edit: #<item> (<reason>) -> escalated', and names the human remedy for each cause
  • plugins/work-items/tools/work-item-tracker/CONTRACT.md: label-provenance cites the GitHub issue event types page (no body-edit event; renamed covers only the title) with an as-of date and recheck trigger, and says the work-loop escalates an unread edit time once
  • plugins/work-items/tools/work-item-tracker/adapters/github/label-provenance.sh: comments only. Cites the event-types page, notes the once-only escalation, and corrects the header's description of a failed edit-time read. No behavior change
  • plugins/work-items/reference/agent-brief.md: splits the human remedy: relabel admits an edited body; an unread edit time needs a run where the read succeeds or attended work
  • plugins/work-items/reference/work-class-labels.md: notes that a refusal only on the body edit time is escalated once
  • plugins/work-items/skills/work-loop/evals/evals.json: new case 37, an unread edit time (HTTP 502) that is escalated once with the reason and a report line, not dispatched or refused each cycle
  • .changes/work-items/work-resolve-issue-issue-7240-5d2b8e41.md: new patch changelog fragment (written by hand because new-changelog-fragment refuses a detached HEAD)

Verification

The runner ran each check from the base copy against 694eed9:

  • scripts/check-changelog-fragments.sh --check: passed

The run reports:

  • read https: //docs.github.com/en/rest/using-the-rest-api/issue-event-types: both halves read; no event covers an issue body edit; renamed is 'The issue or pull request title was changed.'
  • read https: //code.claude.com/docs/en/cloud-environments: the GitHub proxy rejects GraphQL with a 403 'GitHub GraphQL is not available from Claude Code sessions' (used to confirm the cloud premise; the claim was then removed from the docs because cloud never reaches label-provenance)
  • check-changelog-fragments: all 11 fragments valid (run before and after the review fixes)
  • check-affected: 12 passed, 6 skipped, over 7 changed files
  • check-evals-quality plugins/work-items/skills/work-loop/evals/evals.json: PASS; 4 warnings, all on older cases (ids 2, 29, 30), none on case 37
  • Fresh-context review subagent over the whole diff: 7 findings (1 high, 1 medium, 5 low); all fixed except the cloud frontier abort, which is outside this issue (see remaining)
  • Grep confirmed list-items.sh:43 calls wit_require_graphql_session, which exits 3 in a remote session (common.sh:141-143)
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/41225301302

Left out: the items under Not verified.

Related

#7240

Lane-Activity: work-resolve-issue/resolve-issue
@github-actions

github-actions Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed ca60de9c9de10aa48e0906e3ae2075c42c006c22: 0 finding(s), 0 as inline comments.

Incremental review of the change since 694eed9, covering SKILL.md and the new reference/body-edit-escalation.md. I found no issues.

The change moves the body edit-time escalation paragraph out of SKILL.md into a reference file, leaving a one-line pointer. I compared the removed text with the new file. The two label-provenance cases are unchanged: after_admission true and null. The cycle-report line body edit: #<item> (<body_edit.reason>) -> escalated is unchanged. The per-cause remedies are unchanged. The CONTRACT.md pointer is kept. The link reference/body-edit-escalation.md resolves to the added file, which sits beside the other reference/*.md files. The earlier SKILL.md phrase "the body edit-time escalation below" still points at the retained pointer sentence. I read the diff and the files with Glob and Grep. I did not run any tests or checks.

The changes before 694eed9 were reviewed in the earlier pass and are not re-reviewed here.

No cost or critical-security hold applies.

@github-actions

github-actions Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed ca60de9c9de10aa48e0906e3ae2075c42c006c22: 0 finding(s), 0 as inline comments.

Incremental security review of ca60de9 (changes since 694eed9) found no security issues.

The change moves the body edit-time escalation prose out of plugins/work-items/skills/work-loop/SKILL.md into a new plugins/work-items/skills/work-loop/reference/body-edit-escalation.md. SKILL.md keeps a pointer to the new file.

Instruction-surface lens. I compared each rule removed from SKILL.md with the new reference file. All of them are preserved:

  • A candidate refused only on its body edit time is still escalated once (kind=escalated) and not refused again each cycle.
  • Both qualifying cases remain: an edit after admission (after_admission true) and an unreadable edit time (after_admission null).
  • The cycle-report line body edit: #<item> (<body_edit.reason>) -> escalated is unchanged.
  • For an edit after admission, a person with write access still reads the body and re-applies the label.
  • For an unreadable edit time, re-applying the label still does not clear the refusal. The question still quotes the reason and asks for a rerun where the read succeeds, or for attended work through /work-items:work.
  • The adjacent SKILL.md text "A refusal is not progress and does not reset the no-progress streak" is untouched.

The change compresses and relocates the text without changing what it forbids or permits, so it is not a deletion or softening of a standing instruction. I did not read the instruction exception register, because nothing was removed that needed checking against it.

Other checks.

  • The new file is prose only. It adds no executable code, no manifest change, and no change to a workflow, token, trusted-actor list or merge hold.
  • The SKILL.md pointer is a relative link to the file the diff adds. The CONTRACT.md pointer is unchanged.
  • A trusted-path match alone is not a finding.

Spend: none. This is a documentation change.

manifest fields: not hit.
critical-findings: 0

@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 31, 2026
Merged via the queue into main with commit 3719433 Oct 31, 2026
40 checks passed
@kyle-sexton
kyle-sexton deleted the work-resolve-issue/issue-7240-41225301302-1 branch October 31, 2026 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant