Skip to content

feat(atlas-core): GitHub comments ingestion writer + extraction feed (#6023) - #10688

Merged
dezren39 merged 1 commit into
mainfrom
queue/16805-6023-atlas-github-comments
Nov 16, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/16805-6023-atlas-github-comments

Conversation

@dezren39

@dezren39 dezren39 commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

Implements the ungated core of #6023 (Atlas GitHub corpus extraction, parent program #6018): the atlas-core ingestion writer for GitHub comments, the recurring extraction CLI, and the external-set enumeration artifact. The external half stays gated on the #6024 licensing research — this PR extracts zero external comment text.

Writer — crates/atlas-core/src/github_comments.rs

Mirrors the trace_ingest pattern (registration beside the writer, schema-exact inclusion test):

  • Source registration: source class github comments, record schema atlas-github-comment/v1.
  • The chunk unit is the comment with its thread context: comment_document builds text carrying the thread's repo/number/title/state/labels ahead of the body, the program's provenance mark (github.com/<owner>/<repo>#<n> + comment id + observed date), and the author verbatim (our comments vs others' stay distinguishable).
  • CommentWatermarks: per-repo updated_at watermarks — advance-only, JSON-persistable; select_delta is the local delta guarantee behind the API's since bound (the boundary comment is never extracted twice).

Extraction CLI — src/bin/atlas-github-comments.rs

  • gh-API only; enumerates the our-repos estate (developing-today + developing-today-forks orgs, dezren39 account) or takes --repo overrides.
  • Per repo: thread list, repo-wide issue-comment and review-comment streams bounded by the watermark, and per-PR reviews; appends atlas-github-comment/v1 JSONL records, prints per-repo counts, and persists watermarks after every repo so an interrupted run resumes exactly. Sequential requests are the rate-limit discipline; any gh failure stops the run with state saved.

Enumeration artifact — docs/external-set-enumeration.md

31 candidate external repos from fork upstreams (30, GraphQL) + dependency manifests (1); the account-activity source is reported honestly: within the search API's 1,000-item window the account's activity is entirely inside the estate, so it contributes no external candidates today. Enumeration only — Drew can strike items before any external build.

Tests / evidence

  • cargo test -p atlas-core --lib: 110/110 pass (5 new: chunk context+provenance+author, record round-trip/inclusion, registration, watermark delta selection, watermark monotonicity + JSON round-trip).
  • Live smoke run on dezren39/zettel: 1 record extracted with correct provenance; the immediate second run extracted 0 (delta-only demonstrated against the real API).
  • The first full estate run (615 repos) is in progress from this branch's build; per-repo counts are being recorded on task(atlas): extract the GitHub corpus — all issue/PR comments from all our repos; external set gated on licensing #6023 as it proceeds, resumable via the persisted watermark state.

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

@dezren39
dezren39 requested a review from a team as a code owner November 16, 2026 10:38
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-16T10:38:42.226455Z
We couldn’t complete this review. Comment @codex review to try again.
d76b825 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.

@coderabbitai

coderabbitai Bot commented Nov 16, 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 42 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: 6ca92eda-22ba-458d-9a6c-55571282e272
Commits

Reviewing files that changed from the base of the PR and between 8c2c77d and d76b825.

Files selected for processing: 4

  • pkgs/atlas-search/crates/atlas-core/src/bin/atlas-github-comments.rs
  • pkgs/atlas-search/crates/atlas-core/src/github_comments.rs
  • pkgs/atlas-search/crates/atlas-core/src/lib.rs
  • pkgs/atlas-search/docs/external-set-enumeration.md
  • 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

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@dezren39
dezren39 merged commit 0cd68b0 into main Nov 16, 2026
1 check passed
@dezren39
dezren39 deleted the queue/16805-6023-atlas-github-comments branch November 16, 2026 10:44
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