Skip to content

atlas-core: C8-E fingerprint core for error-driven investigation (#12962) - #13010

Merged
dezren39 merged 1 commit into
mainfrom
lane-hs/12962-c8e-fingerprint
Nov 23, 2026
Merged

dezren39 merged 1 commit into
mainfrom
lane-hs/12962-c8e-fingerprint

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

First slice of #12962 (C8-E, error-driven investigation evidence bundle; parent #9576): the seam-independent fingerprint core, per the merged C8 design (doc/2026-11-22T01-48-21Z_design_c8_atlas_ingestion_investigation) §4 and §5 steps 1–2 and 6.

What lands

New module atlas-core::c8_fingerprint:

  • normalize_error_string — conservative normalization only: Unicode NFC + whitespace collapse/trim. Case, punctuation, and digits survive, so merely similar errors are never merged.
  • ErrorFingerprint — SHA-256 over the normalized string, recorded alongside it; groups exact normalized occurrences only. ErrorOccurrence preserves the original string verbatim; group_occurrences groups deterministically by fingerprint.
  • first_observation — earliest exact occurrence in a retained set, labelled first observed only when a known retention floor strictly predates it, otherwise earliest retained observation — never "first ever".
  • InvestigationEdge / EvidenceBundle — exact-vs-inferred edge labels (inferred always carries confidence + provenance); missing links are preserved as gap edges and named in the bundle's gap list; the bundle carries no causation claim.

Verification (oracle: design §4 normalization rules, §5 recipe steps 1–2)

  • cargo test -p atlas-core c8 → 8 passed / 0 failed (unit + model-test fixture + proptests: normalization idempotence, fingerprint stability, grouping soundness), re-run after rebase onto current main.
  • cargo test -p atlas-core (full suite, pre-rebase base) → 361 passed / 0 failed (353 baseline + 8 new).

Scope

#12962 stays open: its second acceptance item (a real error string investigated end-to-end, bundle attached to #9576) and the later slices (first-observed search over live telemetry, commit→PR→issue joins, unpushed-final-commit check) depend on live #9073–#9075 / queue interfaces and are named on the issue.


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

)

First slice of C8-E (design 2026-11-22T01-48-21Z, sections 4 and 5
steps 1-2 and 6), seam-independent like the C8-M core before it:

- normalize_error_string: conservative normalization only — NFC
  plus whitespace collapse/trim. Case, punctuation, and digits
  survive, so merely similar errors are never merged.
- ErrorFingerprint: SHA-256 over the normalized string, recorded
  alongside it; groups exact normalized occurrences only.
  ErrorOccurrence preserves the original string verbatim.
- group_occurrences: deterministic grouping by fingerprint.
- first_observation: earliest exact occurrence in a retained set,
  labelled "first observed" only when a known retention floor
  strictly predates it, otherwise "earliest retained
  observation" — never "first ever".
- InvestigationEdge / EvidenceBundle: exact-vs-inferred edge
  labels (inferred always carries confidence and provenance),
  missing links preserved as gap edges and named in the bundle's
  gap list; the bundle carries no causation claim.

Tests (tests/c8_fingerprint.rs, oracle: design sections 4-5):
normalization exactness, non-merging of similar errors, exact
grouping with originals preserved, first-vs-earliest-retained
labelling, the investigation model-test fixture for this slice,
and proptests for idempotence, fingerprint stability, and
grouping soundness.

cargo test -p atlas-core c8: 8 passed / 0 failed.
cargo test -p atlas-core (full): 361 passed / 0 failed.
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

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 54 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: 3363f5b1-38d4-4101-9004-ed4f3673727c
Commits

Reviewing files that changed from the base of the PR and between 367f952 and 4099165.

Files selected for processing: 3

  • pkgs/atlas-search/crates/atlas-core/src/c8_fingerprint.rs
  • pkgs/atlas-search/crates/atlas-core/src/lib.rs
  • pkgs/atlas-search/crates/atlas-core/tests/c8_fingerprint.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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
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-23T07:02:00.338263Z 4099165 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.

@dezren39
dezren39 merged commit 03fd0f6 into main Nov 23, 2026
2 checks passed
@dezren39
dezren39 deleted the lane-hs/12962-c8e-fingerprint branch November 23, 2026 07:00
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.

1 participant