Repository navigation
test(atlas): cost-aware placement dry-run reference simulator (#8528, F04) - #11274
Conversation
…6020 F04) Fixture-only, offline scenario simulator for comparing synthetic placement choices under quality, latency, allowed-location and plan-envelope constraints. No live pricing, provider bindings, autonomous movement, real corpus or credentials; it emits a reversible proposal and assumptions only. Failing-first: the hand-calculated unit ledger in the module docs was computed before the reference calculation and the tests assert its exact figures. Oracles are the hand ledger, stated invariants (determinism, unit-preserving sums, input validation, monotonic cost, unknown propagation, temporary headroom, hard-policy dominance) and an intentionally naive cheapest-first selector proven wrong on both the policy and envelope axes. Constraints are evaluated before cost and hard policy before everything, so sensitivity, retention, rights and pinned heads are never overridden by a cheaper price. Unknown measurement or price yields Unknown, never a guess. cargo test --manifest-path pkgs/atlas-search/Cargo.toml -p atlas-core --test placement_model: 13 passed.
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 42 minutes. View limit details
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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
What
Fixture-only, offline reference simulator for the F04 cost-aware placement dry-run (#8528, parent #6020, programme #6018). New isolated test file
pkgs/atlas-search/crates/atlas-core/tests/placement_model.rs, the candidate seam named indoc/2026-11-11T03-45-00Z_design_atlas_v2_v4/follow-ons/F04.md.It compares synthetic placement choices under quality, latency, allowed-location and plan-envelope constraints and emits a reversible proposal with its assumptions. It never executes one. No live pricing, provider bindings, runtime services, credentials or real corpus.
Oracles
Constraints are evaluated before cost and hard policy before everything. Unknown measurement or price propagates as Unknown, never as zero.
Verification
cargo test --manifest-path pkgs/atlas-search/Cargo.toml -p atlas-core --test placement_model: 13 passed, no warnings.cargo test ... -p atlas-core --no-run: all atlas-core test targets build.Queue task 20168 (lane any-o).
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.