Skip to content

test(docs): repair consolidated docs contracts - #126152

Closed
VACInc wants to merge 1 commit into
openclaw:mainfrom
VACInc:fix/docs-contract-lanes
Closed

VACInc wants to merge 1 commit into
openclaw:mainfrom
VACInc:fix/docs-contract-lanes

Conversation

@VACInc

@VACInc VACInc commented Aug 19, 2026

Copy link
Copy Markdown
Member

What Problem This Solves

main is red in two core-lane documentation contracts inherited by every merge-ref after #126132 (docs: consolidate setup and plugin references). The docs-only PR did not run these core-lane assertions.

Why This Change Was Made

The consolidation moved GCP and Hetzner Docker setup ownership to docs/install/docker-vm-runtime.md. The cloud-secret contract now verifies that canonical page states the maintained setup generates the Gateway token and synchronizes .env, while retaining the scan that rejects copy-paste token and password placeholders throughout install docs. The Plugin SDK catalog again explicitly states that it labels private-local entries, preserving the public-surface documentation boundary.

User Impact

No product behavior changes. This restores main-green documentation contracts and preserves safe token setup guidance for cloud VM installs.

Evidence

  • Provenance and urgency: docs: consolidate setup and plugin references #126132 introduced the cross-lane failures now making main red.
  • Before this patch on origin/main (57e5ab7a879): node scripts/run-vitest.mjs src/docs/install-cloud-secrets.test.ts failed because gcp.md no longer contained the copied environment block; node scripts/run-vitest.mjs src/plugins/contracts/plugin-sdk-subpaths.test.ts failed because the SDK catalog no longer contained private-local entries explicitly.
  • After this patch: both focused node scripts/run-vitest.mjs commands passed (1/1 and 18/18 tests).
  • pnpm check:changed passed.
  • .agents/skills/autoreview/scripts/autoreview --mode branch --base origin/main passed clean with no accepted/actionable findings.
  • Follow-up, out of scope: these documentation-content assertions still run in core lanes. Consider assigning them to a docs-affecting lane so a docs-only PR cannot skip this coverage.

@clawsweeper

clawsweeper Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: XS labels Aug 19, 2026
@VACInc
VACInc marked this pull request as ready for review August 19, 2026 03:28
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 19, 2026
@clawsweeper

clawsweeper Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed August 18, 2026, 11:38 PM ET / August 19, 2026, 03:38 UTC.

ClawSweeper review

What this changes

The PR moves the cloud-token documentation assertion to the shared Docker VM guide and clarifies the Plugin SDK catalog wording required by its contract test.

Regression provenance

Possible regression — probable (reviewed change; failure trace). No predecessor PR is attributed.

Merge readiness

⛔ Blocked until real behavior proof from a real setup is added - 3 items remain

Keep open. The patch correctly updates the two stale documentation contracts, but it leaves their root cause intact: docs-only changes bypass these source-lane tests and can again break later core CI.

Priority: P2
Reviewed head: b795cb61d00320a10fe5c0750fcd7144cd46e765

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The direct contract repair is sound, but the docs-lane root cause and real-behavior proof remain unresolved.
Proof confidence 🦪 silver shellfish (2/6) Needs real behavior proof before merge: The PR body reports focused Vitest results but provides no terminal output, log, artifact, or other after-fix real-behavior evidence; add redacted terminal proof of the pre-fix failure and PR-head pass. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Needs proof Needs real behavior proof before merge: The PR body reports focused Vitest results but provides no terminal output, log, artifact, or other after-fix real-behavior evidence; add redacted terminal proof of the pre-fix failure and PR-head pass. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 6 items Current-main cloud contract is stale: Current main still requires removed token and password blocks in the provider guides, even though those guides delegate Docker setup to the shared page.
Canonical owner matches runtime behavior: The shared guide says setup generates a token and synchronizes .env; the setup script generates a token when absent and upserts it into .env.
SDK wording satisfies its real contract: Current main's contract test reads the SDK catalog and requires the explicit private-local boundary; the PR wording accurately reflects the authoritative public/private entrypoint split.
Findings 1 actionable finding [P2] Run this documentation contract in the docs lane
Security None None.

Live Verification

Command: node scripts/run-vitest.mjs src/docs/install-cloud-secrets.test.ts

Result: FAIL (partial) — step 2 expect_output does not publish a copy-paste gateway token placeholder: expected terminal output was not visible within 30 seconds: "does not publish a copy-paste gateway token placeholder"

node scripts/run-vitest.mjs src/docs/install-cloud-secrets.test.ts
runner@runnervmzvulz:/tmp/clawsweeper-live-proof-126152-Fh8gDN/target$ node scripts/run-vitest.mjs src/docs/install-cloud-secrets.test.ts
node scripts/run-vitest.mjs src/docs/install-cloud-secrets.test.ts
[test] starting test/vitest/vitest.unit.config.ts

 RUN  v4.1.10 /tmp/clawsweeper-live-proof-126152-Fh8gDN/target

 ✓  unit  src/docs/install-cloud-secrets.test.ts (1 test) 71ms

 Test Files  1 passed (1)
      Tests  1 passed (1)
   Start at  03:40:35
   Duration  1.43s (transform 1.08s, setup 1.01s, import 6ms, tests 71ms, environment 0ms)

[test] passed 1 Vitest shard in 11.95s
runner@runnervmzvulz:/tmp/clawsweeper-live-proof-126152-Fh8gDN/target$ node scripts/run-vitest.mjs src/docs/install-cloud-secrets.test.ts
[test] starting test/vitest/vitest.unit.config.ts

 RUN  v4.1.10 /tmp/clawsweeper-live-proof-126152-Fh8gDN/target

 ✓  unit  src/docs/install-cloud-secrets.test.ts (1 test) 43ms

 Test Files  1 passed (1)
      Tests  1 passed (1)
   Start at  03:40:47
   Duration  746ms (transform 383ms, setup 474ms, import 4ms, tests 43ms, environment 0ms)

[test] passed 1 Vitest shard in 11.21s
runner@runnervmzvulz:/tmp/clawsweeper-live-proof-126152-Fh8gDN/target$






















Assertions:

  • FAIL expect_output: does not publish a copy-paste gateway token placeholder

How this fits together

Cloud-provider guides delegate shared container setup to the Docker VM guide, while documentation contracts check that safe setup guidance stays aligned with the maintained setup script. The Plugin SDK catalog similarly translates the authoritative export inventory into plugin-author documentation.

flowchart LR
  A[Provider setup guides] --> B[Shared Docker VM guide]
  C[Docker setup script] --> B
  B --> D[Cloud documentation contract]
  E[Plugin SDK inventory] --> F[SDK catalog contract]
  F --> G[Plugin SDK documentation]
  D --> H[Validation lane]
  G --> H
Loading

Before merge

  • Add real behavior proof - Needs real behavior proof before merge: The PR body reports focused Vitest results but provides no terminal output, log, artifact, or other after-fix real-behavior evidence; add redacted terminal proof of the pre-fix failure and PR-head pass. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Run this documentation contract in the docs lane (P2) - These assertions read documentation owned by docs/, but docs-only changes set docsOnly and skip Node tests while the docs job runs only pnpm check:docs. That gap already let the consolidation merge with stale expectations; route this contract and the SDK catalog assertion through docs-selected validation so the next docs-only edit cannot break a later core merge-ref.
  • Complete next step (P2) - The contributor must route the contracts through docs validation and provide real terminal proof before this PR can merge.

Findings

  • [P2] Run this documentation contract in the docs lane — src/docs/install-cloud-secrets.test.ts:42-44
Agent review details

Security

None.

PR surface

Tests +2, Docs 0. Total +2 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 8 6 +2
Docs 1 3 3 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 11 9 +2

Review metrics

Metric Value Why it matters
Production versus test delta documentation +3/-3; test +8/-6 The documentation change is net-neutral, while the test change updates an existing contract rather than adding runtime behavior.

Stored data model

Persistent data-model change detected: serialized state: src/docs/install-cloud-secrets.test.ts. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best possible solution:

Run the cloud and SDK documentation contracts from docs-selected validation so changes to their owned pages cannot bypass the checks.

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

Yes, from source: current main retains provider-guide assertions that contradict the canonical shared guide, and docs-only routing demonstrably skips their Node test. No contributor code was executed in this read-only external-PR review.

Is this the best way to solve the issue?

No. Updating the stale assertions is necessary and correct, but the durable repair also routes these documentation contracts through docs validation.

Full review comments:

  • [P2] Run this documentation contract in the docs lane — src/docs/install-cloud-secrets.test.ts:42-44
    These assertions read documentation owned by docs/, but docs-only changes set docsOnly and skip Node tests while the docs job runs only pnpm check:docs. That gap already let the consolidation merge with stale expectations; route this contract and the SDK catalog assertion through docs-selected validation so the next docs-only edit cannot break a later core merge-ref.
    Confidence: 0.97

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: This repairs a limited-scope main-only documentation-contract regression, but it does not establish a current user-facing outage.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦐 gold shrimp.
  • add status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: The PR body reports focused Vitest results but provides no terminal output, log, artifact, or other after-fix real-behavior evidence; add redacted terminal proof of the pre-fix failure and PR-head pass. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Label justifications:

  • P2: This repairs a limited-scope main-only documentation-contract regression, but it does not establish a current user-facing outage.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: The PR body reports focused Vitest results but provides no terminal output, log, artifact, or other after-fix real-behavior evidence; add redacted terminal proof of the pre-fix failure and PR-head pass. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Evidence

What I checked:

  • Current-main cloud contract is stale: Current main still requires removed token and password blocks in the provider guides, even though those guides delegate Docker setup to the shared page. (src/docs/install-cloud-secrets.test.ts:37, a441431896b4)
  • Canonical owner matches runtime behavior: The shared guide says setup generates a token and synchronizes .env; the setup script generates a token when absent and upserts it into .env. Public docs: docs/install/docker-vm-runtime.md. (docs/install/docker-vm-runtime.md:56, b795cb61d003)
  • SDK wording satisfies its real contract: Current main's contract test reads the SDK catalog and requires the explicit private-local boundary; the PR wording accurately reflects the authoritative public/private entrypoint split. (src/plugins/contracts/plugin-sdk-subpaths.test.ts:489, a441431896b4)
  • Docs-only lane still bypasses the repaired test: Docs-only changes set docsOnly and disable Node tests, while the docs job runs only check:docs; the added assertions therefore remain outside the lane that owns their inputs. (.github/workflows/ci.yml:581, b795cb61d003)
  • History and current-main comparison: Blame attributes both affected contract tests to the same author, while the later consolidation moved the documentation owner; a three-way merge against current main is clean and the PR head is not on main. (src/docs/install-cloud-secrets.test.ts:37, 2a97397f479a)
  • Release check: Neither the consolidation nor this repair is contained by the latest release tag; the defect and proposed repair are main-only. (0790d9f593ad)

Likely related people:

  • steipete: Git blame attributes both current-main contract tests to Peter Steinberger's commit, and the same author merged the documentation consolidation that made their old expectations stale. (role: documentation-contract and consolidation author; confidence: high; commits: 2cd87d3d27c1, 2a97397f479a; files: src/docs/install-cloud-secrets.test.ts, src/plugins/contracts/plugin-sdk-subpaths.test.ts, docs/install/docker-vm-runtime.md)

Rank-up moves

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

  • Run both documentation contracts from docs-selected validation.
  • Add redacted terminal evidence showing the stale check fails before the repair and passes afterward, then update 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.

@VACInc

VACInc commented Aug 19, 2026

Copy link
Copy Markdown
Member Author

Superseded by main: both contract breaks from #126132 were repaired upstream — docs/plugins/sdk-subpaths.md regained the boundary-labeling sentence ("private-local entries explicitly") via #126193 (3378e07d50b), and src/docs/install-cloud-secrets.test.ts on current main now carries only the negative copy-paste-token assertion, which the consolidated docs/install/gcp.md satisfies. Verified by content inspection of current origin/main (7a82d8b0f25); both invariants this PR protected are intact there. Closing as no longer needed.

@VACInc VACInc closed this Aug 19, 2026
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 P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: XS status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant