Skip to content

feat(work-items): configure lane workflows, the lane-record contract and the label-as-code owner - #17424

Merged
kyle-sexton merged 7 commits into
mainfrom
fix/17208-work-items-org-agnostic
Nov 19, 2026
Merged

kyle-sexton merged 7 commits into
mainfrom
fix/17208-work-items-org-agnostic

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

Refs: #17208

Summary

The work-items plugin shipped this organization's values: a fixed list of lane workflow files in
/work-items:morning-brief, links to ci-workflows files for the lane-outcome record, and the
github-iac repository as the label-as-code owner. Each one is now a setting with a neutral
default. This repository sets its
current values in docs/conventions/work-items.yaml, so the brief and the lanes behave here as
they did before.

Fix

  • morning_brief.lane_workflows (list) is read through the brief's existing settings resolution
    (config_value in morning-brief.sh: flag, then work-items.local.yaml, then
    work-items.yaml, then default). When set, the Lanes section reads the listed files that exist
    in the target repo, which is the old default's filter. When unset, it reads every workflow whose
    file uses anthropics/claude-code-action or claude-code-base-action, with one contents read
    per workflow file. A workflow the list marks deleted, or whose file read answers 404 (gone
    from the default branch, or only on another branch), is not a lane. Any other failed read makes
    the section UNREADABLE. --lane-workflows
    still pins a set. The setting stays off the Cost section's settings: line.
  • morning_brief.lane_outcome_contract_ref (list): when set, the brief prints these pointers
    under the Lanes heading. When unset, it prints nothing, and SKILL.md lists the record fields the
    brief reads in place of the ci-workflows links.
  • label_as_code_repo: a top-level repository-layer key, read from the repository root with
    bash "<plugin-root>/skills/triage/scripts/parse-concern-value.sh", as ai_disclaimer's
    repository layer is (reference/ai-disclaimer.md). The Escalation step of
    reference/capability-tier-labels.md routes label provisioning to it instead of naming
    melodic-software/github-iac. Absent means no owner is declared.
  • reference/label-taxonomy.md defines a "declared label-as-code owner" as this key, so the word
    has one definition across the plugin. Every place that chooses between routing to the owner
    and creating a label now reads the key:
    • the Migration step of capability-tier-labels.md;
    • the schedule-label step and the provenance-label step of setup/SKILL.md;
    • the provenance and capability-tier rows of setup/reference/autonomous-apply.md;
    • probes 7 and 8 of setup/reference/check.md;
    • track/actions/labels.md.
  • The schema declares all three keys. Without that, its additionalProperties: false would reject
    this repository's file.
  • The queue-label comments that called the defaults "melodic-software" are removed. SKILL.md now
    calls them the plugin's label taxonomy.
  • docs/conventions/work-items.yaml sets label_as_code_repo, the nine lane workflow files the
    plugin used to ship, and the three ci-workflows lane-outcome links.

Verification

  • morning-brief.test.sh: all 619 cases pass on the current head. At the first head, 615 passed
    both from a directory outside the repository and from the worktree root (the repository's
    settings file is read only from inside a checkout). The new cases cover:
    • configured lane_workflows: a listed file the repo has is read, an unlisted one is not, and a
      listed file the repo lacks is dropped;
    • lane_outcome_contract_ref: printed with a #fields anchor intact when set, and absent when
      unset;
    • unset lane_workflows: the plain, quoted and base-action Claude uses are lanes, and ci.yml
      is not;
    • a workflow file read that fails with HTTP 500: the section is UNREADABLE and never reports
      "no lane workflows found";
    • a workflow listed as deleted and a workflow file that answers 404: neither is a lane, nor
      makes the section UNREADABLE, and the lanes listed after them are still read. These failed
      on the first head, as the review thread described.
  • scripts/check-loop-lane-floor-drift.sh --check: all 6 consumers match the rate-limits floor.
  • New plugins/work-items/tests/label-as-code-repo.test.sh: 5 cases pass. They check absent, set
    and missing-file resolution, and that the schema declares the three keys.
  • scripts/check-changed-skills.sh --merge-base passes on all 3 changed skills, including
    setup's skill-relative link check.
  • The other suites under plugins/work-items/tests/ pass. shellcheck reports nothing on the
    changed shell files. This repository's work-items.yaml parses with lib/yaml-subset.awk.
  • No .github workflow runs morning-brief.sh. build-brief-view.mjs splits on == ... ==
    headings only, so the new Lanes line does not affect it.

Remaining

This pull request delivers the work-items plugin's part of #17208. Still open under that issue:

  • The organization-specific matches in the other shipped plugins, for example
    plugins/source-control/skills/babysit-prs/scripts/babysit_merge_policy.py,
    plugins/harness-ops/skills/observability/SKILL.md and
    plugins/review/skills/code-review/SKILL.md, each classified as runtime behavior, instruction,
    permitted citation or test fixture, with the runtime and instruction ones made configurable.
  • reference/permission-preflight.md:73 in this plugin (see Related).
  • The account-rotation link in the rate-limits operable floor. Its source is
    plugins/rate-limits/reference/reader-contract.md, and attend-queue and work-loop carry
    exact copies of it, which check-loop-lane-floor-drift compares. The source and every copy
    change together, so this pull request leaves both work-items copies as they are.
  • The CI check that fails when shipped content adds a new organization-specific dependency.

Related

  • Remove organization-specific dependencies from shipped plugins #17208
  • Out of scope: reference/permission-preflight.md:73. Its permission-floor pointer is a
    trust-boundary row waiting on the owner.
  • Left as is: the code comment at morning-brief.sh Section 6 that names
    ci-workflows docs/lane-outcome.md. It is a citation, not an instruction. The comment-lint
    hook would pass an edited line only if it carried a link or a waiver marker, so it was left
    unchanged.
  • Behavior change outside this repository: another repository, or a run from outside a checkout,
    used to get the shipped lane list. It now gets workflows that use a Claude action directly. A
    lane whose Claude action sits inside a called reusable workflow is not detected, so such a
    repository sets lane_workflows.

🤖 Generated with Claude Code

kyle-sexton and others added 4 commits November 19, 2026 02:04
…and the label-as-code owner

/work-items:morning-brief reads its lane workflow list from the
lane_workflows key under morning_brief: (the files the repo has); unset,
the lanes are the workflows whose file uses a Claude action, and a file
that cannot be read makes the Lanes section UNREADABLE. The
lane_outcome_contract_ref key names where the lane-outcome record is
documented and prints under the Lanes heading; unset, the skill lists
the record fields the brief reads. label_as_code_repo in
docs/conventions/work-items.yaml names the repository that owns the
tracker's labels. The plugin no longer ships an organization's lane
workflow list, lane-outcome links, label-as-code repository or account
tool link; this repository sets its own values in
docs/conventions/work-items.yaml.

Refs: #17208

Co-authored-by: Claude Opus 5.5 <[email protected]>
…y its reader

capability-tier-labels.md and the schema run parse-concern-value.sh from
<plugin-root>, as ai-disclaimer.md does. The morning brief's record field
list names v and the credential fields it reads.

Refs: #17208

Co-authored-by: Claude Opus 5.5 <[email protected]>
…-code owner decides

label-taxonomy.md defines a declared label-as-code owner as the
label_as_code_repo key, and setup (apply, check, unattended apply),
track labels and capability-tier-labels.md's Migration step read it
instead of an undefined declaration.

Refs: #17208

Co-authored-by: Claude Opus 5.5 <[email protected]>
The changed-skills check reads link text as a skill-internal path, so the
two new links use the ../../reference/ form the file already uses.

Refs: #17208

Co-authored-by: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 19, 2026 09:33
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-19T09:37:36.166378Z ac0230f Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-refine/fix-docs
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none (read lane)
Run 44497638968

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed f4366b544ee6d0d0b8af83fe527478674822cc39: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #17424, incremental (c70557d → f4366b5)

No security issues in this push. This review covers one file, and I read its only hunk. Because this lane already reviewed an earlier head, it reported only CRITICAL and IMPORTANT findings.

  • plugins/work-items/skills/morning-brief/SKILL.md (L271-L276): the only change is rewording one sentence. The old text, "the repo names no contract", now reads "the repo points at no record documentation". What the brief does when the lane-outcome record contract: line is missing stays the same: it reads v 1 records with the same field list, from the JSON after the lane-outcome marker. No rule is deleted, narrowed or weakened. No input now reaches a command, path or URL.

The file matches no TRUSTED PATHS: glob. The push touches no trust control, merge hold or plugin manifest, so this review has no manifest lines. My earlier summary comment had no line anchor and reported no findings, so nothing from it is restated here.

critical-findings: 0

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on ac0230f3006613fb659b28a7c9723a7dc86e5eb2; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed f4366b544ee6d0d0b8af83fe527478674822cc39: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Code review (incremental, blocking only): c70557d → f4366b5

No blocking findings. This lane already reviewed an earlier head, so this pass reports blocking findings only.

What changed

I read the whole change in the 1 file that changed since c70557d0: plugins/work-items/skills/morning-brief/SKILL.md. The only edit is in the Lanes pointer, at SKILL.md:271-276.

  • Before: when the pointer line is unset, "the repo names no contract".
  • After: "the repo points at no record documentation".

Nothing else changed. The field list (lane, outcome, class, turns, maxTurns, models, handoff, shellFailed, credential with kind/role/secret, fallback, costUsd), the v 1 rule and the marker source are the same, only re-wrapped. No code behaviour changes.

Earlier finding

The earlier finding (a missing workflow file made the whole Lanes section UNREADABLE) stays settled. The owner fixed it in c70557d0, and this push does not touch morning-brief.sh.

Other checks

  • Closing issue: the PR closes no issue, so there are no acceptance criteria to check.
  • Manifests: no .claude-plugin/plugin.json or marketplace.json changed in this increment, so the manifest checks do not apply.
  • Embedded directives: none found in the settled-threads or prior-findings files.
  • Loosened checks: none in this increment; it is a prose edit.
  • Loosened-check verdict: fail (default; no loosened_check_verdict / loosened_check_patterns line in the prompt); patterns: 0. The prompt had no loosened_check_decision_record: line either, so I did not check the citation requirement.

Verifier dropped 0 of 0 candidates.

kyle-sexton and others added 3 commits November 19, 2026 04:50
The account-rotation link sits inside the rate-limits operable floor,
which plugins/rate-limits/reference/reader-contract.md owns and every
consumer copies exactly. Dropping it from two copies alone failed
check-loop-lane-floor-drift. The copies and the eval sample that echoes
them go back to main; the link moves with the source and all of its
copies in the rate-limits part of #17208.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
With lane_workflows unset, the brief read every path the Actions
workflow list names. That list keeps deleted workflows and ones that
only ran from another branch, whose contents read answers 404, and one
such path made the whole Lanes section UNREADABLE. Deleted entries are
now skipped and a 404 is taken as not a lane; any other failed read
still makes the section UNREADABLE.

The test stub's rest mode gains a <key>.err fixture so a non-404
failure stays covered.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…d sense

check-vocabulary reads "contract" beside "brief" on one line as the
retired name for the planning Brief. The line now says the repo points
at no record documentation.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant