Skip to content

feat(roadmap): onboard checks and starts the rag ingestion #3771

Closed

Description

@dan-petty

Problem

A managed repository is useful to the roadmap jobs and to review only when its code and documents are in Qdrant. Nothing checks this when a repository is added, and nothing starts the first index. Today devops ai rag index names the project after the directory that it runs in. On 2026-11-06 a run from a worktree would have used the project name w-3566 and not devops-cli. A managed repository needs the name owner/name, set by the command and not by the directory.

#1389 plans the CLI pass over the repositories of service.repos. #1653 (and its copy #3589) plans the Argo schedule. Neither one tells the person who adds a repository whether it is in the pass, whether it is indexed, or whether the schedule covers it.

Expected

devops roadmap onboard has rows for the index of the repository and can start its first pass. The index of a repository is current within one poll interval after onboarding, with no step left that a person must remember.

Acceptance criteria

  • A row indexed reads present when both collections hold points of this repository (project owner/name), missing when they hold none, and not readable with the reason when Qdrant cannot be reached.
  • A row rag visibility reads whether the repository is recorded as private or public in its points, from GET repos/<owner>/<name>. An unscoped search leaves out a private repository (feat(rag): Index managed repos, exclude private from unscoped search #1389), so a wrong value leaks or hides code.
  • A row rag schedule reads whether the scheduled pass of feat(k8s): Add an Argo workflow to keep the RAG index current #1653 includes the repository (it reads the list that the pass uses, service.repos). When it does not, the command prints the line to add. It never edits config.yaml.
  • With --confirm, and only when the repository is in service.repos, the command runs the pass of feat(rag): Index managed repos, exclude private from unscoped search #1389 for that one repository (--repo owner/name) and prints the number of points of each collection. It writes to Qdrant only through that pass.
  • The project name of every point written by the pass is owner/name. A test fails when it is the directory name.
  • A second run changes nothing when the repository is current (devops ai rag drift is clean).
  • docs/roadmap/onboard.md describes the rows.

Existing tool considered

The ingestion command of #1389 and the schedule of #1653 are the tools. This item adds the checks and the single-repository start; it adds no new indexer. The cost is about 250,000 tokens and 2 hours, after #1389 merges.

Dependencies

Blocked by #1389 (the ingestion pass) and #1653 (the schedule).

Related

#1359, #3589 (a copy of #1653).

Proposed design

Problem statement

A managed repository is useful to the roadmap jobs only when Qdrant holds its code and documents. No check tells the person who adds a repository whether it is indexed. No check shows the visibility that its points record, or whether the schedule covers it. Today devops ai rag index names the project after the current directory. On 2026-11-06 a run from a worktree would have used the project name w-3566, not devops-cli.

This item adds three rows to devops roadmap onboard and a --confirm start for one repository. It starts the pass of #1389 with --repo owner/name. It gives devops ai rag drift the same project name, so a worktree reads the points of owner/name. The schedule of #1653 then keeps the index current with no step from a person.

Acceptance criteria

Requirement: Indexed row shows points

The onboard command SHALL print present in the indexed row when both collections hold at least one point of the project.

Scenario: Both collections hold points

  • WHEN Both collections hold at least one point for project owner/name.
  • THEN The indexed row reads present.

Requirement: Indexed row shows no points

The onboard command SHALL print missing in the indexed row when neither collection holds a point of the project.

Scenario: Neither collection holds a point

  • WHEN Neither collection holds a point for project owner/name.
  • THEN The indexed row reads missing.

Requirement: Indexed row shows a partial index

The onboard command SHALL print partial and the count of each collection in the indexed row when one collection holds points and the other holds none.

Scenario: One collection holds points

  • WHEN The code collection holds points for project owner/name and the docs collection holds none.
  • THEN The indexed row reads partial and shows the count of each collection.

Requirement: Indexed row shows an unreadable Qdrant

The onboard command SHALL print not readable and the reason in the indexed row when the Qdrant client cannot be built or its request fails.

Scenario: Qdrant is unreachable

  • WHEN The Qdrant client cannot be built, or the count request fails.
  • THEN The indexed row reads not readable and shows the reason, and the other rows still print.

Requirement: Visibility row reads the points

The onboard command SHALL print private or public in the rag visibility row, as the points of the project record it.

Scenario: Points record a private repository

  • WHEN The points of project owner/name record private and GET repos/<owner>/<name> returns private.
  • THEN The rag visibility row reads private.

Requirement: Visibility row reports a mismatch

The onboard command SHALL print mismatch and both values in the rag visibility row when the points disagree with GET repos/<owner>/<name>.

Scenario: Points disagree with GitHub

  • WHEN The points record private and GET repos/<owner>/<name> returns public.
  • THEN The rag visibility row reads mismatch and prints both values.

Requirement: Visibility row reports a missing value

The onboard command SHALL print mismatch with not recorded in the rag visibility row when the points hold no visibility value.

Scenario: Points hold no visibility value

  • WHEN The points of project owner/name hold no visibility field and GET repos/<owner>/<name> returns private.
  • THEN The rag visibility row reads mismatch and prints not recorded beside private.

Requirement: Visibility row with no points

The onboard command SHALL print not indexed in the rag visibility row when the project has no points.

Scenario: No points to read

  • WHEN Neither collection holds a point for project owner/name.
  • THEN The rag visibility row reads not indexed and the command sends no request to GET repos/<owner>/<name>.

Requirement: Schedule row reads service.repos

The onboard command SHALL print present in the rag schedule row when service.repos includes the repository.

Scenario: Repository is in the schedule

  • WHEN service.repos includes owner/name.
  • THEN The rag schedule row reads present.

Requirement: Schedule row prints the missing line

The onboard command SHALL print missing in the rag schedule row and the line to add when service.repos leaves out the repository.

Scenario: Repository is absent from the schedule

  • WHEN service.repos does not include owner/name.
  • THEN The rag schedule row reads missing and the command prints the line to add.

Requirement: Onboard never edits config.yaml

The onboard command MUST NOT write config.yaml.

Scenario: Config stays unchanged

  • WHEN The user runs the onboard command with any mode flag.
  • THEN config.yaml is byte for byte the same after the command as before it.

Requirement: Confirmed start runs the pass

The onboard command SHALL run the ingestion pass with --repo owner/name when the user passes --confirm and service.repos includes the repository.

Scenario: Confirm runs the pass

  • WHEN service.repos includes owner/name and the user passes --confirm.
  • THEN The command runs the ingestion pass with --repo owner/name.

Requirement: Confirmed start prints point counts

The onboard command SHALL print the number of points of each collection after the pass completes.

Scenario: Point counts printed

  • WHEN The ingestion pass for owner/name completes.
  • THEN The command prints the number of points of the code collection and of the docs collection.

Requirement: Confirmed start refuses an unlisted repository

The onboard command MUST NOT run the pass when service.repos leaves out the repository.

Scenario: Confirm refuses

  • WHEN service.repos does not include owner/name and the user passes --confirm.
  • THEN The command prints an error and starts no ingestion.

Requirement: Points carry owner/name

Every point that the pass writes SHALL carry the project name owner/name.

Scenario: Project name is not the directory name

  • WHEN The command runs the pass from a directory named w-3566 for owner/name.
  • THEN Each written point carries owner/name in project_name and no point carries w-3566.

Requirement: Drift takes the project name

devops ai rag drift SHALL compare the project that --repo owner/name names, not the name of the current directory.

Scenario: Drift runs in a worktree

  • WHEN The user runs devops ai rag drift --repo owner/name from a directory named w-3566.
  • THEN The report names project owner/name and reads the points and cache entries of owner/name.

Requirement: Second run writes nothing

A second --confirm run SHALL write no point when the repository is current.

Scenario: Second run is clean

  • WHEN The repository is current and the user passes --confirm again.
  • THEN The command writes no point and devops ai rag drift --repo owner/name reports no drift.

Requirement: New rows leave the exit code alone

The onboard command SHALL keep its exit code on the six prerequisite rows and MUST NOT change it for a new row.

Scenario: A repository is not yet indexed

  • WHEN Every prerequisite row is present or not readable and the indexed row reads missing.
  • THEN The command exits with code 0.

Requirement: Onboard documentation

docs/roadmap/onboard.md SHALL describe the indexed, rag visibility and rag schedule rows, the --confirm start and the exit code rule.

Scenario: Documentation describes the rows

  • WHEN A reader opens docs/roadmap/onboard.md.
  • THEN The document describes each row, its values, the --confirm start and the exit code rule.

Existing Tool Considered

No alternatives check has run. The closest open, maintained tool is Qdrant (https://github.com/qdrant/qdrant) with its Python client. It stores the points and counts them with a payload filter. It has no onboard row, no comparison with the GitHub visibility and no schedule check.

The ingestion pass of #1389 and the schedule of #1653 are project code. The rest is the three rows, the --confirm start and the project name. The written cost is about 250,000 tokens and 2 hours, after #1389 merges.

Key questions

  • Which value names the project in every point that the pass writes?: The --repo owner/name argument of the pass. The indexer takes project and uses it in place of the directory name. (best practice) [sources: src/devops_cli/commands/rag.py, src/devops_cli/ai/rag/indexer.py]
    • Chosen: --repo owner/name argument. The command holds the repository name, so the value stays the same in a worktree.
    • Rejected: Name of the current directory. A worktree directory is w-3566, not the repository name.
    • Rejected: Git remote URL. It needs a git call and a parse, and the command already knows owner/name.
  • Which collections must hold points for the indexed row to read present?: The code collection <prefix>_code and the docs collection <prefix>_docs. The drift check counts both. [sources: src/devops_cli/ai/rag/indexer.py, src/devops_cli/ai/rag/drift.py]
  • How does the command count the points of one project?: It sends a Qdrant count request with a payload filter on project_name for each collection. It does not scroll the points. (best practice) [sources: src/devops_cli/ai/rag/qdrant.py, src/devops_cli/ai/rag/drift.py, docs/adr/0005-review-findings-come-from-tools-not-models.md]
    • Chosen: Qdrant count with a payload filter. Qdrant counts the matching points on the server, and the client gets one number.
    • Rejected: Scroll every point and count on the client. It moves every point over the network and needs a full scan.
    • Rejected: Read the local index cache. The cache is local and does not show the index (ADR 0005).
  • What does the indexed row read when only one collection holds points?: partial, with the count of each collection. A repository can hold code and no document, so neither present nor missing is true. (best practice) [sources: src/devops_cli/ai/rag/indexer.py]
    • Chosen: partial with both counts. The row states which collection is short and by how much.
    • Rejected: missing. It hides that one collection holds points.
    • Rejected: present. It reports an index that is not complete.
  • How does the rag visibility row get the visibility of the repository?: It reads the visibility field of the points and compares it with GET repos/<owner>/<name>. A difference prints mismatch. (best practice) [sources: src/devops_cli/ai/rag/indexer.py, src/devops_cli/config/constants.py, docs/roadmap/onboard.md]
    • Chosen: Points value compared with the GitHub API. The row shows what the index holds, and the API shows the correct value.
    • Rejected: GitHub API only. It hides a wrong value in the points, and an unscoped search then leaks or hides code.
    • Rejected: config.yaml. The config holds the repository list, not its visibility.
  • What does the rag visibility row read when the points hold no visibility value?: mismatch, with not recorded beside the value of the GitHub API. An absent value leaks or hides code as a wrong one does. (best practice) [sources: src/devops_cli/ai/rag/indexer.py]
    • Chosen: mismatch with not recorded. The row states that the points hold no value and shows the correct one.
    • Rejected: public. It reports a value that no point holds.
    • Rejected: An empty cell. An empty cell does not say why.
  • How does the command report a Qdrant that it cannot reach or build?: The row catches the error, prints not readable and the reason, and the other rows still run. A missing qdrant.url is one such error. (best practice) [sources: src/devops_cli/ai/rag/qdrant.py, src/devops_cli/ai/rag/indexer.py]
    • Chosen: Print not readable and continue. The person still sees the schedule and visibility rows.
    • Rejected: Stop the command with an error. It hides the rows that need no Qdrant access.
  • How does the rag schedule row read the scheduled pass?: It reads service.repos from the loaded configuration and prints the line to add. It never writes config.yaml. (best practice) [sources: docs/roadmap/onboard.md, src/devops_cli/config/settings.py]
    • Chosen: Read the loaded configuration. The pass of feat(k8s): Add an Argo workflow to keep the RAG index current #1653 reads the same list, so the row and the schedule agree.
    • Rejected: Query the Argo workflow. It needs cluster access and shows the live state, not the declared list.
    • Rejected: Edit config.yaml. The command has no write path, and an edit hides the change from review.
  • How does devops ai rag drift name the project it compares?: It uses the name of the current directory today, from detect_project_name. It must take owner/name, or its cache keys and its point filter miss the pass. [sources: src/devops_cli/ai/rag/drift.py, src/devops_cli/ai/rag/indexer.py]
  • What does --confirm do now that it also starts the pass?: It keeps its label creation and adds the pass only when service.repos holds the repository. --plan and --dry-run still write nothing. (best practice) [sources: docs/roadmap/onboard.md, tests/roadmap/test_roadmap_onboard.py]
    • Chosen: Extend --confirm. The issue body names --confirm, and one flag then settles the whole onboarding.
    • Rejected: A new --index flag. It splits one onboarding into two commands that a person must remember.
    • Rejected: A separate command. It leaves the rows and the start apart, and the person must join them.
  • Does the exit code follow the new rows?: No. The exit code stays on the six prerequisite rows. The schedule fills the index with no step from a person, so a fresh repository would otherwise exit 1 for one poll interval. (best practice) [sources: docs/roadmap/onboard.md, tests/roadmap/test_roadmap_onboard.py]
    • Chosen: Keep the exit code on the six rows. A repository that waits for its first poll is not a failed check.
    • Rejected: Fail on a missing or mismatch new row. A fresh repository exits 1 for one poll interval, and a script reads a fault.
  • How does the command get a Qdrant client and the collection names?: From resolve_rag_components(), which builds the client and the <prefix>_code and <prefix>_docs names from the settings. [sources: src/devops_cli/ai/rag/indexer.py, src/devops_cli/config/constants.py]

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

#1389, #1653

Alternatives check of 2026-11-08: partly.
Tool: qdrant/qdrant (https://github.com/qdrant/qdrant), Apache-2.0, last activity 2026-11-08, maintained.

Activity

  1. added
    source/agent
    type/feature
    scope/roadmap
    status/new
    value/medium
    effort/medium
    on Nov 6, 2026
  2. dan-petty commented on Nov 6, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/feature. The feat prefix of the title gives the type.
    • Scope: scope/roadmap. The (roadmap) scope of the title gives the scope.
    • Priority: P2-Medium. Useful for onboarding safety but not critical; blocked by #1389 and #1653.
    • Value: Medium. Prevents misconfiguration of new repositories and gives operators visibility into index status.
    • Effort: Medium. Multiple status rows, Qdrant reads, a confirm flow, and docs; estimated 2 hours after dependencies merge.
    • Related: feat(rag): Index managed repos, exclude private from unscoped search #1389, which asks for a different change. Both work on RAG ingestion for managed repositories; #1389 delivers the ingestion pass, the candidate adds the onboard checks and the single-repository trigger.
  3. added
    priority/p2-medium
    on Nov 6, 2026
  4. devops-cli-service commented on Nov 7, 2026

    @devops-cli-service
    Contributor

    Refine cannot set this item to Ready at 517c58b while the items below stay open. The next refine round looks at the item again when they close, or when a person replies in a comment or edits the body.

  5. added
    status/ready
    and removed
    status/new
    on Nov 8, 2026
  6. devops-cli-service commented on Nov 8, 2026

    @devops-cli-service
    Contributor

    Status set to Ready at c56f784 (see proposed design in issue body).

  7. devops-cli-service commented on Nov 8, 2026

    @devops-cli-service
    Contributor

    Alternatives check: partly

    Reason: Qdrant is an open vector database that stores points with JSON payloads and filters on those payloads, so it can hold the code/docs collections and answer the per-project counts that the indexed and rag visibility rows read (its Python client is published on PyPI). It provides none of the item's own behaviour: no onboard rows, no comparison with GET repos/<owner>/<name>, no service.repos schedule check, and no --confirm single-repository ingestion pass that names the project owner/name.

    Tool: qdrant/qdrant (https://github.com/qdrant/qdrant)

    • License: Apache-2.0
    • Last activity: 2026-11-08
    • Maintained: yes

    Covers:

    • Stores code and document collections as points with an attached payload, one project per payload value
    • Rich payload filtering (keyword, full-text, numeric, should/must/must_not) supports counting the points of one project in each collection
    • A payload field can record the repository visibility that the rag visibility row reads
    • Ships an official Python client (qdrant-client) for reads and for reporting an unreachable server

    Lacks:

    • No devops roadmap onboard rows or any status/onboarding command
    • No comparison of stored visibility with GET repos/<owner>/<name>, so no mismatch detection
    • No read of service.repos or the Argo schedule of feat(k8s): Add an Argo workflow to keep the RAG index current #1653, and no printed line to add
    • No --confirm single-repository ingestion pass with --repo owner/name; the project name is set by project code, not the store
    • No devops ai rag drift project naming or clean-second-run behaviour

    Tools considered:

    Searches run:

    • Qdrant count points in collection with payload filter Python client, results: 5
    • tool to check whether a repository is indexed in a vector database and report index status, results: 5
    • qdrant-client python count exact points filter, results: 5
    • qdrant github repository vector search engine, results: 5
    • Qdrant, results: 5
    • qdrant count points api payload filter documentation, results: 5
    • qdrant payload filter count, results: 5
    • "qdrant" count points, results: 5
    • qdrant python client repository indexing status monitoring, results: 5
    • qdrant points count filter example, results: 5

    Sources:

    Checked on 2026-11-08. A person decides what this means for the item. The check changes no label and closes no issue.

  8. added
    owner/service
    on Nov 16, 2026
  9. 30 remaining items

  10. added
    status/in-review
    and removed
    status/blocked
    on Nov 18, 2026
  11. removed
    status/in-review
    on Nov 18, 2026
  12. devops-cli-service commented on Nov 18, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-18 06:26 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/mediumpriority/p2-mediumscope/roadmapsource/agenttype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions