Skip to content

fix(work-items): keep wayfind map items out of work-items:work's frontier - #11910

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-11870-41281674874-1
Nov 1, 2026
Merged

melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-11870-41281674874-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #11870

Summary

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

list-frontier's core filter (lib/frontier.sh) now excludes any item carrying a label that starts wayfind:, in both the attended and the --autonomous frontier. /work-items:work therefore never picks a wayfind map item, which /planning:wayfind drives. The prefix is defined once in lib/labels.sh as a fixed string with no binding key, matching the startswith("wayfind:") test that rule-admit.sh already uses. The live e2e probe used wayfind-labeled items as its claimable frontier items and would have broken, so its lifecycle items are now unlabeled, and it adds a wayfind: research item that it asserts both frontiers exclude.

Not verified

  • frontier.test.sh and e2e-probe.test.sh were not executed under scripts/run-test-file.sh here, because this lane runs no interpreter or test runner. The 'fails on base, passes after' check is left to the PR's CI. The fail-on-base part was checked by reading the code (the base filter has no wayfind cl
  • conformance/e2e-probe.sh needs a live GitHub sandbox (WIT_CONFORMANCE_GITHUB_REPO) and was not run.
  • Tidy: the ai-slop deterministic detector (detect.sh) could not run because this lane's Bash allows only the named wrappers, so the prose was checked by a rubric read only. The semantic-diff verifier was not needed because no ai-slop fix was applied. The docs-hygiene passes ran and reworded only the
  • Review finding not acted on: the wayfind prefix match is case-sensitive, so a hand-applied Wayfind: label would not be excluded. The taxonomy and rule-admit.sh are both lowercase and case-sensitive.
  • Review finding not acted on: e2e-probe.test.sh's 'probe creates wayfind: task (space)' assertion now holds only because of the label-setup loop (e2e-probe.sh:62), since no probe item uses wayfind: task any more.
  • The changelog fragment was written by hand (named after the existing lane fragments), because new-changelog-fragment refuses to run on a detached HEAD. check-changelog-fragments accepts it.
  • Changes are left uncommitted in the working tree, as the runner's instructions say. The runner turns them into the patch.

Fix

  • plugins/work-items/tools/work-item-tracker/lib/labels.sh: adds the WIT_WAYFIND_LABEL_PREFIX constant ("wayfind:").
  • plugins/work-items/tools/work-item-tracker/lib/frontier.sh: wit_filter_frontier excludes, unconditionally, any item with a string label starting with that prefix. Non-string label entries are skipped instead of erroring.
  • plugins/work-items/tools/work-item-tracker/lib/frontier.test.sh: new cases. wayfind: research and wayfind: task items are excluded from the default and autonomous frontiers, an area: wayfind: near-miss is kept, and a non-string label does not fail the check.
  • plugins/work-items/tools/work-item-tracker/CONTRACT.md: the list-frontier verb description and "Containers and state" now state the wayfind exclusion, including what it means for --parent over a wayfind map.
  • plugins/work-items/reference/label-taxonomy.md: the wayfind read-only paragraph now says the frontier leaves out wayfind-labeled items whatever role label they carry. It replaces the sentence that said those items were treated like any other.
  • plugins/work-items/tools/work-item-tracker/conformance/e2e-probe.sh: the lifecycle items no longer carry wayfind labels. An unblocked wayfind: research child is added and asserted absent from the global and --parent frontiers, then closed at the end. The --help text no longer says 'typed items'.
  • .changes/work-items/work-resolve-issue-issue-11870-5d2b7c91.md: new patch fragment, under Fixed.

Verification

The runner ran each check from the base copy against f4714ec:

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

The run reports:

  • /home/runner/work/claude-code-plugins/claude-code-plugins/.lane/checks/bin/check-changelog-fragments: all 61 fragments valid (run before tidy, after tidy, and after the review fixes).
  • /home/runner/work/claude-code-plugins/claude-code-plugins/.lane/checks/bin/check-affected: 12 passed, 6 skipped (typos not installed, three validate-plugins sub-checks that run code from the checked tree, ruff and changed-skills not applicable) over 7 changed files. The rest are listed as CI-only.
  • Fresh-context subagent review of the whole diff: no high or medium findings. It confirmed the new test cases fail without the filter (#12 and #13 would survive) and that /planning:wayfind never calls list-frontier (plugins/planning/skills/wayfind/context/tracker-mechanics.md). Three low findings wer
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/41281674874

Left out: the items under Not verified.

Related

#11870

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

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

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

Code review: PR #11910, keep wayfind map items out of the work-items frontier

Result: no findings. I read every hunk of all 7 changed files.

What changed

  • lib/labels.sh adds the fixed prefix WIT_WAYFIND_LABEL_PREFIX="wayfind:".
  • lib/frontier.sh:41 adds this check to the shared select: any((.labels // [])[]?; type == "string" and startswith($wayfind)) | not. It sits outside the $auto branch, so both the attended and the --autonomous frontier exclude these items.
  • wit_filter_frontier has one caller, work-item-tracker.sh:326. That means list-frontier and list-frontier --parent both pick up the exclusion. Nothing under plugins/planning calls list-frontier, so /planning:wayfind loses no view it depended on.
  • The jq check is sound. []? with type == "string" tolerates a missing labels field, a non-array value, and non-string entries. startswith matches only a label that begins with the prefix, so area: wayfind: is not excluded, as the near-miss test case expects.

Closing issue #11870, "Done when"

  • A frontier.test.sh case with a wayfind: item fails on base and passes after: met by reading the code. On base, the new assertions would keep #12 and #13 in both frontiers, so the expected github:o/r#1,github:o/r#14 would not match. After the change, the new filter removes them. I did not run the test. The PR says it was not run under scripts/run-test-file.sh and leaves that to CI, so this part is unverified.
  • A work-items changelog fragment passes check-changelog-fragments.sh: met. .changes/work-items/work-resolve-issue-issue-11870-5d2b7c91.md is present with bump: patch under ### Fixed. The author reports the check passed; I did not run it.

Docs

  • The list-frontier text in CONTRACT.md and the "Containers and state" section now state the exclusion, including what it means for --parent over a wayfind map.
  • label-taxonomy.md drops the old sentence that treated wayfind items like any other item.
  • All three agree with the code.

Observations (not counted as findings)

  • conformance/e2e-probe.test.sh:21 still asserts that the probe source contains wayfind: task. After this PR, that string only appears in the label-setup loop at e2e-probe.sh:62, because no probe item uses that label any more. The test still passes. The PR body already calls this out.
  • The prefix match is case-sensitive, so a hand-applied Wayfind: label would not be excluded. This matches rule-admit.sh:197 and the lowercase label taxonomy. The PR body already notes it.

Scope notes

  • No plugin manifest changed, so there are no manifest lines.
  • The only .claude/rules file that matches a changed file is cost-claims.md, for reference/label-taxonomy.md. The change makes no cost claims.
  • The PR context has no embedded instructions aimed at this review.
  • None of the changed files is on the trusted-path list.
  • No hold applies: there is no billing or cost impact and no security issue.

@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

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

Security review: PR #11910 (fix(work-items): keep wayfind map items out of work-items:work's frontier)

I found no security issues.

critical-findings: 0

I read every hunk of all 7 changed files. None of them match a trusted-path glob, and none is a trust control, a merge hold, a plugin manifest or a standing instruction file.

What I checked

  • lib/frontier.sh: the new jq clause can only remove items from list-frontier output, in both attended and --autonomous mode. It never admits an item the base filter excluded, so it widens nothing the autonomous lane may pick up. The needs-human and human-floor checks (work-class, provenance, status) are unchanged. The prefix reaches jq through --arg from a fixed readonly constant in lib/labels.sh, so jq injection isn't possible. The clause checks type == "string" before startswith, so a non-string label in a hand-edited local item can't make the filter error.
  • Can someone hide an item from the frontier by adding a wayfind: label? Only a user with label rights can do that, and it only suppresses work. It doesn't send untrusted work into a credentialed lane, so the severity bar's three impacts (leak, compromise, charge) don't apply.
  • conformance/e2e-probe.sh: the changes cover test items, assertions and an extra gh issue close on an ID the probe created itself, against the sandbox repo the operator supplies. There is no new untrusted input in a shell or command context.
  • CONTRACT.md, label-taxonomy.md, the changelog fragment and frontier.test.sh: documentation and tests only. The taxonomy edit describes the new exclusion and removes no rule.

Embedded text: the PR context contains no directives aimed at the review lane.

Spend: none beyond normal CI.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head f4714ec0d717ac254862d12a17abc5d5f72d65f3.

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 1, 2026
Merged via the queue into main with commit 9cfac44 Nov 1, 2026
45 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-11870-41281674874-1 branch November 1, 2026 09:57
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit 9cfac449e99532f19200688bd5b3f17fb7a2572d; later checks count it verified from this comment.

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.

fix(work-items): keep wayfind map items out of /work-items:work's frontier

0 participants