Skip to content

feat(atlas-core): C8-E findings assembly — candidates, rejections, unpushed check, next action (#9576, #12962) - #14320

Merged
dezren39 merged 1 commit into
mainfrom
felix/9576-c8e-bundle-assembly
Nov 24, 2026
Merged

dezren39 merged 1 commit into
mainfrom
felix/9576-c8e-bundle-assembly

Conversation

@dezren39

@dezren39 dezren39 commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Second slice of C8-E, the seam-independent remainder of the C8 design (§5 steps 4–6), for #9576 / #12962.

The first C8-E slice (PR #13010) landed the fingerprint core and an EvidenceBundle restricted to what occurrences and edges alone can fill; its doc comment named candidate changes, rejected candidates/reasons, and the next action as absent pending the live-interface slices. Gathering needs live interfaces — but assembling gathered findings into the step-6 record is deterministic and seam-independent. That assembly is this PR:

  • CandidateChange — a commit associated with the error through the evidenced joins, carrying the same exact-vs-inferred discipline as InvestigationEdge (inferred always carries confidence + provenance; exact never does). A candidate is an association, never a causation claim.
  • RejectedCandidate — candidates considered and rejected, with reasons; they stay in the record but never join the bundle's evidence IDs.
  • UnpushedCommitCheck / UnpushedCommitStatus — design §5 step 5 recorded exactly as an authoritative state source reported it (check time + source; commit ID only when found). Not performed is recorded as not_checked and named as a gap — never converted into a negative result, and never inferred from an absent PR (§6).
  • InvestigationFindings + build_bundle_with_findings — assembles findings into the bundle: candidates join evidence IDs, a not-performed check and an empty candidate list become named missing-data gaps, and the next action is the investigation's own or derived deterministically (gaps → resolve and re-run; clean record → human review).
  • Additive-only bundle shape (§2 doctrine): build_bundle output serializes exactly as before (new fields skipped when empty/absent) and old bundles deserialize with empty findings defaults — pinned by c8e_bundle_shape_is_additive_and_round_trips.

Tests (oracle: merged C8 design §5 steps 4–6 + §6): 4 new tests in tests/c8_fingerprint.rs — c8e_full_bundle_assembles_findings, c8e_unpushed_check_states_are_recorded_not_inferred, c8e_full_bundle_derives_next_action_and_names_missing_candidates, c8e_bundle_shape_is_additive_and_round_trips.

Evidence (remote, fleet-command on this branch):

  • Run 45383184166: cargo test -p atlas-core c8 — tests/c8_fingerprint.rs binary 12 passed / 0 failed (8 pre-existing + the 4 new tests above, 0 filtered out).
  • Run 45383242294: full cargo test -p atlas-core — 402 passed / 0 failed across 28 test binaries; no regression.
  • Run 45368789014: earlier identical c8 run, succeeded.
    (Both later runs' execute steps succeeded promptly; the runs' wall time was the executor's known post-step hang.)

No new dependencies. cargo fmt applied; git diff --check clean.

Refs #9576, #12962 — the remaining C8-E work (live telemetry first-occurrence search, live joins) stays tracked there; the end-to-end real-error investigation record is posted on #9576 by the same lane.

…pushed check, next action (#9576, #12962)

Second slice of C8-E (design §5 steps 4-6): assemble gathered
investigation findings into the evidence bundle deterministically.
Candidate changes carry the exact-vs-inferred label discipline,
rejected candidates keep their reasons and never join the evidence
IDs, the step-5 unpushed-final-commit check is recorded exactly as
an authoritative source reported it (not-performed is a named gap,
never a negative result), and the next action is the
investigation's own or derived from the bundle's gaps/candidates.
Additive-only bundle shape: core bundles serialize and deserialize
unchanged.
@coderabbitai

coderabbitai Bot commented Nov 24, 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 7 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: a08ebcf9-98a4-460d-9d02-cfd76f3d8394
Commits

Reviewing files that changed from the base of the PR and between 5e8b853 and 2b857dc.

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

@dezren39
dezren39 merged commit ef51741 into main Nov 24, 2026
2 checks passed
@dezren39
dezren39 deleted the felix/9576-c8e-bundle-assembly branch November 24, 2026 11:43
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