GeezerVison is showing github.com — test(atlas+pm): metadata version conformance fixture set (#9095) by dezren39 · Pull Request #13527 · developing-today/code
Conversation
dezren39
commented
Nov 23, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Completes the one remaining acceptance item of #9095 — the conformance fixture set. (No Closes keyword: #9095 is the design tracker and the breaking-changes parking lot's home; the close call is Felix's.)
Done check behind this PR
Verified fresh against origin/main before writing anything:
What lands
Fixture set under doc/2026-11-21T17-56-24Z_design_atlas_metadata_schema_v1/fixtures/ (README indexes it):
pm-metadata-v1.json — PM pm_meta v1 in its historical shapes: §12 canonical, the aggregator's links-only and minimal-link blocks, float 1.0 version, unknown top-level keys, populated extras, a type-mismatch case, plus fail-closed rejection cases (no version key; future version) and a no-block body.
atlas-metadata-v1.json — the unversioned atlas_stage v1 producer meta bag (the shape live staged items carry) plus doctrine v1 envelope item/embed/classification records, and doctrine-projection cases (invalid sensitivity → most restrictive + extras retention; lossless-only coercion; unknown closed-enum value).
digest-vectors.json — exact-byte identity vectors for the design §2 rule, inputs and expected sha256: IDs recorded.
Executable conformance, in the #8525–#8528 fixture-family pattern:
- Fleet crate:
pm_metadata_version_conformance_fixtures runs every PM case through parse_metadata_block and the stamp-assembly round-trip (parse outcome + key preservation; pm_meta pinned to integer 1 by assembly).
- Atlas-core:
metadata_conformance.rs inserts every executable Atlas case's row into a provisioned atlas_stage v1 database and reads it back via list_staged_items — meta round-trips byte-exact, schema version 1.
Doctrine-projection expectations are recorded as oracle data for design §7 slices 2/6 — no current reader projects, so they are deliberately not asserted against one.
Evidence
- Fleet PM test: run 45227118068 —
pm_metadata_version_conformance_fixtures ... ok, 1 passed / 0 failed.
- Atlas test: run 45227125981 —
atlas_metadata_version_conformance_fixtures ... ok, 1 passed / 0 failed.
Conformance / scope notes
- CEN-04: no new persisted field, no store written — the PM block/mirror facts are already owned by CEN-04 §3.10 (rationale in the fixtures README).
- No new dependencies. No schedules touched.

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.
Acceptance item 4 of #9095: metadata at every historical version
parses and is usable by the current reader, in the #8525-#8528
fixture-family practice.
- Fixture set under the schema v1 design folder: PM pm_meta v1 in
its historical shapes (section 12 canonical, aggregator links-only
and minimal-link blocks, float version, unknown keys, populated
extras, type mismatch, plus fail-closed rejection cases), Atlas
schema_version 1 item/embed/classification shapes alongside the
unversioned atlas_stage v1 producer meta bag, and exact-byte
digest vectors for the design section 2 identity rule.
- Executable conformance: the fleet crate test runs every PM case
through parse_metadata_block and the stamp assembly round-trip;
the atlas-core test round-trips every executable Atlas case
through a provisioned atlas_stage v1 database and
list_staged_items, byte-exact.
- Doctrine-projection cases (extras relocation, lossless-only
coercion, sensitivity fallback, unknown closed enums) are recorded
as oracle data for design section 7 slices 2/6; no current reader
projects, so they are not asserted against one.
- No new persisted fields, no store writes: CEN-04 section 3.10
already owns the PM block/mirror facts (see fixtures README).
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 48 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:
863ef5aa-80f0-487d-b19d-a85e5900f3df
Commits
-
Reviewing files that changed from the base of the PR and between 3eb33d1 and c846a3e.
Files selected for processing: 6
-
doc/2026-11-21T17-56-24Z_design_atlas_metadata_schema_v1/fixtures/README.md
doc/2026-11-21T17-56-24Z_design_atlas_metadata_schema_v1/fixtures/atlas-metadata-v1.json
doc/2026-11-21T17-56-24Z_design_atlas_metadata_schema_v1/fixtures/digest-vectors.json
doc/2026-11-21T17-56-24Z_design_atlas_metadata_schema_v1/fixtures/pm-metadata-v1.json
pkgs/atlas-search/crates/atlas-core/tests/metadata_conformance.rs
pkgs/fleet/crates/fleet/src/gh_metadata.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.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
| Review |
Status |
Commit |
Review trigger |
| 📝 Code Review |
✅ Completed 2026-11-23T17:45:43.429324Z |
c846a3e |
PR opened |
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review" or "@codex security review".
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
|
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.
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
Here are some automated review suggestions for this pull request.
Reviewed commit: c846a3ed0c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Comment on lines
+29
to
+34
|
|
let path = concat!(
|
|
|
env!("CARGO_MANIFEST_DIR"),
|
|
|
"/../../../../doc/2026-11-21T17-56-24Z_design_atlas_metadata_schema_v1/fixtures/atlas-metadata-v1.json"
|
|
|
);
|
|
|
let raw = std::fs::read_to_string(path)
|
|
|
.unwrap_or_else(|e| panic!("conformance fixture set unreadable at {path}: {e}"));
|
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.
Include conformance fixtures in the Nix package sources
When the Atlas Nix package runs its check phase, this read fails because pkgs/atlas-search/default.nix constructs packageSrc with its root at pkgs/atlas-search and includes only the manifests, crates, schema, and package-local fixtures—not repository-root doc/. The new test therefore panics with “conformance fixture set unreadable,” preventing the checked package from building. The Fleet conformance test has the same problem: pkgs/fleet/default.nix roots fleetSrc at pkgs/ and excludes these documentation fixtures. Include the fixture directory in both packaged source trees and adjust the paths/layout accordingly, or place the executable fixtures within the existing package source boundaries.
Useful? React with 👍 / 👎.
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.
|