Skip to content

Commit 6437170

Browse files
committed
running-in-ci: lead external-tool verification with run/clone, not hand-test
Review feedback on #327 pointed out the section framed external-tool claims as "defer to a human" when the bot can actually verify by running the tool or cloning its repo. Rewrite the subsection so it opens with the two verification paths (install-and-run, then clone-and-grep) and only falls back to asking a human when both fail. The "don't make overconfident claims" guidance already lives in the preceding subsection.
1 parent b562b3b commit 6437170

1 file changed

Lines changed: 21 additions & 21 deletions

File tree

  • plugins/tend-ci-runner/skills/running-in-ci

‎plugins/tend-ci-runner/skills/running-in-ci/SKILL.md‎

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -498,23 +498,23 @@ If you can't find source evidence for a specific detail, say so ("I'm not sure o
498498
syntax") rather than guessing. An honest gap is fixable; a confident hallucination gets
499499
copy-pasted.
500500
501-
### External-tool behavioral claims need a hand-test
502-
503-
When a review or triage turns on how an external CLI, API, or system behaves — and that tool
504-
is not installed in CI and not exercised by automated tests — the "run the command yourself"
505-
fallback above doesn't apply. Upstream docs for fast-moving tools lag or describe flags that
506-
were removed or renamed, and reading the tool's source isn't an option when it lives in a
507-
separate project. Do not post a confident claim or commit code/doc changes that depend on
508-
the behavior.
509-
510-
1. Name the gap. Quote the question back and state that the behavior needs hand-testing on
511-
a machine with the tool installed.
512-
2. If you have partial evidence (upstream docs, a commit, a linked issue), cite it and
513-
hedge: "According to X's docs, Y — but I haven't verified on a real install. Could
514-
someone with X installed confirm before I push a change?"
515-
3. Don't ship a doc or code change whose correctness depends on the claim until a human
516-
confirms. In triage, the same rule applies: if a repro uses a tool not in CI, flag the
517-
repro as unverified rather than asserting a fix.
501+
### Verifying external-tool behavior
502+
503+
When a claim turns on how an external CLI, API, or system behaves, verify by running the
504+
code. Upstream docs for fast-moving tools lag or describe flags that were removed or
505+
renamed — don't treat them as proof on their own.
506+
507+
Two paths, in order of preference:
508+
509+
1. **Run the tool.** If it's installable in this environment, install it and invoke the
510+
specific command or flag in question. Link the output in your reply.
511+
2. **Read the source.** Tend can clone any public repo. `gh repo clone <owner>/<repo>`
512+
then grep for the flag or behavior. Source doesn't lag itself, and a flag that isn't
513+
defined in the parser doesn't exist.
514+
515+
If both paths fail (GUI-only tool, private repo, environment-specific behavior), cite
516+
what you found, name the remaining gap, and ask a human with the tool installed to
517+
confirm before shipping a dependent change.
518518
519519
<example>
520520
<bad reason="Trusted upstream docs for a fast-moving external CLI and shipped a broken recipe">
@@ -524,11 +524,11 @@ page describing `--json` → rewrote the recipe to `cmux list-workspaces --json
524524
committed. The installed cmux had no `--json` flag; every reader hit a broken recipe.
525525
526526
</bad>
527-
<good reason="Named the verification gap and deferred to a human with the tool installed">
527+
<good reason="Cloned the upstream source and verified the flag before shipping">
528528
529-
Good: Same question. Read the docs → replied: "The docs describe `--json`, but cmux isn't
530-
installed in CI so I can't verify against your version. Could you confirm
531-
`cmux list-workspaces --help` shows `--json` before I push the change?" Waited.
529+
Good: Same question. Cloned cmux's source repo → grepped the CLI parser for
530+
`list-workspaces` → saw no `--json` flag defined → replied with the source link and
531+
proposed an alternative that matched the actual CLI surface.
532532
533533
</good>
534534
</example>

0 commit comments

Comments
 (0)