Skip to content

Tune the frequencies for DSPy bee ontology coverage (W9 TOKENMAXX) - #110

Merged
fuzzywigg merged 1 commit into
mainfrom
cursor/dspy-ontology-unit-tests-fb47
Sep 27, 2026
Merged

fuzzywigg merged 1 commit into
mainfrom
cursor/dspy-ontology-unit-tests-fb47

Conversation

@fuzzywigg

Copy link
Copy Markdown
Owner

Summary

Adds unit tests for LIVE hive/bees/content/ontology_manager.py (DSPy bee OntologyManager) — time-of-day rotation, persona prompt assembly, adapt_message fallback/predictor paths, and DSPy init gating. Tiny importability guard so PersonaAdapter is only defined when DSPy is present (module already claimed fallback mode on ImportError). No product behavior change when DSPy is installed; no deploy/credential/workflow edits.

TOKENMAXX ON-20260927 W9 — useful non-deploy tests. HITL: did not touch GoDaddy deploy / SSH secrets.

Changes

  • tests/test_dspy_ontology_manager.py — 22 unit tests covering hour bands, datetime.now path, get_current_ontology / get_persona_prompt, fallback + predictor + predictor-failure for adapt_message, and DSPy init gating (no client / missing key / success / exception)
  • hive/bees/content/ontology_manager.py — guard PersonaAdapter behind DSPY_AVAILABLE so fallback/unit-test import works without the optional dspy package
  • Cluster chosen: DSPy bee ontology left open by Tune the frequencies for ontology rotation coverage #108 after automation runner (Tune the frequencies for automation runner coverage (W8 TOKENMAXX) #109); left heavier I/O bees alone
  • Did not invent bees/product or touch tip-honesty docs

Related Issues

TOKENMAXX ON-20260927 W9

Testing

  • New tests: 22 passed (tests/test_dspy_ontology_manager.py / -m unit)
  • Full suite: 385 passed (ENVIRONMENT=test HIVE_SECRET_KEY=… STORAGE_TYPE=FILE pytest)
  • Unit marker suite: 189 passed (pytest -m unit)
  • Linter passes (ruff check + ruff format --check on touched files)
  • Type checker passes (make type-check)
  • Manual test: N/A — pure helper unit tests only

Bee Impact

  • Bee(s) affected: none (test-only; importability guard only when DSPy absent)
  • Honeycomb keys read: none
  • Honeycomb keys written: none
  • Constitutional Gateway: N/A (test-only)

Deployment Notes

None. No .github/workflows changes, no GoDaddy deploy, no SSH/secrets.

Checklist

  • No secrets committed
  • No deploy workflow changes
  • Lore / tip-honesty docs left untouched
Open in Web Open in Cursor 

Add unit tests for hive.bees.content.ontology_manager (rotation,
persona prompts, adapt_message fallback/predictor paths, DSPy init
gating). Guard PersonaAdapter so the module imports in fallback mode
when DSPy is absent — no product behavior change when DSPy is present.

Co-authored-by: Andrew Pappas <fuzzywigg@users.noreply.github.com>
@fuzzywigg
fuzzywigg marked this pull request as ready for review September 27, 2026 10:38
@fuzzywigg
fuzzywigg merged commit ec4a922 into main Sep 27, 2026
9 checks passed
@fuzzywigg
fuzzywigg deleted the cursor/dspy-ontology-unit-tests-fb47 branch September 27, 2026 10:38
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.

2 participants