Repository navigation
Description
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
indexedreadspresentwhen both collections hold points of this repository (projectowner/name),missingwhen they hold none, andnot readablewith the reason when Qdrant cannot be reached. - A row
rag visibilityreads whether the repository is recorded as private or public in its points, fromGET 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 schedulereads 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 editsconfig.yaml. - With
--confirm, and only when the repository is inservice.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 driftis clean). -
docs/roadmap/onboard.mddescribes 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
indexedrow readspresent.
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
indexedrow readsmissing.
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/nameand the docs collection holds none. - THEN The
indexedrow readspartialand 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
indexedrow readsnot readableand 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/namerecordprivateandGET repos/<owner>/<name>returnsprivate. - THEN The
rag visibilityrow readsprivate.
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
privateandGET repos/<owner>/<name>returnspublic. - THEN The
rag visibilityrow readsmismatchand 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/namehold novisibilityfield andGET repos/<owner>/<name>returnsprivate. - THEN The
rag visibilityrow readsmismatchand printsnot recordedbesideprivate.
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 visibilityrow readsnot indexedand the command sends no request toGET 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.reposincludesowner/name. - THEN The
rag schedulerow readspresent.
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.reposdoes not includeowner/name. - THEN The
rag schedulerow readsmissingand 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.yamlis 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.reposincludesowner/nameand 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/namecompletes. - 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.reposdoes not includeowner/nameand 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-3566forowner/name. - THEN Each written point carries
owner/nameinproject_nameand no point carriesw-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/namefrom a directory namedw-3566. - THEN The report names project
owner/nameand reads the points and cache entries ofowner/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
--confirmagain. - THEN The command writes no point and
devops ai rag drift --repo owner/namereports 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
presentornot readableand theindexedrow readsmissing. - 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
--confirmstart 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/nameargument of the pass. The indexer takesprojectand 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/nameargument. 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.
- Chosen:
- Which collections must hold points for the
indexedrow to readpresent?: The code collection<prefix>_codeand 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_namefor 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
indexedrow read when only one collection holds points?:partial, with the count of each collection. A repository can hold code and no document, so neitherpresentnormissingis true. (best practice) [sources: src/devops_cli/ai/rag/indexer.py]- Chosen:
partialwith 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.
- Chosen:
- How does the
rag visibilityrow get the visibility of the repository?: It reads thevisibilityfield of the points and compares it withGET repos/<owner>/<name>. A difference printsmismatch. (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 visibilityrow read when the points hold no visibility value?:mismatch, withnot recordedbeside 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:
mismatchwithnot 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.
- Chosen:
- How does the command report a Qdrant that it cannot reach or build?: The row catches the error, prints
not readableand the reason, and the other rows still run. A missingqdrant.urlis one such error. (best practice) [sources: src/devops_cli/ai/rag/qdrant.py, src/devops_cli/ai/rag/indexer.py]- Chosen: Print
not readableand 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.
- Chosen: Print
- How does the
rag schedulerow read the scheduled pass?: It readsservice.reposfrom the loaded configuration and prints the line to add. It never writesconfig.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 driftname the project it compares?: It uses the name of the current directory today, fromdetect_project_name. It must takeowner/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
--confirmdo now that it also starts the pass?: It keeps its label creation and adds the pass only whenservice.reposholds the repository.--planand--dry-runstill 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
--indexflag. 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.
- Chosen: Extend
- 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
missingormismatchnew 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>_codeand<prefix>_docsnames 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
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
dan-petty commentedon Nov 6, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
featprefix of the title gives the type.(roadmap)scope of the title gives the scope.Useful for onboarding safety but not critical; blocked by #1389 and #1653.Prevents misconfiguration of new repositories and gives operators visibility into index status.Multiple status rows, Qdrant reads, a confirm flow, and docs; estimated 2 hours after dependencies merge.Both work on RAG ingestion for managed repositories; #1389 delivers the ingestion pass, the candidate adds the onboard checks and the single-repository trigger.devops-cli-service commentedon Nov 7, 2026
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.
devops-cli-service commentedon Nov 8, 2026
Status set to Ready at c56f784 (see proposed design in issue body).
devops-cli-service commentedon Nov 8, 2026
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
indexedandrag visibilityrows read (its Python client is published on PyPI). It provides none of the item's own behaviour: no onboard rows, no comparison withGET repos/<owner>/<name>, noservice.reposschedule check, and no--confirmsingle-repository ingestion pass that names the projectowner/name.Tool: qdrant/qdrant (https://github.com/qdrant/qdrant)
Covers:
rag visibilityrow readsqdrant-client) for reads and for reporting an unreachable serverLacks:
devops roadmap onboardrows or any status/onboarding commandGET repos/<owner>/<name>, so nomismatchdetectionservice.reposor the Argo schedule of feat(k8s): Add an Argo workflow to keep the RAG index current #1653, and no printed line to add--confirmsingle-repository ingestion pass with--repo owner/name; the project name is set by project code, not the storedevops ai rag driftproject naming or clean-second-run behaviourTools considered:
Searches run:
Sources:
Checked on 2026-11-08. A person decides what this means for the item. The check changes no label and closes no issue.
30 remaining items
fix(roadmap): mark a draft ready only when draft readiness allows it (#…
docs(openspec): plan #3771 Add RAG index rows to repository onboarding
docs(openspec): plan #3771 Add rag rows to onboard and start the pass
feat(roadmap): Add the RAG rows and the project name census (#3771)
feat(roadmap): Start the pass from the confirmed onboarding (#3771)
feat(roadmap): Give the drift detector the project name (#3771)
feat(roadmap): Add the repo option to the drift command (#3771)
docs(rag): regenerate the MCP tool listing and the generated documents (
docs(roadmap): Document the RAG rows and confirmed start (#3771)
devops-cli-service commentedon Nov 18, 2026
Released in v0.175.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.175.0
devops-cli-service commentedon Nov 18, 2026
Live since 2026-11-18 06:26 UTC