Skip to content

Repair ContextClaw receipts for OpenClaw 2026.7 - #8

Draft
dodge1218 wants to merge 41 commits into
masterfrom
agent/openclaw-2026-7-ledger-dogfood
Draft

Repair ContextClaw receipts for OpenClaw 2026.7#8
dodge1218 wants to merge 41 commits into
masterfrom
agent/openclaw-2026-7-ledger-dogfood

Conversation

@dodge1218

Copy link
Copy Markdown
Owner

Summary

  • update ContextClaw for OpenClaw 2026.7.1-2 and keep native compaction/pruning ownership in OpenClaw
  • record immutable actual provider/model/auth pricing snapshots instead of repricing past token usage
  • separate actual receipts from unmatched estimates in operator status
  • add a current fit PRD, native feature/TODO inventory, and dogfood/verifier evidence
  • add deterministic provider/model/auth-switch and session-correlation coverage

Verification

  • 87/87 plugin tests pass
  • gateway runs on Node 24 with OpenClaw 2026.7.1-2, RPC healthy, and no official-plugin drift
  • real claude-cli turn emitted an actual usage receipt

Known gaps

  • the ContextClaw dollar line is not visible in the current gateway or local TUI despite the keyed status implementation
  • claude-cli emits llm_output but bypasses context-engine assemble, so live estimate/receipt correlation is unavailable on that harness
  • actual auth profile remains null unless OpenClaw exposes it or an explicit provider/model mapping is configured
  • manual compaction RPC works, but the tiny disposable session did not trigger a transcript rewrite

This branch also carries the accumulated local ContextClaw commit history that was already 40 commits ahead of origin/master before this compatibility slice. It is intentionally a draft for Ryan's review; no upstream OpenClaw PRs were changed.

@coderabbitai

coderabbitai Bot commented Jul 20, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 1217aba6-f9b9-4001-96d5-1d9fb91bfc74

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch agent/openclaw-2026-7-ledger-dogfood

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant