Skip to content

test(atlas): F03 citation/occurrence conformance fixtures + reference resolver (#8526) - #11264

Merged
dezren39 merged 2 commits into
mainfrom
queue/20162-8526-citation-conformance
Nov 17, 2026
Merged

dezren39 merged 2 commits into
mainfrom
queue/20162-8526-citation-conformance

Conversation

@dezren39

@dezren39 dezren39 commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Summary

Implements issue #8526 (Atlas F03, design #6020): an offline, test-only conformance corpus plus an independent reference resolver in pkgs/atlas-search/crates/atlas-core/tests/citation_conformance.rs. No production types are modified; the file imports no F02 test helper and no atlas-core production code, so this slice ships independently. This does not implement the #3125 registry/CAS or any live resolution.

Coverage (hand-authored expectations, failing-first)

  • Same bytes at multiple locations/rights: each occurrence keeps its own coordinates; a caller learns nothing about occurrences it holds no rights on.
  • Pinned historical version stays citable; unpinned requests follow the current version.
  • Source rename: citation carries the stable source id and the current path.
  • Missing coverage and deleted bytes answer a scoped Unavailable to an authorized caller.
  • Changed permissions: the old holder gets exactly the unknown-id answer; the new holder cites.
  • Negative controls: a deliberately incorrect aliasing implementation (keys by content, merging occurrences) and a stale-replay implementation (answers from a superseded snapshot) are both asserted to be rejected by the corpus.
  • Property tests (proptest): successful citations resolve to the exact retained bytes at the specified version/range; byte-identical occurrences never merge authority; current revocation makes old citations unavailable; hidden insertions never change visible counts, ids, or results.

Tests

  • cargo test --manifest-path pkgs/atlas-search/Cargo.toml -p atlas-core --test citation_conformance — 9 passed, 0 failed (5 corpus and negative-control tests, 4 proptest properties at 64 cases each), run on the laptop through the fleet build lock.

Queue: task 20162 (repo-health-code-pilot), lane any-c. Closes #8526 on merge.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@dezren39
dezren39 requested a review from a team as a code owner November 17, 2026 11:38
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-17T11:38:24.999539Z
We couldn’t complete this review. Comment @codex review to try again.
d85cc6d 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@coderabbitai

coderabbitai Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • 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

@dezren39
dezren39 merged commit 557dd4f into main Nov 17, 2026
1 check failed
@dezren39
dezren39 deleted the queue/20162-8526-citation-conformance branch November 17, 2026 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test(atlas): citation and occurrence conformance fixtures (#6020 F03)

1 participant