# prefect - Doramagic AI Context Pack

> Purpose: pre-work context for the user's host AI. This pack does not prove that the project has been installed, run, or validated.

## Project

- canonical_name: `PrefectHQ/prefect`
- capability: Prefect is a workflow orchestration framework for building resilient data pipelines in Python.
- expected_user_outcome: Prefect is a workflow orchestration framework for building resilient data pipelines in Python.

## Operating Boundaries

- Do not claim that the project has been installed, run, called through an API, or used on local files unless separate evidence proves it.
- Project facts must come from repo evidence, Claim Graph, or explicit source references.
- When a capability is not verified, mark it as unverified instead of completing it as fact.
- publish_status: `publishable`
- blocking_gaps: none

---

## Doramagic Context Augmentation

The following sections strengthen the repository context for a host AI. Human Manual data is a reading route, and pitfall notes become operating constraints.

## Human Manual Outline

Usage rule: this is only a reading route and salience signal, not factual authority. Concrete claims must still return to repo evidence or Claim Graph.

Host AI hard rules:
- Do not treat page titles, section order, summaries, or importance values as factual project evidence.
- When explaining the Human Manual outline, state that it is only a reading route or salience signal.
- Capability, installation, compatibility, runtime state, and risk claims must cite repo evidence, source paths, or Claim Graph.

- **Core Concepts and SDK: Flows, Tasks, States, and Results**: importance `high`
  - source_paths: src/prefect/flows.py, src/prefect/tasks.py, src/prefect/flow_engine.py, src/prefect/task_engine.py, src/prefect/states.py
- **System Architecture: Server, API, Database, and Events Pipeline**: importance `high`
  - source_paths: src/prefect/server/__init__.py, src/prefect/server/api/server.py, src/prefect/server/api/flow_runs.py, src/prefect/server/api/task_runs.py, src/prefect/server/api/deployments.py
- **Deployment, Workers, and Infrastructure**: importance `high`
  - source_paths: src/prefect/deployments/runner.py, src/prefect/deployments/deployments.py, src/prefect/deployments/flow_runs.py, src/prefect/deployments/schedules.py, src/prefect/runner/runner.py
- **Concurrency, Events, and Common Failure Modes**: importance `high`
  - source_paths: src/prefect/concurrency/__init__.py, src/prefect/concurrency/_leases.py, src/prefect/concurrency/_asyncio.py, src/prefect/concurrency/v1/__init__.py, src/prefect/events/__init__.py

## Repo Inspection Evidence

- repo_clone_verified: true
- repo_inspection_verified: true
- repo_commit: `441d5e112d263706d963612aabc8f252df94a42e`
- inspected_files: `Dockerfile`, `README.md`, `pyproject.toml`, `uv.lock`, `docs/AGENTS.md`, `docs/conftest.py`, `docs/contribute/code-of-conduct.mdx`, `docs/contribute/contribute-integrations.mdx`, `docs/contribute/dev-contribute.mdx`, `docs/contribute/develop-a-new-worker-type.mdx`, `docs/contribute/docs-contribute.mdx`, `docs/contribute/index.mdx`, `docs/contribute/styles-practices.mdx`, `docs/docs.json`, `docs/integrations/index.md`, `docs/integrations/integrations.mdx`, `docs/integrations/prefect-aws/api-ref/prefect_aws-assume_role_parameters.mdx`, `docs/integrations/prefect-aws/api-ref/prefect_aws-batch.mdx`, `docs/integrations/prefect-aws/api-ref/prefect_aws-bundles-__init__.mdx`, `docs/integrations/prefect-aws/api-ref/prefect_aws-bundles-execute.mdx`

Host AI hard rules:
- Without repo_clone_verified=true, do not claim that the source code has been read.
- Without repo_inspection_verified=true, do not write README, docs, or package-file conclusions as facts.
- Without quick_start_verified=true, do not claim that the Quick Start path has run successfully.

## Doramagic Pitfall Constraints

These rules come from Doramagic discovery, validation, or compilation findings. The host AI must treat them as operating constraints, not background notes.

### Constraint 1: Installation risk requires verification

- Trigger: Developers should check this installation risk before relying on the project: 3.7.4 - From cradle to grave
- Host AI rule: Before packaging this project, run the relevant install/config/quickstart check for: 3.7.4 - From cradle to grave. Context: Observed when using python
- Why it matters: Upgrade or migration may change expected behavior: 3.7.4 - From cradle to grave
- Evidence: failure_mode_cluster:github_release | https://github.com/PrefectHQ/prefect/releases/tag/3.7.4
- Hard boundary: Do not present this pitfall as solved, verified, or ignorable unless later evidence explicitly closes it.

### Constraint 2: Installation risk requires verification

- Trigger: Developers should check this installation risk before relying on the project: 3.7.4.dev3: Nightly Development Release
- Host AI rule: Before packaging this project, run the relevant install/config/quickstart check for: 3.7.4.dev3: Nightly Development Release. Context: Observed during installation or first-run setup.
- Why it matters: Upgrade or migration may change expected behavior: 3.7.4.dev3: Nightly Development Release
- Evidence: failure_mode_cluster:github_release | https://github.com/PrefectHQ/prefect/releases/tag/3.7.4.dev3
- Hard boundary: Do not present this pitfall as solved, verified, or ignorable unless later evidence explicitly closes it.

### Constraint 3: Installation risk requires verification

- Trigger: Project evidence flags a installation risk. Review the linked source before relying on this workflow.
- Host AI rule: Reproduce the official install and quickstart path in an isolated environment.
- Why it matters: May increase setup, validation, or first-run risk for the user.
- Evidence: community_evidence:github | https://github.com/PrefectHQ/prefect/issues/22259
- Hard boundary: Do not present this pitfall as solved, verified, or ignorable unless later evidence explicitly closes it.

### Constraint 4: Installation risk requires verification

- Trigger: Project evidence flags a installation risk. Review the linked source before relying on this workflow.
- Host AI rule: Reproduce the official install and quickstart path in an isolated environment.
- Why it matters: May increase setup, validation, or first-run risk for the user.
- Evidence: community_evidence:github | https://github.com/PrefectHQ/prefect/issues/22136
- Hard boundary: Do not present this pitfall as solved, verified, or ignorable unless later evidence explicitly closes it.

### Constraint 5: Installation risk requires verification

- Trigger: Project evidence flags a installation risk. Review the linked source before relying on this workflow.
- Host AI rule: Reproduce the official install and quickstart path in an isolated environment.
- Why it matters: May increase setup, validation, or first-run risk for the user.
- Evidence: community_evidence:github | https://github.com/PrefectHQ/prefect/issues/22276
- Hard boundary: Do not present this pitfall as solved, verified, or ignorable unless later evidence explicitly closes it.

### Constraint 6: Configuration risk requires verification

- Trigger: Developers should check this configuration risk before relying on the project: 3.7.4.dev4: Nightly Development Release
- Host AI rule: Before packaging this project, run the relevant install/config/quickstart check for: 3.7.4.dev4: Nightly Development Release. Context: Source discussion did not expose a precise runtime context.
- Why it matters: Upgrade or migration may change expected behavior: 3.7.4.dev4: Nightly Development Release
- Evidence: failure_mode_cluster:github_release | https://github.com/PrefectHQ/prefect/releases/tag/3.7.4.dev4
- Hard boundary: Do not present this pitfall as solved, verified, or ignorable unless later evidence explicitly closes it.

### Constraint 7: Configuration risk requires verification

- Trigger: Developers should check this configuration risk before relying on the project: 3.7.5 - No run left CANCELLING
- Host AI rule: Before packaging this project, run the relevant install/config/quickstart check for: 3.7.5 - No run left CANCELLING. Context: Observed when using python, docker
- Why it matters: Upgrade or migration may change expected behavior: 3.7.5 - No run left CANCELLING
- Evidence: failure_mode_cluster:github_release | https://github.com/PrefectHQ/prefect/releases/tag/3.7.5
- Hard boundary: Do not present this pitfall as solved, verified, or ignorable unless later evidence explicitly closes it.

### Constraint 8: Configuration risk requires verification

- Trigger: Developers should check this configuration risk before relying on the project: 3.7.5.dev1: Nightly Development Release
- Host AI rule: Before packaging this project, run the relevant install/config/quickstart check for: 3.7.5.dev1: Nightly Development Release. Context: Source discussion did not expose a precise runtime context.
- Why it matters: Upgrade or migration may change expected behavior: 3.7.5.dev1: Nightly Development Release
- Evidence: failure_mode_cluster:github_release | https://github.com/PrefectHQ/prefect/releases/tag/3.7.5.dev1
- Hard boundary: Do not present this pitfall as solved, verified, or ignorable unless later evidence explicitly closes it.

### Constraint 9: Configuration risk requires verification

- Trigger: Developers should check this configuration risk before relying on the project: 3.7.5.dev2: Nightly Development Release
- Host AI rule: Before packaging this project, run the relevant install/config/quickstart check for: 3.7.5.dev2: Nightly Development Release. Context: Source discussion did not expose a precise runtime context.
- Why it matters: Upgrade or migration may change expected behavior: 3.7.5.dev2: Nightly Development Release
- Evidence: failure_mode_cluster:github_release | https://github.com/PrefectHQ/prefect/releases/tag/3.7.5.dev2
- Hard boundary: Do not present this pitfall as solved, verified, or ignorable unless later evidence explicitly closes it.

### Constraint 10: Configuration risk requires verification

- Trigger: Developers should check this configuration risk before relying on the project: 3.7.5.dev3: Nightly Development Release
- Host AI rule: Before packaging this project, run the relevant install/config/quickstart check for: 3.7.5.dev3: Nightly Development Release. Context: Observed when using python, docker
- Why it matters: Upgrade or migration may change expected behavior: 3.7.5.dev3: Nightly Development Release
- Evidence: failure_mode_cluster:github_release | https://github.com/PrefectHQ/prefect/releases/tag/3.7.5.dev3
- Hard boundary: Do not present this pitfall as solved, verified, or ignorable unless later evidence explicitly closes it.
