Skip to content

fix(harness-ops): mark unresolved built-in tool aliases partial instead of empty - #8223

Merged
kyle-sexton merged 2 commits into
mainfrom
work-resolve-issue/issue-6888-39106121444-1
Oct 19, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
work-resolve-issue/issue-6888-39106121444-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Refs: #6888

Hold: a human merges this

Summary

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

A built-in tool whose aliases array holds a spread or element the reader cannot resolve now carries aliases_source: partial (or unresolved when the field is not an array literal) instead of an empty list, so --reader compare reports a regex/parser disagreement as wrong->unresolved, not a value->value change. The parser reader's cross-module flow check was not changed: the parser packages cannot be installed in this lane, so the failing hop on 2.1.302 was not confirmed, and the issue stays open.

Not verified

  • Parser-reader fix not made: --reader parser still may not follow the exported TaskStop alias array on 2.1.302; it now reports it as partial rather than \[\]. The acorn/eslint-scope packages cannot be installed in this lane, so the hop that fails was not confirmed. Reading the code, `_namespace
  • The new parser-reader fixture test in test_reader_findings.py accepts either the full list or a partial mark, so it does not prove the parser follows the import; it was not run (skipped here), left to the PR's CI.
  • Ruff lint of the changed Python files was not run (the pinned ruff wrapper is not among the lane's allowed commands); left to the PR's CI.
  • --reader compare on the real 2.1.302 bundle was not run (no binary in the lane).
  • Review ran as a local fresh-context subagent (no review-venue.txt present).

Fix

  • plugins/harness-ops/skills/inventory/scripts/inventory.py: new _tool_aliases returns the resolved names plus a partial/unresolved source; extract_builtin_tools writes aliases_source only when the read was incomplete, so all-literal tools are unchanged
  • plugins/harness-ops/skills/inventory/scripts/test_inventory.py: tests for no marker on literal aliases, partial on unresolved spreads/elements, unresolved on non-array fields
  • plugins/harness-ops/skills/inventory/scripts/test_reader_findings.py: multi-module TaskStop fixture (exporter, spreading registrar, new Set importer, unrelated same-named function); regex reader must read both names, parser reader must read them or mark partial
  • plugins/harness-ops/skills/inventory/reference/extraction.md: documents aliases_source for built-in tools
  • .changes/harness-ops/issue-6888-tool-aliases-partial-5d2b8e47.md: patch changelog fragment

Verification

The run reports:

  • run-test-file test_inventory.py: 292 passed, 28 subtests passed
  • run-test-file test_reader_findings.py: 16 passed, 186 skipped (the parser half skips without node packages); the regex-reader TaskStop fixture passes
  • run-test-file test_compare_reports.py: 27 passed
  • run-test-file test_inventory_under_parser.py: all 290 skipped, parser packages not installed here
  • check-skill on plugins/harness-ops/skills: 17 passed, 0 failed (inventory passes)
  • check-changelog-fragments: all 8 fragments valid
  • Fresh-context subagent review of the diff: one finding (fixture path table pointed at an empty chunk 0, so the parser half could pass vacuously); fixed by joining modules without a leading marker
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/39106121444

Left out: the items under Not verified.

Related

#6888

@github-actions

Copy link
Copy Markdown
Contributor

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

No security findings in PR #8223 at 101846b.

I read the full diff. It adds aliases_source (partial or unresolved) to the harness-ops inventory extractor for built-in tool aliases. The other changes are tests, a reference-doc line and a changelog fragment.

  • Untrusted input: the extractor parses a local Claude binary's bundled JavaScript as text only. It never evaluates it.
  • Injection and secrets: the diff adds no shell, SQL, path or template construction, and no credentials or secrets.
  • Control surfaces: the diff changes no workflow, permission, hook or allowlist.
  • Instruction surface: the diff deletes or softens no standing instruction (CLAUDE.md, rules file, skill body). The extraction.md edit only documents the new field, so I did not need the instruction exception register.
  • Error handling: _tool_aliases catches ValueError and IndexError and marks the field partial. That is a fail-safe, not a bypass.

I did not run the tests.

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed 101846babb73cc228a710d1927e4a248c5e015f5: 1 finding(s), 1 as inline comments.

Code review of PR #8223 (head 101846b): 1 finding, posted inline.

The change adds _tool_aliases, which marks a built-in tool's alias list partial or unresolved instead of reporting an unread list as []. The logic matches the existing _array_names and _tool_list handling. I read the diff, _array_names, _tool_list, and compare_reports.py. I did not run any tests.

Finding (inline, inventory.py:4054): aliases_source is written only when the read was incomplete. In the #6888 case the regex reader omits the key and the parser reader sets partial. compare_reports._diff then emits an added or removed record for /tools/<name>/aliases_source, beside the intended wrong->unresolved record on aliases. That is a spurious second difference for one disagreement. It also differs from the other <field>_source keys, which are written on every record. No new test goes through compare_reports, so nothing pins this output.

Unverified:

  • The PR author says the parser-reader fixture test accepts either the full list or a partial mark. It therefore does not show that the parser follows the import, and it skips when the parser packages are missing.
  • The author's reported test, lint and compare runs are author-claimed. I did not confirm them.
  • The PR body says issue harness-ops/inventory: regex and parser readers disagree on Claude Code 2.1.296 #6888 stays open because the parser-reader hop was not fixed. That matches the diff: the PR contains no parser-reader change.

Closing issue: the PR uses Refs: #6888 and closes nothing, so there are no acceptance criteria to check.

Embedded text in the PR body: "Hold: a human merges this" is data. It does not change this review.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of 3 on 101846b.

@melodic-automation-lanes melodic-automation-lanes Bot added the needs-human Human-in-the-loop required; autonomous sessions must not resolve items carrying this. label Oct 18, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped on this pull request and needs a person: a review finding is uncertain or deferred, so a person decides it.

  • Reason: feedback-uncertain
  • Resume key: 101846babb73cc228a710d1927e4a248c5e015f5 (the head the lane stopped on)

To resume, deal with the reason above, remove the needs-human label (and do-not-merge, if set), then dispatch the pr-unblock workflow with pr-number=8223 and activity=address-feedback:

gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=8223 -f activity=address-feedback

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 2 of 3 on e4a85f3.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 19, 2026
Merged via the queue into main with commit 60c82c8 Oct 19, 2026
36 of 37 checks passed
@kyle-sexton
kyle-sexton deleted the work-resolve-issue/issue-6888-39106121444-1 branch October 19, 2026 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-human Human-in-the-loop required; autonomous sessions must not resolve items carrying this.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant