test(live): add Docs structure-preservation regressions#841
Conversation
Add scripts/live-tests/structure.sh (skip key: structure), wired into live-test.sh. Seeds a rich docs fixture (headings, bulleted/numbered lists, bold/italic/link runs) and asserts structural invariants survive mutating ops via the existing raw --json + python-assert idiom. Wired asserts: inline markdown find-replace preserves bullet + heading (the openclaw#740-guarded safe path). Known-bug op openclaw#838 (block/multi-paragraph markdown replace drops the bullet) is an xfail run_optional that flips to a hard assert once fixed. Slides and sheets sections plus the person-chip / inline-image (openclaw#839) / table / adjacent-order invariants are stubbed with TODO markers for follow-up. Covers the structure-loss class behind openclaw#838 and openclaw#839. Design + full coverage matrix in the tracking issue. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Co-authored-by: Sebastian Roth <[email protected]>
|
Codex review: needs maintainer review before merge. Reviewed June 18, 2026, 7:06 AM ET / 11:06 UTC. Summary Reproducibility: not applicable. as a bug reproduction for this PR. Source inspection confirms current main lacks the live structure suite, and the PR body reports a live Google Docs run of the added assertions. Review metrics: 2 noteworthy metrics.
Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Merge the focused live-suite addition after normal checks, keeping it aligned with the merged Docs structure and image-anchor fixes. Do we have a high-confidence way to reproduce the issue? Not applicable as a bug reproduction for this PR. Source inspection confirms current main lacks the live structure suite, and the PR body reports a live Google Docs run of the added assertions. Is this the best way to solve the issue? Yes. A separate live suite with its own skip key matches the existing live-test organization and exercises current Docs fixes through raw JSON invariants without changing product code. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 83f51c60f183. Label changesLabel changes:
Label justifications:
Evidence reviewedWhat I checked:
Likely related people:
What the crustacean ranks mean
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. How this review workflow works
|
Summary
structureskip key--fastfree of Docs structure mutationsFixes #840.
Testing
bash -n scripts/live-test.sh scripts/live-tests/structure.shgo test ./scripts -count=1make ci