Repository navigation
Description
Problem Statement
The AI knowledge base (src/devops_cli/ai/knowledge_base/, 80 articles under devops_cli/ and it_domains/) is indexed for RAG by WorkspaceIndexer.index_knowledge_base (src/devops_cli/ai/rag/indexer.py:406) and is what devops ai chat --rag and the agent harness retrieve. It names commands, options and components that do not exist; each example was confirmed against the command tree at HEAD with resolve_devops_argv:
devops tofu(the command isdevops tf); top-leveldevops rag(it lives underdevops ai rag);ai review patch,release bumpandrelease create-pr(the release commands arerelease prepareandrelease pr);scan security,scan image,scan kubelinter,scan popeye,scan pluto,scan semgrep,scan gitleaks,scan fs,scan k8s(the scanners aretrivy,secrets,sast,iac,complexity,sbom,aibom,fix,report,sarif);deploy-stack monitoring(stacks are chosen with--stackfrominfra,llm,loggingandall);review --provider/--model,--post-pr,ai tokensandtelemetry probe;- settings classes and env vars that are not the real ones (
DEVOPS_CLI_CONFIG_PATH,DEVOPS_CLI_LOG_LEVEL; the real override isDEVOPS_CLI_CONFIG,src/devops_cli/config/constants.py:19).
So the assistant and agents are taught commands that fail. A fact-check on 2026-10-02 checked 1,129 claims against the release/v0.2.25 tip (c279c18); a second agent re-checked every finding and confirmed each one false. 129 findings are in the knowledge base, 25 of them high severity in cli_command_reference.md alone. Since c279c18 exactly one knowledge-base line has changed: 6e5bb1f (#945) inserted a line at tasks/rag_context_indexing.md:52, so that article's findings from :65 on are one line lower (:66); every other line number holds (git diff --stat c279c18 HEAD -- src/devops_cli/ai/knowledge_base). Three items that land first also edit the directory (#420 and #767 in v0.2.26, #840 in v0.2.27) and #431 (v0.2.26) changes the extractor rule two lines describe without editing any article, so the pull request re-reads each cited line at its own tip before editing: the findings name what is wrong, not a byte offset.
A prototype of the test in the acceptance criteria, run during refinement, extracts about 465 devops … invocations from the knowledge base, of which about 118 fail to resolve, across 41 of the 80 articles (two independent prototypes gave 463/116/40 and 466/118/41; the counts depend on how comments, pipes and placeholders are cut). Between 60 and 71 of the failures are in it_domains/, which the findings list does not name at all (for example it_domains/tools/opentofu_terraform.md:35-47 devops tofu …, it_domains/tools/argocd.md:22-31 devops argo list|status|rollback and argo sync --app-name, it_domains/tools/valkey.md:48-55 --pattern, --ttl, --namespace, it_domains/topics/model_governance_routing_and_curation.md:126-135 ai curate-model, --orchestration-shape). The findings list is the floor, not the ceiling, for command lines: the pull request fixes every invocation the test reports.
The test cannot see everything the findings list names. devops_cli/cli_command_reference.md holds its 25 high findings in a table whose cells read `review patch`, `scaffold`, `tidy` with the group in a separate column, and the file contains no devops -prefixed code span at all (rg -c 'devops ' src/devops_cli/ai/knowledge_base/devops_cli/cli_command_reference.mdmatches nothing), so an invocation extractor reports nothing there. Settings classes, env vars, pinned versions, module paths and relative links are likewise invisible to the test; those stay hand-fixed from the list and are held by therg` criteria below.
Proposed Solution
- Correct every finding in the list below and every further invocation the new test reports, so each
devops …command line in the knowledge base resolves against the real command tree. Where a described feature does not exist (ai review patch,scan kubelinter,argo rollback), describe what exists instead of inventing an option; where the article is about a third-party tool with nodevopswrapper (popeye, pluto, semgrep as separate scan subcommands), name the real wrapper (devops scan report,devops scan sast,devops k8s lint) or drop thedevopsprefix and show the tool's own command. Never write a count that the code can change (gate count, command-group count, MCP tool count, ruff rule list):AGENTS.md:73-75prohibits numbered gates, and the replacements below were corrected to name the source instead. - Add a markdown argv collector next to the MCP one (
src/devops_cli/docs/mcp_argv_collector.py, from fix(mcp): mcp tools and resources call commands and options that exist #836): it reads everysrc/devops_cli/ai/knowledge_base/**/*.md, extractsdevops …command lines from fenced code blocks and inline code spans, tokenises them, turns placeholders intoArgvPlaceholder, and resolves each withresolve_devops_argv(src/devops_cli/docs/command_resolver.py:77). Unresolved lines are reported as<path>:<line>throughMESSAGES.docs.argv_unresolved(src/devops_cli/lang/en/messages.py:322), as the MCP check already does (mcp_argv_collector.py:79). - Add a test that asserts the collector reports nothing, following
tests/test_docs_mcp_argv_collector.py::test_every_mcp_server_argv_resolves(build each module's command tree first, then patchsubprocess.Popenso resolving can never spawn). The test fails on today's knowledge base. - Wire the collector into
DocGenerator.check_docs(src/devops_cli/docs/generator.py:1080-1087) besidecheck_mcp_server_argv, sodevops docs checkand thedocsgate ofdevops cicatch a future regression without waiting for pytest. This is the owner's answer to the first key question and the deliverable of the hand-written roadmap entry "Phantom Command, Option and Tool Reference Gate (devops docs check)" (docs/ROADMAP.md:917), which this item absorbs; the entry is retired at the next roadmap render, not by this pull request. - Make
cli_command_reference.mdvisible to the test by writing each subcommand cell as a fulldevops <group> <subcommand>span (the owner's answer to the second key question); the options column stays hand-checked. - Fix the non-command claims in the findings list (settings classes, env vars, pinned versions, module paths, relative links) by hand; the test cannot see these. Lines that feat(cli): extend the ruff rule set to the correctness families #420 and refactor(github): one github session per identity owning token, quota and transport #767 (v0.2.26) rewrite are kept as those items wrote them (see Scope); fix(security): network references come from url and ip syntax, not identifier-prefix and property-suffix lists #431 (v0.2.26) edits no article but changes the extractor rule, so the replacements for
libraries/tldextract.md:19andpython_packages.md:199describe the rule fix(security): network references come from url and ip syntax, not identifier-prefix and property-suffix lists #431 ships. - Take every remaining wording fix under
src/devops_cli/ai/knowledge_base/**, including theit_domains/lines docs(agents): instruction surfaces state only what is true, anddevops ai agentsnever overwrites AGENTS.md #840 names (the owner's answer to the third key question). This item branches after docs(agents): instruction surfaces state only what is true, anddevops ai agentsnever overwrites AGENTS.md #840 has merged, sotasks/agent_instructions_scaffolding.md:36documentsdevops ai agents --forceas docs(agents): instruction surfaces state only what is true, anddevops ai agentsnever overwrites AGENTS.md #840 defines it and the collector proves the line resolves. - Record the change in
changelog.d/920.mdand the task filedocs/agent/tasks/task-920-knowledge-base-names-only-what-exists.md, which carries the full findings list with every replacement text.
Scope
src/devops_cli/ai/knowledge_base/**/*.md: every file the findings list names and every file the test reports (41 of 80 today), except the lines owned by items that land first:devops_cli/libraries/ruff_mypy_pytest.md:36-40(feat(cli): extend the ruff rule set to the correctness families #420, v0.2.26) and the lines that teachgithub.token, thegithub_tokenkeyring key,DEVOPS_CLI_GITHUB_TOKENorget_github_token, which refactor(github): one github session per identity owning token, quota and transport #767 (v0.2.26) corrects itself (devops_cli/configuration_and_settings.md:55,115,121,devops_cli/libraries/keyring.md:52-64,devops_cli/libraries/pygithub.md:38,75,devops_cli/tasks/github_project_management.md:177,it_domains/tools/keyring.md:11-14,26,44-50,75,it_domains/tools/github_cli.md:11,72,it_domains/topics/zero_trust_security_and_compliance.md:42). This item keeps those lines as refactor(github): one github session per identity owning token, quota and transport #767 wrote them and reintroduces none of the removed names.- The
it_domains/lines docs(agents): instruction surfaces state only what is true, anddevops ai agentsnever overwrites AGENTS.md #840 names (it_domains/tools/ruff_mypy_pytest.md:30,it_domains/topics/continuous_integration_and_progressive_verification.md:5,42,70,86,it_domains/topics/agentic_ai_and_code_reviews.md:31, verified at HEAD) are in scope: this item lands after docs(agents): instruction surfaces state only what is true, anddevops ai agentsnever overwrites AGENTS.md #840 and owns whatever wording is left on them. - New
src/devops_cli/docs/markdown_argv_collector.py(or an extension ofmcp_argv_collector.py), one test module, one line inDocGenerator.check_docs, a message string if a new one is needed. - Article count stays 80 so
tests/test_kb.py(test_list_knowledge_base_articles_all, 4 core + 13 tasks + 23 libraries + 11 topics + 29 tools, confirmed byfindat HEAD) keeps passing; no article is added or deleted. - No command, option or settings code changes: this item makes the knowledge base match the code, never the other way round.
- One pull request; effort high (about 118 command lines and 129 prose findings to edit, plus a collector and test of the same shape as fix(mcp): mcp tools and resources call commands and options that exist #836).
- Milestone v0.2.27, last among the knowledge-base items; whether it moves to v0.2.28 is decided at the v0.2.25 cut, and the ordering below holds either way.
Key Questions
- How are placeholders handled? Answered: tokens containing
<…>,{…}or[…], and..., becomeArgvPlaceholder; option values are literal tokens and pass through (the resolver converts values and reports only an unknown option or an extra argument). Only command paths and option names are resolved: the behaviourresolve_devops_argvalready has for MCP argv. - Which spans count? Answered: lines in fenced code blocks and inline code spans that start with
devops,uv run devopsor$ devops. A trailing# comment,| pipeor&& chainis cut before tokenising. Prose mentions without a code span are out of scope. - Does the RAG index need a rebuild? Answered: no. The knowledge base is read from the package at index time (
src/devops_cli/ai/kb.py:18), and a user re-indexes withdevops ai rag index. - Does the test cover
it_domains/as well asdevops_cli/? Answered: yes. The acceptance criterion already sayssrc/devops_cli/ai/knowledge_base/**/*.md, and more than half of the failing lines are init_domains/; excluding it would leavedevops tofu,devops release bumpanddevops scan imagein the retrieved text, which is the defect this item fixes. - Where does the check run: pytest only, or also
devops docs check? Answered (owner, 2026-10-02): (b), a collector module insrc/devops_cli/docs/that both the test andDocGenerator.check_docscall, mirroringmcp_argv_collector.py. It costs one import and one list concatenation incheck_docs(generator.py:1084-1087), givesdevops ci docsthe same guarantee the MCP lists have, and keeps the pattern in one place for later markdown surfaces (AGENTS.md, docs/). The hand-written roadmap entry for adevops docs checkreference gate (docs/ROADMAP.md:917) is the same deliverable and is absorbed here. - How does the test reach
cli_command_reference.md, whose table names subcommands without adevopsprefix? Answered (owner, 2026-10-02): (b), rewrite each subcommand cell as a full span (`devops ai review branch`,`devops devcontainer init`) so the generic collector resolves the command path; the options column stays hand-checked and is held by the findings list and thergcriterion. No table-aware parser is written. - Who fixes the knowledge-base gate-count wording that docs(agents): instruction surfaces state only what is true, and
devops ai agentsnever overwrites AGENTS.md #840 also names? Answered (owner, 2026-10-02): (b), this item owns every wording fix undersrc/devops_cli/ai/knowledge_base/**, including theit_domains/lines docs(agents): instruction surfaces state only what is true, anddevops ai agentsnever overwrites AGENTS.md #840 names (listed in Scope); docs(agents): instruction surfaces state only what is true, anddevops ai agentsnever overwrites AGENTS.md #840 keeps itsrgacceptance check; this item lands after docs(agents): instruction surfaces state only what is true, anddevops ai agentsnever overwrites AGENTS.md #840. Because docs(agents): instruction surfaces state only what is true, anddevops ai agentsnever overwrites AGENTS.md #840 merges first, any of those lines it has already changed are kept and the rest are fixed here, and this item's ownrgover the whole directory repeats docs(agents): instruction surfaces state only what is true, anddevops ai agentsnever overwrites AGENTS.md #840's final pattern (10 gates|10 quality gates|10/10|all 10 (checks|quality|local)|10-point, which docs(agents): instruction surfaces state only what is true, anddevops ai agentsnever overwrites AGENTS.md #840 runs overit_domains/only) and adds[0-9]+-check|[0-9]+-point. docs(agents): instruction surfaces state only what is true, anddevops ai agentsnever overwrites AGENTS.md #840 also adds--forcetodevops ai agents, whichtasks/agent_instructions_scaffolding.md:36describes: since this item branches after docs(agents): instruction surfaces state only what is true, anddevops ai agentsnever overwrites AGENTS.md #840, the article keeps the--forceexample as docs(agents): instruction surfaces state only what is true, anddevops ai agentsnever overwrites AGENTS.md #840 defines it and the collector test proves it resolves at the tip.
Acceptance Criteria
- Every finding in the fact-check list (129 knowledge-base findings; the high findings and every corrected replacement are reproduced below, the rest follow the rules below and are carried in full in the task file) is corrected, using the replacement texts corrected during refinement and at apply time (marked) instead of the originals. Shown by: each cited line reads as its replacement (
git diffof the pull request) and the new test passes. - A new collector in
src/devops_cli/docs/extracts everydevops …,uv run devops …and$ devops …command line from fenced code blocks and inline code spans insrc/devops_cli/ai/knowledge_base/**/*.md, maps<…>,{…},[…]and...tokens toArgvPlaceholder, and resolves each withresolve_devops_argv. Shown by: a unit test on a fixture markdown string that returns the expected references with theirpath:line, including one fenced line, one inline span, one placeholder and one line with a trailing comment. -
tests/test_docs_knowledge_base_argv.py::test_every_knowledge_base_argv_resolvesasserts the collector reports no unresolved line, runs withsubprocess.Popenpatched to raise (no command runs, no network, no DNS), and completes in under 5 s on the gate. Shown by:uv run pytest tests/test_docs_knowledge_base_argv.py -q. On today's knowledge base the same test reports about 118 lines in 41 files (prototype runs during refinement); the pull request's branch reports none. -
devops docs checkreports an unresolved knowledge-base argv as<path>:<line>and exits non-zero. Shown by: a test in the style oftest_docs_check_reports_an_unresolved_mcp_argv(tests/test_docs_mcp_argv_collector.py:157) that patches the collector to return one defective reference. - Every subcommand cell in
devops_cli/cli_command_reference.mdis adevops <group> <subcommand>span the collector resolves. Shown by: the collector reports at least 60 references withpathendingcli_command_reference.mdand none unresolved. -
rg -n '10-point|10 gates|10 quality gates|10/10|all 10 (checks|quality|local)|[0-9]+-check|[0-9]+-point' src/devops_cli/ai/knowledge_basereturns nothing, overdevops_cli/andit_domains/alike (this covers theit_domains/lines docs(agents): instruction surfaces state only what is true, anddevops ai agentsnever overwrites AGENTS.md #840 names, includingall 10 local CI gatesatcontinuous_integration_and_progressive_verification.md:70, which the(checks|quality)alternation alone misses). Shown by: the command. -
rg -n 'DEVOPS_CLI_CONFIG_PATH|DEVOPS_CLI_LOG_LEVEL|UnifiedLLMClient|keyring_vault|devops-cli/config\.json|nomic-embed-text|--post-pr|devops tofu|devops rag |telemetry probe|ai tokens|review patch|scan security|scan image|release bump|release create-pr|devcontainer.*scaffold|tls generate-ca|tls bundle' src/devops_cli/ai/knowledge_basereturns nothing. Shown by: the command. (The pattern isdevops-cli/config\.json, notconfig\.json:tasks/devcontainer_lifecycle.md:58names.gemini/config/mcp_config.json, whichsrc/devops_cli/commands/devcontainer.pyreally writes.) - This item reintroduces none of the names refactor(github): one github session per identity owning token, quota and transport #767 removes:
rg -n 'github\.token|github_token|DEVOPS_CLI_GITHUB_TOKEN|get_github_token' src/devops_cli/ai/knowledge_basereturns nothing at the pull request's tip. The one line refactor(github): one github session per identity owning token, quota and transport #767 does not list, the example fieldgithub_tokeninlibraries/pydantic.md:56(underenv_prefix="DEVOPS_CLI_", so it spells the removed variable), is renamed by this item. Shown by: the command. - Every pinned version named in
python_packages.mdandlibraries/*.md:9equals the pin inpyproject.tomlat the pull request's tip (at HEAD:click==8.5.0,typer==0.27.2,pydantic==2.13.5,gitpython==3.1.62,httpx2==2.13.0,qdrant-client==1.19.1,tldextract==5.3.2,fastapi==0.141.1,uvicorn==0.53.0,ruff==0.16.8). Shown by: a test that readspyproject.tomland asserts each<name>==<version>string the two files name for a dependency matches, or, if the owner prefers fewer brittle assertions, byrg -n '==[0-9]' src/devops_cli/ai/knowledge_basereviewed againstpyproject.tomlin the pull request description. -
tests/test_kb.pystill passes with 80 articles. Shown by:uv run pytest tests/test_kb.py -q. -
changelog.d/920.mdexists andCHANGELOG.mdanddocs/ROADMAP.mdare untouched. Shown by:devops pr check-readiness. -
uv run devops cipasses.
Out of Scope
- Changing any command, option, settings model or env var to match the knowledge base: the code is the source of truth, the knowledge base follows it.
- Prose claims that name no
devopscommand line and are not in the findings list (for example third-party tool behaviour init_domains/tools/*.md): a later fact-check item. AGENTS.md,CLAUDE.md,CONTRIBUTING.md,docs/SDLC.md,docs/SELF_IMPROVEMENT.md, the instruction generator and thedevops ai agents --forceguard itself: docs(agents): instruction surfaces state only what is true, anddevops ai agentsnever overwrites AGENTS.md #840.libraries/ruff_mypy_pytest.md:36-40(the ruffselectblock): feat(cli): extend the ruff rule set to the correctness families #420.- The knowledge-base lines that teach
github.token,github_token,DEVOPS_CLI_GITHUB_TOKENorget_github_token: refactor(github): one github session per identity owning token, quota and transport #767 corrects them; this item keeps its wording. - The reference-extractor rule itself (hosts parsed from URLs and IP literals, no bare words): fix(security): network references come from url and ip syntax, not identifier-prefix and property-suffix lists #431; this item only describes it.
- Extending the argv check to
docs/**/*.md,AGENTS.mdorREADME.md: a follow-up candidate once the collector exists. - The
test_kb.pyarticle counts and the knowledge-base index generator (docs/generator.py:963,generate_knowledge_base_index): unchanged. - Rebuilding the RAG index in CI or on install: users run
devops ai rag index. - Retiring the hand-written roadmap entry at
docs/ROADMAP.md:917: the next roadmap render; item pull requests never editdocs/ROADMAP.md.
Dependencies
- fix(mcp): mcp tools and resources call commands and options that exist #836: delivered in 2b23f55 (fix(mcp): mcp tools and resources call commands and options that exist (#836) #867), on this branch through the v0.2.24 release merge e6ce3db;
resolve_devops_argv,ArgvPlaceholder,CommandReferenceFindingand thecheck_docswiring exist at HEAD, nothing to wait for. - docs(agents): instruction surfaces state only what is true, and
devops ai agentsnever overwrites AGENTS.md #840 (v0.2.27): lands before this item; it addsdevops ai agents --forceand runs its ownrgoverit_domains/, and this item then owns every remaining wording fix in the directory, including theit_domains/lines docs(agents): instruction surfaces state only what is true, anddevops ai agentsnever overwrites AGENTS.md #840 names. - feat(cli): extend the ruff rule set to the correctness families #420 (v0.2.26): lands before this item; it rewrites
libraries/ruff_mypy_pytest.md:36-40and changes the[tool.ruff.lint] selectlist, so this item leaves those lines alone and itspython_packages.md:261replacement namespyproject.tomlinstead of a rule list. - fix(security): network references come from url and ip syntax, not identifier-prefix and property-suffix lists #431 (v0.2.26): lands before this item; it changes what
libraries/tldextract.md:19andpython_packages.md:199must say (hosts parsed from URLs and IP literals, not "domains found in scanned code"), and the replacements below describe that rule. - refactor(github): one github session per identity owning token, quota and transport #767 (v0.2.26): lands before this item; it removes
github.token, thegithub_tokenkeyring key,DEVOPS_CLI_GITHUB_TOKENandget_github_tokenand corrects the seven knowledge-base pages that teach them, which this item keeps as written. - feat(ai): pinned invariants survive memory summarization, lead every system prompt and recur on a cadence #985 (v0.2.27): no ordering constraint; its body leaves knowledge-base wording about chat memory to this item, which falls under this item's ownership of the directory (no such line is in the findings list today).
- Order: feat(cli): extend the ruff rule set to the correctness families #420, fix(security): network references come from url and ip syntax, not identifier-prefix and property-suffix lists #431, refactor(github): one github session per identity owning token, quota and transport #767 (v0.2.26), then docs(agents): instruction surfaces state only what is true, and
devops ai agentsnever overwrites AGENTS.md #840, then this item, last among the v0.2.27 items that touchsrc/devops_cli/ai/knowledge_base/.
Findings (verified)
Line numbers are those of the release/v0.2.25 tip c279c18 and still hold at HEAD, except in tasks/rag_context_indexing.md, where lines from :52 on are one lower after 6e5bb1f (#945). Paths are relative to src/devops_cli/ai/knowledge_base/. The fact-check's 129 knowledge-base findings (50 high, 31 medium, 48 low) sit in: README.md (6), devops_cli/architecture.md (9), devops_cli/cli_command_reference.md (27: 25 high, 2 medium), devops_cli/configuration_and_settings.md (9: 6 high), devops_cli/python_packages.md (24: 1 medium, 23 low), devops_cli/libraries/*.md (2 aggregate findings over all 23 library articles plus 21 findings in 17 of them), devops_cli/tasks/*.md (31 findings in 12 task articles). Fourteen replacement texts were mis-pasted, stale or count-bearing in the original body and are corrected inline (each marked "corrected during refinement"); five more (libraries/keyring.md:52, libraries/pygithub.md:75, libraries/tldextract.md:19, python_packages.md:199, tasks/agent_instructions_scaffolding.md:36) were corrected at apply time to follow #767, #431 and #840, which land first (each marked). The list is the floor for command lines: the test above also reports 60 to 71 lines in it_domains/ not listed here.
To fit this body, the 50 high findings and every finding whose replacement was corrected are reproduced below in full; the remaining medium and low findings are given as the rules that generate them, with the lines each rule covers. The full list with every replacement text belongs in the delivering pull request's task file, not here.
High findings (all 50)
devops_cli/cli_command_reference.md (25 high; every row is also rewritten as a devops <group> <subcommand> span per the second key question):
-
:11review branchoptions--target,--persona,--all,--summary,--no-<stage>,--<stage>-only→branch_name,--base,--repo,--persona,--all,--summary,--no-<stage>,--<stage>-only -
:16review patch"Interactive preview and patch application"--session,--index,--apply,--dry-run→ delete the row (or replace withreview benchmark| Review the same files several times and report median time/tokens per stage |targets,--runs,--pattern,--persona,--all) -
:17review export-feedback"Export findings to fine-tuning/RAG dataset"--session,--status,--output→ "Export findings to a JSONL feedback dataset"--output,--reviews-dir,--status -
:19chat"Interactive multi-turn AI terminal assistant"prompt,--provider,--model,--system→ "Interactive chat with a Pydantic AI persona"--persona,--model,--context,--rag,--tools,--thinking -
:20repomap--output,--max-depth,--exclude(and:21diagramtarget,--output,--theme;:22test-gentarget_file,--output,--framework) → repomap:--target,--max-files,--include-tests,--multilingual,--json; diagram:diagram_type(arch|threat),--target,--json; test-gen:target_file,--function,--json -
:24rag queryquery,--collection,--limit→query,--collection,--top-k,--min-score -
:28deploy-stack"Deploy infra, otel, llm, or all stacks"--stack,--dir,--context→ "Deploy infra, llm, logging, or all stacks"--stack,--k8s-dir,--context,--wait,--timeout;:29--stack,--k8s-dir,--context -
:41diffpath,--context→ "Diff hydrated manifests against cluster (kubectl diff -k)"path -
:47notify-plan"Post plan output to GitHub PR or Slack"dir,--target→ "Post plan output as a GitHub PR comment"--plan-file,--pr,--dry-run,--json(the row stays in thetfgroup:devops tf notify-planis defined atsrc/devops_cli/commands/tf.py:738; there is nodevops k8s notify-plan) -
:48scan|scan"Vulnerability & secret scanning with Trivy" →scan|trivy"Vulnerability & misconfiguration scanning with Trivy"target,--type,--severity,--json(plus rows for secrets/sast/iac/report as needed) -
:49uv|audit"Scan Python virtualenv for CVEs via pip-audit"--strict,--fix→uv|sync"Sync project dependencies"--frozen; the CVE audit moves toci|audit"Check dependencies for known CVEs (uv audit)" -
:50repos clone-orgorg,--dest,--concurrency;:51sync"Sync repos & generate .code-workspace"--root,--prune;:52list--root→ clone-org:org,--base-dir,--private,--forks; sync: "Fetch (and optionally pull) tracking branches across repos"--base-dir,--pull,--dry-run; list:--base-dir -
:53workspace init--root;:54workspace sync--root→workspace|generate"Regenerate the .code-workspace from all repos"--base-dir,--workspace;add/remove"Add or remove a folder"repo_path,--workspace -
:55branches list--remote,--merged;:56tidy--force→ list:--base-dir,--all;clean"Delete local branches merged into main/master"--base-dir,--dry-run -
:57pr list--repo,--author;:59checkoutnumber,--repo→ list:--state,--limit,--repo; replace the checkout row with e.g.check-readiness"Validate PR merge readiness"number,--repo -
:61docker ps--all;:63clean--force→images"List local Docker images"--name;prune"Remove unused containers, images, networks"--volumes,--force -
:64argo apps--server,--auth-token→argo|cd apps list"List ArgoCD applications", no options -
:66grafana dashboards--server,--api-key;:67exportuid,--out→dashboards list"List Grafana dashboards";dashboards export"Export a dashboard to JSON"uid,--output -
:68prometheus queryquery,--server;:69alerts--server→ query:expr,--time; replace alerts withrules"List recording and alerting rules" -
:70ssh generate"Generate Ed25519 or RSA SSH key pair"name,--type,--bits,--comment→ "Generate an SSH key pair"--key-dir,--prefix,--comment(corrected during refinement: the original pasted theai agents --templatetext;devops ssh generatetakes nonameargument and no--type/--bits, seesrc/devops_cli/commands/ssh.py) -
:74tls ca--output-dir,--cn,--org,--days;:75certdomain,--output-dir,--days;:76homelab--output-dir,--domains,--ips→ ca:--output-dir,--common-name,--organization,--validity-days; cert:--common-name,--san,--ca-cert,--ca-key,--validity-days; homelab:--output-dir,--domain,--ip -
:79telemetry test"Send test trace spans"--spans→ "Emit a test span and metric to the collector"--name,--logfire -
:87ci|ci"Execute 10-point local quality gate"--quick,--skip-tests→ "Run every check of the local quality gate"--fix/--no-fix,--check,--cache,--force,--files; and a second rowrun"Same asdevops ci"--fix(corrected during refinement: the original put--check,--force,--filesonci run; those options belong to thecigroup callback and the resolver rejectsdevops ci run --check(unknown option '--check' for 'devops ci run');ci runtakes--fixonly) -
:88release|release"Bump version & cut release branch"bump_type,--push,--dry-run→prepare"Bump version, update changelog, sync docs"version,--create-pr,--type;pr"Create release branch and release PR"--version,--base,--push -
:90devcontainer|scaffold--dest,--template→init"Scaffold.devcontainerconfiguration"path,--force(corrected during refinement: the original pasted thedevops tfblock;devops devcontainerhasinit,update,validate,list,unlock-keyring,post-create,post-start,run-lifecycle,bootstrap-k8sand noscaffold)
devops_cli/configuration_and_settings.md (6 high):
-
:24settings schema table (:24-34) namingAISettings,GitHubSettings,K8sSettings,SSHSettings,TLSSettings,TelemetrySettings,PrometheusSettings,GrafanaSettings,ArgoSettings,QdrantSettings, … → rewrite the table fromsettings.py: ai/AIConfig (provider, model, reasoning_effort, temperature, max_tokens, ollama_urls, ollama_max_parallel, tasks, rag, cache); github/GitHubConfig (default_org; token in keyring); k8s/KubernetesConfig (context, domain, addressing); ssh/SSHConfig (key_dir, key_prefix, rotation_days); telemetry/TelemetryConfig (enabled, endpoint, logfire); prometheus/… and the remaining sections assettings.pydefines them -
:44DEVOPS_CLI_CONFIG_PATH"Path to persistent configuration file" →DEVOPS_CLI_CONFIG| System | Absolute path to the configuration file to use instead of the project/global lookup (global default~/.config/devops-cli/config.yaml) -
:47DEVOPS_CLI_LOG_LEVELrow → delete the row (for server logging usedevops serve --log-level) -
:48DEVOPS_CLI_AI_PROVIDER(ollama,openai,anthropic,deepseek) → (ollama,claude,copilot,openai,gateway) -
:51DEVOPS_CLI_AI_TEMPERATUREand:52DEVOPS_CLI_AI_MAX_TOKENSrows (with:40"All configuration values can be overridden viaDEVOPS_CLI_*…") → delete both rows; line 40 becomes "The configuration keys listed in docs/ENV_VARS.md can be overridden viaDEVOPS_CLI_*environment variables:" -
:72YAMLai.tasks.review: {temperature, max_tokens, reasoning_effort, timeout_seconds: 240}andai.tasks.diagram(:72-76,:84-86) →review:becomesanalysis:(andverification:for the verify pass),timeout_seconds: 240becomestimeout: 240, thediagram:block is dropped
devops_cli/libraries/ (5 high):
-
cryptography.md:19devops tls generate-ca,generate-cert,bundle→devops tls ca,devops tls cert,devops tls homelab -
opentelemetry.md:65devops telemetry profile --last(also:21) and:68devops telemetry test-span→devops telemetry profile "devops k8s status"(ordevops telemetry profile --trace-id <id>);devops telemetry test -
pydantic_ai.md:109prompts undersrc/devops_cli/ai/prompts/→src/devops_cli/ai/tasks/viaload_task_prompt() -
pygithub.md:20devops review pr <num> --post-pr→devops review pr <num> --post(corrected during refinement: the original pasted anargotable row; the option is--post, seedevops review pr --help) -
tiktoken.md:21devops ai tokens <target>→devops ai token-count <target>
devops_cli/tasks/ (14 high):
-
agent_instructions_scaffolding.md:36# Overwrite existing instruction files with force flag/devops ai agents --repo repos/my-org/my-project --force→# Regenerate instruction files from the template without the LLM/devops ai agents --repo repos/my-org/my-project --template, then# Overwrite an existing AGENTS.md (refused without --force)/devops ai agents --repo repos/my-org/my-project --force(corrected at apply time: at HEADdevops ai agentstakes--repo,--template,--fileand no--force, so the line fails today; docs(agents): instruction surfaces state only what is true, anddevops ai agentsnever overwrites AGENTS.md #840 (v0.2.27) adds--forceas the only way to overwrite an existing AGENTS.md and this item lands after docs(agents): instruction surfaces state only what is true, anddevops ai agentsnever overwrites AGENTS.md #840 (owner decision), so the article keeps the--forceexample with docs(agents): instruction surfaces state only what is true, anddevops ai agentsnever overwrites AGENTS.md #840's wording and the collector test proves it resolves at the tip) -
ai_code_review.md:50"drop-in remediation code patches … (devops ai review patch)" → drop thedevops ai review patchreference; findings are fixed by hand and recorded withdevops review verify <session> --index <n> --status MITIGATED -
ai_code_review.md:80devops ai review branch --persona devsecops --provider ollama --model qwen3.8:27b(and:143"use--provider ollamato keep all code analysis strictly on the local machine") →devops ai config --provider ollama --model qwen3.8:27bthendevops ai review branch --persona devsecops;:143: "configure a local provider withdevops ai config --provider ollama" -
ai_code_review.md:101devops review verify 20260910-143644 1 --status MITIGATED --reason "..."(also:104, and:59devops review verify <session> <index> --status INVALIDATED) →devops review verify 20260910-143644 --index 1 --status MITIGATED --reason "..."(same for:59and:104:devops review verify <session> --index <n> ...) -
ai_code_review.md:107devops review branch --export-md .data/reviews/review-report.md→ delete the example and say "Each review writes its Markdown report to .data/reviews//review.md." -
infrastructure_provisioning.md:31devops tofu init --path tf/aws/devops tofu plan --path tf/aws -v ... -o dev.tfplan/devops tofu apply --path tf/aws --plan dev.tfplan/devops tofu output --path tf/aws --json/devops tofu status --path tf/aws→devops tf init tf/aws/devops tf plan tf/aws -v tf/environments/dev.tfvars -o dev.tfplan/devops tf apply tf/aws --plan-file dev.tfplan/devops tf output tf/aws --json/devops tf status tf/aws;:20: "devops tfdetects the tofu or terraform binary automatically" -
k8s_stack_deployment.md:46devops k8s deploy-stack monitoring/gitops/llm/otel/all;devops k8s teardown-stack llm(stacksmonitoring,gitops,tracing,otel,llm,alllisted at:22-28) →devops k8s deploy-stack --stack infra(ArgoCD, k8s-monitoring (Alloy) + prometheus + grafana charts, OTel collector/Jaeger) /--stack llm/--stack logging/--stack all;devops k8s teardown-stack --stack llm; rewrite the stack list at:22-28as infra/llm/logging/all -
rag_context_indexing.md:32devops rag index docs//devops rag query "..."/devops rag status/devops rag clear("Clear and rebuild RAG index") →devops ai rag index docs//devops ai rag query "..."/devops ai rag status/devops ai rag clear, the last under the comment "Clear the RAG index (re-rundevops ai rag indexto rebuild)" -
release_management.md:37devops release bump minor(also diagram:14devops release bump --minor / --patch) →# Bump version, update CHANGELOG.md and sync docs/devops release prepare 0.2.25 -
release_management.md:43devops release create-pr --version 0.2.0(also diagram:17) →devops release pr --version 0.2.0 -
release_management.md:56"Document all notable additions … underdocs/commands/release.mdunder the corresponding version header" (also:25release check verifies version consistency …) → "Document all notable changes in CHANGELOG.md under the version header;devops release checkverifies pyproject.toml, src/devops_cli/init.py and CHANGELOG.md agree." (Point the:82reference at CHANGELOG.md.) -
repo_and_workspace_management.md:36devops repos status(also:24"Git Status Matrix");devops workspace sync(:42, also:23);devops workspace list(:45) →devops repos list(list cloned repositories) /devops branches list(branches across all repos) /devops workspace generate(regenerate .code-workspace from repos/); removedevops workspace list; update:23-24to nameworkspace generate -
security_audit_and_scanning.md:33devops scan security src/(also:49) and:36devops scan image <image>→# Run every registered scanner/devops scan report src/;# Scan container image/devops scan trivy <the same image> --type image;:49: "Executedevops scan reportordevops ci" -
telemetry_and_observability.md:39devops telemetry probe→devops telemetry test(comment "Emit test trace span to verify ingestion" stays)
Medium and low findings (79): the rules that generate them
Each rule names the lines it covers and the replacement; one finding per rule is quoted in full as the sample.
- Counts become sources (
README.md:32(medium),:33,:72(medium),:95(medium);cli_command_reference.md:3(medium);python_packages.md:11(medium);tasks/ci_quality_gate.md:5(medium; also:9,:31, andlibraries/ruff_mypy_pytest.md:16,53"10-pointdevops ciquality gate");libraries/typer.md:21;tasks/github_project_management.md:187): "10-point" becomes "every checkdevops ciruns" (or is simply dropped,python_packages.md:11); "19 command groups" / "19 distinct sub-applications" become "the command groups listed in_COMMAND_SPECS(src/devops_cli/main.py; aliasestui,format,lintincluded) … the root callback handles--versionand--dry-run"; "22 production runtime dependencies and 11 development quality tools" becomes "the core production runtime dependencies and development quality tools";README.md:32andcli_command_reference.md:3describe an overview of the main command groups with "the complete generated reference is docs/CLI_REFERENCE.md (devops docs generate)";github_project_management.md:187"16 FastMCP tools and 4 dynamic system resources" becomes "the FastMCPgh_*tools (including those listed below) and the server's resources". Sample,tasks/ci_quality_gate.md:5: "a comprehensive, 10-point local quality inspection suite" → a local quality gate that runs every checkdevops cireports (Python version, tests, coverage, ruff lint, ruff format, mypy --strict, uv audit, bandit, actionlint, docs, uv check, uv lock --check, outdated deps) (corrected during refinement: the original wrotea 13-check local quality gate;AGENTS.md:73-75prohibits numbered gates and docs(agents): instruction surfaces state only what is true, anddevops ai agentsnever overwrites AGENTS.md #840 removes every such count). Also corrected during refinement:typer.md:21(the original wrote37 command groups;_COMMAND_SPECShas 38 entries at HEAD and at c279c18) andgithub_project_management.md:187(the original wrote27 FastMCP gh_* tools;src/devops_cli/ai/mcp/server.pydefines 24 at HEAD and at c279c18); both replacements name no count. - Pinned versions equal
pyproject.toml(python_packages.md:57,91,149,167,177,236,261;libraries/*.md:9: uvicorn 0.52.4 infastapi_uvicorn.md, GitPython 3.1.60 ingitpython.md, httpx2 2.9.0 inhttpx2.md:9and:21, pydantic 2.13.4 inpydantic.md, qdrant-client 1.19.0 inqdrant_client.md, ruff, typer and click likewise): each version string becomes the pin named in the acceptance criterion. Sample,python_packages.md:261: "|ruff|0.16.4| … checking py314 rules (E,F,I,N,W,UP). |" → |ruff|0.16.8| Extreme-speed linter and code formatter running the rule families selected inpyproject.toml[tool.ruff.lint]. | (corrected during refinement: the original pasted the ten codes selected today; feat(cli): extend the ruff rule set to the correctness families #420 (v0.2.26) changes the selection, so the row points atpyproject.toml) - Relative links (
libraries/*.md:10, all 23 library articles;ruff_mypy_pytest.mdalso links../../../../../pyproject.toml): links of the form../../../../../src/devops_cli/...→ six../segments (../../../../../../src/devops_cli/...,../../../../../../pyproject.toml) or the task-doc form../../../../core/cli.py. - Lines owned by earlier items, kept as those items write them (
libraries/keyring.md:52(medium;"github.token"in set/get/delete on:52,55,58) andlibraries/pygithub.md:75(keyring_vault/get_github_token()): owned by refactor(github): one github session per identity owning token, quota and transport #767 (v0.2.26), which removesgithub.token, thegithub_tokenkeyring key,DEVOPS_CLI_GITHUB_TOKENandget_github_token(config/settings.py:977) and correctskeyring.md:52-64andpygithub.md:38,75itself (both corrected at apply time: the refined replacements wrote"github_token",devops config set github.tokenandget_github_token(), all of which refactor(github): one github session per identity owning token, quota and transport #767 deletes one release earlier);libraries/ruff_mypy_pytest.md:39([tool.ruff.lint] select = ["E", "F", "I", "N", "W", "UP"]): owned by feat(cli): extend the ruff rule set to the correctness families #420, whose deliverable rewrites:36-40; this item leaves them alone and, if feat(cli): extend the ruff rule set to the correctness families #420 has not merged when this item does, writesselectas "the families and codes selected inpyproject.toml[tool.ruff.lint]" without listing them (corrected during refinement: the original pasted today's ten codes; feat(cli): extend the ruff rule set to the correctness families #420 dropsB017,RUF022,RUF043,RUF068and selectsB,RUF,ASYNCand more). - The extractor rule fix(security): network references come from url and ip syntax, not identifier-prefix and property-suffix lists #431 ships (
libraries/tldextract.md:19(medium; also:10integrationsrc/devops_cli/http/broker.py,:65),python_packages.md:199,README.md:57): "Zero-Trust Egress Defense … mitigating SSRF" → Network Reference Extraction:security/reference_extractor.pyreports only hosts that the URL parser (urllib.parse) andipaddressrecognise, and uses a snapshot-onlyTLDExtract(suffix_list_urls=(), fallback_to_snapshot=True)for the public-suffix and RFC 2606 / special-use checks on those hosts; HTTP egress validation (http/broker.py) usesipaddress-based checks (corrected at apply time: the refined text said "domains found in scanned code"; fix(security): network references come from url and ip syntax, not identifier-prefix and property-suffix lists #431 (v0.2.26, lands first) makes the extractor report only hosts parsed from URLs and IP literals);python_packages.md:199→devops_cli.security.reference_extractor: Parses hosts from URLs and IP literals referenced in code (never bare words) for threat-intel lookups (same correction);README.md:57→ | TLDExtract | Domain Parsing | Public Suffix List domain parsing for network references extracted from code. | - Configuration storage and resolution (
architecture.md:108(medium),configuration_and_settings.md:11,13(medium),libraries/keyring.md:21(medium)):~/.config/devops-cli/config.json→~/.config/devops-cli/config.yaml(plus an optional projectconfig.yaml), secrets (tokens, API keys) in the OSkeyring; resolution order → Secrets: 1. OS Keyring 2. Vault 3. Environment variables 4. config.yaml. Other settings: 1. CLI flags 2.DEVOPS_CLI_*environment variables 3. project config.yaml 4.~/.config/devops-cli/config.yaml5. defaults;keyring.md:21"Env Vars → OS Keyring → Config File" → OS Keyring → Vault → Env Vars → Config File. - Module paths and class names (
libraries/httpx2.md:19andpython_packages.md:152:UnifiedLLMClient→devops_cli.ai.client.unified.LLMClient… (Ollama, Claude, OpenAI-compatible, Copilot, the LLM gateway);python_packages.md:123:devops_cli.config.keyring_vault→devops_cli.config.settings(keyring helpers) anddevops_cli.security.secrets(provider chain);:164:ai.review.runner&ai.agents→devops_cli.ai.response_repair&devops_cli.ai.client.structured;:170:ai.rag.engine→devops_cli.ai.rag.qdrant,.indexerand.retriever;:186:devops_cli.commands.pr(PyGithub) →devops_cli.github.client: Fetches PR details and posts review findings through the GitHub REST API;:211:devops_cli.commands.release(packaging) →devops_cli.core.validation: Validates version strings and specifiers (PEP 440 / SemVer);:233:devops_cli.mcp→devops_cli.ai.mcp.server;:239:devops_cli.service→devops_cli.server: Powersdevops serve, providing REST endpoints for health probes (/health,/healthz), Prometheus metrics (/metrics), status, workspaces, config and an SSE event stream;architecture.md:120:ThinkingStreamProcessorunderai.response_repair→devops_cli.ai.thinking_stream.ThinkingStreamProcessor;:123:MESSAGES,HELP,PERSONAS_CONFIGunderlang.en.messages→MESSAGESindevops_cli.lang.en.messages,HELPindevops_cli.lang.en.help, re-exported fromdevops_cli.lang;:124"Zero raw user-facing string literals in command dispatchers" → User-facing strings are kept in the language catalog rather than in command dispatchers;libraries/pygithub.md:19"Powersdevops pr list|view|diff|checks" → Powers the GitHub REST client (github/client.py) used bydevops gh,devops repos clone-org, anddevops review pr --post;devops pr *commands use theghCLI;libraries/fastapi_uvicorn.md:21→ Implements/health,/healthz,/api/v1/status, and/metrics;python_packages.md:74HELP.options.target→HELP.options.target_dir;:83→print_table,print_success,print_error,print_info,print_warning,print_muted). Sample,python_packages.md:205(pathspec): "devops_cli.ai.diff&devops_cli.commands.review: Excludes build directories … from code review passes" →devops_cli.core.gitignore&devops_cli.core.repo: compile.gitignorepatterns withPathSpec.from_lines("gitignore", ...)so ignored files are excluded from scans and review passes (corrected during refinement: the original pasted the FastMCPgh_*text that belongs togithub_project_management.md:187; seesrc/devops_cli/core/gitignore.py:56-60andsrc/devops_cli/core/repo.py:22);libraries/pathspec.md:38(medium) likewise →PathSpec.from_lines("gitignore", lines)(CONST_GITIGNORE_PATTERN_STYLE); integration lives insrc/devops_cli/core/gitignore.pyandcore/repo.py. - Pydantic and Pydantic AI API names (
libraries/pydantic_ai.md:46(medium; examples at:41,55,64) andpython_packages.md:139):result_type=→output_type=ReviewOutputModel,MCPToolset(server_url=...)→MCPToolset(url="http://localhost:8000/sse"),from devops_cli.models.review import Finding→from devops_cli.ai.review_schema import Finding,toolset.register_tool(...)→toolset.add_tool(AgentTool(...)). Finding model:libraries/pydantic.md:19(Finding, ReviewSession, AgentUsage, TLSBundle, K8sPodStatus)→(Finding, ReviewSessionPayload, AgentUsage, ...);python_packages.md:94(with theclass Findingexample at:101-111) → Domain models (devops_cli.models), review findings (devops_cli.ai.review_schema.Finding), tool schemas, and AI agent outputs inherit fromBaseModel;tasks/ai_code_review.md:150(medium)ReviewFindingwithid,file_path,line_start,line_end, … → PydanticFinding(src/devops_cli/ai/review_schema.py) withfinding_id,severity,location(path:start-end),title,description,fix,status, andconfidence_score. - RAG and Qdrant (
libraries/qdrant_client.md:21(medium; also:19,42,91),tasks/rag_context_indexing.md:21(medium; also:15,:64),:66(medium; was:65at c279c18; also:22, diagram:14)): "embeddedQdrantClient(path=".data/qdrant")" and "file-backed.data/rag/vector_store.json" → Connects to a Qdrant server by URL (qdrant.url, defaulthttp://localhost:6333, or the in-clusterllm/qdrantservice via the Kubernetes API proxy); no embedded mode is used;.data/rag/holds only the local index cache;nomic-embed-text:latest(768-dimensional) →qwen3-embedding:0.6b(Ollama; override via the rag embedding task model). - Review personas and outputs (
README.md:67,architecture.md:82,:95(with diagram:65)): addchallenger: Adversarial challenger that contests other personas' findings to the persona list and diagram; "(review.md, findings.json, Rich Terminal Table)" → (-review.md, summary.md, findings.json, Rich Terminal Table). - Remaining single-line corrections:
architecture.md:112(medium) → Data lives under the workspace data directory (DEVOPS_CLI_DATA_DIR/data.dir, default./.data): reviews in<data_dir>/reviews, logs in<data_dir>/logs, analysis in<data_dir>/analysis;<data_dir>/agentholds controller and gateway state;:148(medium) "local inference (Ollama, vLLM)" → local inference (Ollama profiles behind the LLM gateway);:150(medium; also:33) →devops scan aibomflags models that usetrust_remote_codeand compiles AI Bill of Materials (AIBOM) records;cli_command_reference.md:86(medium) andconfiguration_and_settings.md:101(medium):config output"Output raw YAML or JSON configuration" → List configuration environment variables (--export,--json);libraries/opentelemetry.md:38(medium; also:16) → The devops-cli tracer (telemetry/tracer.py) exports spans as OTLP http/json tohttp://localhost:4318/v1/tracesby default, switching to gRPC for:4317/grpc://endpoints;libraries/pyyaml_jinja2.md:38(medium; also:20,:39) →core/templating.pyuses a cachedSandboxedEnvironment(FileSystemLoader, undefined=StrictUndefined); values are encoded with| tojsonand output is re-parsed as JSON. Templates scaffold devcontainer.json and MCP configs; AGENTS.md is generated in Python;libraries/rich.md:21devops rag index→devops ai rag index;python_packages.md:278"scan_uv_auditandpip-audit" → viauv audit;:279"under 80ms" → to keep CLI cold-start latency low;tasks/ai_code_review.md:51→ the JSONL feedback dataset (default.data/feedback_dataset.jsonl;--status ALLfor every verdict) viadevops ai review export-feedback;:95(medium)devops review findings --session latest --details→devops review findings --details;:131(medium)devops benchmark suite→devops ai benchmark --suite;tasks/ci_quality_gate.md:76"Fail-Fast Policy: Any failure in security scanning (bandit,uv audit) immediately aborts the CI pipeline" → Every check runs and is reported; the gate exits non-zero when any check failed (commands/ci.py:665-673). There is no fail-fast abort (corrected during refinement: the original pasted thechallengerpersona text that belongs toarchitecture.md:95);tasks/devcontainer_lifecycle.md:29(also diagram:17) → persistent bash history (zsh gets completion and thedotalias only);tasks/github_project_management.md:8→ card lifecycle reconciliation againstdocs/agent/tasks/(dropdocs/agent/task.md);tasks/infrastructure_provisioning.md:52(medium) "tofu fmt -recursive… (enforced bydevops ci)" → Rundevops tf fmt tf/ --check(not enforced bydevops ci);:75(layout:69-77, also:21tf/k8s) → tf/{aws,azure,gcp}/ and tf/environments/{aws,azure,gcp}.tfvars.example (e.g.tf/aws,tf/gcp);tasks/k8s_stack_deployment.md:27(medium) →llm: Ollama per-VRAM-tier profiles behind the LLM gateway, Open-WebUI, Qdrant and Valkey in thellmnamespace;:73(medium) "helm upgrade --install --atomic" →helm upgrade --install --wait --timeout <t>(plus--force-conflictson Helm 4) and recovers stuck releases, so it can be re-run safely;:84NodePort31434→ NodePort (e.g. registry30500);tasks/release_management.md:73"chore(release): prepare v0.2.0 release" → release commits/PRs are titledfeat(release): v0.2.0(fix(release)via--type fix,!for breaking).
Evidence from review session 20261001-224227 (comment of 2026-10-02)
Each finding below was triaged against release/v0.2.25 (c279c18), judged real and covered by this issue, and upheld by a second agent that tried to refute it.
- Incomplete SSRF Mitigation Logic (
libraries/tldextract.md:43-59, re-rated LOW): the example "Validating Outbound Request Safety" is wrong. With the pinned tldextract 5.3.2,ext.suffixis '' for evil.internal, x.local, foo.lan and localhost, so theif ext.suffix in ("local","internal","lan","localhost")branch is dead and 'evil.internal' returns False;return bool(registered_domain)returns True for any public domain;registered_domainis deprecated;ipaddressis imported but unused. The article's premise is also false: tldextract is used bysecurity/reference_extractor.pyto classify domains found in scanned code, and egress validation inhttp/broker.pyusesipaddress-based checks (see thetldextract.md:19finding). - Inaccurate Pinned Versions for FastAPI and Uvicorn (
python_packages.md:236, re-rated LOW):fastapi==0.141.1is correct;uvicorn==0.52.4is stale (pyproject pins 0.53.0). typer, click, pydantic, qdrant-client and gitpython are stale inpython_packages.mdandlibraries/*.md:9too. - Inaccurate Pinned Version for httpx2 (
python_packages.md:149, re-rated LOW): the doc sayshttpx2==2.9.0; pyproject.toml and uv.lock pinhttpx2==2.13.0.
Readiness check (2026-10-04)
Checked at the release/v0.2.26 tip, b61e5a0.
- Dependencies: fix(mcp): mcp tools and resources call commands and options that exist #836, feat(cli): extend the ruff rule set to the correctness families #420, fix(security): network references come from url and ip syntax, not identifier-prefix and property-suffix lists #431 and refactor(github): one github session per identity owning token, quota and transport #767 are merged. docs(agents): instruction surfaces state only what is true, and
devops ai agentsnever overwrites AGENTS.md #840 is earlier in v0.2.27 and still lands first. - Key questions: every one is answered.
Corrections
- Moved citations:
WorkspaceIndexer.index_knowledge_baseis atsrc/devops_cli/ai/rag/indexer.py:411.- The
DEVOPS_CLI_CONFIGoverride isCONST_PROJECT_CONFIG_ENV, atsrc/devops_cli/config/constants.py:27. MESSAGES.docs.argv_unresolvedis atsrc/devops_cli/lang/en/messages.py:391.DocGenerator.check_docsis atsrc/devops_cli/docs/generator.py:1149-1156, withcheck_mcp_server_argvat:1153,1156.generate_knowledge_base_indexis at:1032.test_docs_check_reports_an_unresolved_mcp_argvis attests/test_docs_mcp_argv_collector.py:158.- The gate's non-zero exit, cited by the
tasks/ci_quality_gate.md:76replacement, is_handle_ci_resultsatsrc/devops_cli/commands/ci.py:914-937.
- Roadmap entry already gone:
docs/ROADMAP.md:917no longer exists. The v0.2.25 cut re-rendered the roadmap, and the hand-written "Phantom Command, Option and Tool Reference Gate" entry did not survive. Step 4 and the last Out of Scope bullet have nothing left to retire. - "Every other line number holds" is stale. Since c279c18, 20 knowledge-base files have changed: the v0.2.25 tip, plus refactor(github): one github session per identity owning token, quota and transport #767, feat(cli): extend the ruff rule set to the correctness families #420, feat(k8s): devops-cli runs in the homelab cluster as Jobs, and every cluster Secret is pushed from the keyring, also by deploy-stack (devops k8s push-secrets, devops k8s run-job) #741, feat(github): single-entry item intake with duplicate detection and placement (
devops roadmap intake) #742, fix(github): GraphQL mutations and implicit-POSTgh apiwrites get the rate limiter's mutation pacing, decided from the request gh sends #1125, fix(k8s): pod logs reach loki once and labelled, with alloy as the only shipper (remove fluent-bit) #548 and feat(release): item closure summaries, generated changelog and automatic release cut (devops roadmap close) #743 in v0.2.26.- Already true at HEAD; re-check only:
topics/agentic_ai_and_code_reviews.md:31already states docs(agents): instruction surfaces state only what is true, anddevops ai agentsnever overwrites AGENTS.md #840's step-2 fact.- In
tasks/ai_code_review.md,:51is fixed at:52,:95at:110,:131is gone and:150is fixed at:175. libraries/pydantic.md:56was renamed by refactor(github): one github session per identity owning token, quota and transport #767, and the refactor(github): one github session per identity owning token, quota and transport #767rgalready returns nothing.
- Moved:
libraries/ruff_mypy_pytest.md:53is now:50.tasks/github_project_management.md:187is now:191.tasks/k8s_stack_deployment.md:27,73,84are now:26,76,87.configuration_and_settings.md:101is now:102.libraries/pydantic_ai.md:64is now:63.
- The pull request re-reads every cited line, as the body already says.
- Already true at HEAD; re-check only:
- refactor(github): one github session per identity owning token, quota and transport #767, token source: the GitHub token is whatever
gh auth tokenprints: GH_TOKEN, then GITHUB_TOKEN, then gh's stored login (src/devops_cli/github/session.py:1-7). It is not a keyring entry. Theconfiguration_and_settings.md:24table replacement therefore readsgithub/GitHubConfig (default_org; token from gh auth token). - refactor(ci): github ci runs the gate through
devops cifrom one check table #843, new check:devops cigained adevcontainercheck, and its uv row is nameduv-check(get_check_specs,commands/ci.py:383-482). The parenthesised list in thetasks/ci_quality_gate.md:5replacement either adds the devcontainer check or is replaced by a pointer to that check table. - fix(config): service clients use only configured urls and never fall back to an unconfigured localhost default #1165, service URLs: the rule is that no service URL falls back to an unconfigured default. The Qdrant replacements (
libraries/qdrant_client.md:21,tasks/rag_context_indexing.md:21,66) and the tracer replacement (libraries/opentelemetry.md:38) therefore name the setting (qdrant.url,telemetry.endpoint) and state nohttp://localhost:…default. They stay true when fix(config): service clients use only configured urls and never fall back to an unconfigured localhost default #1165 removes those defaults. - Found during this check:
tasks/github_project_management.md:159was written this cycle and is in this item's directory. It says an unset Status falls back to Backlog, but_DEFAULT_STATUSisNew(src/devops_cli/github/projects.py:913). - Pinned versions: the criterion uses its first form, a test that reads
pyproject.tomlwithtomllib. No owner choice is pending.
Amended acceptance criteria
-
test_every_knowledge_base_argv_resolvesruns offline in under 1 s, like every test, and asserts no wall-clock ceiling (fix(cli): cli start-up imports no telemetry when the bridge is off, and timing tests stop asserting host speed #858). This replaces "completes in under 5 s on the gate". - No replacement text this pull request writes names a
localhostURL as a devops-cli default (fix(config): service clients use only configured urls and never fall back to an unconfigured localhost default #1165). Shown by: the diff. -
tasks/github_project_management.md:159namesNewas the Status of an unlabelled card whose Status is unset.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty commentedon Oct 2, 2026
More evidence for this issue from the devsecops review session
20261001-224227(2026-10-02). Each finding below was triaged againstrelease/v0.2.25(c279c18), judged real and covered by this issue, and then upheld by a second agent that tried to refute it.src/devops_cli/ai/knowledge_base/devops_cli/libraries/tldextract.md:43-59, re-rated LOW): The example 'Validating Outbound Request Safety' is wrong, though not for the finding's reason. With the pinned tldextract 5.3.2,ext.suffixis '' for evil.internal, x.local, foo.lan and localhost, so theif ext.suffix in ("local","internal","lan","localhost")branch is dead and 'evil.internal' actually returns False. Meanwhilereturn bool(registered_domain)returns True for any public domain, despite the comment 'Block arbitrary unexpected external domains'.registered_domainis deprecated, andipaddressis imported but unused. The article's premise is also false: tldextract is …src/devops_cli/ai/knowledge_base/devops_cli/python_packages.md:236, re-rated LOW): The doc saysfastapi==0.141.1,uvicorn==0.52.4, but pyproject.toml:34-35 and uv.lock pinfastapi==0.141.1anduvicorn==0.53.0. FastAPI is correct; uvicorn is stale. The finding's reasoning (that the versions are 'too new' compared with 0.115) is wrong. A full comparison also found typer, click, pydantic, qdrant-client and gitpython stale in python_packages.md and libraries/*.md:9. fix(ai): the knowledge base names only commands, options and components that exist #920 lists python_packages.md:236 explicitly, along with the other pins.src/devops_cli/ai/knowledge_base/devops_cli/python_packages.md:149, re-rated LOW): The doc sayshttpx2==2.9.0. pyproject.toml:19 and uv.lock pinhttpx2==2.13.0, and the installed version reports 2.13.0. The finding's 'should be 2.10.0' is wrong, but the doc is stale. fix(ai): the knowledge base names only commands, options and components that exist #920 lists python_packages.md:149 (and httpx2.md:9/:21) explicitly.fix(ai): the knowledge base names only commands, options and componen…
dan-petty-bot commentedon Oct 6, 2026
What changed
#1249, merged into
release/v0.2.27as db6c77f.69 file(s) changed.
How it was verified
Check runs at 31c6321:
Acceptance Criteria of
docs/agent/tasks/task-920-knowledge-base-names-only-what-exists.md:src/devops_cli/ai/knowledge_base/**/*.mdare extracted and tokenized, mapping bracketed placeholders toArgvPlaceholder.resolve_devops_argv().DocGenerator.check_docs()and reported bydevops docs check.tests/test_docs_knowledge_base_argv.pyverifies extraction fixtures, check failure reporting, and that every knowledge base command line resolves without subprocess execution.DEVOPS_CLI_CONFIG_PATH,DEVOPS_CLI_LOG_LEVEL), zero obsolete models (nomic-embed-text), zero removed#767names (github.token).uv run devops cicompletes with 100% passing status andfeat(release): v0.2.27 (#1257)