Repository navigation
feat(harness-ops): derive the data id and make probe and OTEL targets configurable - #17406
Conversation
… configurable The inventory parser, control-claude-code driver and known-issues registry name their fallback data directory from the marketplace in their own install path (harness-ops-inline outside the plugin cache) instead of a fixed publisher id. The cloud-routine probe takes its issue from probe_state_issue (userConfig or harness-ops.yaml, resolved through the config cascade by scripts/probe-state-issue.mjs) and is skipped live when unset; this repository sets its own issue in docs/conventions/harness-ops.yaml. The auto-mode gh secret cases target probe-owner.invalid/probe-repo. The observability skill names provisioning documents through three new OTEL options instead of links to one organization's repository. Refs: #17208 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…xed fallback session-telemetry-state.mjs named the sibling plugin session-telemetry@melodic-software whenever harness-ops ran outside the plugin cache. It now uses @inline there, the id Claude Code gives a --plugin-dir session, as the data-id derivation does. The tests call state() with a cached root under a neutral marketplace and add the outside-the-cache case. Refs: #17208 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ✅ CompletedThis 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 686f2451c4
ℹ️ 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".
plan-test-lanes.sh failed the PR because the new Node suite had no sibling .test.sh and no Node package lane holds it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ops runs inline With harness-ops outside the plugin cache, session-telemetry-state.mjs named the sibling session-telemetry@inline even when it was installed from a marketplace, so it read the wrong data directory. Take the sibling's id from its own installed record first, and fall back to @inline only when none exists. The observability skill states its handling of an unset reference as our decision and points at the upstream user-configuration section instead of restating how the token renders. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Lane run report
Failed GitHub API calls
|
|
claude-security-review reviewed Security review (incremental, 398cc3b → 3288167): PR #17406This lane already reviewed an earlier head, so this pass reports only CRITICAL and IMPORTANT findings. I read every hunk of all 7 files in scope. None of them matches a TRUSTED PATHS glob or touches a trust control, merge hold, kill switch, token request, workflow or plugin manifest. Overall: no security issues found. The push closes a shell-injection surface. What I checked:
Manifest: Spend: none added. critical-findings: 0 |
|
claude-review reviewed Code review (incremental, 398cc3b → 3288167): no blocking findingsI reviewed only the seven files this push changed. This lane already reviewed an earlier head, so this pass reported blocking findings only. What I checked
Verification. I ran nothing myself; I could not run the tests in this lane. Closing issue. The PR context has no closing-issue section, so there were no acceptance criteria to check. Spend. This push adds no prepaid-credit or subscription spend. Loosened-check verdict: fail (the default, because the prompt had no Verifier dropped 0 of 0 candidates. |
The behavior-probes skill single-quoted the probe_state_issue option into
a shell command and had the model copy the resolved value, which a
repository's harness-ops.yaml can set, into the probe.py command line.
- probe-state-issue.mjs reads the option from the operator's settings
through lib/plugin-options.mjs (--user-value stays as an explicit
input) and drops any value from any layer not shaped
<owner>/<repo>#<number>, naming the layer without echoing the value.
- probe.py, on a live run with no --state-issue and a needs_state_issue
case selected, runs the resolver itself with list arguments; an
unresolvable or off-shape result leaves the case skipped.
- SKILL.md no longer puts a ${user_config.*} token or a configured
value in any command.
- Tests: a quote-bearing value is rejected from the option, team and
personal layers; probe.py uses only a well-shaped resolver result.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The skill check reads a bare scripts/ path as skill-internal. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Answering the four free-form string
|
|
The pr-verify verifier failed head What it wrote (36 lines)This pull request leaves the merge queue, and ci-status holds it out while it carries |
Refs: #17208
This pull request delivers only the harness-ops part of #17208. It leaves to later work:
plugins/source-control/skills/babysit-prs/scripts/babysit_merge_policy.py(its decision-link match),plugins/work-items/skills/morning-brief/SKILL.mdandplugins/review/skills/code-review/SKILL.md;scripts/check-skill-portability.shor another) that fails when shipped content adds a new organization dependency.Summary
harness-ops shipped organization-specific values: a fixed
harness-ops-melodic-softwaredata-directory id, a cloud-routine probe hardwired to this repository's issue #8991, auto-mode probe fixtures naming this repository, and observability links into a private provisioning repository. This change removes those values. The plugin's defaults are now neutral, and each value a consumer could set differently is configurable. This repository keeps its own behavior throughdocs/conventions/harness-ops.yaml.Fix
parser_reader.py,registry_manager.pyanddriver.mjsnow name their fallback data directory after the marketplace in their own install path. Claude Code derives the name the same way:plugins/cache/<marketplace>/harness-ops/<version>becomesharness-ops-<marketplace>, with non-[A-Za-z0-9_-]characters replaced by-. Outside the plugin cache the name isharness-ops-inline, which Claude Code uses for a--plugin-dirsession (docs/extensibility-contract-smoke-tests.md, "A--plugin-dirplugin readspluginConfigs["<name>@inline"]").lib/plugin-options.mjsresolveInstallreads.driver.mjskeeps its own copy of it because CI copies thecontrol-claude-codeskill directory alone to/opt/ccd(maintenance-verify-whole-map.yml), so an import fromlib/would not resolve there.harness-ops-melodic-software.scripts/session-telemetry-state.mjsfollows the same rule for the siblingsession-telemetryid. It used to fall back to?? "melodic-software"and now falls back to?? "inline".probe_state_issue. This is a new userConfig option and a newharness-ops.yamlkey.scripts/probe-state-issue.mjsresolves it through the config cascade (lib/config-cascade.mjs, the same wayscripts/registry-dir.mjsresolves its key).lib/plugin-options.mjs), so the skill puts no${user_config.*}token or configured value into any command. It drops a value from any layer that is not shaped<owner>/<repo>#<number>, without echoing it. An empty value or an unrendered placeholder counts as unset.--state-issue,probe.pyruns the resolver itself with list arguments and skips the case on an off-shape or unresolvable result. An explicit--state-issueof any other shape is refused.needs_state_issuegets${PROBE_STATE_REPO}and${PROBE_STATE_ISSUE}filled into itsprompt.md. A live run with no issue configured skips the case. A dry run fills inprobe-owner.invalid/probe-repo#1.melodic-software/claude-code-plugins#8991indocs/conventions/harness-ops.yaml.custom-soft-deny-non-git-read-runsandsoft-deny-without-defaults-keeps-non-git-defaultnow targetprobe-owner.invalid/probe-repo. A GitHub login cannot contain a dot, andgh api users/probe-owner.invalidreturns 404. The.ininput_matchis escaped.otel_store_reset_doc,otel_collector_config_refandotel_dashboards_compose_ref. The observabilitySKILL.mdrenders them, and the context files name the parts by option instead of linking a private repository.audit-plugin-landscapenow refers to "this plugin's own marketplace" and "adapted copies". Theinventorytrigger example says "marketplace X".Verification
node --test plugins/harness-ops/skills/control-claude-code/driver/driver.test.mjs plugins/harness-ops/scripts/probe-state-issue.test.mjs: 123 pass, 0 fail. This includes two new data-id tests and five resolver tests: unset, placeholder, option, team beats option, personal beats team, invalid team value.node --test plugins/harness-ops/scripts/session-telemetry-state.test.mjs: 4 pass, 0 fail. The tests now callstate()with a cached root under a neutral marketplace, and one new case covers a root outside the cache, which yieldssession-telemetry@inline.session-telemetry-state.test.shexits 0.python3 -m unittestresults:test_parser_reader.py: 41 run, OK, 9 skipped because the live parser is not installed.test_registry_manager.py: 12 OK.test_probe.py: 101 OK. This includes the dry run of every shipped case and new tests for the state-issue skip, substitution, stand-in and shape refusal.probe.test.sh: exit 0.probe_state_issue:probe-state-issue.test.mjs6 pass, including a quote-bearing value rejected from the option, team and personal layers;test_probe.py102 OK, including a fake resolver whose off-shape, non-zero or non-JSON output leaves the issue unset.node scripts/probe-state-issue.mjs --project <this checkout>printsmelodic-software/claude-code-plugins#8991, layerteam.scripts/check-changelog-fragments.sh --check,scripts/check-skill-portability.sh origin/mainandscripts/validate-plugin-contracts.mjsare clean for harness-ops. Ruff check passes on the changed Python files.auto-modearea confirms them.Related
pluginConfigs["harness-ops@melodic-software"].options.🤖 Generated with Claude Code