docs(adr): land ADR-0027 and ADR-0028 — close oath-model design for Equity MVP#49
Merged
Merged
Conversation
ADR-0027 fixes the wire representation: u64 UnixNanos Timestamp; Serialize-universal with a backend-specific zero-copy bound via zerocopy (TransmuteFrom reserved); deferred-but-reserved schema versioning on the IncarnationStarted marker; InstrumentId = [u8; 32] self-identifying name (discharges ADR-0025's length TBD). ADR-0028 sets the type-placement rule: shared contracts live in oath-model, traits and single-process privates in the */api crates (Signal/Instrument/Position placed; Decision stays in core-api). Updates the grilling tracker (B1-B4 resolved) and corrects the README strategy-api Signal line. These four decisions close oath-model's design for the Equity MVP; docs-only, no code change. Closes #48 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughAdds two new ADRs: ADR-0027 formalizing wire representation rules (zero-copy families, ChangesArchitecture docs and README correction
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related issues
Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
NotAProfDev
added a commit
that referenced
this pull request
Jun 28, 2026
…or) (#51) * docs(model): design oath-model numeric primitives (slice 1) Approved brainstorming design for the first real oath-model content: Price/Quantity/Side value types, checked exact-domain arithmetic, and ArithmeticError. Reconciles the manifest (drop rust_decimal/uuid/time) and aligns deferred work (zerocopy, Timestamp, symbology, notional) with ADR-0023/0002/0020/0027. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * docs(model): add oath-model numeric primitives implementation plan Bite-sized TDD plan (6 tasks) for Price/Quantity/Side/ArithmeticError. All code prototyped and verified against the workspace lints (clippy -D warnings with pedantic/nursery), tests, doctests, cargo deny, and rustfmt. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * docs(model): handle Cargo.lock in plan tasks 1 and 3 Removing/adding deps makes Cargo.lock stale; the pre-commit hook runs cargo check --locked, which fails on a stale lock. Tasks 1 and 3 now regenerate and commit Cargo.lock. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * chore(model): drop rust_decimal, uuid, time deps (ADR-0023/0027) * feat(model): add ArithmeticError * feat(model): add Side direction enum * feat(model): add Quantity magnitude newtype Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * feat(model): add Price fixed-point newtype * chore(gitignore): ignore cargo-mutants output Running just mutants / mutants-diff leaves a mutants.out/ directory in the working tree; ignore it (and mutants.out.old/) so it is never committed. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * docs(model): sharpen checked-op summaries and add Quantity doctest Note both overflow and underflow in the Price/Quantity checked-op summaries (the # Errors sections already did); 'rather than wrapping or panicking' reflects overflow-checks=true. Add a Quantity checked_sub doctest, and de-stale the spec's ADR-0027 reference now that #49 landed. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * docs(changelog): record oath-model numeric primitives * test(model): drop needless String allocs in Side serde test Use `.as_deref().ok()` to compare against `&str` literals instead of allocating owned `String`s via `to_owned()`. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #48.
Lands the two ADRs from the 2026-06-28
grill-with-docssession, which resolved thelast four open
oath-modeldesign questions (B1–B4) and closes its design for theEquity MVP.
ADR-0027 — wire representation
Timestamp=u64UnixNanos UTC;timecrate demoted to the adapter/display boundary.Serializeis the universal bound; the zero-copy/POD bound is backend-specific (shared-memory family: iceoryx2 / Aeron-IPC / mmap log-replay) viazerocopy(core::mem::TransmuteFromreserved as the future stable replacement). Schema versioning is deferred pre-1.0 but reserved on theIncarnationStartedmarker, with model-wide bumps.InstrumentId = [u8; 32]fixed self-identifying name — binding constraint is the OCC 21-char option symbol; FIGI/ISIN/PermID verified to fit. Discharges ADR-0025's length TBD.ADR-0028 — type placement
oath-model;*/apicrates hold traits + single-process privates.Signal/Instrument/Position→ model;Decision→core-api.Also
oath-strategy-apiSignal line corrected (payload is model; api keeps the trait + ergonomics).Docs-only; no code change.
just cigreen locally (pre-push gate).🤖 Generated with Claude Code
Summary by CodeRabbit