Inferensys

Prompt

Bounded Context Autonomy Assessment Prompt

A practical prompt playbook for using Bounded Context Autonomy Assessment Prompt in production AI workflows.
Operations team reviewing AI workflow automation on laptop, workflow builder visible, casual office setup.
PROMPT PLAYBOOK

When to Use This Prompt

Defines the job-to-be-done, ideal user, required context, and boundaries for the Bounded Context Autonomy Assessment Prompt.

Use this prompt when you need a structured, repeatable assessment of a bounded context's autonomy. It is designed for domain architects and platform engineers who must evaluate whether a context can operate, evolve, and scale independently. The prompt produces an autonomy scorecard across four dimensions: data ownership, deployment independence, team alignment, and runtime coupling. It also identifies specific blockers that prevent full autonomy. This is not a general architecture review prompt. It assumes the bounded context boundaries are already defined and focuses strictly on independence characteristics. Run this before committing to a context's implementation strategy, before a planned extraction from a monolith, or as part of a quarterly architecture health check.

The prompt requires a defined bounded context as input, including its name, domain responsibilities, current data stores, deployment characteristics, owning team structure, and known integration points with other contexts. Without this context, the assessment will produce vague or misleading results. The prompt works best when you can provide concrete details: database names, deployment pipelines, team composition, and specific API or event contracts. Vague inputs like 'the context uses a shared database' will produce vague outputs. Instead, specify which tables, which schemas, and which other contexts also access them. The prompt is designed to be run against one context at a time. Running it against multiple contexts simultaneously dilutes the analysis and produces cross-context confusion rather than focused autonomy scoring.

Do not use this prompt when bounded context boundaries are still being discovered or negotiated. Boundary discovery requires a different prompt focused on cohesion, coupling, and domain alignment. Do not use it for greenfield contexts that have no existing implementation to assess — the prompt evaluates current state, not aspirational design. Do not use it as a substitute for a full architecture review that must cover security, scalability, or cost. The prompt focuses narrowly on autonomy characteristics. If the context handles regulated data, financial transactions, or safety-critical operations, add a human review gate after the assessment. The scorecard identifies blockers but does not prescribe remediation steps — pair it with a refactoring impact analysis prompt when blockers are found.

PRACTICAL GUARDRAILS

Use Case Fit

Where the Bounded Context Autonomy Assessment Prompt delivers reliable value and where it introduces risk. Use these cards to decide whether this prompt fits your current architecture review workflow.

01

Good Fit: Pre-Migration Context Audits

Use when: You are planning a service extraction or monolith decomposition and need an objective autonomy baseline for each candidate context. Why: The prompt systematically scores data ownership, deployment independence, and team alignment, surfacing hidden coupling before you invest in extraction. Guardrail: Run the assessment on 2–3 contexts first and compare results against manual architecture review to calibrate scoring thresholds.

02

Good Fit: Team Topology Alignment Reviews

Use when: You are evaluating whether team boundaries match context boundaries per Team Topologies or inverse Conway maneuvers. Why: The prompt flags misalignment between team ownership and runtime coupling, which is the leading predictor of delivery contention. Guardrail: Pair the prompt output with a value stream mapping exercise; the prompt identifies structural misalignment but cannot assess team cognitive load limits.

03

Bad Fit: Greenfield Domain Exploration

Avoid when: No implementation exists and you are exploring domain concepts for the first time. Why: The prompt requires concrete evidence of data ownership, deployment artifacts, and integration patterns. Without existing artifacts, it will hallucinate plausible but fictional coupling assessments. Guardrail: Use the Bounded Context Discovery from Legacy Code prompt or a domain event storming session instead. Reserve this prompt for contexts with observable runtime behavior.

04

Bad Fit: Single-Team Monoliths Without Extraction Plans

Avoid when: Your entire system is owned by one team with no near-term decomposition roadmap. Why: The autonomy scorecard will flag every context as low autonomy, producing a report that states the obvious without actionable next steps. Guardrail: Only run this prompt when there is organizational will to act on the findings. Pair it with a trade-off analysis prompt to sequence extraction candidates by value.

05

Required Inputs: Observable Artifacts

Risk: Running the prompt on architectural diagrams alone produces shallow autonomy scores based on intent, not reality. Guardrail: Provide at minimum: deployment topology, data store ownership mapping, team ownership records, and integration point inventories. The prompt's blocker detection depends on runtime evidence, not design documents. Missing inputs should be flagged as assumptions in the output.

06

Operational Risk: False Confidence in Scores

Risk: Teams may treat the autonomy scorecard as a definitive measurement rather than a structured discussion artifact. A context scoring 'high autonomy' may still have undocumented shared fate with another context. Guardrail: Require human review of every blocker flagged by the prompt and every context scored above 80% autonomy. Document disagreements between the prompt's assessment and team knowledge as architecture decision records.

PROMPT PLAYBOOK

Copy-Ready Prompt Template

A reusable prompt template for assessing the autonomy of a bounded context, ready to copy and adapt with your own context details.

This prompt template is designed to be the core instruction you send to an LLM. It evaluates a single bounded context against four pillars of autonomy: data ownership, deployment independence, team alignment, and runtime coupling. The placeholders in square brackets allow you to inject the specific details of the context under review, the desired output format, and any organizational constraints. Treat this template as a starting point; you will likely need to iterate on the instructions based on the model you are using and the specific failure modes you observe.

markdown
You are a domain-driven design architect evaluating the autonomy of a single bounded context. Your goal is to produce a structured assessment that identifies blockers to independence and provides a clear autonomy scorecard.

## Context Under Review
- **Context Name:** [CONTEXT_NAME]
- **Business Domain:** [BUSINESS_DOMAIN]
- **Core Responsibility:** [CORE_RESPONSIBILITY]
- **Owning Team:** [OWNING_TEAM]

## Context Details
[CONTEXT_DETAILS]

## Assessment Criteria
For each of the four pillars below, assign a score from 1 (fully dependent) to 5 (fully autonomous). For any score below 4, you must identify specific blockers.

1.  **Data Ownership:** Does this context own its data store and schema? Can it change its internal data model without forcing changes on other contexts?
2.  **Deployment Independence:** Can this context be deployed, scaled, and rolled back independently of other services? Does it have its own CI/CD pipeline?
3.  **Team Alignment:** Is a single, cross-functional team fully empowered to build, test, deploy, and operate this context without external dependencies on other teams?
4.  **Runtime Coupling:** Is the context resilient to the failure of other contexts? Does it rely on synchronous calls that could cascade failures, or does it primarily use asynchronous, event-driven communication?

## Output Schema
Return your analysis as a JSON object conforming to the following structure. Do not include any text outside the JSON object.

[OUTPUT_SCHEMA]

## Constraints
- Be specific and evidence-based in your blocker descriptions. Reference the provided [CONTEXT_DETAILS].
- If a score is 5, the blocker list must be empty.
- Do not propose solutions in the blocker list; only identify the problems.
- If the provided details are insufficient to assess a pillar, set the score to 0 and note "Insufficient Information" as the single blocker.

To adapt this template, start by replacing the [CONTEXT_DETAILS] placeholder with a rich description of the context's architecture, including its data stores, APIs, deployment pipeline, and team structure. The [OUTPUT_SCHEMA] placeholder is critical for application integration; replace it with a concrete JSON Schema that your application's parser expects, such as an object with autonomy_scorecard (an array of pillar objects) and overall_autonomy_score (a number). For high-stakes architectural decisions, always route the final output for human review and use this prompt as part of a broader evaluation that includes synchronous architecture review meetings.

IMPLEMENTATION TABLE

Prompt Variables

Required inputs for the Bounded Context Autonomy Assessment Prompt. Each placeholder must be populated before the prompt can produce a reliable autonomy scorecard.

PlaceholderPurposeExampleValidation Notes

[CONTEXT_NAME]

Identifies the bounded context under assessment

OrderManagement

Must match a single bounded context name from the context map; reject if ambiguous or missing

[CONTEXT_RESPONSIBILITIES]

Describes the core responsibilities and business capabilities owned by this context

Manages order lifecycle from placement to fulfillment confirmation

Must contain at least 3 distinct capability statements; reject if copied verbatim from another context

[DATA_OWNERSHIP_MAP]

Lists the data aggregates, entities, and value objects owned exclusively by this context

Order aggregate, OrderLine entity, OrderStatus value object

Each entry must include ownership classification (exclusive, shared, or reference); reject if no exclusive data is claimed

[DEPLOYMENT_BOUNDARY]

Describes the deployment unit, infrastructure, and release independence of this context

Deployed as order-service on Kubernetes, independent CI/CD pipeline, separate database instance

Must specify deployment unit type, pipeline ownership, and data store isolation; reject if deployment is shared with another context

[TEAM_ASSIGNMENT]

Identifies the team or teams responsible for building and operating this context

Team Alpha (5 engineers, 1 PM, dedicated on-call rotation)

Must include team size, dedicated vs shared status, and on-call ownership; reject if team is undefined or shared across more than 2 contexts

[RUNTIME_DEPENDENCIES]

Lists all synchronous and asynchronous runtime dependencies on other contexts or external systems

InventoryContext (sync REST for stock check), PaymentGateway (async via PaymentInitiated event)

Each dependency must specify protocol type (sync/async) and direction (inbound/outbound); reject if no dependencies are listed when context map shows integrations

[INTEGRATION_PATTERNS]

Describes the integration patterns used between this context and its collaborators

ACL for PaymentGateway, Published Language for OrderEvents, Open Host for InventoryContext

Each pattern must map to a specific dependency from [RUNTIME_DEPENDENCIES]; reject if patterns contradict context map relationship types

PROMPT PLAYBOOK

Implementation Harness Notes

How to wire the Bounded Context Autonomy Assessment Prompt into an architecture review workflow with validation, retries, and human review gates.

This prompt is designed to run as a structured analysis step within a broader architecture review pipeline, not as a standalone chat interaction. The primary integration point is a CI/CD or documentation workflow where architecture artifacts (context maps, ADRs, deployment diagrams, team topology charts) are submitted for review. The prompt expects a pre-assembled [CONTEXT] block containing the bounded context definition, its dependencies, data ownership model, deployment topology, and team assignment. This context should be assembled programmatically from your architecture knowledge base, service catalog, or documentation repository before the prompt is invoked.

Model selection and invocation: Use a model with strong reasoning capabilities and support for structured output (GPT-4o, Claude 3.5 Sonnet, or equivalent). Set temperature=0.1 to reduce variance in the autonomy scoring. The prompt's [OUTPUT_SCHEMA] placeholder should be replaced with a JSON schema matching the expected scorecard structure: autonomy dimensions (data ownership, deployment independence, team alignment, runtime coupling) each scored 1-5, a list of blockers with severity, and a summary recommendation. Enforce this schema using your model's structured output feature or a post-generation validator. Validation layer: After the model responds, run a schema validator to confirm all required fields are present, scores are within range, and blocker descriptions are non-empty. If validation fails, retry once with the validation errors appended to the prompt as additional [CONSTRAINTS]. After two failures, flag the assessment for human review rather than retrying indefinitely.

Integration with review gates: The autonomy scorecard output should be written to your architecture decision log or review system with a timestamp, model version, and the full prompt context for auditability. If any autonomy dimension scores below 3 or a blocker is marked HIGH, route the assessment to a human architect for review before accepting the recommendation. For lower-risk assessments, the scorecard can be auto-appended to the bounded context's documentation as a living autonomy health check. Logging and observability: Log the full prompt, response, validation status, and any retry attempts. Track autonomy scores over time to detect architectural drift. What to avoid: Do not use this prompt on contexts where the input data is incomplete or stale—the model will produce plausible but incorrect assessments. Do not skip the human review gate for high-severity blockers. Do not treat the autonomy score as a permanent label; re-run the assessment when dependencies, team structures, or deployment topologies change.

IMPLEMENTATION TABLE

Expected Output Contract

Defines the fields, types, requirements, and validation rules for the Bounded Context Autonomy Assessment output. Use this contract to parse, validate, and store the assessment results programmatically.

Field or ElementType or FormatRequiredValidation Rule

autonomy_scorecard

Array of objects

Must contain exactly one entry per assessed context. Array length must match the number of contexts provided in [CONTEXT_LIST].

autonomy_scorecard[].context_name

String

Must exactly match a context name from the input [CONTEXT_LIST]. Case-sensitive match required.

autonomy_scorecard[].overall_autonomy_score

Number (0.0-1.0)

Must be a float between 0.0 and 1.0 inclusive. Represents the weighted average of the four dimension scores.

autonomy_scorecard[].dimension_scores

Object

Must contain exactly four keys: 'data_ownership', 'deployment_independence', 'team_alignment', 'runtime_coupling'. No extra or missing keys allowed.

autonomy_scorecard[].dimension_scores.*

Number (0.0-1.0)

Each dimension value must be a float between 0.0 and 1.0 inclusive. Null is not permitted.

autonomy_scorecard[].blockers

Array of strings

Must be an array. If no blockers exist, use an empty array []. Each string must describe a specific, actionable impediment to autonomy.

autonomy_scorecard[].recommendations

Array of strings

Must be an array. If no recommendations, use an empty array []. Each string must be a concrete, actionable step to improve autonomy, linked to a specific blocker or low dimension score.

assessment_timestamp

String (ISO 8601)

Must be a valid ISO 8601 datetime string in UTC (e.g., '2024-05-20T14:30:00Z'). Represents the time of assessment generation.

PRACTICAL GUARDRAILS

Common Failure Modes

What breaks first when assessing bounded context autonomy and how to guard against it.

01

False Autonomy from Hidden Coupling

What to watch: The assessment declares a context autonomous because it has its own database, but misses synchronous runtime dependencies on another context's API for core business logic. The scorecard looks clean while the system is still tightly coupled at runtime. Guardrail: Require the prompt to enumerate all runtime call paths, not just data ownership. Add a specific check for synchronous calls that would block the context if the dependency is unavailable.

02

Organizational Wishful Thinking

What to watch: The prompt output aligns autonomy scores with the desired team structure rather than the actual code and data boundaries. Teams get the answer they want instead of the answer the architecture supports. Guardrail: Include a mandatory evidence field for each autonomy dimension. Require the model to cite specific repositories, schemas, or deployment configurations. If evidence is thin, flag the score as low-confidence.

03

Shared Kernel Overfitting

What to watch: The model treats every shared library or common schema as acceptable shared kernel collaboration, ignoring that excessive sharing creates a distributed monolith. The autonomy score is inflated because shared code is miscategorized as harmless. Guardrail: Add a constraint that any shared dependency must be justified with a cost-benefit analysis. Flag shared kernels that touch more than two contexts or contain domain logic rather than pure utilities.

04

Deployment Independence Illusion

What to watch: The assessment marks a context as independently deployable because it lives in a separate repository, but ignores that it requires coordinated releases with three other contexts due to schema migrations or API version lockstep. Guardrail: Require the prompt to check release coordination history or CI/CD pipeline dependencies. Add a specific question about whether a change in this context can reach production without changes in any other context.

05

Team Topology Mismatch

What to watch: The prompt assigns high autonomy to a context that spans three different teams, or low autonomy to a context that a single team fully owns. The score reflects code structure but ignores Conway's Law realities. Guardrail: Include team ownership as a required input field. Add a rule that a context cannot receive full autonomy if it is owned by multiple teams without explicit API contracts between them.

06

Event Choreography Blind Spot

What to watch: The assessment treats event-driven communication as fully decoupled and ignores that consumers may have implicit temporal coupling or ordering assumptions that create runtime fragility. Guardrail: Add a check for event ordering dependencies and consumer lag tolerance. Require the prompt to distinguish between true event-driven autonomy and hidden synchronous expectations wrapped in async transport.

IMPLEMENTATION TABLE

Evaluation Rubric

Use this rubric to evaluate the quality of the Bounded Context Autonomy Assessment output before integrating it into an architecture decision record or team review. Each criterion targets a specific failure mode common to autonomy assessments.

CriterionPass StandardFailure SignalTest Method

Data Ownership Completeness

Every data store in [CONTEXT_DESCRIPTION] is classified as Owned, Shared, or External with a rationale

Missing data stores or unclassified entries in the data ownership section

Diff the list of data stores in the output against the inventory in [CONTEXT_DESCRIPTION]; flag any store present in the input but absent in the output

Deployment Independence Accuracy

Deployment coupling claims are supported by evidence from [DEPLOYMENT_ARTIFACTS] or explicit note of missing evidence

Assertions about shared deployment pipelines or co-deployment without citing specific artifact evidence

For each deployment coupling claim, check if a source reference from [DEPLOYMENT_ARTIFACTS] is present; flag unsupported claims

Team Alignment Mapping

Each team in [TEAM_STRUCTURE] is mapped to exactly one ownership category with no overlaps or gaps

Teams assigned to multiple contexts simultaneously or teams missing from the mapping entirely

Cross-reference the team list in [TEAM_STRUCTURE] against the output mapping; count mismatches and unassigned teams

Runtime Coupling Detection

All synchronous runtime dependencies are identified with protocol, latency characteristics, and failure mode noted

Only database dependencies listed while HTTP, gRPC, or message-based coupling is omitted

Parse the output for a Runtime Coupling section; verify at least one entry per integration point described in [INTEGRATION_MAP]

Blocker Severity Classification

Each blocker is assigned a severity of Critical, High, or Medium with a concrete impact statement

Blockers listed without severity or with vague impact descriptions like 'might cause issues'

Scan the blockers array; confirm every entry has a non-null severity field matching the allowed enum and an impact field longer than 20 characters

Autonomy Score Calculation

The overall autonomy score is a number between 0 and 1 with a breakdown by dimension matching the rubric in [SCORING_RUBRIC]

Score exceeds 1.0, is negative, or dimension subscores do not sum consistently with the overall score

Validate the score object against [SCORING_RUBRIC] schema; check that overall_score is a float in [0.0, 1.0] and dimension scores are present for all required dimensions

Actionable Recommendation Quality

Each recommendation includes a specific action, owner role, and estimated effort level

Recommendations are generic advice like 'improve autonomy' without concrete steps or ownership

For each recommendation in the output, assert that action, owner, and effort fields are non-empty strings; flag any recommendation under 30 characters

Missing Evidence Flagging

Any assessment claim made without supporting evidence is explicitly marked with confidence level and evidence gap note

Confident assertions about autonomy without source grounding and no uncertainty language present

Search the output for claims containing definitive language like 'is fully autonomous' or 'has no coupling'; verify each such claim has an adjacent confidence field or evidence reference

ADAPTATION OPTIONS

Adapt This Prompt

How to adapt

Use the base prompt with a single context and lighter validation. Remove the scorecard schema requirement and ask for a narrative assessment first. Replace structured output with bullet-point findings to iterate faster.

Example modification:

code
Instead of: "Produce a JSON autonomy scorecard with 8 dimensions..."
Use: "List the top 3-5 autonomy blockers for [CONTEXT_NAME]. For each, note whether it's a data, deployment, team, or runtime concern."

Watch for

  • Missing schema checks means downstream consumers break when you add structure later
  • Overly broad instructions produce vague findings like 'reduce coupling' without specifics
  • Narrative-only output makes it hard to compare assessments across contexts
Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.