Repository navigation
fix(skills): require re-review when proposals change - #126156
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 19, 2026, 1:19 AM ET / 05:19 UTC. ClawSweeper reviewWhat this changesThe PR requires Skill Workshop apply, reject, and agent-authored revision actions to carry the revision hash of the proposal the operator reviewed. Regression provenancePossible regression — probable (reviewed change; failure trace). No predecessor PR is attributed. Merge readinessKeep open for maintainer review: the revision-binding path is coherent and the earlier CLI expectation concern is addressed, but current-main and stable-tag compatibility cannot be independently verified in this shallow checkout. Priority: P1 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherSkill Workshop lets operators review pending skill drafts and then apply, reject, or request revisions through the Control UI, CLI, iOS app, and Gateway. The Gateway and agent runtime must preserve the reviewed draft identity until the mutation either succeeds or requires a fresh review. flowchart LR
A[Operator reviews draft] --> B[UI, iOS, or CLI]
B --> C[Gateway proposal request]
C --> D{Reviewed hash matches?}
D -->|Yes| E[Apply, reject, or revision run]
D -->|No| F[Refresh draft]
F --> G[Require explicit re-review]
Decision needed
Why: Repository policy permits tightening beta-only contracts, but the required tag/client provenance cannot be established from this shallow, offline checkout. Before merge
Agent review detailsSecurityNone. PR surfaceSource +393, Tests +1112, Other +136. Total +1641 across 74 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep one Gateway-owned revision constraint through all decision transports, and land only after verifying that no stable client contract omits the hash and that exact-head CI is green. Do we have a high-confidence way to reproduce the issue? Yes, from source: the Gateway tests create H1, revise it to H2, then assert stale H1 apply, reject, and revision requests fail without mutation or agent start; the Control UI E2E also exercises the stale refresh path. Is this the best way to solve the issue? Yes, provisionally: the hash is checked at the mutation owner and carried through the restricted revision run rather than inferred downstream; only the release/client compatibility assertion remains unverified locally. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 2456c7745991. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Review disposition is now recorded in the PR body:
Exact-head CI's remaining failure is inherited from current |
2c7a3d7 to
e4c4e06
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
9e861bd to
e3a22de
Compare
e3a22de to
94573da
Compare
|
Maintainer disposition for the ClawSweeper review and rank-up move:
Final exact head These owner decisions resolve the listed merge risks. The operator-decision boundary remains fail-closed and does not broaden authorization. |
|
Merged via squash.
|
* fix(skills): bind workshop decisions to reviewed revisions * chore(i18n): refresh native source inventory * test(skills): align revision proof with inspect projection * test: align skill workshop regression fixtures * fix(ui): align workshop revision admission proof * fix(ui): keep revision errors out of startup
What Problem This Solves
Fixes an issue where operators could review Skill Workshop proposal revision H1, but Apply, Reject, or natural-language Revision would act on a concurrently loaded H2 because the reviewed
revisionHashwas dropped by client and handoff paths.This is an operator-decision integrity failure: the mutation could be validly authorized but target content the operator never reviewed.
Why This Change Was Made
Every operator decision now carries the exact reviewed revision hash through the Control UI, revision queue, Gateway RPC, CLI, iOS, embedded runtime, and CLI-backed MCP runtime. Apply, Reject, and natural-language Revision require the hash at the protocol boundary.
A stale decision returns structured
SKILL_PROPOSAL_REVISION_CHANGEDdetails, refreshes H2, removes the stale queued action without replay, and requires a new explicit review/action. Cross-agent revision runs retain the proposal owner's workspace and run with only the boundskill_workshoptool. Authorization scopes and protocol version remain unchanged.AI-assisted implementation; the final diff was independently autoreviewed.
Review disposition
expectedRevisionHashproposal contract was introduced in14940edf15fand is reachable only from beta/release-publish tags (v2026.7.2-beta.6,v2026.7.2-beta.7,v2026.8.1-beta.1,v2026.8.1-beta.2), not a stable release tag. Repository compatibility policy explicitly permits removing/tightening beta-only contracts. Existing clients are updated and generated together here; an omitted review hash fails closed rather than permitting an unreviewed decision.skills.proposals.revise: intentionally remains optional. It is the direct controller/tool mutation RPC, not the operator natural-language Revision decision. Natural-language Revision is hard-bound throughskills.proposals.requestRevisionand the private run/tool constraint.src/cli/skills-cli.workshop-cache.test.tsto expectskills.proposals.inspect; the reviewed finding refers to the supersededhealthexpectation.User Impact
Operators can trust that Apply, Reject, and Revision affect exactly the proposal revision they inspected. If another revision arrives concurrently, OpenClaw shows the updated draft and asks for re-review instead of silently acting on it.
Visual evidence
Apply: reviewed H1
Apply: stale H1 rejected, refreshed H2 requires review
Natural-language Revision: reviewed H1
Natural-language Revision: stale H1 rejected, refreshed H2 requires review
Evidence
Focused behavior and contract proof:
RootTabsPresentationTests: 67 passed.pnpm buildpassed with Control UI performance budgets green.autoreview --mode uncommitted: clean, no accepted/actionable findings.The broad changed gate passed formatting, guards, dead-export checks, all TypeScript typecheck lanes, core/UI/scripts/Swift lint, and task-owned tests. The local macOS aggregate gate was blocked only by the unrelated
test/scripts/mac-elevation-host.test.tsno-output hang; all six sibling packaging/tooling tests passed individually and the hang is under separate investigation.Exact-head CI exposed a temporary red-main Plugin SDK docs-contract drift introduced by #126132. Current
mainnow contains the equivalent wording repair, so the credited docs-only commit was dropped during rebase; #126152 retains its separate cloud-doc contract work.Production LOC: +570/-153 (net +417) | Tests: +1180/-24 | Generated protocol: +58/-2 | Native i18n inventory: +11