Repository navigation
Conversation
Centralize billing, Stop-hook envelope, chat_history sample lines, and encode_cwd_dirname oracle vectors under src/shared/fixtures/grok/ so Orca’s Grok integration can lock contracts without inventing payloads per test. Fixture-driven coverage for weekly credits (incl. proto3 zero omission), monthly unified fallback, and native-chat transcript decoding.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (10)
📝 WalkthroughWalkthroughAdds Grok golden fixtures for billing, chat history, stop hooks, and CWD encoding, along with ESM-compatible fixture loading helpers. Adds Vitest coverage using mocked network, filesystem, and home-directory inputs to validate rate-limit mapping, transcript decoding, hook envelope preservation, and encoding outputs. Documents the fixture files and their associated contract behaviors. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
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. Comment |
|
Closing: main has equivalent coverage, and the fixture layout no longer matches. The three billing cases map onto Separately, main's convention is Closing to keep my open-PR queue honest. If this turns out to be wrong I'll reopen — please just say so, or reopen it yourself, within the next 7 days. |
Summary
Add a shared fixture pack under
src/shared/fixtures/grok/so Orca’s Grok integration can lock open-source / wire contracts without reinventing payloads:chat_history.jsonlsample rows (user_query, bootstrap skip, tool_calls)encode_cwd_dirnameoracle vectors fromxai-org/grok-build(ready for fix(grok): O(1) session path via encode_cwd_dirname parity #9267’s encoder)Fixture-driven Vitest covers rate-limit mapping and native-chat decoding.
Testing
vitestsrc/shared/fixtures/grok/grok-fixtures.test.ts(6 passed)Notes
Independent of #9265/#9267/#8391. Encode goldens are documented until the encoder lands on main.
ELI5
Adds shared golden fixtures for Grok Build wire formats (billing, hooks, chat history, path encoding). Tests lock Orca's Grok integration against known-good samples so regressions are caught early.