Skip to content

feat(ai): cross-domain analogical pattern retriever (devops ai research analogies) (#277) - #1573

Merged
dan-petty merged 1 commit into
release/v0.2.35from
feat/277-cross-domain-analogies
Oct 12, 2026
Merged

dan-petty merged 1 commit into
release/v0.2.35from
feat/277-cross-domain-analogies

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Summary

Closes #277

Implements the cross-domain analogical pattern retriever under devops ai research analogies to identify structural pattern isomorphisms across knowledge base domains using multi-vector topological clustering over the existing Knowledge Base RAG collection.

Changes

  • Core Models (src/devops_cli/ai/research/models.py): Defined CrossDomainAnalogy and AnalogyReport with strict negative validation (extra="forbid").
  • Domain & Retrieval Logic (src/devops_cli/ai/research/analogies.py):
    • Implemented AnalogicalPatternRetriever and multi_vector_clustering operating on existing KB vectors and payload text.
    • Added deterministic structural feature vector extraction (compute_structural_vector) based on canonical architectural patterns in constants.py.
    • Added robust KB section and file path domain parser (extract_domain) conforming to complexity ceiling M <= 7.
    • Added visual table and markdown renderers.
  • CLI Subcommand (src/devops_cli/commands/ai_research.py):
    • Added devops ai research analogies supporting query filtering, source/target domain constraints, score threshold, limit, and format choices (table, json, yaml, markdown).
    • Added dry-run support and resilient Qdrant collection access.
  • Config & Help Strings:
    • Added CONST_STRUCTURAL_PATTERNS and CONST_STRUCTURAL_PATTERN_DEFINITIONS in src/devops_cli/config/constants.py.
    • Added default score threshold and limits in src/devops_cli/config/defaults.py.
    • Added CLI help definitions in src/devops_cli/lang/en/help.py.
  • Documentation: Updated CLI reference and AI command guide.
  • Testing: Added unit and integration test suite (tests/test_ai_research_analogies.py) with 14 tests validating all acceptance criteria, mock KB fixtures, Qdrant fallback, negative schema validation, and formatting.

Verification

  • uv run pytest tests/test_ai_research_analogies.py: 14 passed.
  • uv run pytest tests/test_agent_task_files.py: 521 passed.
  • uv run devops ci: Passed 15/15 quality gates with coverage >= 90%.

@dan-petty dan-petty added this to the v0.2.35 milestone Oct 12, 2026
@dan-petty
dan-petty merged commit 3d4af10 into release/v0.2.35 Oct 12, 2026
11 checks passed
@dan-petty
dan-petty deleted the feat/277-cross-domain-analogies branch October 12, 2026 01:49
dan-petty added a commit that referenced this pull request Oct 13, 2026
* feat(ai): active marginalia & epistemic scratchpad (devops ai research annotate) (#275) (#1567)

* feat(ai): socratic inquiry & knowledge gap formulator (devops ai research socratic) (#1568)

- Add metacognitive knowledge gap and ambiguity analysis for task self-assessment (#276).
- Implement structured models KnowledgeGap, ClarifyingQuestion, and CodeLookupInstruction.
- Implement SocraticFormulator with task prompt and bounded diagnostic probes via --max-probes.
- Register devops ai research socratic subcommand supporting table, JSON, YAML, and Markdown formats.
- Add unit and integration tests in tests/test_ai_research_socratic.py.
- Synchronize CLI documentation and add changelog fragment.

* feat(ai): living mental model synthesizer & causal graph distiller (devops ai research model) (#1569)

* feat(cli): oci container image packaging, standardized metadata, multi-arch compilation, and slsa provenance (#1570)

* feat(k8s): safe persistent volume orphan reclamation (devops k8s volume reclaim) (#1571)

* fix(review): location parsing keeps placeholder, preserving review finding (#788) (#1572)

* feat(ai): cross-domain analogical pattern retriever (devops ai research analogies) (#277) (#1573)

* fix(review): review pr --post --no-reporting posts zero findings and metrics lose the persona (#791) (#1574)

* fix(github): the release-start trim and the cap descope pass over dependencies (#1123) (#1575)

* feat(roadmap): the roadmap job tallies each release's joins, descopes and trims by reason, and reports them in its plan and as gauges (#1126) (#1576)

* feat(ai): llm gateway tuning render and apply configuration with rollback (#478) (#1577)

* feat(cli): structured fuzzing of parsers and schema boundaries (#416) (#1578)

* feat(cli): output format adoption across the command surface (#411) (#1579)

* feat(telemetry): store traces in Tempo on a PVC and link to logs and profiles (#1135) (#1580)

* feat(release): v0.2.35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant