Skip to content

ci: add fail-closed docs and skill fast path - #1313

Merged
shanselman merged 3 commits into
mainfrom
shanselman-ci-fast-path-gate
Sep 3, 2026
Merged

shanselman merged 3 commits into
mainfrom
shanselman-ci-fast-path-gate

Conversation

@shanselman

Copy link
Copy Markdown
Collaborator

Summary

  • classify pull requests as docs_only only when every changed path is explicitly allowlisted maintained documentation or non-executable .agents/skills content
  • run repository hygiene, documentation, agent-skill, classifier, gate, and workflow contract validation in a lightweight always-running lane
  • skip Windows test, E2E, and release-build matrices only for docs-only PRs while preserving full validation for mixed/unknown changes, main pushes, and tags
  • add the stable CI Gate check, which rejects classification/fast-validation failures and unexpected failed, cancelled, or skipped full lanes
  • require tag releases to pass CI Gate

Required proof pools

none: this changes CI orchestration and repository validation scripts only. It does not change product, Windows node, MCP, gateway, installer runtime, or UI behavior.

Validation

  • $env:OPENCLAW_REPO_ROOT=(Get-Location).Path; .\build.ps1 - passed
  • dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore - passed: 3,905 passed, 32 skipped, 0 failed
  • dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore with isolated OPENCLAW_TRAY_DATA_DIR - passed: 2,833 passed, 0 skipped, 0 failed
  • .\scripts\test-ci-change-classifier.ps1 - passed
  • .\scripts\test-ci-gate-results.ps1 - passed
  • .\scripts\test-ci-workflow-contract.ps1 - passed
  • .\scripts\validate-agent-skills.ps1 - passed: 5 skills and 12 Markdown files
  • .\scripts\test-agent-skills-validator.ps1 - passed
  • .\scripts\test-proof-pool-validator.ps1 - passed: 75 invalid contracts rejected in 3 validation modes
  • actionlint .github/workflows/ci.yml - no new findings; only the pre-existing intentional build-msix if: false diagnostic remains
  • rubber-duck review - completed; moved fast-validation to Windows after identifying reused validators' Windows path assumptions, and added executable gate-result matrix tests

Real behavior proof

  • synthetic .agents/skills/example/SKILL.md-only input returns docs_only
  • skill docs plus src/OpenClaw.Shared/Example.cs returns full
  • workflow/build configuration, scripts, props/targets, package manifests, installer, source, test, extensionless skill script, and unknown paths return full
  • empty diffs and invalid/missing revisions return full
  • gate matrix accepts only intentional docs-only skips or all-success full lanes; it rejects classification/fast-validation failure, cancellation, full-lane failure, and unexpected skips
  • this PR's own workflow/script change set returns full

Expected docs-only target

The motivating target is a PR whose complete diff is non-executable content under .agents/skills/**, such as a global skill SKILL.md update. Maintained root/docs Markdown and documentation diagram assets are also allowlisted. Any mixed or unknown path falls back to full CI.

Rollback boundary

Revert this PR to restore the previous always-full workflow. The classifier, fast-validation lane, and CI Gate are self-contained CI orchestration changes and do not alter product binaries or release artifacts.

@clawsweeper

clawsweeper Bot commented Sep 3, 2026

Copy link
Copy Markdown

🦞👀
ClawSweeper picked this up.

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

@shanselman shanselman added the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Sep 3, 2026
@clawsweeper clawsweeper Bot added P2 Normal priority bug or improvement with limited blast radius. merge-risk: 🚨 automation 🚨 Merging this PR could break CI, automerge, proof capture, label sync, or automation. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 3, 2026
@clawsweeper

clawsweeper Bot commented Sep 3, 2026 •

Copy link
Copy Markdown

Codex review: blocked before merge. Reviewed September 3, 2026, 7:14 PM ET / 23:14 UTC.

ClawSweeper review

What this changes

The PR adds a fail-closed docs and agent-skills CI fast path with a stable gate that preserves full validation for every other change.

Merge readiness

⛔ Blocked before merge - 1 item remains

Keep this collaborator-authored PR open. The prior CI Gate checkout blocker is fixed at the current head, and source review found no remaining introduced correctness defect.

Priority: P2
Reviewed head: 8eb7b1e3893941d351a1f28620ea6cf6b2c9cd60

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The current head resolves the prior gate defect and has a well-scoped fail-closed implementation with targeted contract coverage.
Proof confidence 🌊 off-meta tidepool Not applicable: This collaborator-authored CI-only PR is exempt from the external-contributor proof gate; current-head classifier and fast-validation checks passed, while the full lanes remain ordinary workflow validation.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This collaborator-authored CI-only PR is exempt from the external-contributor proof gate; current-head classifier and fast-validation checks passed, while the full lanes remain ordinary workflow validation.
Evidence reviewed 4 items Prior blocker corrected: The stable CI Gate now checks out the repository before invoking its local result-contract script, resolving the previously reported missing-script failure.
Fail-closed classification: Non-pull-request events, invalid revisions, unavailable commits, diff failures, empty diffs, and non-allowlisted paths all select full validation.
Stable gate contract: The gate accepts skipped heavy lanes only for docs_only classification and requires every heavy lane to succeed for full classification.
Findings None None.
Security None None.

How this fits together

The GitHub Actions workflow classifies pull-request paths before selecting lightweight validation or the full Windows test, E2E, and build lanes. CI Gate consumes those outcomes and controls whether a release may proceed.

flowchart LR
A[Pull request or push] --> B[Change classification]
B --> C{Docs and skills only?}
C -->|Yes| D[Fast validation]
C -->|No| E[Full tests and builds]
D --> F[CI Gate]
E --> F
F --> G[Release eligibility]
Loading

Before merge

  • Resolve merge risk (P2) - A classifier or result-contract regression could incorrectly skip full validation for a code-bearing pull request, although the explicit allowlist, full fallback, and gate matrix substantially limit that risk.
Agent review details

Security

None.

Review metrics

Metric Value Why it matters
CI surface 12 files changed, +875/-39 The PR changes workflow routing and adds executable contracts around CI and release eligibility.

Merge-risk options

Maintainer options:

  1. Keep the fail-closed gate (recommended)
    Retain the explicit full fallback and result contract, which turn uncertain classification into extra validation instead of skipped validation.

Technical review

Best possible solution:

Retain the explicit allowlist, full-validation fallback, and stable CI Gate contract so documentation-only optimization cannot weaken code or release verification.

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

Not applicable: this is CI orchestration, not a reported product defect. The relevant paths are covered by classifier and result-contract scenarios plus current-head workflow checks.

Is this the best way to solve the issue?

Yes: an explicit allowlist with a full-validation fallback and a stable result gate is a narrow, maintainable way to optimize documentation-only pull requests.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 3a71e5f98eef.

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This collaborator-authored CI-only PR is exempt from the external-contributor proof gate; current-head classifier and fast-validation checks passed, while the full lanes remain ordinary workflow validation.
  • remove rating: 🧂 unranked krab: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: This is a bounded CI and release-gating improvement with no direct product-runtime change.
  • merge-risk: 🚨 automation: The PR changes CI lane selection, required result evaluation, and release-job eligibility.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This collaborator-authored CI-only PR is exempt from the external-contributor proof gate; current-head classifier and fast-validation checks passed, while the full lanes remain ordinary workflow validation.

Evidence

What I checked:

Likely related people:

  • shanselman: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (2 earlier review cycles)
  • reviewed 2026-09-03T22:17:08.292Z sha 00e20a9 :: blocked before merge. :: [P1] Check out the repository before running CI Gate
  • reviewed 2026-09-03T22:28:54.313Z sha f2a988c :: blocked before merge. :: [P1] Check out the repository before running CI Gate

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Sep 3, 2026
@clawsweeper clawsweeper Bot added 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. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 3, 2026
@shanselman
shanselman merged commit 5d19239 into main Sep 3, 2026
34 of 36 checks passed
@shanselman
shanselman deleted the shanselman-ci-fast-path-gate branch September 3, 2026 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk: 🚨 automation 🚨 Merging this PR could break CI, automerge, proof capture, label sync, or automation. P2 Normal priority bug or improvement with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. 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