GeezerVison is showing github.com — atlas: FilterSpec dimension map + serve CacheKey manifest identity (#6228 slice 1) by dezren39 · Pull Request #14528 · developing-today/code
Conversation
dezren39
commented
Nov 24, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Summary
Slice 1 of #6228 Phase 3 (generic dimensions, atlas filter surface), plus the Phase 4 CacheKey step the slice packet named:
- atlas-proto
FilterSpec dimension map: new dimensions: BTreeMap<String, Vec<String>> field (serde-default, omitted when empty, so pre-Phase-3 payloads parse unchanged). Named fields stay as aliases for one release: dimension_values() resolves a named dimension from its named field, set_dimension() writes a named dimension into its named field, and NAMED_DIMENSIONS names the four aliases. Existing named-field behaviour is unchanged.
- Serve-mode
CacheKey gains (manifest_version, content_hash) (design note §7) plus the generic dimension filters: entries computed under a different effective surface, or with different generic filters, never coalesce or serve. The identity is threaded from the serving backend: SearchBackend::manifest() (new seam method, default = built-in surface matching the loader fallback; LocalBackend/TursoBackend override with their loaded manifest) → SearchEngine::surface_manifest() → CacheKey::from_request at submit time.
- The manifest loader itself already landed in Phase 2 (
atlas-core::manifest::load_manifest, crates/atlas-core/tests/manifest.rs); this slice wires its identity into the wire type and the serve cache.
- Call-site fixes required by the new field:
FilterSpec literals in the atlas-search CLI (main.rs) and fleet-search CLI (cli.rs, outside the packet's owned paths — one line, dimensions: Default::default()).
Next slice: generate CLI flags from the loaded surface and validate request dimensions against the effective surface in serve mode (unknown dimensions as loud errors, per §6); then wire generic dimensions into branch query construction.
Evidence
Remote dispatch only (fleet-command.yml fallback, while fleet queue dispatch is blocked by TLS #13185):
- Run 45453065520 (first attempt): failed compile —
missing field dimensions in the atlas-search CLI literal; fixed in b369aa0 (+ fleet-search literal in 0dda0c9).
- Run 45454037644 (final, head 0dda0c9): success —
cargo test -p atlas-proto -p atlas-core -p atlas-search --manifest-path pkgs/atlas-search/Cargo.toml: 495 passed, 0 failed, including the two new tests:
tests::filter_spec_dimensions_roundtrip_and_alias (atlas-proto: wire round-trip, named-alias write/read, legacy payload without dimensions)
server::tests::cache_key_binds_manifest_surface_and_generic_dimensions (atlas-search: key differs on surface version/hash change and on generic-dimension change; identical otherwise)
- Run: https://github.com/developing-today/fleet/actions/runs/45454037644
Not run: fleet-search's own test suite (its change is the same one-line literal fill; it compiles against atlas-proto in the code repo's CI).
Merge Danger
Low. The wire change is additive with a serde default; cache keys change shape internally only (no persisted keys — the dedupe/result caches are in-memory), so the first deploy simply starts with cold caches. The SearchBackend::manifest() default keeps every other backend (shard fan-out, test stubs) on the built-in surface identity.
Refs #6228 (slice 1 of the Phase 3 programme; issue stays open — Phases 3 remainder/4 remainder/5 remain).
{
"direct_parent": null,
"links": [],
"lineage": {
"design": null,
"roadmap_item": null,
"priority": null
},
"pm_meta": 1,
"provenance": {
"queue_id": null,
"scheduled_start": null,
"picked_up_at": null,
"work_started_at": null,
"created_at": "2026-11-24T18:17:34Z",
"session_id": null,
"lane": null,
"host": "htch-runtime",
"worktree": "/home/hatch/workspace/github-work/code-6228",
"model": null,
"lane_start_issues": [],
"workspace_ref": {
"kind": "worktree",
"id": "/home/hatch/workspace/github-work/code-6228",
"repo": "developing-today/code",
"branch": "xaltha/6228-phase3-generic-dimensions",
"sha": "0dda0c98e9b41eb3f283fe8391fdd42f4ea5d7a0"
},
"auth_subject": "xaltha",
"stamped_by": "fleet 0.1.0 (native)"
}
}
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…6228 slice 1)
Phase 3: FilterSpec gains a generic dimensions map; the named
fields stay as aliases for the kind/topic/project/client
dimensions (dimension_values/set_dimension), so named-field
behaviour and pre-Phase-3 payloads are unchanged.
Phase 4 (first step): serve-mode CacheKey now carries the
effective surface's (manifest_version, content_hash) plus the
generic dimension filters. SearchBackend::manifest() exposes the
loaded manifest (Local/Turso override; default is the built-in
surface, matching the loader fallback), threaded through
SearchEngine::surface_manifest() at submit time.
Tests: proto wire round-trip/alias test; server CacheKey
surface/dimension separation test. Manifest loader itself landed
in Phase 2 (atlas-core::manifest, tests/manifest.rs).
coderabbitai
Bot
commented
Nov 24, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Warning
Review limit reached
You'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 29 minutes.
Check out review usage here.
View limit details
-
Limit details: You’ve used the included review currently available.
Learn how review limits work.
Review configuration:
Run configuration
-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
52ffded2-6820-4cfe-a426-0ba30060dba0
Commits
-
Reviewing files that changed from the base of the PR and between 4e289a4 and c8987d7.
Files selected for processing: 10
-
pkgs/atlas-search/book/reference/service-api.md
pkgs/atlas-search/crates/atlas-core/src/backend.rs
pkgs/atlas-search/crates/atlas-core/src/local.rs
pkgs/atlas-search/crates/atlas-core/src/turso.rs
pkgs/atlas-search/crates/atlas-proto/src/lib.rs
pkgs/atlas-search/crates/atlas-search/src/main.rs
pkgs/atlas-search/crates/atlas-search/src/server.rs
pkgs/fleet/crates/fleet-search/src/cli.rs
pkgs/fleet/crates/fleet-search/src/proto.rs
pkgs/fleet/crates/fleet-search/src/server.rs
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 24, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codex review of head 322a1b1b1d90da88842147a276547cbac2b35f9f against current main 4e289a4c36d6fc13c993339d33d4bb2f59ac268e: no actionable findings.
The earlier findings are resolved: fleet-search now mirrors the dimension field and manifest-bound cache key; nonempty generic dimension requests receive HTTP 400 before scheduling until the query path supports them; empty dimensions consistently mean no constraint. The remote Atlas and Fleet-search tests are still running, so this review does not yet authorize merge.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codex review of exact head c8987d7826b983db4f848072ae0821add57fde92 against current main 4e289a4c36d6fc13c993339d33d4bb2f59ac268e: no actionable findings.
The previously identified issues are resolved in the PR: the Fleet wire mirror now includes dimensions, both servers reject nonempty generic filters before scheduling until search support lands, and both cache keys include the loaded manifest identity and dimension values. The focused rerun is in progress; this comment records code review only.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
|
Post-merge evidence for queue task 24056:
- PR atlas: FilterSpec dimension map + serve CacheKey manifest identity (#6228 slice 1) #14528 merged at
3c621895bcd351ec40fa907434301ade59487017 after the branch was merged with current main 4e289a4c36d6fc13c993339d33d4bb2f59ac268e.
- Codex reviewed head
c8987d7826b983db4f848072ae0821add57fde92 and reported no actionable findings; the review is recorded on the PR.
- Fleet run 45856199683 passed the Atlas proto/core/search suites and the Fleet-search suite (31 tests). Its parity guard failed on server-copy drift already present on current main.
- Follow-up Fleet run 45858362013 passed Fleet-search tests (31 tests); the same parity guard reports the pre-existing main drift. PR-specific manifest/dimension cache changes are mirrored in both service copies.
- The parity drift is tracked separately by issue #15653, with queue task 24291 live.
PR #14528 has Refs #6228, not a closing keyword. Issue #6228 remains open for the next generic-dimension query implementation and the later phases.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|