Skip to content

docs(agents): agents diverge on how to retrigger CI without a triage skill - #1995

Merged
larroy merged 1 commit into
openclaw:mainfrom
larroy:docs/retrigger-flaky-ci-skill
Nov 3, 2026
Merged

larroy merged 1 commit into
openclaw:mainfrom
larroy:docs/retrigger-flaky-ci-skill

Conversation

@larroy

@larroy larroy commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Coding agents rerun failed CI jobs reflexively: they rerun without reading the
failed logs, rerun failures the PR itself caused, or rerun all jobs when only
failed ones are needed. Nothing routes "retrigger/rerun/kick CI" to a
decision procedure, so the behavior varies by model and by guessing.

User Impact

User impact: no user-visible change; agents asked to retrigger CI on a PR follow
one documented procedure: read the failed job logs, classify each failure as
related or unrelated to the PR's changes, warn instead of rerunning for related
failures, and rerun only failed jobs for unrelated ones.

Why This Change Was Made

Adds a retrigger-flaky-ci agent skill and routes it from both routing tables:
a task row in AGENTS.md and the task decision checklist in
docs/AGENT_WORKFLOWS.md.

The routing rows follow the existing pattern for adjacent tasks (PR preparation,
PR simplification, debugging). The skill itself is procedural and deliberately
prescriptive because the failure mode it addresses is a weaker-model decision
problem, not a knowledge problem:

  • Trigger coverage. The skill front-matter description enumerates the
    phrasings a weaker model maps to this task ("retrigger", "rerun", "kick CI",
    "restart CI"), and both routing tables carry the trigger phrase, so the
    request resolves to the skill through the routing tables or the description
    without the model having to infer that a CI-rerun procedure exists.
  • Divergence between models. Without a procedure, models decide
    differently. A stronger model often starts by reading failed logs and
    reasoning about causes, but a weaker model tends to skip log reading
    entirely and jump to gh run rerun, then reports success from the dispatch
    alone. The skill's fixed sequence (read logs, classify, act) is what removes
    this divergence: the front-matter description enumerates trigger phrasings
    so weaker models resolve the routing decision quickly, and the ordered
    steps with explicit stop conditions (warn-don't-rerun at 4a,
    summarize-then-rerun at 4b, no second rerun of the same SHA) constrain the
    action once the task is resolved.

Without the skill, the only guidance was a generic instruction to investigate
before acting. Weaker models diverge precisely at the decision points: (a)
whether this is the CI-rerun task at all, (b) whether a failure originates in
the PR's changes, and (c) whether a rerun is warranted.

Evidence

Static assessment (documentation-only change; runtime proof not applicable):

  • Routing rows verified against the neighboring rows in both tables and the
    skill path target exists.
  • Skill claims verified against current sources: name: Build and Test and
    pull_request trigger plus the CI Gate job exist in
    .github/workflows/ci.yml at the PR base (31d50743);
    docs/CI_FAILURES.md exists and owns the backlog the skill links to;
    gh pr view --json ...statusCheckRollup and gh run rerun <run-id> --failed
    match the current GitHub CLI surface.
  • Em-dash scan of the skill: none.
  • ./scripts/validate-docs.ps1: passed, 70 Markdown files checked.
  • ./scripts/validate-agent-skills.ps1: passed, 16 skills and 25 Markdown
    files checked.
  • git diff --check: clean.

Change Type

  • Bug fix
  • Feature
  • Refactor
  • Docs or instructions
  • Tests or validation
  • Security hardening
  • Chore or infrastructure

Scope

  • Tray or WinUI UX
  • Windows node capability
  • Local MCP or winnode
  • Gateway, connection, or pairing
  • Setup or onboarding
  • Permissions, privacy, or security
  • Tests, CI, or docs

Required proof pools

  • none: documentation-only change (one new skill file, one row in each
    routing table); no capacity-dependent custom Windows proof required.

Validation

Ran at PR head b4cdc100 (documentation-only change):

  • ./scripts/validate-docs.ps1: passed; 70 Markdown files checked.
  • ./scripts/validate-agent-skills.ps1: passed; 16 skills, 25 Markdown files
    checked.
  • git diff --check: clean.
  • Code/test suites and ./build.ps1 not run: this change adds no executable
    path, so the docs gates are the applicable validation per the
    technical-documentation skill. CI runs the full matrix on this PR.

Real Behavior Proof

  • Environment tested: local Windows dev workstation (worktree
    C:\Users\plarroy\devel\openclaw-windows-node.retrigger-flaky-ci).
  • PR head or commit tested: b4cdc100.
  • Exact steps or command run: ran the two repository documentation/skill
    validators listed under Validation against the PR head.
  • Evidence after fix: both validators passed with counts shown above.
  • Observed result: documentation-only change; source/link checks are static
    assessment. Runtime proof is not applicable; no behavior change is claimed.
  • Screenshot or artifact links verified? (Yes/No/N/A): N/A
  • Not verified or blocked: none for a docs-only change.

Security Impact

  • New permissions or capabilities? (No)
  • Secrets or tokens handling changed? (No)
  • New or changed network calls? (No)
  • Command or tool execution surface changed? (No)
  • Data access scope changed? (No)
  • If any answer is Yes, explain the risk and mitigation: N/A

Compatibility and Migration

  • Backward compatible? (Yes)
  • Config or environment changes? (No)
  • Migration needed? (No)
  • If yes, list the exact upgrade steps: N/A

Review Conversations

  • I replied to or resolved every bot review conversation addressed by this PR.
  • I left unresolved only conversations that still need maintainer judgment.

@clawsweeper

clawsweeper Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Nov 3, 2026
@clawsweeper

clawsweeper Bot commented Nov 3, 2026

Copy link
Copy Markdown

Codex review: needs maintainer review before merge.

What this changes

Adds a CI-rerun triage skill and links it from both agent task-routing tables.

Example: An agent is asked to rerun CI after an unrelated package-restore failure.

  • Before: The routing tables provide no dedicated procedure for investigating and rerunning failed CI.
  • After: The agent reads failure logs, establishes whether the PR caused the failure, and reruns failed jobs only when appropriate.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Focused documentation with passing current-head gates and no actionable finding; static validation does not establish improved model compliance.
Proof confidence 🐚 platinum hermit (4/6) This documentation-only change has current-head static validation and requires no application runtime proof; no CI rerun or model-comparison exercise was performed during review.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Docs · Worth it: Yes · Fix scope: Complete
User problem: Agents handling CI-rerun requests lack one discoverable procedure for investigating failures before acting.
Reason: The collaborator-authored direction fits the existing task-routing system and adds a bounded operational guide without application or configuration changes.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it adds useful, focused guidance absent from current main, and collaborator authorship also prevents automatic closure. No actionable defect was found.

Priority: P3
Reviewed head: b4cdc100f616015dd05e8c756b0d2eeb67a52d4b

Before merge

None.

Findings

None.

Agent review details

How this fits together

Repository instructions route coding-agent requests into a skill that consumes PR changes and CI failure evidence, then produces a warning or an authorized failed-job rerun.

flowchart TD
  A[CI rerun request] --> B[Agent routing tables]
  B --> C[CI triage skill]
  C --> D[PR changes and failed logs]
  D --> E[Failure classification]
  E --> F[Warn or rerun failed jobs]
Loading

Technical review

Best possible solution:

Land the focused skill and routing additions through the normal PR process.

Do we have a high-confidence way to reproduce the issue?

The missing routing and dedicated procedure are directly observable in the PR base and fetched main; cross-model behavior claims were not independently reproduced.

Is this the best way to solve the issue?

A single procedural skill with links from the existing routing tables is a proportionate solution that preserves current instruction ownership.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against f906460f9c43.

Provenance checked

  • Agent task routing and workflow checklist keeps the original intent (3977f82: The earlier workflow work established task routing and evidence requirements; subsequent PR-preparation and simplification changes extended that pattern.)

Testing

Proof path: none.

Security

None.

Evidence

What I checked:

  • Verified introduced scope: The pinned introduction adds one 144-line skill and one routing row in each existing table, without changing executable code or workflows. (.agents/skills/retrigger-flaky-ci/SKILL.md:1, b4cdc100f616)
  • Distinct contribution remains absent from main: Fetched main has no retrigger-flaky-ci skill, and its versions of the two routing documents match the PR base. (AGENTS.md:22, f906460f9c43)
  • Workflow and failure-backlog grounding: Build and Test uses pull_request events; CI Gate aggregates required job results; the linked CI failure backlog contains concrete failures and investigation guidance. (.github/workflows/ci.yml:1490, b4cdc100f616)
  • Current-head validation: All reported checks completed: five succeeded, including fast-validation and CI Gate, and seventeen were skipped. The workflow includes agent-skill validation and validator regression checks. (.github/workflows/ci.yml:168, b4cdc100f616)
  • Discussion and close guard: REST reads confirm collaborator authorship, an unchanged reviewed head, clean mergeability, no submitted reviews, and only review-status bot comments. (b4cdc100f616)
  • Feature history and local limit: History identifies repeated agent-workflow contributions by Barbara Kudiess and prior repository-guidance contributions by Pedro Larroy. Following AGENT_WORKFLOWS.md history reached an unavailable historical object; no unsupported introduction claim depends on it. (docs/AGENT_WORKFLOWS.md:189, f906460f9c43)

Likely related people:

  • Barbara Kudiess: Raw commit 3977f82 adds docs/AGENT_WORKFLOWS.md:63 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 3977f8206ed4; files: docs/AGENT_WORKFLOWS.md)

Labels

Label changes:

  • add P3: This is a low-risk improvement to contributor and coding-agent guidance with no application runtime change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is a low-risk improvement to contributor and coding-agent guidance with no application runtime change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 3, 2026, 5:37 PM ET / 22:37 UTC.

@larroy
larroy merged commit 12789b4 into openclaw:main Nov 3, 2026
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant