# Playable — the complete course Original teaching scenarios. Edition: 1 December 2026. # Give your agents a job Lesson 1 · Frame Learn when a fixed workflow is enough and when bounded agent judgment earns its place. ## Outcomes - Distinguish a predictable workflow from a model-directed agent. - Write a bounded agent job with inputs, permissions, and a stop condition. - Define observable evidence for one AI-assisted development task. Prerequisites: Curiosity about game development; no engine or AI API experience required. Deliverable: A one-page job card for a Signal Garden design-review agent. ## Start with the job, not the technology An **AI workflow** follows a path you designed: receive input, run known steps, validate, stop. An **agent** is allowed to choose at least one meaningful next action while pursuing a goal. That freedom can help when the route is hard to specify, but it also creates more ways to wander, overspend, or change the wrong thing. The useful question is not “Can an agent do this?” It is “Where does judgment improve the result enough to justify uncertainty?” A formatter, file copier, or schema checker should remain ordinary code. Reviewing a design, choosing which test to run next, or locating a likely integration fault may benefit from bounded model judgment. [Anthropic's agent guidance](https://www.anthropic.com/research/building-effective-agents) similarly recommends starting with the simplest workable pattern and adding autonomy only when it pays for itself. ## The Signal Garden job Signal Garden is our running project: a short top-down exploration game. The player finds power cells, repairs three relay towers, then returns to the beacon. The base game must work offline. Imagine asking an assistant to “help design the game.” That is not a job; it has no boundary or finish line. Give it a smaller role: | Job field | Signal Garden value | | --- | --- | | Goal | Find the riskiest ambiguity in the current player loop | | Inputs | One-page brief, map sketch, five-minute target duration | | May do | Ask questions, compare routes, propose a paper test | | May not do | Add mechanics, edit files, choose the final design | | Output | One risk, evidence, and one cheap test | | Stop | After one recommendation or when required context is missing | The human owns scope. The agent can inspect and recommend, but it cannot quietly turn a small exploration game into a crafting RPG. ## Build a visible loop A trustworthy job produces evidence at every turn: 1. **Observe:** read only the supplied brief and constraints. 2. **Decide:** select one risk worth testing. 3. **Act:** write a test proposal, not production code. 4. **Check:** verify that the proposal respects the five-minute loop and offline requirement. 5. **Stop or escalate:** return the result, or name the missing decision. This loop matters more than an impressive prompt. If a run fails, you should be able to see whether the input was incomplete, the decision was weak, or the output violated a boundary. Later lessons will automate parts of this loop; for now, keep it readable. ## Failure modes and tradeoffs The first failure is **scope drift**: the agent optimizes for an exciting answer instead of your game. The second is **false delegation**: a human decision, such as the intended audience or emotional tone, is disguised as an agent task. The third is **invisible success**: the output sounds sensible but has no testable consequence. Autonomy also has a carrying cost. More tool access requires more authorization checks. More steps require retry and cost ceilings. More memory requires rules for what becomes authoritative. If a two-step workflow solves the task, using an agent is not more advanced; it is merely harder to inspect. ## Build task: write the job card Create `design-review-job.md`. Include the six fields from the table, then add two examples: one acceptable action and one action that must escalate to you. Run the job twice using the same brief. Do not ask whether the prose is good. Compare whether both runs identify a risk grounded in the supplied design. Use this prompt with any AI collaborator: ```text You are the design-review agent for Signal Garden, a five-minute top-down game. Read only the brief I provide. Identify one ambiguity that could prevent the loop “find cells → repair three towers → return to beacon” from being understandable. You may propose one paper test. Do not add mechanics or edit the design. Return: RISK, EVIDENCE FROM BRIEF, TEST, and NEEDS-HUMAN-DECISION. Stop after one result. If evidence is missing, say what is missing instead of guessing. ``` ## Completion evidence You are done when the job card names inputs, permissions, prohibitions, output shape, and a stop condition; both trial runs remain inside those boundaries; and a reader can tell why the selected task needs judgment. Keep the two outputs, including a weak one. Evaluation starts with cases, trials, and explicit graders rather than a single pleasing response, a distinction developed in [Anthropic's evaluation guide](https://www.anthropic.com/research/demystifying-evals-for-ai-agents). ## Knowledge check Which task most clearly benefits from an agent rather than a fixed workflow? 1. Rename every file using a known mapping. 2. Inspect a small design brief, identify its riskiest ambiguity, and propose one test. 3. Copy validated JSON into a known folder. Answer: 2. The review needs bounded judgment; the other tasks have fully specified steps and are safer as ordinary code. ## Further reading - [Building effective agents](https://www.anthropic.com/research/building-effective-agents) — Anthropic - [Demystifying evals for AI agents](https://www.anthropic.com/research/demystifying-evals-for-ai-agents) — Anthropic Sources checked 1 December 2026. Signal Garden is an original teaching scenario. --- # Design a game you can finish Lesson 2 · Frame Turn a promising idea into a small, testable player loop with explicit cuts. ## Outcomes - Express a game as a repeatable player-action-and-feedback loop. - Separate essential mechanics from extensions and deliberate cuts. - Define a complete offline run for Signal Garden. Prerequisites: Lesson 1 and its bounded-job card. Deliverable: A one-page playable-scope brief with a core loop, state table, and cut list. ## Design the experience as a loop A finishable game is not a pile of features. It is a sequence the player can understand, influence, and complete. Write that sequence in verbs before choosing tools: **Explore → notice a power cell → collect it → choose a relay route → repair a tower → read the changed world → return to the beacon.** Every verb needs a visible response. Collecting changes the inventory. Repairing changes the tower, sound, map signal, and count. Returning after all three repairs ends the run. If a feature does not strengthen one of those transitions, it is outside the smallest version. AI can help challenge a scope, but it should not choose what the game means. Keep human decisions—audience, mood, duration, and acceptable complexity—at the top of the brief. ## Draw three scope rings Use three rings to prevent “small” from becoming elastic: - **Core:** one compact map, three towers, three or more cells, movement, collection, repair, beacon return, win state. - **Polish:** readable landmarks, sound cues, remappable controls, a restart, and a short hint when the player stalls. - **Extension:** optional runtime dialogue reacting to repaired towers, with a non-network fallback. Everything else goes on a **not now** list: combat, crafting, procedural quests, accounts, multiplayer, a live economy, and endless maps. A cut list is not a record of failure. It protects the designed experience from attractive detours. ## Make state explicit The loop becomes buildable when its state fits in a small table: | State | Starts as | Changes when | Player sees | | --- | --- | --- | --- | | carriedCells | 0 | cell collected or spent | inventory count | | repairedTowers | empty set | valid repair succeeds | lit tower and map pulse | | beaconReady | false | all three towers repaired | beacon beam activates | | runComplete | false | player enters ready beacon | completion screen | This is the offline base game. No model call is required for movement, repair rules, or victory. Runtime AI is an optional surface, never a dependency for finishing. That boundary makes playtests repeatable and keeps network failure from becoming game failure. ## Design for more players early Accessibility is part of scope, not a final coat of paint. Signal Garden should not communicate tower status through color alone; use shape, animation, text, and sound. Text must remain readable against the world. Essential audio needs a visual equivalent. Controls should be discoverable and, where the engine allows, remappable. The [Game Accessibility Guidelines](https://gameaccessibilityguidelines.com/basic/) provide a practical starting checklist, but player observation remains the real test. These choices affect assets and state, so postponing them creates rework. “Add captions later” is not a plan if the game never represented the event that needs captioning. ## Failure modes and tradeoffs **Feature fog** occurs when nouns replace experience: “AI NPCs, procedural generation, adaptive narrative.” None says what the player does. **Vertical-slice inflation** occurs when every system gets a shallow prototype but no complete run exists. **AI dependency creep** occurs when a generated response becomes necessary to understand or finish the game. The tradeoff is deliberate narrowness. Three towers may sound modest, yet a compact loop gives you room to improve pacing, feedback, accessibility, and reliability. A broad unfinished prototype cannot supply trustworthy evidence about any of those. ## Build task: the one-page brief Write the loop, scope rings, state table, and not-now list on one page. Add a target: a new player should complete a run in five to eight minutes without external instructions. Ask an AI collaborator to challenge the brief, not enlarge it: ```text Review this Signal Garden scope as a production skeptic. The offline core is: explore, collect power cells, repair three relays, return to the beacon, finish in 5–8 minutes. Find exactly three scope risks. For each, cite the line that creates the risk and propose a smaller replacement. Do not add features. Protect readable feedback, accessibility, and a complete offline win state. ``` ## Completion evidence The brief is complete when every core feature supports a loop verb, every state change has player feedback, the offline game has a start and end, and at least five tempting additions are explicitly cut. Hand the page to another person. If they can describe what the player does in one sentence and identify the win condition, the scope is legible. If they describe the technology instead, revise it. The principle also applies to your AI architecture: [effective-agent guidance](https://www.anthropic.com/research/building-effective-agents) favors adding complexity only when the simpler design stops meeting the need. ## Knowledge check Which requirement belongs in Signal Garden's smallest complete version? 1. Endless generated dialogue for every relay. 2. A visible response when a tower accepts a power cell. 3. Several biomes with unique crafting materials. Answer: 2. Feedback that closes the repair action is essential to the core loop; the other options expand scope. ## Further reading - [Building effective agents](https://www.anthropic.com/research/building-effective-agents) — Anthropic - [Basic game accessibility guidelines](https://gameaccessibilityguidelines.com/basic/) — Game Accessibility Guidelines Sources checked 1 December 2026. Signal Garden is an original teaching scenario. --- # Break the idea before the build Lesson 3 · Frame Convert design assumptions into cheap tests before they become expensive systems. ## Outcomes - Turn a design claim into an observable pass or fail condition. - Create representative and heldout fixtures for AI-assisted reviews. - Use failed tests to revise scope without inventing new features. Prerequisites: Lesson 2 and its one-page playable-scope brief. Deliverable: A design test pack containing six fixtures, two heldout cases, and a decision log. ## Find the claims hiding in the brief Design documents contain assumptions written as facts: “the beacon guides the player,” “three towers create route choice,” “the inventory is obvious.” Before building, rewrite each as a claim that could be wrong. For Signal Garden: - A player can identify the beacon as home without a paragraph of text. - A collected cell is clearly different from scenery. - After one repair, the player understands that two remain. - A player who takes the long route receives something meaningful: safety, information, or a better view. - Tower state remains readable without relying on color alone. These claims are more useful than “make navigation intuitive” because they suggest observable tests. ## Create fixtures, not vibes A **fixture** is a fixed test situation with an expected property. It might be a paper map, a screenshot sketch, a state object, or a short transcript. The fixture does not need a finished game. | Fixture | Question | Pass evidence | | --- | --- | --- | | Map A, no labels | Where would you go first? | 4 of 5 testers point toward a useful landmark | | Tower at 0/3 | Is it active? | tester names “broken” or equivalent | | Tower after repair | What changed? | tester notices state and remaining goal | | Cell beside yellow flowers | Which object is collectible? | cell identified without color-only reasoning | Use exact observations, not an AI-generated score such as “clarity: 8/10.” A model can classify notes or suggest counterexamples, but a human owns the design judgment. ## Separate tuning cases from heldout cases Keep four visible fixtures while revising the design, then reserve two **heldout** cases. For example, tune navigation on two map sketches but test the same landmark rules on a third layout the collaborator has not seen. Tune tower feedback in daylight, then hold out a low-contrast dusk scene. This protects against solving only the examples in front of you. Agent behavior can vary between runs, so record the input, output, and judgment for each trial. [Anthropic's evaluation overview](https://www.anthropic.com/research/demystifying-evals-for-ai-agents) distinguishes tasks, repeated trials, and graders; that vocabulary is useful even when your “system” is still a paper design. ## Run a red-team walkthrough Now try to break the loop on purpose. Start the imagined player facing away from the beacon. Spend a cell at the wrong tower. Approach a repaired tower with another cell. Collect all cells before repairing anything. Return home early. Ignore the shortest route. For every case, decide among three responses: 1. The game already handles it and communicates the result. 2. The game needs a clearer rule or feedback state. 3. The action reveals a scope problem, so the design must shrink. Do not solve uncertainty by adding a tutorial character, quest log, and minimap at once. Prefer the smallest signal that makes the existing rule readable. ## Failure modes and tradeoffs The common failure is **testing taste instead of behavior**: asking whether someone likes a sketch rather than what they think happened. Another is **leaking the answer** by explaining the controls before observing. AI-assisted evaluation adds **grader agreement risk**: a model may produce confident but inconsistent judgments. Keep deterministic checks—state counts, required fields, reachable routes—separate from interpretive review. Accessibility tests also need representative cases. A color-blind-safe palette is not enough if icons are tiny or status text disappears quickly. The [basic accessibility guidance](https://gameaccessibilityguidelines.com/basic/) is a prompt for what to inspect, not proof that a design works for every player. ## Build task: the design test pack Create six fixtures. For each, record the setup, one question, expected evidence, and what change follows a failure. Mark two as held out. Then use this collaborator prompt on the four visible cases: ```text Act as an adversarial design tester for Signal Garden. Given the scope brief and these four fixtures, find one way a new player could misread each situation. Separate deterministic failures from judgment calls. Do not propose new systems. Suggest the smallest feedback or rule change that preserves the loop. End with one new test case, but do not judge the heldout cases. ``` ## Completion evidence You are done when all six fixtures have observable pass evidence, two remained unseen during tuning, and every failed trial produced a recorded keep/change/cut decision. Run the heldout cases once. A failure is useful: it shows where your rule did not generalize. Update the brief only after writing the evidence, so the decision log explains why the game changed. ## Knowledge check Why keep some design-test cases held out? 1. To make the final score look lower. 2. To check whether revisions generalize beyond the examples used while tuning. 3. To prevent humans from reviewing the game. Answer: 2. Heldout cases reveal whether a change solved the underlying problem or merely fit the visible examples. ## Further reading - [Demystifying evals for AI agents](https://www.anthropic.com/research/demystifying-evals-for-ai-agents) — Anthropic - [Basic game accessibility guidelines](https://gameaccessibilityguidelines.com/basic/) — Game Accessibility Guidelines Sources checked 1 December 2026. Signal Garden is an original teaching scenario. --- # Build the agent workbench Lesson 4 · Build Create a small harness that makes AI-assisted work inspectable, repeatable, and safe to resume. ## Outcomes - Assemble a bounded observe-decide-act-check loop. - Explain the difference between task skills and MCP-connected capabilities. - Resume work from a durable checkpoint without relying on chat history. Prerequisites: Lessons 1–3 and a tested Signal Garden scope. Deliverable: A local workbench specification with a run log, task contract, and checkpoint format. ## A harness is the workbench around the model The model is only one component. A useful **harness** supplies the task, selected context, permitted tools, validation, logs, budgets, and a place to stop. Without that workbench, an agent can produce plausible activity while leaving the project in an unknown state. For Signal Garden, the first harness will not build the game. It will take one bounded task—such as “draft the relay data schema”—and produce a proposed file plus validation evidence. The human reviews before anything becomes canonical. ## Design the run contract Every run starts with a small contract: ```text task_id: relay-schema-v1 goal: Propose typed data for three repairable relay towers inputs: scope.md, state-table.md allowed: read inputs, draft output, run schema checks forbidden: edit gameplay code, add mechanics, access network done_when: schema validates and every field supports a core-loop state ceilings: 3 attempts, 12 minutes, one output file ``` The harness then follows a visible loop: load the contract, collect only named context, request an action, validate it, log the result, and either stop or retry within the ceiling. A retry is not permission to change the goal. ## Skills are not tool connections A **skill** is reusable task guidance: instructions, examples, perhaps a script or reference file. A “validate game data” skill can teach an agent how your project checks JSON. The [Agent Skills specification](https://agentskills.io/home) describes a portable folder convention that can be loaded when relevant. **MCP** is a protocol through which a client can expose tools and context from servers. An MCP server might offer a file reader, issue tracker, or engine operation. The [MCP architecture overview](https://modelcontextprotocol.io/docs/learn/architecture) explains the client/server roles. MCP does not decide when a tool should be used, and a connection is not authorization. Your harness still controls which capability is visible and which action requires human approval. Start without either if plain files and a local validator are enough. Add a skill when task procedure repeats. Add a tool connection when the task genuinely needs an external capability. ## Checkpoint the project, not the conversation Long work outlives context. At the end of each run, write a checkpoint: - verified artifacts and their versions; - decisions made, with reasons; - failed attempts worth avoiding; - unresolved risks; - exactly one next bounded task; - commands or checks that proved the current state. The next run begins by reading this artifact and rechecking cheap facts. [Research on long-running agent harnesses](https://www.anthropic.com/research/effective-harnesses-for-long-running-agents) emphasizes durable progress records and bounded tasks; context compression alone cannot tell you whether the game still runs. ## Failure modes and tradeoffs **Tool soup** exposes every capability “just in case,” increasing accidental action and confusing tool choice. **Prompt archaeology** treats old chat as project state. **Completion by assertion** allows “done” without a validator result. **Checkpoint theatre** records a long narrative but omits the exact artifact and next step. The tradeoff is ceremony. A contract and checkpoint feel slower than a free-form request. They repay that cost as soon as a run fails, a collaborator joins, or the task resumes after a week. ## Build task: specify the workbench Create three Markdown templates: `task-contract.md`, `run-log.md`, and `checkpoint.md`. Simulate one relay-schema run. The log should record each attempt, validation result, and stop reason. You do not need an API; a human can play the harness and paste requests into any collaborator. ```text You are operating inside a bounded development harness. Read TASK CONTRACT and SELECTED CONTEXT. Propose only the next allowed artifact. Before answering, check every done_when condition you can check from the inputs. Return: PROPOSED ARTIFACT, VALIDATION TO RUN, ASSUMPTIONS, and STOP REASON. Do not claim a check passed unless its result is present. Do not choose a new task. ``` ## Completion evidence The workbench is ready when a second person can run the simulated task from the contract, identify every tool it may use, see why it stopped, and resume from the checkpoint without reading the original chat. The run must end after the stated ceiling even if validation still fails. Safe incompletion is a successful harness behavior. ## Knowledge check What should be authoritative when an agent resumes tomorrow? 1. Its memory of the previous conversation. 2. A durable checkpoint recording verified state, decisions, and the next bounded task. 3. The longest prompt you can fit in the context window. Answer: 2. Durable project artifacts can be inspected and corrected; conversational memory is incomplete and hard to audit. ## Further reading - [Architecture overview](https://modelcontextprotocol.io/docs/learn/architecture) — Model Context Protocol - [Agent Skills overview](https://agentskills.io/home) — Agent Skills - [Effective harnesses for long-running agents](https://www.anthropic.com/research/effective-harnesses-for-long-running-agents) — Anthropic Sources checked 1 December 2026. Signal Garden is an original teaching scenario. --- # Give your game a memory Lesson 5 · Build Curate project context and retrieval so collaborators receive the right facts at the right moment. ## Outcomes - Separate canonical game facts from temporary working context. - Retrieve a small context packet for a specific development task. - Record a context checkpoint that survives a fresh session. Prerequisites: Lesson 4 and its workbench templates. Deliverable: A context map and two task-specific context packets for Signal Garden. ## Memory is a designed system An AI collaborator does not “know the project” in the human sense. It receives a temporary context assembled for the current run. Treating that window as a filing cabinet leads to bloated prompts, conflicting instructions, and stale facts. Context engineering asks four questions: What is authoritative? What is relevant now? What can be retrieved later? What must be written back after the run? [Anthropic's context engineering guide](https://www.anthropic.com/research/effective-context-engineering-for-ai-agents) frames context as a limited resource to curate, not a space to fill. ## Build a context map Give Signal Garden four layers: | Layer | Examples | Authority | | --- | --- | --- | | Product | core loop, offline rule, accessibility commitments | scope brief | | World | relay names, region vocabulary, visual motifs | world guide | | Implementation | schemas, file paths, engine constraints | code and contracts | | Run | current task, recent errors, candidate draft | task contract and log | Product and implementation facts outrank an improvised suggestion. A generated draft is never canonical merely because it is recent. Record where each kind of truth lives so retrieval can return the source, not a paraphrase of a paraphrase. Give every canonical document an owner and review date. Retrieval quality cannot compensate for a source nobody maintains. ## Retrieve for the task Suppose the task is “write repair feedback for Relay Moss.” A useful packet includes the repair-state fields, the tone rule (“hopeful field notes, no fantasy prophecy”), accessibility requirements, and the required JSON shape. It does not need map-generation code, export instructions, or every earlier conversation. Retrieval can be manual: a short index that points to exact headings. Search can be keyword-based. Embeddings may help when a collection becomes large, but they introduce ranking and staleness problems. Start with transparent selection. Log which sources and versions entered each run. ## Write back a context checkpoint After a run, persist only durable changes: ```text verified: relay feedback schema v2 passes local validator decision: repaired towers use text + shape + sound, never color alone rejected: unique schema per tower; unnecessary variation open: final sound cue awaits playtest next: create three fixture records using schema v2 ``` Do not save chain-of-thought or every draft. Save decisions, evidence, and unresolved work. The [long-running harness guidance](https://www.anthropic.com/research/effective-harnesses-for-long-running-agents) supports durable progress artifacts because a summarized conversation is not a substitute for verified state. ## Failure modes and tradeoffs **Context stuffing** gives the collaborator too much irrelevant material. **Authority collapse** treats a brainstorm, an approved rule, and executable code as equal. **Stale retrieval** returns an old schema after migration. **Lossy write-back** records “finished relay content” without the file, version, or validation. Smaller context can omit an important dependency; larger context can bury it. The answer is not a magic token count. Use task-specific packets, source labels, and checks that expose missing facts. When the collaborator cannot find an authoritative answer, “unknown” is better than invented continuity. ## Build task: two packets Create a context index with the four layers above. Then assemble one packet for writing relay feedback and another for reviewing map reachability. Each packet should fit on one screen, link or name its authoritative sources, and omit at least three irrelevant project areas. ```text Build a context packet for the task below using only the provided context index. Select the minimum authoritative excerpts needed to act safely. For each excerpt, state why it is needed and its source version. List important unknowns separately. Do not solve the task and do not fill gaps. TASK: [paste one bounded Signal Garden task] ``` ## Completion evidence Give each packet to a fresh collaborator with no chat history. It should be able to restate the constraints and identify missing information without contradicting the canonical scope. Change one source version, then verify that your index exposes which packet is stale. You are done when memory is inspectable and replaceable, not when a prompt feels comprehensive. ## Knowledge check What is the best context packet for drafting relay repair feedback? 1. Every project file and the entire conversation history. 2. The relevant state fields, feedback rules, tone note, and output contract. 3. Only a request to make the result exciting. Answer: 2. Focused authoritative context reduces distraction while supplying the facts required by the task. ## Further reading - [Effective context engineering for AI agents](https://www.anthropic.com/research/effective-context-engineering-for-ai-agents) — Anthropic - [Effective harnesses for long-running agents](https://www.anthropic.com/research/effective-harnesses-for-long-running-agents) — Anthropic Sources checked 1 December 2026. Signal Garden is an original teaching scenario. --- # Turn data into gameplay Lesson 6 · Build Move generated content through typed validation and semantic checks before the game can load it. ## Outcomes - Define a stable data contract between generation and gameplay. - Separate schema validity from game-rule validity. - Prove that validated relay data changes a playable scene. Prerequisites: Lesson 5 and its task-specific context packets. Deliverable: A versioned relay-data contract, fixture set, and in-game integration proof. ## Generated text is not game data A game needs predictable values, not a persuasive paragraph. Put a contract between any AI-assisted generator and the engine. The generator proposes data; a validator accepts or rejects it; only accepted data enters the playable build. Schema-constrained generation can improve output shape, but shape is not truth. The [Structured Outputs guide](https://developers.openai.com/api/docs/guides/structured-outputs) notes that applications still need to handle refusals and incomplete or semantically wrong responses. Your integration must assume that valid-looking data can still be unplayable. ## Define the relay contract Pseudocode for a small, engine-neutral record: ```text RelayRecord v1 { id: one of [moss, ridge, floodplain] displayName: non-empty string, max 32 characters requiredCells: integer from 1 to 2 position: { x: number, y: number } feedbackKey: known localization key repaired: false at new-game load } ``` Keep authored state separate from save state. The content file can say what a relay costs and where it starts. The save file records whether this particular run repaired it. If generation overwrites progress, the contract mixed two kinds of truth. Include a contract version in every file so migrations fail visibly instead of loading old data by accident. ## Validate shape, then meaning Use layers: 1. **Parse:** is the file valid JSON or the chosen format? 2. **Schema:** are fields present and correctly typed? 3. **Semantic rules:** are IDs unique, positions inside the map, costs achievable, and feedback keys known? 4. **Integration:** does the engine instantiate the relay and update the actual win state? A record can pass the first two and still place a tower inside water. A set can pass each record individually and still demand more cells than exist. Semantic checks should inspect the collection and the game rules. ## Signal Garden integration Create three fixture files: one valid, one structurally invalid, and one structurally valid but impossible. Load only the valid fixture into a test scene. Collect a cell, repair Moss, and confirm four effects: the cell count falls, the repaired set gains `moss`, the visual changes, and the objective count becomes 1/3. Persist only explicit state. Engine documentation on [saving games](https://docs.godotengine.org/en/stable/tutorials/io/saving_games.html) illustrates why runtime objects usually need a deliberate serializable representation. The principle applies across engines: save stable identifiers and values, not opaque scene objects. ## Failure modes and tradeoffs **Schema worship** assumes typed output is correct output. **Silent coercion** converts the string two or a null value into a default and hides a generation fault. **Manual glue** requires a developer to rewrite every accepted file before the game can read it. **Live generation at load** makes the base game depend on latency and network access. Strict rejection can slow experimentation, while permissive repair can conceal defects. During development, report exact errors and allow a deliberate regeneration step. In a shipped offline build, package prevalidated data and use known fallbacks. Never let a runtime model invent a rule that determines whether the player can finish. ## Build task: prove the full path Write the contract and the three fixtures. Implement or simulate the four validation layers. Then capture evidence from the game or a minimal test harness showing that the accepted record changes gameplay state. ```text Generate three Signal Garden relay records that follow RELAY CONTRACT v1. Return data only in the requested structure. Do not invent fields. Before returning, check: unique IDs, each requiredCells is 1 or 2, all feedbackKey values come from the supplied list, and total required cells does not exceed the supplied world inventory. If constraints conflict, stop and report the conflict instead of producing records. ``` ## Completion evidence The structural fixture must fail at the schema layer. The impossible fixture must pass schema and fail semantics. The valid fixture must load without manual editing and drive a complete repair interaction. Record the contract version beside the fixture results. You are not done when a file exists; you are done when validated data causes the intended, observable state transition. ## Knowledge check A relay record matches the schema but requires four cells when the game contains only three. What failed? 1. Syntax parsing. 2. Semantic validation. 3. File naming only. Answer: 2. The shape is valid, but the values violate the playable game's resource rules. ## Further reading - [Structured model outputs](https://developers.openai.com/api/docs/guides/structured-outputs) — OpenAI - [Saving games](https://docs.godotengine.org/en/stable/tutorials/io/saving_games.html) — Godot documentation Sources checked 1 December 2026. Signal Garden is an original teaching scenario. --- # Let agents take the next step Lesson 7 · Build Delegate the next development action without surrendering scope, permissions, or review. ## Outcomes - Rank candidate tasks using explicit project value and risk. - Grant an agent narrow write permissions with retry ceilings. - Require human approval at irreversible or scope-changing boundaries. Prerequisites: Lesson 6 and a validated data-to-gameplay path. Deliverable: A next-task selector and reviewed agent run that completes one bounded Signal Garden task. ## Autonomy means choosing within a fence So far, each task was chosen by a person. A bounded agent can now inspect a short list of known work and select the next action. It does not choose the product direction. It chooses among approved tasks using rules you can inspect. This is the difference between “build whatever the game needs” and “from these four tasks, complete the highest-value unblocked one.” The second has a finite search space, permissions, and a stop condition. ## Score work without pretending the score is truth Create candidate tasks from the scope and failed checks: | Task | Player value | Unblocks | Risk | Effort | | --- | ---: | ---: | ---: | ---: | | show repaired count | 3 | 3 | 1 | 1 | | add tower particle variation | 1 | 0 | 1 | 2 | | reject duplicate relay IDs | 2 | 2 | 1 | 1 | | add crafting | 0 | 0 | 5 | 5 | Pseudocode: ```text score = playerValue + unblocks - risk - effort eligible = approvedScope AND dependenciesReady AND hasAcceptanceCheck ``` The score explains a preference; it does not replace judgment. “Add crafting” is ineligible before scoring because it violates scope. Ties should escalate or use a simple fixed rule, not invite an invented rationale. ## Grant the smallest useful permission For the selected repaired-count task, permit reads to the state contract and UI module, writes to one UI file, and execution of the existing check. Deny dependency changes, asset downloads, unrelated refactors, and network calls. Require a diff before applying any additional file change. The harness should allow two targeted repair attempts. After that, stop with the error and changed files. [Guidance for effective agents](https://www.anthropic.com/research/building-effective-agents) emphasizes matching complexity to the task; autonomy is useful here because selection and repair require judgment, while validation remains deterministic. ## Use human gates deliberately Require approval when the next action would: - change the core loop or accessibility commitment; - delete or overwrite authored work; - contact an external service or spend money; - introduce a package or license; - publish, deploy, or message someone; - weaken a test to make a failure disappear. Do not require approval for every read or locally reversible draft, or the human becomes a ceremonial clicker. The gate belongs at a meaningful decision boundary. ## Failure modes and tradeoffs **Goal laundering** lets the agent convert an ineligible idea into a harmless-sounding task. **Score gaming** inflates easy polish because it produces visible diffs. **Retry spirals** keep changing code after the original hypothesis failed. **Broad write access** turns a small task into incidental refactoring. Boundaries may make the agent slower or cause it to stop often. That is evidence that the task contract or project structure needs improvement. Do not “fix” friction by removing the audit trail. ## Build task: complete one next action List four approved tasks, dependencies, evidence checks, and scores. Let the collaborator select one and propose a change. Review the selection before granting write permission. Record the final diff, validator result, retries, and stop reason in the checkpoint. ```text You are the bounded next-task agent for Signal Garden. Choose only from the supplied candidate tasks. First exclude anything outside scope, blocked, or missing an acceptance check. Score the rest using the supplied rubric and select one. State the files you need and why. Do not edit until approved. After approval, change only those files, run the named check, and stop after two failed repair attempts. Never weaken a check or add a mechanic. ``` ## Completion evidence The run succeeds when the chosen task was eligible before scoring, the change stayed inside approved files, its acceptance check passed, and the checkpoint lists exactly what changed. A safe stop also counts as correct behavior if permissions, context, or retries were exhausted. [Long-running harness research](https://www.anthropic.com/research/effective-harnesses-for-long-running-agents) reinforces that bounded tasks and durable handoffs matter more than uninterrupted activity. ## Knowledge check When should the agent stop and ask for a human decision? 1. When a validator reports a fixable formatting error on attempt one. 2. When the highest-ranked task would add a mechanic outside the approved scope. 3. Whenever it needs to read an approved project file. Answer: 2. Scope changes belong to the human; a bounded formatting retry can remain inside the existing contract. ## Further reading - [Building effective agents](https://www.anthropic.com/research/building-effective-agents) — Anthropic - [Effective harnesses for long-running agents](https://www.anthropic.com/research/effective-harnesses-for-long-running-agents) — Anthropic Sources checked 1 December 2026. Signal Garden is an original teaching scenario. --- # Generate worlds that work Lesson 8 · Build Use seeded generation and deterministic checks to create varied maps that remain completable. ## Outcomes - Generate a repeatable map from a recorded seed and version. - Check reachability and resource sufficiency without an LLM judge. - Refine or reject a world within a fixed attempt ceiling. Prerequisites: Lesson 7 and a bounded task harness. Deliverable: Three reproducible Signal Garden maps with automated playability reports. ## Variety is not the goal Procedural generation is valuable when it produces useful variation inside authored rules. Signal Garden needs a compact place to navigate, not an infinite landscape. A generated world succeeds only when the player can collect enough cells, reach all three relays, and return to the beacon. Use a **generate → evaluate → refine or reject** loop. Code should handle rules that code can prove. An AI collaborator can suggest layout motifs or diagnose a rejected report, but it should not be the final judge of reachability. ## Make every world reproducible Record a seed, generator version, input parameters, and output hash: ```text seed: 18427 generatorVersion: 3 width: 24 height: 18 relayCount: 3 cellCount: 5 ``` A fixed seed makes a random sequence repeatable within the same implementation. The [Godot random-number documentation](https://docs.godotengine.org/en/stable/tutorials/math/random_number_generation.html) also motivates recording implementation details: after the generator changes, the same seed may no longer describe the same result. A bug report needs both. ## Encode playability as checks Represent the map as walkable and blocked cells plus typed landmarks. Then check: 1. The beacon and every relay occupy walkable cells. 2. A flood-fill or pathfinder reaches every relay from the beacon. 3. Reachable usable cells cover the sum of all three relays’ `requiredCells` values. 4. No required item is inside blocked terrain or another object. 5. The repaired route can return to the beacon. 6. Landmarks remain spaced enough to be readable. The first five are deterministic. Spacing can begin as a numeric threshold, then be tuned through playtests. Keep “valid” separate from “good”: a valid map can still be dull. Add a compact quality summary after the hard checks: shortest completion distance, number of meaningful route branches, and how quickly the first objective becomes visible. These measurements do not declare a map fun. They help compare candidates and catch a generator drifting toward long empty walks. ## Refine with a ceiling When evaluation fails, pass the exact failure back to a constrained refiner: “Floodplain relay unreachable from beacon; nearest reachable tile is (17, 9).” Permit a local move, not a complete redesign. Re-run all checks after the change because fixing one route can block another. Stop after three attempts. Keep the rejected seed and report as a regression fixture. Generators improve faster when failures become durable tests rather than disappearing into retries. For Signal Garden, refinement should move a blocked landmark to the nearest valid tile or regenerate one local region. Preserve the seed, original report, and applied patch so the repaired world remains explainable. ## Failure modes and tradeoffs **Seed amnesia** makes a broken map impossible to reproduce. **Judge substitution** asks a model whether the layout “looks playable” instead of running pathfinding. **Constraint pile-up** creates so many rules that all maps look the same. **Blind refinement** regenerates everything and cannot explain why the next result is better. Strict constraints reduce novelty; loose constraints increase rejection and testing cost. Author a few meaningful choices—safe versus scenic route, exposed versus sheltered cell—rather than maximizing geometric difference. ## Build task: three accepted maps Generate at least ten candidate seeds. Run the same report for each, accept three, and preserve two interesting failures. For accepted maps, walk the shortest route and one alternate route manually. Record completion time and any confusing landmark. ```text You are reviewing a Signal Garden map report, not judging from an image. Given the generator parameters and deterministic failures, propose one minimal parameter or placement change. Preserve the beacon, three-relay objective, and offline rules. Do not waive a failed reachability or resource check. Return: DIAGNOSIS, ONE CHANGE, CHECKS TO RERUN, and STOP IF UNSAFE. ``` ## Completion evidence Each accepted map must reproduce from its seed and generator version, pass every deterministic rule, and support a manual start-to-beacon run. Each rejected map must fail with a specific report. Typed output can stabilize the report shape, but semantic checks still decide acceptance; that division reflects the caution in the [Structured Outputs documentation](https://developers.openai.com/api/docs/guides/structured-outputs). ## Knowledge check Why record both a random seed and generator version? 1. The same seed can produce a different map after generation logic changes. 2. A seed guarantees every map is fun. 3. The version makes random generation less expensive. Answer: 1. Reproduction depends on the algorithm as well as its seed; playability still needs separate checks. ## Further reading - [Structured model outputs](https://developers.openai.com/api/docs/guides/structured-outputs) — OpenAI - [Random number generation](https://docs.godotengine.org/en/stable/tutorials/math/random_number_generation.html) — Godot documentation Sources checked 1 December 2026. Signal Garden is an original teaching scenario. --- # Keep a human point of view Lesson 9 · Build Turn authored taste, constraints, and provenance into a reviewable creative direction system. ## Outcomes - Express Signal Garden's point of view as specific creative constraints. - Track the origin, rights status, and transformation history of every asset. - Use AI critique without delegating final aesthetic judgment. Prerequisites: Lesson 8 and at least one reproducible playable map. Deliverable: A one-page direction guide and provenance ledger covering a small playable scene. ## Direction is a set of choices Creative direction is not a mood-board adjective pile. It explains what the game notices, what it withholds, and how players read importance. Signal Garden's point of view might be: abandoned infrastructure is not dead; careful repair reveals a landscape already adapting around it. It is also a production filter: clear direction makes rejection faster and kinder. That sentence leads to choices: quiet natural colors, angular human-made relays, vegetation growing around rather than hiding interactive parts, and brief hopeful feedback after repair. The player should feel observant, not heroic. ## Write constraints that can survive production Use paired rules: | Prefer | Avoid | | --- | --- | | low, wind-shaped plants | lush fantasy jungle silhouettes | | orange only on repairable technology | orange decoration on unrelated props | | short field-note language | lore monologues and prophecy | | visible wear plus successful repair | pristine machinery or hopeless decay | Add reference assets you created or have rights to use, vocabulary examples, scale limits, and accessibility rules. Keep the guide in the context index so a collaborator retrieves only the relevant slice for a texture, sound, or line of text. This applies the principle of curated context from [Anthropic's context engineering guide](https://www.anthropic.com/research/effective-context-engineering-for-ai-agents). ## Track provenance as part of the asset For every image, sound, font, model, or generated draft, record: - stable asset ID and current filename; - creator or generator and date; - source URL or local source file; - license or usage basis; - prompt and model/version when relevant; - edits and derived files; - reviewer and approval state. “Found online” is not provenance. Neither is a folder named `final_assets`. If usage rights are unclear, quarantine the asset rather than letting it reach the build. The ledger also helps replace a generated draft without losing its downstream derivatives. ## Use critique, not automatic taste An AI collaborator can compare an asset description or screenshot annotation against explicit rules. Ask it to cite the rule, identify uncertainty, and propose a review question. Do not ask for an unexplained aesthetic score. A reusable review procedure can live as a project skill: load the direction excerpt, inspect the candidate and provenance record, report violations, and never approve on behalf of the art owner. The [Agent Skills overview](https://agentskills.io/home) is useful as a portable packaging pattern; the important part is that your instructions and references remain inspectable. ## Failure modes and tradeoffs **Style averaging** accepts anything that vaguely resembles the references. **Prompt drift** changes visual language from asset to asset. **Provenance debt** postpones rights records until nobody remembers where files came from. **Automated approval** lets a fluent critique substitute for a person seeing the asset in motion and at game scale. Tight direction creates cohesion but can suppress useful surprise. Reserve a small exploration lane: candidates may break one named rule if they explain what the game gains. Human review decides whether the guide evolves. ## Build task: direct one scene Choose the beacon clearing and inventory every visible and audible asset. Write the one-page direction guide, then fill the provenance ledger. Review three candidates—an environmental prop, relay feedback effect, and short text line—against the guide. View each in the playable scene, not only in isolation. ```text Act as a creative-direction critic for Signal Garden. Use only the supplied direction rules and provenance record. For this candidate, return: ALIGNED RULES, VIOLATED RULES, UNCERTAINTIES, and ONE QUESTION FOR THE HUMAN REVIEWER. Cite exact rules. Do not approve, imitate another game, or invent missing rights information. ``` ## Completion evidence The scene is ready when every included asset has a provenance row, all interactive elements remain readable, and a human reviewer can explain why each candidate belongs. Test the scene at gameplay scale and in grayscale or an equivalent color-independence check. Keep one rejected candidate and its cited reason; evidence of taste includes what you refused, not only what shipped. ## Knowledge check Which rule is most useful to a creative collaborator? 1. Make it beautiful and cinematic. 2. Use low, wind-shaped vegetation; reserve bright orange for repairable technology. 3. Copy the look of a specific commercial game. Answer: 2. It is concrete, testable in context, and expresses an original visual hierarchy rather than vague taste or imitation. ## Further reading - [Effective context engineering for AI agents](https://www.anthropic.com/research/effective-context-engineering-for-ai-agents) — Anthropic - [Agent Skills overview](https://agentskills.io/home) — Agent Skills Sources checked 1 December 2026. Signal Garden is an original teaching scenario. --- # Make stories remember Lesson 10 · Ship Build deterministic narrative state first, then add optional runtime dialogue behind safe boundaries. ## Outcomes - Represent story facts as explicit versioned game state. - Generate dialogue from a bounded context without changing canonical rules. - Preserve a complete offline experience when runtime AI is unavailable. Prerequisites: Lesson 9 and an approved creative direction guide. Deliverable: A narrative-state ledger with three deterministic reactions and one optional dialogue extension. ## Story memory begins with game state A story remembers when facts persist and later reactions use them consistently. You do not need a model for that. Signal Garden already has meaningful facts: which relays are repaired, which route the player took, whether they returned early, and how many cells remain. Store these as explicit values. Dialogue reads the ledger; it does not become the ledger. This boundary prevents a generated sentence from silently reviving a repaired tower or spending an item. ## Design the ledger Pseudocode: ```text NarrativeState v1 { repairedRelayIds: set of known relay IDs firstRelayId: known relay ID or null returnedEarlyCount: non-negative integer visitedRegions: set of known region IDs lastEventId: known event ID } ``` Every update comes from a verified game event. After repair succeeds, gameplay code emits `relay_repaired:moss`; the state reducer adds `moss`; the UI and narrative layer react. Save stable IDs and values rather than engine objects. The [Godot saving guide](https://docs.godotengine.org/en/stable/tutorials/io/saving_games.html) demonstrates the broader need to choose and serialize persistent state deliberately. Version the ledger and test migration with an older fixture. If a field is renamed, translate it once on load and write the new format on the next save. Unknown IDs should produce a clear recovery path, not be silently discarded. ## Write deterministic reactions first Create three authored lines for important states: - first repair: “One clear tone answers from the valley.” - early return: “The beacon is listening, but the network is incomplete.” - all repaired: “Three signals hold. The path home is bright.” These are the offline fallback and the reference behavior. They guarantee the player receives feedback even when no network or model is available. They also give an optional generator a tone and factual baseline. Write reactions for absence as carefully as presence. Returning early is not an error, and the line should guide without pretending the player repaired something they did not. ## Add a bounded runtime extension If you choose runtime dialogue, call it only after a game event has already resolved. Supply a small context packet: current ledger, one tone excerpt, allowed length, forbidden claims, and the fallback line. Require typed output such as `{ text, referencedFactIds }`, then validate that every referenced fact is present. The [Structured Outputs documentation](https://developers.openai.com/api/docs/guides/structured-outputs) can help constrain shape, but semantic checking remains yours. A well-formed line can still contradict the ledger. On timeout, refusal, invalid fact, budget exhaustion, or offline play, show the authored fallback immediately. ## Failure modes and tradeoffs **Transcript memory** treats previous prose as truth and accumulates contradictions. **Model-owned state** lets dialogue determine progress. **Context dumping** sends the entire design history for a ten-word reaction. **Fallback shame** makes the offline line noticeably worse, pressuring the player to remain connected. Runtime variation can make a small world feel responsive, but it adds latency, moderation, privacy, cost, and test complexity. If those do not serve the experience, ship the deterministic lines. Optional means removable without breaking the loop. ## Build task: prove both paths Implement or simulate the state reducer and three deterministic reactions. Save, close, reload, and verify the ledger. Then mock one runtime response using the exact contract and validate its fact references. Finally force a timeout and confirm the fallback appears without delaying progress. ```text Write one optional Signal Garden reaction, maximum 18 words. Use only facts in NARRATIVE STATE and the supplied tone rules. Do not change game state, promise future mechanics, name unknown locations, or address the player as a chosen hero. Return text plus referencedFactIds. If no grounded reaction is possible, return the supplied fallback unchanged. ``` ## Completion evidence The same save must restore the same repaired relays and authored reaction offline. The optional line must reference only verified fact IDs, stay within length and tone constraints, and fail closed to the fallback. [Context engineering guidance](https://www.anthropic.com/research/effective-context-engineering-for-ai-agents) supports the small-packet approach: provide the facts needed for this reaction, not every fact the project has ever stored. ## Knowledge check Which value should runtime dialogue be allowed to change directly? 1. Whether a relay is mechanically repaired. 2. The number of power cells in inventory. 3. A non-canonical line shown after an already verified repair event. Answer: 3. Runtime dialogue may express authoritative state, but core progress remains under deterministic game logic. ## Further reading - [Effective context engineering for AI agents](https://www.anthropic.com/research/effective-context-engineering-for-ai-agents) — Anthropic - [Structured model outputs](https://developers.openai.com/api/docs/guides/structured-outputs) — OpenAI - [Saving games](https://docs.godotengine.org/en/stable/tutorials/io/saving_games.html) — Godot documentation Sources checked 1 December 2026. Signal Garden is an original teaching scenario. --- # Test more than the happy path Lesson 11 · Ship Combine deterministic tests, adversarial play, and careful human judgment to find failures that matter. ## Outcomes - Build a layered evaluation plan for gameplay and AI-assisted content. - Create adversarial fixtures that exercise sequence breaks and boundary cases. - Limit LLM judges to subjective questions with evidence and calibration. Prerequisites: Lesson 10 and a deterministic offline playthrough. Deliverable: A quality matrix, ten regression fixtures, and an adversarial playtest report. ## Match the grader to the question Game quality is not one score. Use different graders for different properties: | Property | Best first grader | | --- | --- | | no crash, valid save, reachable relay | deterministic code | | objective understood | observed player behavior | | line follows explicit tone rules | human review, optionally assisted | | game is enjoyable | diverse players over repeated sessions | An LLM judge is useful for sorting notes or applying a narrow rubric to text. It is a poor substitute for pathfinding, schema validation, or watching a player become lost. ## Attack the sequence Happy-path testing repairs Moss, Ridge, Floodplain, then returns home. Adversarial QA tries the wrong order and wrong timing: - return to the beacon before any repair; - carry two cells to an already repaired relay; - save during a repair animation, then reload; - collect a cell while the inventory is full; - approach every map boundary and obstruction; - disconnect before optional dialogue returns; - press confirm repeatedly during a transition; - load an older save version. Each fixture needs initial state, action sequence, expected invariant, and captured result. “Try to break it” is not reproducible. Record the seed, save version, input device, build ID, and whether optional runtime dialogue was enabled. A failure that cannot be recreated is still worth noting, but it is not yet a reliable regression case. ## Keep simulation terms precise A scripted bot that walks paths is not an LLM agent. A trained policy is not a model call on every step. Tools such as [Unity ML-Agents](https://docs.unity3d.com/Packages/com.unity.ml-agents@latest/) support training and simulation workflows, but a small project can learn plenty from deterministic path walkers, random input fuzzing, and recorded human runs. Choose the cheapest method that produces relevant evidence. ## Calibrate subjective judges If a collaborator reviews dialogue tone, create examples that humans already labeled: clearly aligned, clearly off-tone, and ambiguous. Ask for cited rules and uncertainty, not just a number. Compare the judge against human labels on heldout fixtures. Repeat variable trials. When judge and human disagree, inspect the rubric and evidence before changing either. Agreement is useful only when both are evaluating the intended property. [Anthropic's eval guide](https://www.anthropic.com/research/demystifying-evals-for-ai-agents) recommends evaluating outcomes and traces and separating tasks, trials, and graders. Use that structure without depending on a hosted evaluation platform: fixtures and results can be plain files in your repository. ## Failure modes and tradeoffs **Judge monoculture** uses one model for every property. **Fixture leakage** tunes prompts against all test cases, leaving no heldout evidence. **Coverage theatre** counts thousands of random actions that never touch meaningful states. **Accessibility as checklist** marks text “readable” without testing size, contrast, timing, or alternate cues with people. More tests cost time and can stabilize the wrong design. Prioritize the complete loop, irreversible state, common device/input differences, and failures that strand the player. Use [basic accessibility guidance](https://gameaccessibilityguidelines.com/basic/) to broaden scenarios, then validate with actual players. ## Build task: a layered test run Create ten fixtures: four deterministic loop checks, three adversarial sequences, two accessibility observations, and one tone-review case. Hold out two from any prompt tuning. Run the suite on one known-good seed and one previously rejected seed. Convert every confirmed defect into a regression fixture. ```text Review this Signal Garden test result using the supplied rubric. First classify the property as deterministic, behavioral, or subjective. If deterministic, do not judge it; name the code check required. If subjective, cite the exact rubric rule and evidence, give uncertainty, and request human review when evidence conflicts. Do not average unrelated issues. ``` ## Completion evidence The report must show fixture inputs, repeated trial results where behavior varies, grader type, and final human disposition. At least one adversarial case should exercise a sequence the happy path never reaches. The suite succeeds when it detects the deliberately rejected seed and the known invalid save without relying on prose judgment. ## Knowledge check Which check should not be delegated to an LLM judge? 1. Whether every seeded map has a path from beacon to each relay. 2. Whether a repair line sounds consistent with the field-note tone. 3. Whether two human playtest notes describe the same confusion. Answer: 1. Reachability is a deterministic property that code can verify exactly and cheaply. ## Further reading - [Demystifying evals for AI agents](https://www.anthropic.com/research/demystifying-evals-for-ai-agents) — Anthropic - [Unity ML-Agents](https://docs.unity3d.com/Packages/com.unity.ml-agents@latest/) — Unity documentation - [Basic game accessibility guidelines](https://gameaccessibilityguidelines.com/basic/) — Game Accessibility Guidelines Sources checked 1 December 2026. Signal Garden is an original teaching scenario. --- # Build a pipeline you can afford Lesson 12 · Ship Put budgets, retries, caching, and offline boundaries around the production pipeline. ## Outcomes - Estimate cost and latency per pipeline stage before running it at scale. - Add cache keys, retry ceilings, and deterministic fallbacks. - Distinguish development-time generation from optional runtime calls. Prerequisites: Lesson 11 and a layered evaluation suite. Deliverable: A costed pipeline manifest and one full Signal Garden production run. ## Cost is a design constraint An AI-assisted pipeline spends more than money. It spends developer attention, wall-clock time, context, review effort, and failure tolerance. Estimate those before multiplying a prototype across hundreds of assets. For each stage, record unit count, calls per unit, input size, expected output size, model or local tool, retry ceiling, and human review minutes. Use current prices from your chosen provider at planning time; do not bake a course example into production assumptions. Track actuals beside estimates. The gap reveals hidden retries, oversized context, and review work that a token-only budget misses. ## Map the Signal Garden pipeline | Stage | Runs when | AI required? | Failure behavior | | --- | --- | --- | --- | | relay data validation | every data change | no | reject file | | map generation/checks | development or build | no | reject seed | | field-note drafts | development | optional | keep authored draft | | tone review | development | optional | queue human review | | repair reaction | runtime extension only | optional | show local fallback | The base game ships with validated data and authored reactions. Development-time generation can be rerun deliberately. Runtime calls have tighter latency, privacy, moderation, and availability requirements, so use them only where variation visibly improves the experience. ## Bound every variable loop Retries need a ceiling and a reason. Retry transient transport failure once or twice with backoff. Do not retry a semantic violation unchanged. A refiner may receive the exact error, but it still stops after the contract limit. Cache immutable results using a key derived from input hash, contract version, model/version, and relevant settings. A cache without versioning can return output made under old rules. Never cache private player input without a retention policy. Set a wall-clock timeout as well as an attempt limit. Three stalled calls are not meaningfully bounded if each can wait forever. ## Keep context and output small Send the relay state and tone excerpt needed for one reaction, not the whole project. [Context engineering guidance](https://www.anthropic.com/research/effective-context-engineering-for-ai-agents) treats context as something to select deliberately. Require structured output where integration needs it, while retaining semantic validation as described in the [Structured Outputs guide](https://developers.openai.com/api/docs/guides/structured-outputs). Smaller or local models may suit narrow development tasks, but benchmark them on your fixtures rather than assuming “small” means adequate. A deterministic script is cheaper and more reliable when rules are already expressible in code. ## Failure modes and tradeoffs **Prototype multiplication** prices one successful call and ignores volume, retries, and review. **Infinite repair** spends more trying to rescue weak output than rewriting it. **Cache confusion** serves stale results after a style or schema update. **Runtime dependency creep** moves essential instructions into generated dialogue. Budgets reduce exploration, but unlimited exploration rarely creates proportionate value. Reserve a small experiment budget and a separate production ceiling. When the ceiling is reached, stop, inspect, and choose whether the task deserves more investment. ## Build task: run the manifest Create a manifest for one complete production pass: three relay records, three field-note drafts, one map batch, and all validators. Estimate best case, expected case, and ceiling. Run it once, record actuals, then update the estimate. Force one failure to prove the retry and fallback paths. ```text Audit this Signal Garden pipeline plan for cost and failure risk. For each stage, identify unit volume, variable-cost action, retry ceiling, cache key, validator, and fallback. Flag any essential gameplay step that depends on a network or model call. Do not estimate vendor prices without provided current rates. Recommend one simplification, not a new service. ``` ## Completion evidence The manifest is complete when every variable-cost stage has a ceiling, every retry has a classified reason, and the offline game remains complete at zero runtime calls. Compare estimated and actual counts, time, and review effort. The run log and checkpoint should make the pass resumable, following the durable-artifact principles in [long-running harness research](https://www.anthropic.com/research/effective-harnesses-for-long-running-agents). ## Knowledge check What is the safest response after a runtime dialogue call exhausts its retry ceiling? 1. Keep retrying until it succeeds. 2. Block the repair interaction. 3. Show the validated authored fallback and log the failure. Answer: 3. Optional runtime generation must not block core gameplay; a known fallback preserves the offline contract. ## Further reading - [Effective context engineering for AI agents](https://www.anthropic.com/research/effective-context-engineering-for-ai-agents) — Anthropic - [Structured model outputs](https://developers.openai.com/api/docs/guides/structured-outputs) — OpenAI - [Effective harnesses for long-running agents](https://www.anthropic.com/research/effective-harnesses-for-long-running-agents) — Anthropic Sources checked 1 December 2026. Signal Garden is an original teaching scenario. --- # Make the first five minutes work Lesson 13 · Ship Turn a functioning build into a legible, accessible first run through observed playtesting. ## Outcomes - Observe the first five minutes without coaching the player. - Prioritize fixes that unblock comprehension and completion. - Verify a clean build on a second environment. Prerequisites: Lesson 12 and a costed pipeline run. Deliverable: A playtest evidence pack and a release-candidate build completing the full loop. ## The opening is part of the game The first five minutes must answer practical questions through play: What can I do? What matters? What changed? Where am I trying to return? A title screen and polished menu do not solve an unreadable first interaction. For Signal Garden, the player should move within seconds, notice either a cell or a relay, understand the connection between them, and see the beacon as a meaningful landmark. They do not need the entire world explained. They need enough feedback to form and test a plan. ## Observe without rescuing Give a clean build to someone who has not watched development. Ask them to think aloud, but do not teach. Capture timestamps: - first movement; - first purposeful turn toward a landmark; - first cell noticed and collected; - first relay approached; - first correct repair; - first return to the beacon; - confusion, pause, restart, or quit. After the attempt, ask what they thought the goal was and what each major signal meant. Their explanation is evidence. Your intended explanation is not. ## Fix blockers before polish Classify observations: | Severity | Meaning | Example | | --- | --- | --- | | blocker | cannot continue or complete | relay interaction never appears | | comprehension | can continue by accident | player does not connect cells to relays | | friction | understands but struggles | input prompt is hard to read | | polish | experience works | repair sound lacks impact | Fix in that order. Prefer a stronger pickup silhouette, clearer prompt, or immediate state change over a new tutorial system. Re-run the same scenario after each change so you know what helped. ## Test access, not compliance Check keyboard, controller if supported, text size, contrast, sound-off play, color-independent status, and input remapping. Essential repair feedback should use more than one channel. The [Game Accessibility Guidelines](https://gameaccessibilityguidelines.com/basic/) offer practical basic considerations, but a checklist does not replace testing with people whose needs differ from yours. Do not force a player to read generated narrative to discover a required control. Optional dialogue may enrich a repair; core instructions and state remain local, stable, and accessible. ## Prove the package A project folder is not a release. Produce the actual target build using versioned settings. The [Godot export documentation](https://docs.godotengine.org/en/stable/tutorials/export/exporting_projects.html) distinguishes runnable exports from resource-only project archives; every engine has an equivalent boundary. Install or open the build in a clean environment. Follow only the included instructions. Confirm assets, fonts, save paths, and dependencies are present. Start a new run, finish it, restart, and load a save. Record the build identifier in every report. **Failure modes and tradeoffs.** **Developer narration** explains over every problem. **Polish displacement** tunes particles while the player cannot identify the goal. **One-tester certainty** treats an anecdote as a universal result. **Dirty-machine success** relies on files, environment variables, or caches absent from the package. Playtests can suggest conflicting changes. Return to the intended audience and core loop. Preserve raw notes, group repeated behavior, and use judgment. Evaluation is evidence for a decision, not an automatic product manager; the task/trial/grader structure in [Anthropic's eval guide](https://www.anthropic.com/research/demystifying-evals-for-ai-agents) helps keep those roles distinct. ## Build task: three first runs Run three fresh-player sessions. Use the same opening build for the first two, fix the highest-severity repeated issue, then test the revision with the third. Capture timings, quotes only with permission, observed actions, and your resulting decision. Build a clean release candidate afterward. ```text Analyze these anonymized Signal Garden playtest notes. Separate direct observations from tester opinions and developer interpretation. Group repeated failures by blocker, comprehension, friction, or polish. Recommend the smallest change for the highest-severity repeated issue. Do not invent player quotes, average unlike observations, or add mechanics. List evidence that would show whether the change worked. ``` ## Completion evidence At least one fresh player must complete the entire loop from a clean build without coaching. The evidence pack must include build ID, environment, timestamps, observed failures, chosen fix, and retest result. The release candidate must launch offline and preserve essential feedback with sound muted and without color as the only status cue. ## Knowledge check During an unmoderated first-run test, what should you do when the player misses the first power cell? 1. Immediately explain where it is. 2. Record what they saw and said, then ask about it after the attempt. 3. Add a quest system during the session. Answer: 2. Coaching hides the evidence; observe first, then diagnose and make the smallest useful change. ## Further reading - [Demystifying evals for AI agents](https://www.anthropic.com/research/demystifying-evals-for-ai-agents) — Anthropic - [Exporting projects](https://docs.godotengine.org/en/stable/tutorials/export/exporting_projects.html) — Godot documentation - [Basic game accessibility guidelines](https://gameaccessibilityguidelines.com/basic/) — Game Accessibility Guidelines Sources checked 1 December 2026. Signal Garden is an original teaching scenario. --- # Ship it. Learn from it. Lesson 14 · Ship Release a versioned game with clear boundaries, recovery paths, and a plan to learn safely. ## Outcomes - Produce a versioned release with reproducible artifacts and notes. - Document AI use, data boundaries, fallbacks, and known limitations. - Roll back a faulty release and turn reports into bounded next work. Prerequisites: Lesson 13 and a verified release-candidate build. Deliverable: Signal Garden v1.0 with release notes, provenance manifest, rollback drill, and learning plan. ## Shipping is a state transition A project becomes a release when a specific artifact, configuration, and set of known behaviors are made available to players. Name that state: `Signal Garden 1.0.0`, build hash, release date, target platforms, content manifest, and save version. Do not rebuild “the same version” later from floating dependencies or regenerated assets. Preserve the shipped artifact and the inputs needed to reproduce it. Engine export guidance such as [Godot's export documentation](https://docs.godotengine.org/en/stable/tutorials/export/exporting_projects.html) is platform-specific, but the principle is universal: a runnable artifact is distinct from source and resources. ## Explain the AI boundary plainly Your release notes or privacy/help page should state: - which content was prepared with AI assistance during development; - whether any optional runtime feature contacts a service; - what player data, if any, leaves the device; - what happens offline or when generation fails; - how to disable the optional feature; - where players can report harmful or incorrect output. Signal Garden's core loop is offline. If runtime reactions are enabled, they occur after deterministic events, use bounded state, and fail to authored lines. Avoid vague claims such as “AI-powered world” that hide the actual behavior. ## Protect players and the project Apply input limits, output validation, moderation appropriate to the audience, rate limits, timeouts, and logging that does not collect unnecessary personal data. Never place secret keys in a client build. Treat logs as sensitive and define retention. Review asset provenance before release. Confirm rights status, attribution requirements, and replacement paths. Re-run accessibility checks on the packaged build, not only the editor. The [basic accessibility guidance](https://gameaccessibilityguidelines.com/basic/) is a useful release review prompt, while player support channels reveal issues no checklist predicted. ## Version state and rehearse rollback Version the game, content schema, generator, and save format independently. A release manifest might record: ```text game: 1.0.0 content: 4 generator: 3 save: 2 fallbackDialogue: field-notes-5 ``` Keep the previous known-good artifact. Define which save versions each build reads. Before launch, rehearse: deploy or install the candidate, discover a simulated fault, restore the prior artifact, load a representative save, and verify the offline loop. Rollback should not depend on an AI agent improvising under pressure. ## Learn without turning feedback into a backlog dump Create a small intake: build version, platform, reproduction steps, save/seed when relevant, expected behavior, and observed behavior. Triage safety and completion blockers first. Convert confirmed reports into fixtures. Group requests, but do not promise every suggestion. After release, choose one bounded learning question: “Do players understand the first relay without coaching?” or “How often does optional dialogue fall back?” Establish the evidence and review date before collecting data. A durable checkpoint, as advocated in [long-running harness research](https://www.anthropic.com/research/effective-harnesses-for-long-running-agents), prevents post-release work from becoming an unbounded stream of reactions. **Failure modes and tradeoffs.** **Unversioned regeneration** makes the live content impossible to reproduce. **Disclosure fog** uses broad marketing language instead of describing runtime behavior. **Telemetry appetite** collects data because it might become useful. **Forward-only deployment** has no tested recovery. **Feedback capture** treats the loudest request as the next roadmap. Responsible constraints can limit novelty or analytics. They also make promises credible. A small game that works offline, explains its optional systems, and can recover from failure is more trustworthy than a larger release whose behavior nobody can reproduce. ## Build task: release and recover Assemble the artifact, manifest, release notes, AI/data disclosure, provenance export, known-issues list, and support template. Perform the rollback drill with a deliberately broken candidate. Then write one post-release learning question with a metric or observation and a date for review. ```text Audit this Signal Garden release packet as a skeptical release manager. Check for: exact artifact/version, save compatibility, AI runtime boundary, offline fallback, data handling, asset provenance, accessibility evidence, known issues, support route, and rollback steps. Cite missing evidence. Do not declare the release safe or ready; return blockers, risks, and questions for the accountable human to decide. ``` ## Completion evidence The release is ready when a clean machine can run the preserved artifact offline, the manifest identifies its inputs, the disclosure matches actual behavior, and the previous version can be restored in the drill. Publish only through an explicitly authorized release process. Keep the first post-release checkpoint small: what happened, what evidence supports it, and the single next task worth doing. ## Knowledge check What makes a rollback plan credible? 1. A note saying the team can revert if needed. 2. A preserved prior artifact, versioned state compatibility, and a rehearsed restoration procedure. 3. Regenerating the entire game after a failure. Answer: 2. Rollback requires recoverable artifacts and a tested path, not an intention. ## Further reading - [Effective harnesses for long-running agents](https://www.anthropic.com/research/effective-harnesses-for-long-running-agents) — Anthropic - [Exporting projects](https://docs.godotengine.org/en/stable/tutorials/export/exporting_projects.html) — Godot documentation - [Basic game accessibility guidelines](https://gameaccessibilityguidelines.com/basic/) — Game Accessibility Guidelines Sources checked 1 December 2026. Signal Garden is an original teaching scenario.