Skip to content

feat(roadmap): Add RAG index rows to repository onboarding - #6041

Merged
dan-petty merged 8 commits into
mainfrom
feat/3771-onboard-checks-and-starts-the-rag
Nov 18, 2026
Merged

dan-petty merged 8 commits into
mainfrom
feat/3771-onboard-checks-and-starts-the-rag

Conversation

@devops-cli-service

@devops-cli-service devops-cli-service Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Issue #3771: a person who adds a managed repository cannot tell whether Qdrant holds its code and documents, whether its points record the right visibility, or whether the scheduled pass covers it. The drift check also names the project after the directory, so a worktree reads another project than the pass writes.

Closes #3771

Change: openspec/changes/archive/2026-11-18-3771-onboard-checks-and-starts-the-rag/

@devops-cli-service devops-cli-service Bot added type/docs Type docs: a change to the documents scope/openspec OpenSpec changes, specs and their checks labels Nov 16, 2026
@devops-cli-service
devops-cli-service Bot marked this pull request as ready for review November 16, 2026 21:09
@dan-petty

Copy link
Copy Markdown
Owner

Verdict: Needs fix (verdict/fix-plan), vet of 2026-11-16. The premise holds (#1389 and #1653 closed; run_ingest_pass, count_points and drift.py:317 exist; #6050 changed only onboard row 7). The form is correct.

  1. tasks.md:29, design.md:10: --repo changes only the project name. Drift reads <rag_dir>/index_cache.json, but the pass writes <rag_dir>/repos/<owner>/<name>/index_cache.json (ingest.py:229-235), so the scenarios at rag-ingest spec line 15 and onboard spec line 71 cannot pass. --repo with --auto-sync writes owner/name points with no visibility (drift.py:383), and unscoped search shows them (retriever.py:80), so private code can leak. Fix: with --repo, use the cache directory of resolve_repo_paths, and refuse --auto-sync.
  2. tasks.md:20: one test doubles run_ingest_pass and checks only the call; no test covers the second start that writes nothing (spec lines 66-71). Fix: one CLI test runs --confirm two times through the real pass, WorkspaceIndexer, the Qdrant fake and FixedVectorEngine (as test_rag_ingest.py:117-154 does), and checks that each point carries owner/name, the second run writes no point, and drift --repo is clean. (Owner rule of 2026-11-16: an integration test at the real edge, not a mock-built unit test.)
  3. design.md:11: the dry run leaves out the new Qdrant reads and the pass; the requirement "A dry run makes no request" needs each read and possible write listed. Fix: add them to onboard_requests.
  4. tasks.md:10: the pass maps GitHub internal to private (ingest.py:74-92), but the row compares the raw value, so an internal repository reads mismatch. Fix: one shared mapping helper.
  5. tasks.md:38: task 4.2 repeats 4.1. Fix: delete it.
  6. The rag-ingest CronWorkflow is idle (k8s/README.md:845, fix(k8s): the Argo controller manages namespace devops for rag-ingest #5289). Fix: name fix(k8s): the Argo controller manages namespace devops for rag-ingest #5289 as a dependency, and do not say that the schedule fills the index.

@dan-petty dan-petty added the verdict/fix-plan Verdict Needs fix of a plan: an open finding keeps the plan in draft until a fix label Nov 16, 2026
@dan-petty
dan-petty marked this pull request as draft November 16, 2026 22:52
@devops-cli-service
devops-cli-service Bot force-pushed the feat/3771-onboard-checks-and-starts-the-rag branch from 02c357d to cc78de2 Compare November 17, 2026 01:04
@devops-cli-service devops-cli-service Bot changed the title docs(openspec): plan #3771 Add RAG index rows to repository onboarding docs(openspec): plan #3771 Add rag rows to onboard and start the pass Nov 17, 2026
@devops-cli-service devops-cli-service Bot removed the verdict/fix-plan Verdict Needs fix of a plan: an open finding keeps the plan in draft until a fix label Nov 17, 2026
@devops-cli-service
devops-cli-service Bot force-pushed the feat/3771-onboard-checks-and-starts-the-rag branch 2 times, most recently from 09488a2 to 42f6cd1 Compare November 17, 2026 02:21
@devops-cli-service devops-cli-service Bot changed the title docs(openspec): plan #3771 Add rag rows to onboard and start the pass feat(roadmap): Add RAG index rows to repository onboarding Nov 17, 2026
@devops-cli-service devops-cli-service Bot added type/feature Type feature: a new function scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them and removed type/docs Type docs: a change to the documents scope/openspec OpenSpec changes, specs and their checks labels Nov 17, 2026
@dan-petty
dan-petty force-pushed the feat/3771-onboard-checks-and-starts-the-rag branch from 80e783a to 057a69a Compare November 17, 2026 03:52
@dan-petty

Copy link
Copy Markdown
Owner

Fix of the failed Tests & Coverage shard and the docs row of Static Analysis (commit 057a69a).

The plan adds the repo option to devops ai rag drift, so the MCP tool ai_rag_drift gets the option too. The snapshot of the MCP tool listing and the generated documents were not written again:

  • tests/ai/mcp/test_mcp_tool_listing.py::test_the_tool_listing_matches_the_snapshot failed with assert [+ received] == [- snapshot]
  • the docs row failed with Documentation check failed. Run 'devops docs generate' to refresh documentation.

I regenerated the three files with the project commands and edited none by hand: the snapshot JSON, docs/MCP_TOOLS.md and docs/commands/ai.md.

Commands:

  • git rebase origin/main, which also drops the merge commit from main
  • uv run pytest tests/ai/mcp/test_mcp_tool_listing.py --snapshot-update -n 0 (the command of the test's docstring; syrupy 7.0.2 has no --snapshot-file-lock, see docs(tests): the snapshot command names no syrupy option #5146)
  • uv run devops docs generate
  • uv run devops ci docs: all documentation files are up to date
  • uv run devops ci test tests/ai/mcp/test_mcp_tool_listing.py tests/ai/rag/test_index_drift.py tests/commands/test_ai_rag_ingest_analyze_dry_run.py tests/roadmap/test_roadmap_onboard.py: 73 passed
  • the pre-commit and pre-push hooks: passed
  • git push --force-with-lease from 80e783a to 057a69a

@devops-cli-service
devops-cli-service Bot marked this pull request as ready for review November 17, 2026 04:04
@dan-petty

Copy link
Copy Markdown
Owner

Vet (agent, 2026-11-17 04:45Z): hold, do not merge yet. The Service marked this pull request ready at 04:04Z, but task group 5 of openspec/changes/3771-onboard-checks-and-starts-the-rag/tasks.md is not ticked: 5.1 (describe the indexed, rag visibility and rag schedule rows in docs/roadmap/onboard.md) and 5.2 (help text and the generated command documents). openspec/config.yaml says that the pull request that closes the issue leaves no task unticked, and devops pr ready refuses this state. Every check passes, so the code groups are done; the documentation group remains.

@dan-petty
dan-petty marked this pull request as draft November 17, 2026 04:44
@devops-cli-service
devops-cli-service Bot marked this pull request as ready for review November 17, 2026 04:48
dan-petty added a commit that referenced this pull request Nov 17, 2026
mark_ready asks draft_readiness before gh pr ready, so the watch row
no longer marks an implement draft with an unticked task group ready
(#6041). Each caller gives the draft that it judged; only the --force
of a person skips the decision.

Refs #6123
dan-petty added a commit that referenced this pull request Nov 17, 2026
fix-checks stopped each round whose log named no path of the plan, also
when the plan's change broke another file (#6114: a caller of a changed
signature; #6041: a stale snapshot and stale documents).

- The scope check takes a failed file outside the plan when the branch
changes it, it uses a changed function, class or method, it is a test of
a changed module, or it is a snapshot test of a changed source module.
The model fix may change these files.
- Main skew and a failure that the change does not cause still stop, and
the reason names each file.
- Tier 1 writes snapshots again (`uv run pytest -n 0
--snapshot-update`), then the documents, with no model request.
- A comment names the files of each pushed repair.

Closes #6116

Change:
`openspec/changes/archive/2026-11-17-6116-fix-checks-repairs-failures-its-plan-causes/`
dan-petty added a commit that referenced this pull request Nov 17, 2026
…6132)

The watch row marked implement pull request #6041 ready twice while task
group 5 of its `tasks.md` was not ticked. Its plan path
(`src/devops_cli/roadmap/watch_row.py:446` at c58b592) called
`mark_ready` with no `draft_readiness`: the record of #3771 holds 6041
as `stage.pr` and as `implement.pr`.

Now `mark_ready` asks `draft_readiness` before `gh pr ready`, and raises
with the reason when the answer is not ready. Each caller gives the
draft that it judged. A caller with no draft gets `read_ready_draft`,
which takes the kind from the record. The watch row judges a plan draft
before the Jev check, and judges a refused head once. Only the `--force`
of a person skips the decision.

Closes #6123
Change:
`openspec/changes/archive/2026-11-17-6123-mark-ready-asks-draft-readiness/`
@dan-petty
dan-petty marked this pull request as draft November 17, 2026 09:44
@dan-petty

Copy link
Copy Markdown
Owner

Set back to draft again (agent, 2026-11-17 10:00Z): task group 5 (5.1, 5.2) is still not ticked. The Service marked this ready at 04:48Z, before #6132 (mark ready only when draft readiness allows it) went live in 0.170.0; that fix now keeps it a draft until the implement job finishes group 5.

devops-cli-service Bot and others added 8 commits November 18, 2026 04:04
#3771)

The plan of #3771 adds the repo option to `devops ai rag drift`, and the
MCP tool ai_rag_drift gets the option. The snapshot of the MCP tool
listing and the generated documents were not written again, so
tests/ai/mcp/test_mcp_tool_listing.py and the docs row failed.

Regenerated with:
- uv run pytest tests/ai/mcp/test_mcp_tool_listing.py --snapshot-update -n 0
- uv run devops docs generate
@dan-petty
dan-petty force-pushed the feat/3771-onboard-checks-and-starts-the-rag branch from 599170f to 7f9f7ca Compare November 18, 2026 04:05
@dan-petty
dan-petty marked this pull request as ready for review November 18, 2026 04:12
@dan-petty
dan-petty merged commit 59b424a into main Nov 18, 2026
25 checks passed
@dan-petty
dan-petty deleted the feat/3771-onboard-checks-and-starts-the-rag branch November 18, 2026 04:16
dan-petty-release Bot added a commit that referenced this pull request Nov 18, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.175.0](v0.174.7...v0.175.0)
(2026-11-18)


### Features

* **roadmap:** Add a loopback gateway broker to a step
([#6157](#6157))
([d15dfcf](d15dfcf))
* **roadmap:** Add RAG index rows to repository onboarding
([#6041](#6041))
([59b424a](59b424a))
* **roadmap:** Seam the serve start and the roadmap table
([#6150](#6150))
([de55e8b](de55e8b))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them type/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant