Repository navigation
test(prompts): store snapshot variants as deltas - #129295
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 25, 2026, 10:51 PM ET / August 26, 2026, 02:51 UTC. ClawSweeper reviewWhat this changesThe PR replaces two repeated Codex prompt Markdown fixtures with SHA-bound unified-diff deltas materialized from the Telegram baseline during snapshot generation and checks. Merge readinessNo discrete correctness defect was established, but this maintainer-authored, protected PR remains for maintainer review; exact Codex and project-pinned diff dependency source were unavailable for the required contract pass. Priority: P3 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherOpenClaw’s prompt-snapshot tooling records representative Codex app-server inputs for regression review. It generates scenario fixtures, materializes them for assertions, and routes fixture edits to the prompt-snapshot verification lane. flowchart LR
A[Codex prompt scenarios] --> B[Snapshot generator]
B --> C[Telegram baseline fixture]
C --> D[Scenario delta fixtures]
D --> E[Materialized prompt snapshots]
E --> F[Hash and snapshot checks]
F --> G[Changed-file test routing]
Before merge
Agent review detailsSecurityNone. PR surfaceTests -1184, Other +150. Total -1034 across 13 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the single canonical fixture only after exact-head materialization proves all three prompt bytes remain identical and the Codex and diff contracts are inspected directly. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR refactors fixture representation rather than reporting a user-facing defect; the relevant verification is deterministic snapshot materialization. Is this the best way to solve the issue? Unclear: canonical SHA-bound deltas are a coherent representation, but the exact dependency and Codex runtime contracts required to call it the best solution could not be inspected locally. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against b611914e0d75. 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 (3 earlier review cycles) |
4f41f79 to
c0c8ae0
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
The remaining ClawSweeper contract-evidence item is complete on the exact reviewed head. Direct Codex inspection covered the collaboration-mode and prompt-state owners at sibling Codex commit 6677fd827d2c: The repository pins Exact materialization was regenerated, checked, regenerated a second time with an unchanged full diff, and verified byte-for-byte. The three resulting SHA-256 values are:
These match the reviewed fresh-main artifacts. Owner coverage passed 16/16, routing coverage passed 423/423, and the package patch guard, typed lint, formatting, and exact-head CI are green. |
|
Merged via squash.
|
Summary
Why
The snapshot suite repeated large prompt bodies whose differences are small and mechanically derivable. That representation made review and maintenance noisy while allowing shared text to drift independently. One deterministic materializer now owns reconstruction, ordering, and validation without changing runtime prompt generation.
Invariants
Verification
Surface