Repository navigation
refactor: deduplicate Codex prompt snapshot test fixtures - #117476
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 1, 2026, 11:45 AM ET / 15:45 UTC. ClawSweeper reviewWhat this changesThis PR stores one complete Codex dynamic-tool snapshot as the shared fixture and records complete scenario-specific tool replacements for the Discord-group and heartbeat snapshots, with generation and materialization checks. Merge readinessKeep this maintainer-labeled cleanup PR open for normal human review. The fixture factoring and reconstruction coverage are coherent, and no concrete patch defect was found, but the repository’s mandatory direct Codex-source contract check cannot be completed because the required sibling Priority: P3 Review scores
Verification
How this fits togetherHappy-path prompt snapshot tooling generates complete dynamic-tool catalogs for representative OpenClaw agent scenarios. This PR changes only how those committed review fixtures are stored and reconstructed; the runtime still produces the full catalog before snapshots are factored. flowchart LR
A[Happy-path scenarios] --> B[Generate complete dynamic-tool catalogs]
B --> C[Factor shared fixture data]
C --> D[Committed base and replacements]
D --> E[Snapshot drift check]
D --> F[Reviewer materialization]
B --> G[Runtime prompt snapshot inputs]
Decision needed
Why: The implementation appears bounded and covered, but repository policy reserves Codex-related verdicts for reviewers who personally inspect the sibling Codex source; that evidence is unavailable in this environment. Before merge
Agent review detailsSecurityNone. PR surfaceTests -3033, Other +111. Total -2922 across 8 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the focused fixture-only design, have a maintainer reviewer inspect the matching Codex dynamic-tool contract from a local sibling checkout, then refresh the branch against current main and land if the reconstruction invariant remains verified. Do we have a high-confidence way to reproduce the issue? Not applicable; this PR changes generated test-fixture storage rather than reporting a user-facing failure. The focused reconstruction test provides a concrete validation path for the intended fixture invariant. Is this the best way to solve the issue? Unclear pending the required direct Codex-source check. Within OpenClaw, factoring after complete catalog generation is the narrowest maintainable approach because it avoids changing runtime prompt construction while reducing repeated persisted fixture data. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against d3f4530ce890. 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
|
|
Merged via squash.
|
* origin/main: (44 commits) fix(plugins): compare authoring metadata by canonical JSON semantics (openclaw#117486) fix(doctor): reject contradictory lint check selectors (openclaw#117495) fix(anthropic): honor configured model pricing (openclaw#117275) refactor(plugins): reuse scoped loader for capability discovery (openclaw#117373) refactor(test): derive changed tooling routes (openclaw#117407) fix(kova): clarify extension memory attribution (openclaw#117500) fix(imessage): sanitize private context on every outbound path (openclaw#117501) fix(ci): align release validation fixtures (openclaw#117494) fix(talk): preserve owner authorization in realtime consults (openclaw#114163) fix(ui): surface aborted-run diagnostics (openclaw#117497) perf(models): skip Ollama row runtime loading (openclaw#117465) fix(cli): report user profile command outcomes (openclaw#117466) fix(active-memory): detect Chinese recall intent in escalate mode (openclaw#117338) (openclaw#117419) fix(workboard): ignore caller-supplied archivedAt when creating a card (openclaw#116412) fix(models): avoid waiting on promotions before listing models (openclaw#117322) refactor(plugins): inherit shared package boundary settings (openclaw#117474) fix(systemd): parse all inline environment assignments (openclaw#117484) feat(web-fetch): add tools.web.fetch.headers for operator request headers (openclaw#115545) fix(qa): Slack progress lane misses successful delivery (openclaw#117391) refactor: deduplicate Codex prompt snapshot fixtures (openclaw#117476) ...
* origin/main: (41 commits) fix(plugins): compare authoring metadata by canonical JSON semantics (openclaw#117486) fix(doctor): reject contradictory lint check selectors (openclaw#117495) fix(anthropic): honor configured model pricing (openclaw#117275) refactor(plugins): reuse scoped loader for capability discovery (openclaw#117373) refactor(test): derive changed tooling routes (openclaw#117407) fix(kova): clarify extension memory attribution (openclaw#117500) fix(imessage): sanitize private context on every outbound path (openclaw#117501) fix(ci): align release validation fixtures (openclaw#117494) fix(talk): preserve owner authorization in realtime consults (openclaw#114163) fix(ui): surface aborted-run diagnostics (openclaw#117497) perf(models): skip Ollama row runtime loading (openclaw#117465) fix(cli): report user profile command outcomes (openclaw#117466) fix(active-memory): detect Chinese recall intent in escalate mode (openclaw#117338) (openclaw#117419) fix(workboard): ignore caller-supplied archivedAt when creating a card (openclaw#116412) fix(models): avoid waiting on promotions before listing models (openclaw#117322) refactor(plugins): inherit shared package boundary settings (openclaw#117474) fix(systemd): parse all inline environment assignments (openclaw#117484) feat(web-fetch): add tools.web.fetch.headers for operator request headers (openclaw#115545) fix(qa): Slack progress lane misses successful delivery (openclaw#117391) refactor: deduplicate Codex prompt snapshot fixtures (openclaw#117476) ...
* origin/main: (44 commits) fix(plugins): compare authoring metadata by canonical JSON semantics (openclaw#117486) fix(doctor): reject contradictory lint check selectors (openclaw#117495) fix(anthropic): honor configured model pricing (openclaw#117275) refactor(plugins): reuse scoped loader for capability discovery (openclaw#117373) refactor(test): derive changed tooling routes (openclaw#117407) fix(kova): clarify extension memory attribution (openclaw#117500) fix(imessage): sanitize private context on every outbound path (openclaw#117501) fix(ci): align release validation fixtures (openclaw#117494) fix(talk): preserve owner authorization in realtime consults (openclaw#114163) fix(ui): surface aborted-run diagnostics (openclaw#117497) perf(models): skip Ollama row runtime loading (openclaw#117465) fix(cli): report user profile command outcomes (openclaw#117466) fix(active-memory): detect Chinese recall intent in escalate mode (openclaw#117338) (openclaw#117419) fix(workboard): ignore caller-supplied archivedAt when creating a card (openclaw#116412) fix(models): avoid waiting on promotions before listing models (openclaw#117322) refactor(plugins): inherit shared package boundary settings (openclaw#117474) fix(systemd): parse all inline environment assignments (openclaw#117484) feat(web-fetch): add tools.web.fetch.headers for operator request headers (openclaw#115545) fix(qa): Slack progress lane misses successful delivery (openclaw#117391) refactor: deduplicate Codex prompt snapshot fixtures (openclaw#117476) ...
* origin/main: (27 commits) fix(plugins): compare authoring metadata by canonical JSON semantics (openclaw#117486) fix(doctor): reject contradictory lint check selectors (openclaw#117495) fix(anthropic): honor configured model pricing (openclaw#117275) refactor(plugins): reuse scoped loader for capability discovery (openclaw#117373) refactor(test): derive changed tooling routes (openclaw#117407) fix(kova): clarify extension memory attribution (openclaw#117500) fix(imessage): sanitize private context on every outbound path (openclaw#117501) fix(ci): align release validation fixtures (openclaw#117494) fix(talk): preserve owner authorization in realtime consults (openclaw#114163) fix(ui): surface aborted-run diagnostics (openclaw#117497) perf(models): skip Ollama row runtime loading (openclaw#117465) fix(cli): report user profile command outcomes (openclaw#117466) fix(active-memory): detect Chinese recall intent in escalate mode (openclaw#117338) (openclaw#117419) fix(workboard): ignore caller-supplied archivedAt when creating a card (openclaw#116412) fix(models): avoid waiting on promotions before listing models (openclaw#117322) refactor(plugins): inherit shared package boundary settings (openclaw#117474) fix(systemd): parse all inline environment assignments (openclaw#117484) feat(web-fetch): add tools.web.fetch.headers for operator request headers (openclaw#115545) fix(qa): Slack progress lane misses successful delivery (openclaw#117391) refactor: deduplicate Codex prompt snapshot fixtures (openclaw#117476) ...
* origin/main: (41 commits) fix(plugins): compare authoring metadata by canonical JSON semantics (openclaw#117486) fix(doctor): reject contradictory lint check selectors (openclaw#117495) fix(anthropic): honor configured model pricing (openclaw#117275) refactor(plugins): reuse scoped loader for capability discovery (openclaw#117373) refactor(test): derive changed tooling routes (openclaw#117407) fix(kova): clarify extension memory attribution (openclaw#117500) fix(imessage): sanitize private context on every outbound path (openclaw#117501) fix(ci): align release validation fixtures (openclaw#117494) fix(talk): preserve owner authorization in realtime consults (openclaw#114163) fix(ui): surface aborted-run diagnostics (openclaw#117497) perf(models): skip Ollama row runtime loading (openclaw#117465) fix(cli): report user profile command outcomes (openclaw#117466) fix(active-memory): detect Chinese recall intent in escalate mode (openclaw#117338) (openclaw#117419) fix(workboard): ignore caller-supplied archivedAt when creating a card (openclaw#116412) fix(models): avoid waiting on promotions before listing models (openclaw#117322) refactor(plugins): inherit shared package boundary settings (openclaw#117474) fix(systemd): parse all inline environment assignments (openclaw#117484) feat(web-fetch): add tools.web.fetch.headers for operator request headers (openclaw#115545) fix(qa): Slack progress lane misses successful delivery (openclaw#117391) refactor: deduplicate Codex prompt snapshot fixtures (openclaw#117476) ...
What Problem This Solves
Maintainers reviewing Codex happy-path prompt snapshots currently have to wade through nearly identical 1,600-line dynamic-tool catalogs in three scenarios. That duplication makes prompt changes unnecessarily difficult to review and keeps thousands of redundant test-fixture lines in the repository. This cleanup was explicitly requested by the maintainer as part of a concrete repository LOC-reduction deliverable.
Why This Change Was Made
Keep the complete, readable Telegram direct catalog as the canonical fixture and store complete scenario-specific tool replacements for the Discord group and heartbeat scenarios. The generator reconstructs the original complete catalogs byte-for-byte, preserves tool ordering and every full JSON Schema, and documents a one-command reviewer materialization workflow. Only persisted test snapshots, their generator/helper, and regression tests change; no dynamic-tool specs passed to Codex or runtime production paths change.
User Impact
No user-visible, operator-visible, model-visible, or production-runtime behavior changes. Developers get smaller, human-readable Codex prompt fixtures with the same scenario coverage and deterministic drift checks.
Scope accounting: zero production-runtime LOC changed; 3,100 duplicate readable test-fixture lines removed; 3,238 deletions and 316 additions across fixture-generation tooling/tests for a net reduction of 2,922 repository lines.
Evidence