Skip to content

docs: hand-written docs name only commands, options, and architecture patterns that exist (#921) - #1276

Merged
dan-petty merged 1 commit into
release/v0.2.28from
docs/921-docs-name-only-what-exists
Oct 7, 2026
Merged

dan-petty merged 1 commit into
release/v0.2.28from
docs/921-docs-name-only-what-exists

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Description

Resolves #921.

This PR aligns all hand-written documentation (ARCHITECTURE.md, README.md, RELEASE_CYCLE.md, docs/SDLC.md, docs/ROUTINE_TASKS.md, docs/DEVCONTAINER_USAGE.md, docs/VISION.md, k8s/README.md, and k8s/llm/profiles/README.md) to name only commands, options, flags, and architecture patterns that exist.

Key Changes

  • Markdown Argv Collector & Placeholders (src/devops_cli/docs/markdown_argv_collector.py):
    • Extends is_placeholder() to support CLI uppercase placeholder conventions (COMMAND, ARGS, OPTIONS, SUBCOMMAND, PARAMS) and split bracket tokens ([-v, ]), mapping them to ArgvPlaceholder.
    • Implements collect_handwritten_docs_argv_references() and check_handwritten_docs_argv() using canonical paths CONST_HANDWRITTEN_DOCS_PATHS.
  • Docs Check Integration (src/devops_cli/docs/generator.py):
    • Wires check_handwritten_docs_argv(self.root_dir) into DocGenerator.check_docs() so devops docs check audits hand-written documentation alongside MCP tools and the offline knowledge base.
  • Hand-Written Documentation Verification Tests (tests/test_docs_knowledge_base_argv.py):
    • Added test_every_handwritten_doc_argv_resolves() to verify that every CLI command across all hand-written documentation files statically resolves with zero errors and no subprocess execution.
    • Added test_docs_check_reports_an_unresolved_handwritten_doc_argv() and test_handwritten_docs_defective_reference_fails_resolution().
  • Documentation Fact Alignment:
    • ARCHITECTURE.md: Updated lifecycle triggers to post-create / post-start, updated history path to ~/.bash_history, updated T4 to commit signing, fixed devops ci run -> devops ci, and rewrote Section 7 to eliminate phantom classes (@cli_command_handler, ProcessExecutionPipeline, StagePipeline).
    • README.md: Added Challenger persona, lifecycle commands, corrected timeout constants, documented checksum verification nuances, and updated milestone deliverables span (v0.0.1 to v0.3.5).
    • RELEASE_CYCLE.md: Updated CI checks list, line coverage threshold (90%), devops release tag -v, pyproject.toml version detection, --skip-ci verification, and links to docs/ROADMAP.md.
    • docs/SDLC.md: Updated line coverage (90%), pre-commit hooks diagram and list (structural-invariants, devops-ci-test-changed), CI check names, manual labels audit, views sync, CodeQL push trigger, and release runbook link.
    • docs/ROUTINE_TASKS.md: Updated CI checks list, worker cap -n logical, pr create --title, gh pr merge, manifest scan commands (k8s lint, check-deprecated, scan trivy --type iac), complexity note, telemetry logfire, repos list, project grounding with audit/template, In Progress transition, pyproject.toml version bump, bandit command, SSRF wording, devcontainer lifecycle, and SSH audit.
    • docs/DEVCONTAINER_USAGE.md: Pinned linux/amd64 architecture, clarified tofu/terraform and security scanners manual install requirements, image tag comment, .mcp.json / CLAUDE.md, review branch --all, Minikube GPU/addons notes, deploy-stack --stack examples, and stream-logs.
    • docs/VISION.md: Clarified item 6 (devops scan aibom flags trust_remote_code and compiles AIBOM records, while automated GPU provisioning gating is a visionary theme).
    • k8s/README.md: Updated stack table (infra, llm, logging, all), minikube post-start, port-forward ollama-16gib, LLM gateway models & routes, Ollama VRAM tiers, review weights, tune measurement, context window, DaemonSet GPU placement, diagram namespace labels, removed --context and -k from apply, and updated argo cd apps status.
    • k8s/llm/profiles/README.md: Set deployed backend to Ollama, corrected matrix TP/PP (2) and quantization (AWQ, FP8), updated ClusterIP services to Ollama tiers, and replaced gateway config YAML block with configmap excerpt.

Verification

  • devops docs check: 0 errors.
  • tests/test_docs_knowledge_base_argv.py: all 6 tests passing.
  • pre-commit run --all-files: all hooks passing.
  • devops ci: 14/14 checks passing (coverage >= 90.0%, 0 failed tests, 0 warnings).

@dan-petty dan-petty added this to the v0.2.28 milestone Oct 7, 2026
@dan-petty dan-petty added type/docs Type docs: a change to the documents scope/docs Documents, guides, ADRs and generated references priority/p1-high Priority P1: high-impact work for the next planned milestone labels Oct 7, 2026
@dan-petty
dan-petty merged commit bfd4229 into release/v0.2.28 Oct 7, 2026
9 checks passed
@dan-petty
dan-petty deleted the docs/921-docs-name-only-what-exists branch October 7, 2026 03:15
dan-petty added a commit that referenced this pull request Oct 7, 2026
* fix(k8s): track main in argo cd git-source targetRevisions while service image pins release (#1261) (#1262)

* fix(k8s): track main in argo cd git-source targetRevisions while service image pins release (#1261)

* fix(release): parse applications in release prepare and generalize manifest counts

* fix(ui): defer dashboard refresh when unmounted to prevent NoMatches worker failure (#519) (#1263)

* fix(ui): defer dashboard refresh when unmounted to prevent NoMatches worker failure (#519)

* fix(k8s): ensure devops configmap exists in clean test environments

* fix(security): redact telemetry and kill process group on timeout in async process runner (#780) (#1264)

* fix(ai): web_fetch reports a failed fetch as a tool failure, not as page text (#894) (#1265)

* feat(ai): web_fetch renders pages as untrusted, escaped markdown within a budget (#896) (#1266)

* feat(ai): web_fetch renders pages as untrusted, escaped markdown within a budget (#896)

* fix(deps): pin markdownify and beautifulsoup4 to exact versions matching uv.lock

* fix(k8s): resolve portkey probe path and gpu-feature-discovery image tag (#1267) (#1268)

* fix(k8s): resolve portkey probe path and gpu-feature-discovery image tag (#1267)

- Fix Portkey AI Gateway liveness and readiness probe path to / instead of /health, resolving CrashLoopBackOff
- Align GPU Feature Discovery image to nvcr.io/nvidia/k8s-device-plugin:v0.16.2 to resolve ImagePullBackOff
- Update devops-cli AI gateway probe helper to check / for the Portkey provider
- Update test_k8s.py assertions and author changelog fragment and task tracking

* fix(test): disable logfire pytest plugin to prevent ambient telemetry DNS lookups (#1267)

* fix(ai): mcp command tools return the failing output and never write to the protocol stream (#839) (#1269)

* refactor(github): read a pull request's checks once, fail-closed, for wait, monitor and readiness (#769)

* feat(k8s): increase roadmap-service analysis context window to 64k (#1271) (#1272)

* fix(review): a verdict that both confirms and refutes its finding stays unverified with a contradiction note (#1059) (#1273)

* fix(ai): a failing embedding model pauses rag lookups instead of ending rag for the run (#1065) (#1274)

* fix(ai): review calls through the gateway no longer stall on ollama (#1069)

* docs: hand-written docs name only commands, options, and architecture patterns that exist (#921) (#1276)

* fix(review): a review scans a worktree of the reviewed revision, never hands a deleted file to a tool, and reports which files each tool scanned (#1047) (#1277)

* feat(review): every reported finding is admitted with anchor and commit location (#871) (#1278)

* fix(release): finalize v0.2.28 release preparation, changelog collation, and image pin

* fix(k8s): resolve argocd application out-of-sync and manifest generation failures (#1279) (#1281)

* fix(k8s): resolve argocd application out-of-sync and manifest generation failures (#1279)

* feat(k8s): add push-config command and dynamic configmap deployment

* feat(k8s): generate gitignored .argocd-source.yaml overrides and remove private references (#1279)

- Add devops k8s argocd-source command and devops_cli.k8s.argocd_source module
- Generate .argocd-source.yaml parameter overrides for devops and ingress overlays
- Remove hardcoded domain patches and ignoreDifferences
- Remove devops k8s push-config command in favor of .argocd-source.yaml overrides
- Sanitize internal hostnames, .lan servers, and private domains from repository

* fix(review): address copilot review remediations and collate changelog for v0.2.28 (#1284)

* fix(release): address second-round copilot review remediations for v0.2.28 (#1285)

* fix(k8s): apply active devops configmap dynamically via stdin without overwriting tracked files (#1286)

* fix(review): sanitize code language and propagate added diff lines to admission (#1287)

* fix(k8s): stream rendered ingress and patch argo cd application overrides during deployment (#1288)

* fix(review): integrate advisory anchor, base fingerprints, and fail-closed configmaps (#1289)

* fix(review): integrate advisory anchor, base fingerprints, and fail-closed configmaps

* refactor(review): isolate scanner file buckets into strongly-typed dataclass

* fix(k8s): argo cd takes homelab values from deploy-time overrides, and the repository holds no private or placeholder config (#1290) (#1292)

* fix(k8s): argo cd takes homelab values from deploy-time overrides, and the repository holds no private or placeholder config (#1290)

Argo CD reads .argocd-source.yaml only from the Git repository, so the gitignored generator from #1281 never reached it, and the tracked placeholder ConfigMap was enforced over the rendered one. deploy-stack now renders ConfigMap devops-cli-config from config.yaml outside Argo CD, and writes the configured hosts onto the devops and ingress Applications as Kustomize patches that the cluster app-of-apps ignores. Everything is rendered before anything is written, and an unset setting stops it with an error naming the setting.

Closes #1290

* fix(k8s): derive the argo cd host overrides from each application's revision, and close the review's gaps (#1290)

The host patches now come from what each Application renders at its targetRevision (or --argocd-revision), fetched into a temporary directory, never from the local checkout. They reuse the native template substitution and cover wildcard and TLS hosts. The ConfigMap renderer has no placeholder fallback, teardown deletes the ConfigMap, the dry run reports the new writes and refuses like the deploy, AppProject homelab ignores the orphaned ConfigMap, and the docs describe the release-merge steps.

* fix(k8s): git never reads an application's repository or revision as an option, and deploy-stack refuses to clear staged hosts (#1290)

The revision fetch reads the repository and revision after --end-of-options, without prompts and within a time limit. A revision whose Application renders no placeholder host is refused instead of writing an empty patch list, and a multi-source Application is refused by name. The dry run reports the domain the overrides would use, the docs set the service settings before the first deploy, describe the release-merge steps for releases after this one, and the changelog fragment drops the Removed entry for a command that never shipped.

* docs(k8s): the release-merge steps re-apply the devops config map when its template changes, and the dry run names why a domain is unusable (#1290)

* chore(release): the v0.2.28 changelog takes #1290 and drops the argocd-source entry it replaced (#1293)

* fix(k8s): a native deploy-stack applies the grafana dashboards again (#1297) (#1306)

* fix(ai): an interrupted rag index resumes every file whose chunks were not all stored (#1296) (#1305)

* fix(ai): an interrupted rag index resumes every file whose chunks were not all stored (#1296)

* fix(ai): a partly stored rag file is cached as incomplete, so its points are purged if it changes before the resume (#1296)

* fix(review): suppressed and pre-existing scanner findings reach their review.md sections, and profile.json counts admission rejections (#1295) (#1304)

* fix(review): suppressed and pre-existing scanner findings reach their review.md sections, and profile.json counts admission rejections (#1295)

* fix(review): each suppressed finding is its own row, by file and line, in review.md (#1295)

* chore(release): the v0.2.28 changelog takes #1295, #1296 and #1297 into the entries they complete (#1340)

* fix(review): an inline suppression marker hides only findings of the tool it belongs to (#1341) (#1342)

* fix(review): an inline suppression marker hides only findings of the tool it belongs to (#1341)

* chore(release): the v0.2.28 changelog records #1341 in the #871 entry, in this one pull request (#1341)

* chore(release): the v0.2.28 notes say dependency advisories are always listed as introduced and gateway reviews can exceed the slot count (#1355)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority/p1-high Priority P1: high-impact work for the next planned milestone scope/docs Documents, guides, ADRs and generated references type/docs Type docs: a change to the documents

Projects

No open projects

Development

Successfully merging this pull request may close these issues.

1 participant