Skip to content

fix: prevent hourly CI from claiming full validation - #157852

Merged
RomneyDa merged 5 commits into
mainfrom
fix/release-feedback-ci-receipts
Sep 25, 2026
Merged

RomneyDa merged 5 commits into
mainfrom
fix/release-feedback-ci-receipts

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Sep 25, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Reduced hourly CI can claim full validation, and Docs Agent runs that skip review can suppress later work or advance its review base past unreviewed changes.

Why This Change Was Made

Require the full validation tier before emitting the receipt. Use exact-attempt writer and agent-step evidence for Docs Agent history: active writers retain cadence protection, while only successful reviews advance the review base. Keep current direct CI scheduling, iOS concurrency, and nightly validation.

User Impact

Hourly main-tier CI no longer authorizes automatic Docs Agent writes. Opted-in full main-push validation and explicit non-bot manual Docs Agent dispatch remain available. With OPENCLAW_CI_ON_PUSH unset, automatic Docs Agent writes are disabled. Skipped attempts cannot hide changes from the next eligible review.

Evidence

  • Main-tier receipt regression failed before repair; direct scheduled invocation is covered.
  • Three real-shell history regressions failed before repair: denied verification, a successful gate with a skipped agent, and a failed review incorrectly affected later work.
  • Final Docs Agent suite: 50/50 tests passed; hourly scheduling suite: 22/22 passed. Coverage includes exact-attempt API pages, active/queued writers, skipped/failed/successful reviews, manual dispatch, and superseded CI.
  • Removed the obsolete script-byte hash that froze cadence during an earlier Git-owner migration. Retained its Git ownership, deadline, and action-authority assertions; executable history tests protect the changed behavior. Full guard suite passed 315tests with 10 existing Linux-only skips (156.36s suite,157.59s wrapper).
  • Test cost: the 50-case Docs Agent suite took 31.06s locally (32.35s wrapper); hosted execution took 10.969s for this file. Its 117-test shard took 28.79s and the whole job 84s; those totals include other work.
  • Full changed gate, workflow validation, and fresh independent P2 review passed. Exact-attempt jobs API shape was also checked read-only against a real Docs Agent run. No deployed write run was dispatched.
  • Conflicts from the direct-schedule migration are resolved. Rebased unchanged onto 7c4866c73b31 after main repaired the unrelated team-reports typecheck failure. Hosted CI and ClawSweeper review are running on the final head.

@RomneyDa
RomneyDa marked this pull request as ready for review September 25, 2026 03:19
@clawsweeper

clawsweeper Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: XS labels Sep 25, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 25, 2026
@clawsweeper

clawsweeper Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 25, 2026, 3:33 PM ET / 19:33 UTC (Revision 4).

ClawSweeper review

What this changes

The branch limits CI’s validation receipt to full-tier runs and makes OpenClaw’s Docs Agent documentation updater use exact-attempt job results for its cadence and review history, with matching docs and tests.

Merge readiness

⛔ Blocked before merge - 4 items remain

Current main still lets reduced hourly CI emit a full-validation receipt. This PR addresses that defect and the previously flagged Docs Agent history problem. A CI owner still needs to accept the resulting change to default automatic docs updates.

Priority: P2
Reviewed head: efc44930cf4f146d09298709cd0bf38525028537
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused workflow repair with meaningful gate coverage remains subject to a default-cadence decision and required test-cost accounting.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: The CI receipt expression and Docs Agent Bash gate are exercised under synthetic scheduled and push-run responses, showing reduced-tier denial and exclusion of skipped history. No deployed write run was dispatched; the MEMBER-authored PR is exempt from ordinary contributor proof, and no stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The CI receipt expression and Docs Agent Bash gate are exercised under synthetic scheduled and push-run responses, showing reduced-tier denial and exclusion of skipped history. No deployed write run was dispatched; the MEMBER-authored PR is exempt from ordinary contributor proof, and no stored-data contract changes.
Evidence reviewed 9 items Current-main defect: The fetched main revision emits the confirmation step after successful CI without checking the selected validation tier; scheduled CI selects the main tier.
Introduced receipt guard: The pinned PR delta adds a full-tier condition to the receipt producer.
Write admission boundary: Docs Agent checks the exact completed CI attempt and its successful confirmation step before allowing the write job.
Findings None None.
Security None None.

How this fits together

CI selects a validation tier and publishes a receipt after its aggregate checks succeed. Docs Agent consumes that receipt before admitting an automatic documentation write, then uses prior job results to decide when and from which revision to review.

flowchart LR
A[Main push or hourly run] --> B[CI validation]
B --> C{Full-tier receipt?}
C -->|Yes| D[Docs Agent admission]
C -->|No| H[Skip automatic write]
G[Manual dispatch] --> D
D --> E[Exact-attempt history]
E --> F[Docs update or skip]
Loading

Decision needed

Question Recommendation
Should Docs Agent operate by manual dispatch or opted-in full main pushes by default after reduced hourly CI stops authorizing writes? Accept manual or opt-in writes: Approve the documented operating model without adding another full-tier CI schedule.

Why: The branch deliberately ends an existing automatic path; choosing its replacement or accepting that operational change requires CI owner intent.

Before merge

  • Resolve merge risk (P1) - With OPENCLAW_CI_ON_PUSH unset, existing default automatic Docs Agent writes stop; documentation can drift until an operator dispatches Docs Agent or enables full main-push CI.
  • Resolve merge risk (P1) - The captured current PR body omits the repository-required measured wall and CI costs for the changed Docs Agent tests.
  • Complete next step (P2) - Record the CI owner’s choice on default Docs Agent writes, and add measured wall and CI costs for the changed test suite before merge.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.
Agent review details

Security

None.

PR surface

Tests +82, Docs +9, Config +26. Total +117 across 5 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 100 18 +82
Docs 2 24 15 +9
Config 2 30 4 +26
Generated 0 0 0 0
Other 0 0 0 0
Total 5 154 37 +117

Review metrics

Metric Value Why it matters
Default automatic write paths 1 removed Reduced hourly CI will no longer authorize Docs Agent writes when main-push CI is not opted in.

Merge-risk options

Maintainer options:

  1. Accept opt-in Docs Agent writes (recommended)
    Explicitly accept manual dispatch or full main-push opt-in as the operating model.
  2. Restore qualified automatic upkeep
    Provide a sustainable full-tier validation schedule that can issue the required receipt.

Technical review

Best possible solution:

Keep the full-tier receipt and successful-review history rules, with an explicitly owned Docs Agent operating cadence and measured test cost recorded before merge.

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

Yes, at source level: current main selects the reduced main tier for scheduled CI yet can still emit the full-validation receipt consumed by Docs Agent. This read-only review did not dispatch a live run.

Is this the best way to solve the issue?

Yes for the code boundary: the receipt is constrained at its producer, and history uses exact-attempt writer results. The default Docs Agent operating cadence still needs an owner decision.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • 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. Not applicable: The CI receipt expression and Docs Agent Bash gate are exercised under synthetic scheduled and push-run responses, showing reduced-tier denial and exclusion of skipped history. No deployed write run was dispatched; the MEMBER-authored PR is exempt from ordinary contributor proof, and no stored-data contract changes.
  • remove rating: 🦐 gold shrimp: 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 documentation automation correctness repair with limited user-facing blast radius.
  • merge-risk: 🚨 automation: The corrected receipt ends the current default automatic Docs Agent write path unless operators opt in or dispatch it manually.
  • 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. Not applicable: The CI receipt expression and Docs Agent Bash gate are exercised under synthetic scheduled and push-run responses, showing reduced-tier denial and exclusion of skipped history. No deployed write run was dispatched; the MEMBER-authored PR is exempt from ordinary contributor proof, and no stored-data contract changes.

Evidence

What I checked:

Likely related people:

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

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Record the CI owner’s decision on default Docs Agent writes.
  • Add measured test wall time and CI seconds to the PR body.

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 (3 earlier review cycles)
  • reviewed 2026-09-25T03:25:24.572Z sha deb14d6 :: blocked before merge. :: [P3] Update the remaining hourly Docs Agent descriptions
  • reviewed 2026-09-25T05:12:06.952Z sha aa63cd1 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-25T19:14:02.084Z sha a11d06862567c8c89a327ce365571def5b9dcc69 :: blocked before merge. :: [P1] Exclude denied hourly attempts from Docs Agent history

@RomneyDa
RomneyDa force-pushed the fix/release-feedback-ci-receipts branch from deb14d6 to aa63cd1 Compare September 25, 2026 05:05
@RomneyDa

Copy link
Copy Markdown
Member Author

Corrected the remaining scheduled-workflow documentation, including every stale claim that hourly main-tier children qualify for Docs Agent writes. The operating result is explicit: reduced-tier runs do not authorize full-validation writes; default automatic Docs Agent writes stop, while explicit non-bot dispatch and opted-in full main pushes remain available. This receipt-integrity repair does not add a replacement full-tier schedule.

Rebased onto e4414b6146d52326f1e42aaa612c5f046f23ad63 to pick up main's unrelated architecture and planner repairs. The focused Docs Agent suite passed 45/45 tests, and formatting, diff checks, and the full documentation changed gate passed. Measured suite and wrapper costs are in the updated PR body.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Sep 25, 2026
@RomneyDa
RomneyDa force-pushed the fix/release-feedback-ci-receipts branch from aa63cd1 to a11d068 Compare September 25, 2026 19:05
@clawsweeper clawsweeper Bot added 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. and removed 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 Sep 25, 2026
@RomneyDa
RomneyDa force-pushed the fix/release-feedback-ci-receipts branch from a11d068 to efc4493 Compare September 25, 2026 19:24
@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: 🦐 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 25, 2026
@RomneyDa
RomneyDa merged commit d7ad78b into main Sep 25, 2026
124 checks passed
@RomneyDa
RomneyDa deleted the fix/release-feedback-ci-receipts branch September 25, 2026 19:52
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 26, 2026
* fix: prevent hourly CI from claiming full validation

* docs(ci): clarify Docs Agent admission and cadence

* fix(ci): preserve full-validation receipts after schedule migration

* fix(ci): exclude skipped docs work from review history

* test(ci): replace obsolete docs cadence byte guard with behavior proof
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S 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