agentleFS
QubinodeQubinode/qubinode_navigator/.cursor/rules/qubinode-overview.mdc

qubinode_navigator / rules

Cursor rule1 starsChanged 11 months agoMITView on GitHub

You are helping manage Qubinode Navigator, an enterprise infrastructure automation platform with PydanticAI-based orchestration (ADR-0063, ADR-0066). The AI Assistant includes a multi-agent system for intent-based deployment: When working with DAGs: - Use """ (triple double quotes) for bash_command, never ''' - DAG IDs must be snake_case matching filename - Use ASCII markers: [OK], [ERROR], [WARN], [INFO], [SKIP] - No string concatenation in bash_command

  • Reads credentials
  • Sends data out

The file

We split this qubinode-overview.mdc into the rules it gives an agent

4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When working with DAGs:

    line 52
  2. Very specific:

    Use """ (triple double quotes) for bash_command, never '''

    line 53
  3. Very specific:

    Use ASCII markers: [OK], [ERROR], [WARN], [INFO], [SKIP]

    line 55
  4. Distinctive:

    No string concatenation in bash_command

    line 56

≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
qubinode-overview.mdc
---
globs:
alwaysApply: true
---

# Qubinode Navigator - AI Assistant Context

You are helping manage Qubinode Navigator, an enterprise infrastructure automation platform with **PydanticAI-based orchestration** (ADR-0063, ADR-0066).

## Architecture Overview

- **AI Assistant** (port 8080): PydanticAI orchestrator + RAG knowledge base
  - `/orchestrator/intent` - Natural language deployment (main interface)
  - `/orchestrator/observe` - DAG monitoring with Observer Agent
  - `/orchestrator/dags` - DAG discovery
  - `/orchestrator/status` - Check API keys and availability
- **Airflow** (port 8888): Workflow orchestration for VM provisioning and deployments
- **MCP Server** (port 8889): Tool API for AI integrations
- **PostgreSQL** (port 5432): Metadata, pgvector for RAG embeddings
- **Marquez** (port 5001/3000): OpenLineage lineage tracking

## PydanticAI Orchestrator (ADR-0063, ADR-0066)

The AI Assistant includes a multi-agent system for intent-based deployment:

- **Manager Agent**: Analyzes user intent, finds matching DAGs, creates execution plans
- **Developer Agent**: Validates DAGs, checks prerequisites (templates, resources)
- **Observer Agent**: Monitors DAG runs, detects shadow errors, provides recommendations

### Intent-Based Deployment Example

```bash
# Deploy infrastructure using natural language
curl -X POST http://localhost:8080/orchestrator/intent \
  -H "Content-Type: application/json" \
  -d '{"intent": "Deploy FreeIPA", "auto_execute": true}'

# Monitor deployment
curl -X POST "http://localhost:8080/orchestrator/observe?dag_id=freeipa_deployment"
```

## Key Directories

- `airflow/dags/` - Airflow DAG definitions
- `airflow/plugins/qubinode/` - Custom operators (KcliVMCreate/Delete/List, PydanticAIOperator)
- `docs/adrs/` - Architecture Decision Records (60+ ADRs)
- `ai-assistant/` - AI service with PydanticAI orchestrator
- `scripts/development/deploy-qubinode.sh` - One-shot deployment script

## Critical Standards (ADR-0045)

When working with DAGs:
- Use `"""` (triple double quotes) for bash_command, never `'''`
- DAG IDs must be snake_case matching filename
- Use ASCII markers: `[OK]`, `[ERROR]`, `[WARN]`, `[INFO]`, `[SKIP]`
- No string concatenation in bash_command

## Common Commands

```bash
# Deployment (CI-tested method)
sudo -E ./scripts/development/deploy-qubinode.sh

# DAG Management (use sudo for root containers)
sudo podman exec airflow-scheduler airflow dags list
sudo podman exec airflow-scheduler airflow dags unpause <dag_id>
sudo podman exec airflow-scheduler airflow dags trigger <dag_id>

# VM Management (use sudo!)
sudo kcli list vm
sudo kcli info vm <name>

# Service Status
sudo podman ps
curl http://localhost:8080/orchestrator/status
curl http://localhost:8888/health
```

## Environment Variables

```bash
OPENROUTER_API_KEY=sk-or-...     # Required for PydanticAI orchestrator
USE_LOCAL_MODEL=false            # Skip local llama.cpp model
QUBINODE_ENABLE_AIRFLOW=true     # Enable Airflow stack
```

## Related ADRs

- ADR-0063: PydanticAI Core Agent Orchestrator
- ADR-0066: Developer Agent DAG Validation and Smart Pipelines
- ADR-0067: Self-Hosted Runner E2E Testing

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.