deck_orchestrator_executor_workflow Flashcards

(49 cards)

1
Q

AI Coding Agent

A

A tool where you describe what you want in plain English and an AI writes, runs, and debugs the code for you. Examples include Cursor, Claude Code, and GitHub Copilot.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Cursor

A

An AI-powered code editor based on VS Code. You type instructions in plain English and it writes code, runs CLI commands, and deploys resources directly in your project.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Claude Code

A

Anthropic’s command-line AI coding tool. You type instructions in your terminal and Claude writes and edits files directly. Supports a CLAUDE.md file for persistent project rules.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Orchestrator

A

The AI that plans, tracks progress, generates instructions, and maintains documentation. It is the brain of the workflow. In this system Claude plays the orchestrator role.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Executor

A

The AI that writes code, runs commands, and deploys resources. It is the hands of the workflow. It has no memory between sessions and relies entirely on instructions given to it each time. In this system Cursor plays the executor role.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Operator

A

The human in the middle who copies instructions from the orchestrator to the executor and pastes results back. Makes architectural decisions, reviews changes, and manages communication.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Orchestrator-Executor Pattern

A

A two-AI workflow where one AI plans and tracks (orchestrator) and another AI builds and deploys (executor). The human operator bridges them by copying instructions and results back and forth.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Round-Trip

A

One complete cycle of the workflow: orchestrator generates instructions, operator pastes them into executor, executor runs them, operator pastes results back, orchestrator updates the playbook. Every unit of work follows this loop.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Playbook

A

A living markdown document that serves as the single source of truth for a project. Contains environment details, task queue, deployed inventory, architecture notes, and lessons learned. Updated after every round-trip.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Playbook Template

A

A blank standardized structure that the orchestrator fills in when a new project starts. Ensures every project has the same sections and nothing gets missed. Like an SOP template you reuse across projects.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Environment Reference

A

Section of the playbook that lists every AWS resource ID, ARN, region, account ID, table name, and endpoint needed for the project. Critical because the executor has no memory and cannot look these up on its own.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Current Queue

A

Section of the playbook that lists tasks in priority order. When the operator says next step the orchestrator reads this section, finds the first incomplete item, and generates instructions for it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Queue Item

A

A single task in the current queue with a status, description, dependencies, and estimated round-trips. Statuses are Not Started, In Progress, or Complete.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Deployed Component Inventory

A

Section of the playbook tracking every resource that has been built, organized by project phase. Each component shows its type, status, and any relevant notes like resource IDs or error history.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Deployed Items by Path

A

Section of the playbook grouping all deployed resources by the feature or data path they belong to. Gives a quick visual of what exists for each logical piece of the system.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Architecture Notes

A

Section of the playbook describing how all components wire together. Often includes ASCII diagrams showing data flow, key design decisions, and integration points.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Cursor Instruction Set

A

A fully self-contained markdown document generated by the orchestrator and given to the executor. Contains everything the executor needs: overview, environment IDs, step-by-step commands, verification steps, and relevant lessons learned.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Self-Contained Instructions

A

Every instruction set must include ALL resource IDs, ARNs, account numbers, and context because the executor has zero memory between sessions. If it is not in the instructions the executor does not know it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Verification Step

A

A required step at the end of every instruction set where the executor confirms its own work. Examples include running a test invocation, checking a deployment status, or verifying a resource exists.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

Lessons Learned

A

A running list of mistakes and gotchas discovered during projects. Each entry documents what went wrong and the rule to prevent it next time. The most important concept in this workflow because it creates compounding improvement.

21
Q

Lessons Learned Master Document

A

A file that accumulates lessons from ALL past projects. Split into two parts: Part 1 for architecture and design lessons (orchestrator only) and Part 2 for deployment lessons (sent to executor). Grows with every project.

22
Q

Part 1: Architecture and Design Lessons

A

Strategic and design-level findings that inform the orchestrator’s planning decisions. Examples include latency comparisons between Bedrock patterns or voice vs chat attribute differences. Never sent to the executor.

23
Q

Part 2: Cursor Deployment Lessons

A

Tactical deployment gotchas that prevent the executor from repeating known mistakes. Examples include Git Bash path issues, Lambda environment variable replacement behavior, or CloudFront cache invalidation requirements. Sent to executor in first instruction set.

24
Q

First Instruction Set Rule

A

The very first instruction set sent to the executor in any new session must include the FULL Part 2 deployment lessons from the master document. This ensures the executor starts every project fully informed of all known gotchas.

25
Subsequent Instruction Sets
After the first instruction set, only lessons relevant to the current task are included. No need to repeat the full list every time.
26
Compounding Improvement Loop
The core concept that makes this workflow powerful. Every mistake is documented as a lesson learned, fed back into future instructions, and never repeated. Over many projects the AI makes fewer and fewer errors.
27
Commit and Push Step
A required step at the end of every successful round-trip where the executor commits code to Git with a standardized message format: ProjectName followed by a brief task description.
28
Rollback Instructions
For risky changes, the instruction set includes steps to undo the change if something goes wrong. Part of the risk-averse implementation principle.
29
Stakeholder Documentation
Polished Word or Excel documents generated by the orchestrator for bosses or clients. Professional tone, focused on outcomes not implementation details. Separate from the technical playbook.
30
Technical Documentation
Markdown documents like the playbook, cursor instructions, and architecture notes. Casual and direct tone meant for the engineering team.
31
Session
A single chat conversation with the orchestrator. Each new chat is a new session. The playbook carries state across sessions by being pasted in at the start.
32
Context Window
The amount of text an AI can see and process at once. The playbook must fit within this window. This is why it must stay organized and concise rather than growing endlessly.
33
No Memory Between Sessions
A critical constraint of AI coding agents. The executor forgets everything after each session ends. The playbook and self-contained instructions solve this problem by providing all necessary context fresh each time.
34
CLAUDE.md
A special file in Claude Code projects that acts as a persistent rules and lessons learned file. Claude reads it automatically at the start of every session. The Claude Code equivalent of pasting a playbook.
35
Prompt Engineering (Agent Context)
The practice of writing structured instructions that tell an AI agent how to behave, what rules to follow, and what patterns to use. In this workflow the playbook and instruction format are the prompt.
36
System Prompt vs User Prompt
System prompt sets the AI's role and rules for the entire session. User prompt is the specific task or question. The playbook acts as a system prompt and each next step request is a user prompt.
37
Naming Convention
A standardized pattern for naming resources. In this workflow it is typically project-environment-component. Example: demo-profile-manager-dev-get-profiles. Keeps resources organized and identifiable.
38
Phased Deployment
Breaking a project into sequential phases where each phase builds on the last. Example: Phase 1 is infrastructure and backend, Phase 2 is frontend, Phase 3 is integration. Reduces risk and keeps work manageable.
39
Copy-Paste Ready
A requirement that every command in a Cursor instruction set can be copied and pasted directly into a terminal or editor without modification. No fill-in-the-blank placeholders unless absolutely unavoidable.
40
Risk-Averse Implementation
A core principle of the workflow: backup before changes, include rollback instructions, deploy one step at a time, and verify after each step. Mistakes in production are expensive.
41
Deferred Items
Tasks intentionally pushed to later in the project. Documented in the playbook with what is blocking them and what needs to be built so an engineer can pick them up when ready.
42
Still Needed Section
Section of the playbook tracking blockers and missing information from the client or team. Keeps everyone aware of what is holding up progress.
43
API and Integration Inventory
Section of the playbook documenting every external API the project integrates with, its format, whether sample data is available, and its current status like mocked, live, or blocked.
44
VUI and Requirements Document Inventory
Section of the playbook tracking source documents like voice user interface specs, requirements docs, and architecture diagrams with their version and analysis status.
45
Structured Response from Executor
When the executor finishes a task it reports back with a standardized format: status, summary of what was done, any lessons learned, resource IDs created, and errors encountered. Makes it easy for the orchestrator to parse and update the playbook.
46
Documentation as First-Class Deliverable
A core principle that documentation is not an afterthought. The playbook is maintained in real time, stakeholder docs are generated at milestones, and every deployed resource is tracked.
47
Orchestrator Internal Use Only
Some information is only for the orchestrator's planning and decision-making. Part 1 architecture lessons fall into this category. The executor never sees them because they are strategic not tactical.
48
Adapting the Workflow Without CLI
If you do not have direct CLI access you replace the executor step with however you normally deploy. The orchestrator still generates the code and config, you just deploy through console, pipeline, or DevOps handoff instead of CLI commands.
49
Three Layers of the Workflow
Layer 1 is planning and orchestration which needs no CLI. Layer 2 is code and config generation which needs no CLI. Layer 3 is execution which needs CLI or an equivalent deployment method. Only Layer 3 changes based on your access.