Repository navigation
feat(atlas-core): C8-M profile core — URL decomposition, sanitization, typed link extraction - #12959
Merged
Merged
Conversation
…links First implementation slice of C8-M for #9576 (tracked as #12919): the seam-independent core of the merged C8 design (PR #12290) sections 2 and 3, as a new atlas_core::c8_profile module. - UrlParts: canonical source URL exploded into scheme, host, port, path, file name, last path part, base name, extension; media type derived from the extension with is-HTML / is-video flags. - sanitize_url: canonical form with credentials and secret query parameters discarded; property-tested to never leak either and to be idempotent. - C8Source / C8Page: the source and page objects of the design section 2 envelope profile; unsupplied fields stay absent. - extract_links: explicit Markdown/bare links classified into the section 3 closed vocabulary (mentions_issue, mentions_pull_request, mentions_commit, links_page) with evidence explicit and no confidence, deduplicated by target. Tests: crates/atlas-core/tests/c8_profile.rs — the design sections 2/3 as oracle; 10 passed on the laptop, full atlas-core suite 353 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 49 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 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.
Summary
First implementation slice of C8-M (metadata profile and typed
links) for #9576, tracked as #12919. It lands the seam-independent
core of the merged C8 design (PR #12290,
doc/2026-11-22T01-48-21Z_design_c8_atlas_ingestion_investigation§2/§3) as a new
atlas_core::c8_profilemodule:UrlParts— the canonical source URL exploded into scheme,host, port, path, file name, last path part, base name, and
extension; media type derived from the extension, with is-HTML /
is-video flags (the C8 — Atlas ingestion of reports & pages + error-driven investigation boosts #9576 page metadata schema).
sanitize_url— the canonical URL form with credentials andsecret query parameters discarded (design §2). Property-tested
invariants: no userinfo or secret parameter ever survives, benign
parameters survive, sanitization is idempotent.
C8Source/C8Page— thesourceandpageobjects of thedesign §2 envelope profile, serialized with the design's field
names. Fields a source does not supply stay absent, never guessed.
extract_links— phase-one explicit link extraction from apage body (Markdown links + bare URLs), classified into the
design §3 closed vocabulary (
mentions_issue,mentions_pull_request,mentions_commit,links_page) withevidence: explicitand no confidence, deduplicated by canonicaltarget.
Deliberately out of scope (named on #12919): ingestion cycle/cursor
(C8-I, #12304), link resolution against Atlas records and traversal
(needs the #9091 seam), the #9106 projection compatibility test,
planner boosts (C8-R), and the investigation bundle (C8-E). Nothing
here forks or duplicates a #9091 platform thread.
Evidence
Oracle: the merged design §2/§3 plus the #9576 metadata schema,
encoded as
crates/atlas-core/tests/c8_profile.rs(9 specificationtests + 1 proptest over generated URLs).
origin/main, test file only):cargo test -p atlas-core --test c8_profilefails with E0432 —could not find c8_profile in atlas_core.cargo test -p atlas-core --test c8_profile— 10 passed, 0 failed, re-run green after mergingcurrent
origin/maininto the branch (head4b39597bfeb).Full
cargo test -p atlas-core— 353 passed, 0 failed across26 test binaries.
cargo fmtapplied;git diff --checkclean.cargo clippyon this workspace fails withE0514 at
atlas-proto(untouched by this PR) — the laptop PATHpairs a nix rustc 1.99.0 sysroot (no clippy-driver) with a clippy
from elsewhere, while the workspace pins 1.99.1; a
nix developclippy run was still materializing its shell at merge time. The
test suite above is the design's verification contract and is
green; the clippy environment note is recorded on C8-M: metadata profile and typed links for report/page ingestion #12919.
Merge Danger
Low. One new module, one new test file, and five added lines in
crates/atlas-core/src/lib.rs(module declaration + re-exports).No existing type, function, or behavior is modified; reverting
removes the module whole.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.