Repository navigation
atlas-core: C8-E fingerprint core for error-driven investigation (#12962) - #13010
Merged
Merged
Conversation
) 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.
|
Warning Review limit reachedYou'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. View limit details
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. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This was referenced Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
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.ErrorOccurrencepreserves the original string verbatim;group_occurrencesgroups 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.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.