Repository navigation
ci: add fail-closed docs and skill fast path - #1313
Conversation
Co-authored-by: Copilot App <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: blocked before merge. Reviewed September 3, 2026, 7:14 PM ET / 23:14 UTC. ClawSweeper reviewWhat this changesThe 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 Review scores
Verification
How this fits togetherThe 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]
Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest 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. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Summary
docs_onlyonly when every changed path is explicitly allowlisted maintained documentation or non-executable.agents/skillscontentCI Gatecheck, which rejects classification/fast-validation failures and unexpected failed, cancelled, or skipped full lanesCI GateRequired 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- passeddotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore- passed: 3,905 passed, 32 skipped, 0 faileddotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restorewith isolatedOPENCLAW_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 modesactionlint .github/workflows/ci.yml- no new findings; only the pre-existing intentionalbuild-msixif: falsediagnostic remainsfast-validationto Windows after identifying reused validators' Windows path assumptions, and added executable gate-result matrix testsReal behavior proof
.agents/skills/example/SKILL.md-only input returnsdocs_onlysrc/OpenClaw.Shared/Example.csreturnsfullfullfullfullExpected docs-only target
The motivating target is a PR whose complete diff is non-executable content under
.agents/skills/**, such as a global skillSKILL.mdupdate. 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 Gateare self-contained CI orchestration changes and do not alter product binaries or release artifacts.