GeezerVison is showing github.com — C8-M: metadata profile and typed links for report/page ingestion · Issue #12919 · developing-today/code
C8-M: metadata profile and typed links for report/page ingestion #12919DescriptionContext
Follow-on to #9576 and the merged C8 design (PR #12290,
doc/2026-11-22T01-48-21Z_design_c8_atlas_ingestion_investigation/).
Design slice C8-M — metadata and typed links: the C8 profile in the
shared versioned envelope, URL sanitization, explicit link
extraction/resolution, and a compatibility test for the #9106 relation
projection. C8-I is tracked separately in #12304 (blocked on the #9091
ingestion seam); this issue tracks the seam-independent C8-M parts so
they do not sit silently inside the parent.
Scope
- C8 profile types for the design §2 envelope (
source, page,
links): typed page kind and link kinds from the closed vocabulary
(mentions_issue, mentions_pull_request, mentions_commit,
links_page, generated_by, related_error).
- Canonical URL decomposition (
url_parts: scheme, host, port, path,
file name, last path part) and sanitization: credentials and secret
query parameters are discarded (design §2).
- Media derivation from the canonical URL: media type, is-HTML and
is-video flags (issue C8 — Atlas ingestion of reports & pages + error-driven investigation boosts #9576 page metadata schema).
- Explicit link extraction from page bodies into typed links with
evidence: explicit; deduplicated by canonical target.
Out of scope: ingestion cycle/cursor (C8-I, #12304), link resolution
against Atlas records and traversal (needs the #9091 seam), planner
boosts (C8-R, #9091 owner), investigation bundle (C8-E).
Acceptance
Activitydeveloping-today commented on Nov 23, 2026 dezren39 commented on Nov 23, 2026
C8-M slice 1 landed — profile core. PR #12959
merged (3537bc2fd673), verified present on main
(crates/atlas-core/src/c8_profile.rs, 20,506 B).
What landed (atlas_core::c8_profile):
UrlParts — canonical 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; credentials and secret query
parameters discarded (design §2).
C8Source / C8Page — the §2 envelope source/page objects;
unsupplied fields stay absent, never guessed.
extract_links — explicit Markdown/bare links classified into
the §3 closed vocabulary with evidence: explicit, no
confidence, deduplicated by canonical target.
Verification (oracle: the merged design §2/§3 + the #9576
metadata schema). Failing-first on origin/main: E0432, module
absent. After: cargo test -p atlas-core --test c8_profile
10 passed / 0 failed (9 specification tests + a proptest that
sanitization never retains credentials/secret params and is
idempotent), re-run green after merging current main into the
branch; full cargo test -p atlas-core 353 passed / 0 failed;
cargo fmt applied; git diff --check clean.
Clippy caveat, stated plainly: clippy did not produce a verdict
on this code. Bare-shell attempts fail with E0514 at atlas-proto
(the laptop PATH pairs a nix rustc 1.99.0 sysroot that has no
clippy-driver with a clippy from elsewhere; the workspace pins
1.99.1), and the first nix develop attempt reused a target dir
the bare attempts had already written, so it hit the same E0514
from the other side. A clean nix develop clippy run (fresh
target dir) was launched after the merge; its result will be added
here when it lands. The design's verification contract is the test
suite, which is green.
Remaining C8-M slices, in order:
- Link resolution phase (design §3 phase two): resolve extracted
IDs against authorized Atlas records; unresolved links stay
typed references and retry on a later cycle. Needs the design(atlas): Atlas v1 build-out — design-mill starter (proto design → full design set) #9091
ingestion seam — the same gap recorded on C8-I: report/page ingestion cycle and searchable-after-commit check #12304.
- Envelope integration: emit the profile through the platform's
versioned metadata envelope at ingestion time (with §2's
type-mismatch-to-extras and most-restrictive-enum rules).
- epic: ID/Atlas extensible primitives, federation, namespaces — major design iteration (2026-11-12 directive) #9106 projection compatibility test: the typed links project
onto the ID graph/triple model without a parallel store.
This issue stays open as the C8-M tracking home. dezren39 commented on Nov 23, 2026
Clippy follow-up to the completion record above. The clean
nix develop clippy run (fresh target dir) compiled deep into the
dependency graph with no warnings or errors emitted, but the
process group died silently before finishing (no clippy-driver
remained and the completion marker was never written — the laptop
was at load 20–28 with a dozen lanes building, and the run had
already survived one sandbox service restart and one channel
flap). Net: clippy produced no verdict on this code, for
environment reasons only; the failures in the earlier attempts
were all E0514 toolchain/target-dir mismatches in untouched
crates, never findings in c8_profile.
The verification of record for PR #12959 stands as posted: the
design's test contract — targeted 10/10, full atlas-core
suite 353 passed / 0 failed, cargo fmt applied,
git diff --check clean. Anyone re-running clippy on this
workspace should use nix develop with a fresh
CARGO_TARGET_DIR; bare-shell clippy on the laptop mixes a
1.99.0 rustc sysroot (no clippy-driver) with a foreign clippy
while the workspace pins 1.99.1. dezren39 commented on Nov 23, 2026
🤖 Agent note · claimed — clippy verdict slice (Lane HW, archer)
Premise check (fresh, 2026-11-23 ~06:30Z): #12919 OPEN, no live claim (Lane FI completed slice 1 and released). FI's follow-up note records the one open verification gap: clippy produced no verdict on the C8-M profile core (PR #12959) — the clean nix develop run died silently under laptop load before finishing.
Slice: run clippy to a verdict for atlas-core (covering c8_profile) using FI's documented recipe — nix develop in pkgs/atlas-search with a fresh CARGO_TARGET_DIR — and record the verdict here. If clippy reports findings in c8_profile.rs, fix them in a small PR with the test suite re-run green; findings elsewhere are recorded, not fixed, in this slice. dezren39 commented on Nov 23, 2026
🤖 Agent note · HELD at a platform execution-risk flag (Lane HW, archer)
Minutes after the claim, a platform execution-risk check flagged the tool output from the laptop session carrying this lane's clippy run. Per the flag notice I stopped immediately: no further builds, tests, or git operations in the laptop worktree (~/wt-lane-hw-12919, branch lane-hw/12919-clippy-verdict, off origin/main 662beb71ed7), and I will not resume there on my own authority. A detached clippy process launched before the flag was left as-is (build-only, nothing merged or deployed) — flagged here transparently since I did not interact further to stop it.
State of the slice: claim posted (comment 7093360480); the clippy verdict for atlas-core / c8_profile is not obtained and no result from the flagged session is being relied on.
To unblock: Drew's plain-words go-ahead to work in this flagged worktree, or an unflagged venue. The remaining steps are then mechanical: run clippy to a verdict per FI's recipe (nix develop, fresh CARGO_TARGET_DIR), record the verdict here, fix any c8_profile findings in a small PR if they exist. dezren39 commented on Nov 23, 2026
Clippy verdict for the C8-M profile core — obtained, one finding in the slice, fixed and merged. (Lane IW, executing after Drew's 2026-11-23 approval of the flag-held items; this completes the slice Lane HW was stopped on.)
Run: FI's recipe exactly — nix develop in pkgs/atlas-search, fresh CARGO_TARGET_DIR, cargo clippy -p atlas-core --all-targets. First full run: 19m06s under heavy laptop load, exit 0 (warnings only, no errors). HW's earlier detached run left no verdict (its logs were from a different crate set); nothing from it was relied on.
The one finding in c8_profile.rs, verbatim:
warning: called `filter(..).next_back()` on an `DoubleEndedIterator`
--> crates/atlas-core/src/c8_profile.rs:127:30
|
127 | let last_path_part = path
| ______________________________
128 | | .split('/')
129 | | .filter(|segment| !segment.is_empty())
130 | | .next_back()
| |________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.99.0/index.html#filter_next
= note: `#[warn(clippy::filter_next)]` on by default
help: use `.rfind(..)` instead
Fix: PR #13049 merged (d9612819f55d) — .split('/').rfind(|segment| !segment.is_empty()), clippy's suggested form, semantics unchanged (1 insertion, 2 deletions, c8_profile.rs only).
Verification after the fix: clippy re-run exit 0 with zero c8_profile findings; cargo test -p atlas-core 353 passed / 0 failed (full-output run, exit 0) — matching FI's pre-existing suite total, so no regression.
Everything else in the run is pre-existing and outside this slice: atlas-core lib carried 23 warnings total (22 remain, all in other files — collapsible ifs, manual is_multiple_of, chunks_exact, the from_str name in github_comments.rs, etc.) plus a handful in test targets. Recorded, not fixed here, per the slice scope; filed as follow-up #13056 with the full inventory.
Acceptance: criterion 1 was met by FI's slice 1 (PR #12959) with this verdict gap now closed. Criterion 2 — the remaining C8-M parts stand named as follow-on slices: envelope integration through the #9091 seam and C8-I ingestion (#12304, blocked on #9091/#9179), the #9106 relation-projection compatibility test, and link resolution against Atlas records (needs the #9091 seam). Closing as completed.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|