Skip to content

feat(app-control): add driving conventions and driver-CLI traits to the control-skill contract - #15943

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

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

Conversation

@melodic-automation-lanes

@melodic-automation-lanes melodic-automation-lanes Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Closes #15799

Summary

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

The control-skill contract (plugins/app-control/reference/control-skill.md) now describes optional hub driving conventions (start from the baseline, name controls by role and accessible name or test id rather than structural CSS selectors or coordinates, write literal commands), a feature file's opening H1 title and one-paragraph summary with optional bold Parts ids, and the five traits of a driver CLI agents use well, with --dry-run placed beside the safety floors and write grants, never in place of them. /app-control:map create now writes all of these, and map check requires none of them. Dogfood: this repository's driver tool, plugins/harness-ops/skills/control-claude-code/driver/driver.mjs, answers --help (one line per verb) and <verb> --help (that verb's flags and exit codes). Each verb that writes or sends (launch, type, screenshot, record, stop, ready, log) takes --dry-run, which checks the arguments as a real run would, prints what it would do and does nothing, in broker mode too. Read-only verbs refuse --dry-run and say what to do instead, and cli/account.mjs answers --help. Design choice: the conventions sit above the hub's sections as an optional row, not in a new hub section, because the issue's Decisions keep her fixed hub sections rejected.

Not verified

  • Two-version eval compare of the changed skills' cases (opus and sonnet, three runs per side, --case filter, --max-cost-usd ceiling) has to run in the one local eval-runner session, which this lane cannot run. A person must add the do-not-merge label to the PR until that record lands.
  • driver.test.mjs (node --test) was not executed: this lane runs no interpreter. The new and updated tests were traced by hand and by the review subagent; the PR's CI runs them.
  • The issue's demo line about this repository's own control hub (.claude/skills/control-claude-code-plugins/SKILL.md) stating its driving conventions was not done. That path is protected here, and the issue's Decisions say no existing control skill must be refreshed.
  • Tidy skipped: the change spans 2 areas (app-control and harness-ops) and about 330 changed lines, over the tidy cutoffs of 1 area and 300 lines.
  • The changes are left uncommitted in the working tree, as the runner's instructions require; the runner turns them into the patch.

Fix

  • plugins/app-control/reference/control-skill.md: Hub table row and 'Driving conventions' subsection; feature-file opening (H1 title, one paragraph) and optional Parts ids; five driver-CLI traits with --dry-run placed beside the safety floors and write grants; all marked optional for map check; basis…
  • plugins/app-control/skills/map/SKILL.md: create's Generate step writes the feature-file opening, the driver CLI's --help/--dry-run traits and the hub's driving conventions
  • plugins/harness-ops/skills/control-claude-code/driver/driver.mjs: HELP table and helpText(); --help and <verb> --help; --dry-run on launch, type, screenshot, record, stop, ready and log with no side effects (also under CCD_BROKER_SOCK, where it runs the local checks and prints the broker…
  • plugins/harness-ops/skills/control-claude-code/driver/driver.test.mjs: updated unknown-verb test; new tests for --help, <verb> --help, unknown verb with --help, unknown flag message, dry runs of session verbs, launch and log, and --dry-run refused on doctor
  • plugins/harness-ops/skills/control-claude-code/cli/account.mjs: --help text; parse errors point to --help
  • plugins/harness-ops/skills/control-claude-code/cli/README.md: documents --help on every command and --dry-run on the driver's write and send verbs
  • .changes/app-control/work-resolve-issue-issue-15799-43413761632-1-1d3835a3.md: minor changelog fragment
  • .changes/harness-ops/work-resolve-issue-issue-15799-43413761632-1-9e74e323.md: minor changelog fragment

Verification

The runner ran each check from the base copy against 05e3733:

  • scripts/check-changelog-fragments.sh --check: passed
  • scripts/check-changed-skills.sh --merge-base: passed

The run reports:

  • read https: //github.com/cursor/plugins/blob/main/pstack/docs/guide/06-verify-and-ship.md: lists the CLI traits agents use well: a few composable commands, --dry-run on anything destructive, subcommands that reveal features gradually, error messages that say what to do instead, rich --help text,…
  • read https: //github.com/cursor/plugins/blob/main/pstack/skills/create-verification-skill/SKILL.md: 'Prefer stable handles (ARIA labels, data attributes, prompt strings, route paths) over coordinates and tab order'; asks for real selectors and commands from the repo, not examples; launch reaches a…
  • check-changelog-fragments: all 3 fragments valid
  • check-changed-skills: map and control-claude-code PASS, 0 errors (pre-existing warnings only, plus map body 252 -> 255 lines)
  • check-affected: 12 passed, 7 skipped, over 8 changed files
  • fresh-context review subagent over the whole diff: no blocking bugs and the new tests trace as passing. Fixed what it found: broker-mode dry run skipped the argument checks, ready/launch dry runs skipped the session-name and deps-dir checks, --help accepted unknown verbs (including inherited names…
  • read plugins/app-control/skills/map/scripts/check-map.sh: an H1 title or paragraph before ## Parts, a bold Parts id, and convention bullets with no '|' trip no rule, so the additions stay optional
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/43413761632

Left out: the items under Not verified.

Related

#15799

Follow-ups

  • Pre-existing (advisory): **Advisory: the dry run in broker mode has no test.** (thread)

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

Copy link
Copy Markdown
Contributor

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

Security review: PR #15943 (head 05e3733)

No security issues found.

I read all 8 changed files in full from the diff. None of them match a TRUSTED PATHS: glob. None of them is a trust control, a merge hold, a plugin manifest or a workflow.

What I checked

driver.mjs --dry-run

  • I checked every verb the diff gives a dry run (launch, type, screenshot, record, stop, ready, log). Each one returns before its side effect: no reserve() lock, no request() to the session holder, no runPrint spawn and no viaBroker connection.
  • depsBase(..., false) calls privateDir with create: false, so a dry run creates no directory (driver.mjs:214-223, 238-248).
  • The printed argv comes from buildLaunch or buildPrint (driver.mjs:159-161, 179-184). It holds only the flag constants, --plugin-dir and the prompt. The credential stays in env and is never printed, so a dry run leaks no API key or OAuth token.
  • buildLaunch's credential checks still run on a dry run (Refused for two credentials set at once, and the --in-sandbox dummy-key prefix check). The dry run lifts no floor.

Broker mode (CCD_BROKER_SOCK)

  • checkBrokerSocket still runs before the dry-run branch. A dry run strips only its own dry-run token from the request, runs the verb's local dry run and prints the request. It never connects to the broker.
  • Real runs send the same request as before; the filter removes no token they carry. What the broker accepts is unchanged.

--help and verb dispatch

  • Dispatch now uses Object.hasOwn(HELP, verb) and Object.hasOwn(VERBS, verb), so names inherited from Object.prototype (such as constructor) no longer reach a handler. The new test covers this.
  • --help prints static text and returns 0 before any session or broker access.
  • serve stays dispatchable and unlisted, as at base.
  • --dry-run on a verb that only reads is refused with exit 2.

cli/account.mjs

  • It gains a static --help text that exits 0 before drivenAccount runs. Nothing else changes.

Instruction surface

  • control-skill.md and map/SKILL.md only add optional guidance; the diff deletes or softens no standing rule. The new text keeps --dry-run beside the safety floors and Write grants: it grants no write, lifts no floor, and a refused command stays refused under --dry-run (exit 4).

Changelog fragments

  • Prose only.

Embedded text in the PR context

The PR description asks for "a person must add the do-not-merge label until that record lands", about the eval compare it could not run. That is a request to the maintainers, not to this lane. I treated it as data and acted on none of it.

Spend

None: the change spends no prepaid credit and can start no charge.

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 05e37334b722786c42d941fc893fa97c6f11c748; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed 05e37334b722786c42d941fc893fa97c6f11c748: read 8 of 8 changed file(s); 2 finding(s), 1 as inline comments.

Code review: PR #15943

I read all 8 changed files in full. The contract additions in control-skill.md (an optional Driving conventions row and subsection, an opening title and paragraph for feature files, optional Parts ids, and the five driver-CLI traits) match the issue's "Key interfaces", and they stay optional for map check. The map SKILL.md create step now writes them. In the driver, --help, <verb> --help, the Object.hasOwn guards (so constructor --help is refused), the refusal of --dry-run on read-only verbs, and the dry-run branches of type, screenshot, record, stop, launch, ready and log all run the same argument checks as a real run before they return. I traced the new tests against driver.mjs and they look consistent with it. I did not run them, because this lane has no interpreter.

Findings

  1. Inline, advisory: the dry run under CCD_BROKER_SOCK has no test. That is the one path where the guarantee that a dry run sends nothing depends on a single if (!dryRun) line. ready --dry-run is also untested.

  2. Closing-issue criterion not met (blocking, whole-PR): Add driving conventions and control-tool traits to the control-skill contract #15799 "Done when" says: "Changed skill text ships on a two-version compare of the changed skills' cases (opus and sonnet aliases, three runs per side, --case filter, a --max-cost-usd ceiling, no new batch after a usage-limit error), run in the one local eval-runner session; the pull request carries do-not-merge until the record lands."

    • The PR body says that compare was not run and asks a person to add do-not-merge. Until that record exists, the changed map SKILL.md text has nothing behind the "create writes them" criterion. No test or eval in this PR or the repository would fail if create stopped writing the conventions, the feature-file opening, or the --help/--dry-run traits.
    • Needs a person: add do-not-merge and run the eval compare locally.

Other notes (not counted)

  • Issue demo not done: the issue's Outcome demo says this repository's own control hub states its driving conventions. The PR body says that was not done, because the path is protected and the Decisions require no refresh. I read that as consistent with the Decisions, but a person may want a follow-up.
  • Author's claims, not checked by me: check-changelog-fragments passed, check-changed-skills passed, check-affected showed 12 passed, and the new tests trace as passing.
  • Release level: no plugin.json or marketplace.json changed. Both changelog fragments are bump: minor, which fits the added capabilities.
  • No embedded instructions: the PR context contains no text addressed to this lane.

Verifier dropped 0 of 2 candidates.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of max 4 on 05e3733.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head 05e37334b722786c42d941fc893fa97c6f11c748, the head its arming checks judged.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Verification evidence for 05e3733

The verifier passed this head. The capture artifact holds the capture summary, which says whether the capture ran, and any screenshot or video that passed the mask check; this comment uploads no file.

Capture artifact: pr-capture-15943-05e37334b722786c42d941fc893fa97c6f11c748, expires on 2026-12-13.

One comment per pull request, updated in place for each new head.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=HIGH demote=true head=05e37334b722786c42d941fc893fa97c6f11c748 rubric=8.4.16 rater=claude-opus-5-5 checker=claude-opus-5-5

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 13, 2026
Merged via the queue into main with commit 658979e Nov 13, 2026
72 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-15799-43413761632-1 branch November 13, 2026 13:31
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit 658979e435acf6136bc693a6e5a95d280a62fedf; 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.

Add driving conventions and control-tool traits to the control-skill contract

0 participants