GeezerVison is showing github.com — test(atlas): cost-aware placement dry-run simulator (#6020 F04) · Issue #8528 · developing-today/code
test(atlas): cost-aware placement dry-run simulator (#6020 F04) #8528DescriptionF04 — cost-aware placement dry-run reference simulator
Tier/status: recommended; fixture-only work ready after design merge; operational use conditional. Parent #6020, programme #6018; design on main. Evidence: baseline V1-D06/D09/D13/D15, architecture, growth model #6061.
Scope and distinction
Create a pure offline scenario simulator for comparing a few synthetic placement choices under explicit quality, latency, allowed-location and plan-envelope constraints. Inputs include versioned synthetic meter rates and age/uncertainty, storage, sync, reads/writes, embedding, egress, local hardware, temporary export/restore/compaction headroom and measured-or-unknown quality/latency. Output itemizes units and computed ranges, infeasibility or unknown, and a reversible proposal only. No live pricing, provider bindings, autonomous movement/deletion, real corpus, credentials or external costs. Constraints are evaluated before cost: sensitivity, legal retention, rights and pinned heads are never overridden.
This is not #6061's churn × retention growth forecast, #6041's retention rule engine/dry-run reporter, #6058 embedding ledger, or #7969 live operations guardrails. Consume no runtime services. Routine retirement stays cold-before-retire; independently required source-rights purge is not delayed or converted to archival.
Failing-first steps and oracle
- Hand-calculate tiny scenarios in a documented unit ledger: e.g. two equal-quality choices with itemized metering, a faster feasible choice within envelope, a forbidden placement, missing price, and insufficient temporary space. Write expected outputs before simulator implementation.
- Implement a simple independently specified reference calculation. Model/property tests check determinism, nonnegative input validation, unit-preserving sums, monotonic cost for increased nonnegative use at fixed prices, hard-policy infeasibility even at zero cost, unknown propagation for missing measurements, and temporary headroom. An intentionally cheapest-first selector must fail a fixture where it violates the speed/quality or policy constraints.
- Emit proposal + assumptions/uncertainty; never execute it. Hysteresis and rollback are modeled as constraints/annotations only, not a control-plane decision.
Hard prerequisites: this merged design and local synthetic fixtures. Soft ordering: #6061 calibration, #6058 actual ledger, #6041 retention policy and #7969 headroom. Future integration needs observed meter units/prices and policy approvals and must be separately scoped; no claim of current prices or deployment.
Candidate seam: existing pkgs/atlas-search/crates/atlas-core/tests/ for an isolated placement_model.rs; existing growth model above is a design, not an executable dependency. Proposed future command: cargo test --manifest-path pkgs/atlas-search/Cargo.toml -p atlas-core --test placement_model. Use integer fixed units or documented precise arithmetic, not mixed currency/bytes.
Risks: unmeasured quality or stale rates cannot justify a placement; zero retrieval is not evidence of zero value. This simulation does not authorize purge, replace legal erasure, or prove operational savings.
Design merge gate
The reviewed design is in PR #8519. This tracker is filed now to preserve the independently buildable slice while the design PR waits on the unrelated basic-tier baseline defect #8306. Do not start implementation until #8519 is merged. The main-branch source links become available at that merge; this issue does not authorize production integration. Activitydeveloping-today commented on Nov 11, 2026 dezren39 commented on Nov 11, 2026 Filing / queue disposition — worker repo-worker-code
Deliberately not queued in this pass. The commissioning constraint requires --worker repo-worker-code on every queue operation, but installed enqueue rejects that flag before writing. Omitting it is not authorized. This comment records the reason under the repository filing rule; it does not claim live queue coverage. #8519 must also merge before implementation starts (unrelated baseline blocker #8306).
Complete triage packet for an authorized compatible enqueue surface / standing coverage reconciliation:
{
"title": "Triage #8528: Atlas F04 cost-aware placement dry-run simulator",
"body": "Filed by task 14861 design mill; reviewed fixture-only slice. Preserve design merge gate #8519.",
"queue": "repo-health-code-pilot",
"priority": 30,
"dedupe_key": "repo-health:v1:triage:developing-today/code:issue:8528",
"payload": {
"schema": "repo-task/v1",
"kind": "triage",
"repo": "developing-today/code",
"queue": "repo-health-code-pilot",
"issue": {
"number": 8528,
"url": "https://github.com/developing-today/code/issues/8528",
"title": "test(atlas): cost-aware placement dry-run simulator (#6020 F04)",
"state_checked_at": "2026-11-11T04:21:01.537192+00:00"
},
"problem": "Disposition Atlas F04 independently buildable test-local follow-on; no production integration is authorized.",
"evidence": [
"https://github.com/developing-today/code/issues/8528",
"https://github.com/developing-today/code/pull/8519",
"Committed follow-ons/F04.md specifies scope, independent oracle, negative controls and future test command."
],
"acceptance": [
"Verify #8519 merged before marking implementation ready.",
"Freshly dedupe, preserve fixture-only scope and route bounded implementation with PBT/MBT and decidable oracle."
],
"tests": [
"Record triage verdict on issue; proposed test command is future, not already run."
],
"scope": {
"include": [
"Triage #8528; isolated synthetic fixtures/reference models only"
],
"exclude": [
"Production API/schema, deployed authorization certification, live corpus, provider charges, automated movement/deletion"
]
},
"risk": {
"level": "low",
"flags": []
},
"priority_reason": "Normal Atlas design follow-on; finite offline fixture/model work.",
"timebox_minutes": 45,
"max_attempts": 6,
"context_refs": [
"https://github.com/developing-today/code/issues/8528",
"https://github.com/developing-today/code/issues/6020",
"https://github.com/developing-today/code/pull/8519"
],
"dedupe": {
"checked_at": "2026-11-11T04:21:01.537192+00:00",
"basis": "248-issue Atlas survey, seven targeted issue searches and five all-state title PR searches; no duplicate fixture-only owner found. Search-bounded; recheck at triage."
}
}
}dezren39 commented on Nov 17, 2026 🤖 Agent note · triaged
Triage (inline, this pass):
- Work kind: small-fix (task/small-fix) — a pure offline, fixture-only reference simulator; the packet instructs the worker to land the core comparison engine first and split scenario families if the surface is larger than one PR.
- Priority: priority/normal (already on the issue).
- Effort: effort/m — one self-contained offline tool plus fixture tests; no operational data or live systems.
- Kind: kind/enhancement and epic/atlas-program already present.
Evidence (fresh, 2026-11-16):
Issue #8528 stays open for task 20168.
dezren39 commented on Nov 17, 2026 agent-note:v1
kind: done
actor: repo-worker-code (openchamber scheduled lane any-o)
queue: repo-health-code-pilot task 20168
pr: #11274 (merged 4a21c41)
Landed the F04 fixture-only reference simulator as pkgs/atlas-search/crates/atlas-core/tests/placement_model.rs, the seam named in follow-ons/F04.md. Oracles: the hand-calculated unit ledger (two equal-quality choices to 125,350,000 micros, faster choice inside the envelope, forbidden placement infeasible at zero cost, missing price Unknown, insufficient temporary headroom, unmeasured quality), property invariants (determinism, unit-preserving sums, monotonic cost, hard-policy dominance, input validation), and an intentionally naive cheapest-first selector proven wrong on policy and envelope.
Verification: cargo test --manifest-path pkgs/atlas-search/Cargo.toml -p atlas-core --test placement_model, 13 passed, no warnings. No live pricing, provider bindings or runtime services. dezren39 commented on Nov 17, 2026 Closure watchdog (code#10105): reopening a wrongful auto-close.
dezren39 commented on Nov 23, 2026 Claim — lane felix, 2026-11-23: verifying the done state of #8528 against current origin/main (placement_model.rs landed via PR #11274 per the earlier done note; the bot auto-close was reverted by the closure watchdog, so I'm re-verifying in full before Felix takes the close call). No reimplementation planned unless the check finds a gap. dezren39 commented on Nov 23, 2026 Verification record — lane felix, 2026-11-23: #8528 is DONE on main; recommending close.
Gate check: the design-merge gate is cleared — PR #8519 merged 2026-11-11T10:39:29Z and the #6020 design is on main (doc/2026-11-11T03-45-00Z_design_atlas_v2_v4/).
Implementation landed: PR #11274 (merged, 4a21c41) added pkgs/atlas-search/crates/atlas-core/tests/placement_model.rs (1,022 lines) at exactly the seam the issue names. Verified in source on current origin/main (1a0d5a9) against the issue's failing-first oracle list:
- Hand-calculated unit ledger: two equal-quality choices itemised to the hand total; faster feasible choice within envelope preferred; forbidden placement infeasible even at zero cost; missing price → Unknown (not free); insufficient temporary headroom infeasible; unmeasured quality cannot justify a placement.
- Property/model tests: determinism, unit-preserving sums (itemised lines sum to the total), monotonic cost under increased use at fixed prices, hard-policy dominance at any price, nonnegative input validation (negative rates rejected), zero use costs zero.
- Negative control: the intentionally cheapest-first selector is proven wrong on the policy/envelope fixture.
- Scope held: pure offline synthetic fixtures — no live pricing, provider bindings, runtime services, or movement/deletion. Integer micros arithmetic, no mixed currency/bytes.
Fresh test evidence (remote dispatch, today): run 45206436012 at origin/main 1a0d5a9 — cargo test --manifest-path pkgs/atlas-search/Cargo.toml -p atlas-core --test placement_model → 13 passed; 0 failed.
Procedural note: the bot auto-close after #11274 (refs-only rule) was reverted by the closure watchdog (#10105) because the PR carried no closing keyword — that was a paperwork defect, not missing work. The work itself is complete per the above; Felix takes the close call. No follow-ups filed; no new dependencies. dezren39 commented on Nov 23, 2026 Closed — Felix, 2026-11-23. Verified already done on main: the simulator landed as PR #11274 at pkgs/atlas-search/crates/atlas-core/tests/placement_model.rs, matching the issue's failing-first oracle list item for item (hand-calculated ledger, property tests, cheapest-first negative control, offline scope held). My lane re-ran it remotely at current main: 13 passed / 0 failed (run 45206436012). The open state was paperwork — a refs-only auto-close was reversed by the closure watchdog and the later done note never closed it. Verification record above (7105982514).
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|