# System Instructions

This prompt is divided into three sections:

1. **System Instructions** (this section) — structural orientation only. Do not treat this
   section as task input.

2. **Input Context** — begins with the heading `# Input Context`. All blocks are wrapped in
   `<pblock>` tags. Two block types:
   - File blocks: `<pblock filename="<name>" role="<role>" guidance="...">` — optional
     `guidance` attribute carries context-specific instructions; content is in a fenced block.
   - Metadata/section blocks: `<pblock label="<label>" kind="<kind>">` — job parameters,
     rules, instructions, or group headers.

3. **Agent Task** — begins with the heading `# Agent Task`. Defines your persona, constraints,
   and required outputs. Read all input context before acting on this section.


# Input Context

<pblock label="Build block job" kind="job">
## Build block job
- TARGET: ReadingList
- BUILD_DIRECTORY: /mnt/c/Users/barlo/projects/drydock/uat/ReadingList/runs/20261023.144538/build/ReadingList
- WORKING_DIRECTORY: /mnt/c/Users/barlo/projects/drydock/uat/ReadingList/runs/20261023.144538/build/ReadingList
- BUILD_BLOCK: Block 4 · Service (block-4)
- STORIES: Let a reader add a book with a title and an author. (add-book)
- DATE: 2026-10-23
- BUILD_SCOPE: exactly one MANIFEST.md build block

</pblock>

<pblock label="Stories in this block" kind="section">
## Stories in this block
- Let a reader add a book with a title and an author. (add-book) [story]

</pblock>

<pblock label="Files on disk" kind="section">
## Files on disk in the build directory
- sources/full_test.sh

These are the only imported files present on disk. Every other file named in this prompt is supplied as prompt context and is not on disk; read it here and do not report it as a missing input.

</pblock>


## COMPASS - Target Orientation

<pblock filename="COMPASS.md" role="compass" path="/mnt/c/Users/barlo/projects/drydock/uat/ReadingList/runs/20261023.144538/workspace/targets/ReadingList/COMPASS.md" guidance="Important: This is the core project intent, constraints, and guardrails. It should have presecedence in conflicts.">
```markdown
# COMPASS: ReadingList

## Compass
A reader-facing web application for keeping an ordered list of books to read. Each book has a title and an author. Readers add, view in insertion order, and remove books. The product exists so a reader can track what they intend to read without losing track of the order they added titles.

## Constraints
- The application root must contain a POSIX-compatible `bin/test.sh` runnable with `sh`.
- `bin/test.sh` must exit zero only when every automated test passes.
- The complete automated test suite must run from the application root.

## Guardrails
- Never accept an empty title or an empty author.
- Never present books in any order other than the order added.
- Never omit a rejection reason when a submission is rejected.
- Never ship a behavior without an automated test covering it.

<!-- drydock:build-write-guardrail:start -->
## Build Write Guardrail

- Authorized build directory: `/mnt/c/Users/barlo/projects/drydock/uat/ReadingList/runs/20261023.144538/build/ReadingList`
- Authorized Target directory: `/mnt/c/Users/barlo/projects/drydock/uat/ReadingList/runs/20261023.144538/workspace/targets/ReadingList`
- Build agents have permission to create, modify, and remove files required by the active build block inside these authorized directories.
- No path outside these authorized directories may be modified.
- Protected Drydock artifacts:
  - `/mnt/c/Users/barlo/projects/drydock/uat/ReadingList/runs/20261023.144538/workspace/targets/ReadingList/blueprint/`
  - `/mnt/c/Users/barlo/projects/drydock/uat/ReadingList/runs/20261023.144538/workspace/targets/ReadingList/MANIFEST.md`
  - `/mnt/c/Users/barlo/projects/drydock/uat/ReadingList/runs/20261023.144538/workspace/targets/ReadingList/COMPASS.md`
  - `/mnt/c/Users/barlo/projects/drydock/uat/ReadingList/runs/20261023.144538/workspace/targets/ReadingList/QuarterDeck/`
  - `/mnt/c/Users/barlo/projects/drydock/uat/ReadingList/runs/20261023.144538/workspace/targets/ReadingList/evidence/`
<!-- drydock:build-write-guardrail:end -->
```
</pblock>


## STACK - Technology HOW

<pblock filename="python_compact.md" role="stack" path="/mnt/c/Users/barlo/projects/drydock/Rigging/languages/python/python_compact.md">
```
<!-- Compacted from Rigging/languages/python/python.md sha256=fe344456a351e3237cfe3bae2408a69758d401430b935f60c15f91b9a97e8016 on 2026-10-18 by Rigging maintenance -->

## Foundation Contract

- source_root: ./
- test_command: pytest -q
- environment: `.venv`, created by `uv venv` and activated by launchers in `bin/`
- dependencies: `pyproject.toml` and committed `uv.lock`

The language foundation owns the project root, environment, dependency manifest, and test runner.
Later foundations add their packages to this tree without replacing those contracts.

### How do we execute and measure Acceptance Criteria in this language?

An Acceptance Criterion (AC) is an executable check of Blueprint-required behavior. Use the
existing Programmatic Acceptance format: a Python script with assertions against the built
product. Drydock executes each criterion through `languages/python/acceptance/runner.py`; `pytest -q`
runs the project test suite. Retain the criterion ID, observed values, stdout/stderr and result;
an assertion failure fails the check. The harness reports failure operands and available case
counts. Code coverage and persistence interactions require explicit instrumentation; record
available observations as key/value data associated with the criterion. Missing observations
are unknown, not proof that code or an interaction was unused.

### How does this language provide the shared persistence contract?

Use `stack/persistence.md`. Drydock copies `Rigging/languages/python/persistence/{db,sqlite,postgres}.py` and generates
`persistence/{schema,__init__,testing}.py` plus `schema.sql` from `DATABASE.md`. Call
`open_database(dsn)` and `db.<table>.<operation>(...)`; use `persistence.testing.db_session()`
for criteria. SQLite uses the standard library; PostgreSQL needs `psycopg[binary]` in the project
dependencies. Both engines ship together and the DSN selects the engine. Library verification
lives in `tests/test_shipped_database.py`; a Target still verifies its own schema and operations.

## Consumer Rules

- Python >=3.11; use modern type hints on public interfaces and named cross-package data shapes.
- Centralize typed runtime settings; use Blueprint names and defaults. Keep secrets out of Git and logs.
- Keep behavior in importable modules; launchers activate `.venv` and invoke modules.
- Use pytest with isolated external state; all test gates run `pytest -q`.
```
</pblock>

<pblock filename="flask.md" role="stack" path="/mnt/c/Users/barlo/projects/drydock/Rigging/stack/flask.md">
````
# Flask Foundation

**Type:** web-server
**Version:** 20260922 V3
**Tier:** platform
**Category:** Web Server
**Foundation:** web-server
**Description:** Flask application boundary and test client contract

Prerequisites: `stack/common.md`, `languages/python/python.md`

## Foundation Contract

- package: app_server
- entry: create_app() -> Flask
- fixture: web_client
- fixture_source: app_server/testing.py

```python
# app_server/__init__.py
def create_app() -> Flask: ...

# app_server/testing.py
from app_server import create_app
def web_client():
    app = create_app()
    app.config["TESTING"] = True
    return app.test_client()
```

`app_server.testing.web_client()` is a plain callable used directly by programmatic acceptance.
The pytest `web_client` fixture delegates to it. The application factory registers the selected
Blueprint routes, extensions, and error handlers; it does not invent routes or settings.

## Rules

- Group related routes in Flask Blueprints. Keep handlers focused on HTTP input and output; put
  business behavior in importable services without a Flask dependency.
- Load configuration through the Python foundation's typed boundary before use. Use the Target's
  names and defaults. Keep `SECRET_KEY` out of source control and disable debug mode in production.
- Use the Blueprint's routes, schemas, templates, and error contracts. Return sanitized errors;
  never expose tracebacks to clients. Preserve Jinja autoescaping.
- Keep request-bound resources request-scoped. Do not share a SQLite connection or other
  thread-bound object created in `create_app()` across request threads.
- Keep startup side effects out of imports and account for the development reloader's extra
  process. The Python foundation owns launchers, dependencies, and the test command.
````
</pblock>


## CONTEXT - Read-Only Support

<pblock filename="ARCHITECTURE_compact.md" role="context" path="/mnt/c/Users/barlo/projects/drydock/uat/ReadingList/runs/20261023.144538/workspace/targets/ReadingList/blueprint/ARCHITECTURE_compact.md">
```
<!-- Compacted from ARCHITECTURE.md sha256=64951a517fa03e92d5fbc2753f072d3a1dbea94a3337305d0f5655584717a101 on 2026-10-23 by drydock build agent -->

Package app_server: create_app() -> Flask (no routes yet). app_server.testing.web_client() -> FlaskClient with TESTING=True, fresh app per call.
Project root: pyproject.toml, uv.lock, tests/conftest.py (fixtures web_client, db_session). Runner: pytest -q from root. Launcher: bin/run.sh.
Routes per ARCHITECTURE: GET / ; GET /books ; POST /books ; POST /books/{id}/delete. Success form posts 303 to /; rejection 400; unknown id 404.
Persistence: generated persistence package only; open_database(dsn), db.books.{create,list,get,delete}; db_session() context manager for acceptance.
```
</pblock>

<pblock filename="DATABASE.md" role="context" path="/mnt/c/Users/barlo/projects/drydock/uat/ReadingList/runs/20261023.144538/workspace/targets/ReadingList/blueprint/DATABASE.md" guidance="Database and PersistenceSpecification">
```markdown
# DATABASE: ReadingList

| Field | Value |
|-------|-------|
| Version | 20261023 V1 |
| Description | Persistence stores and typed interfaces for the ReadingList books table. |
| Depends On | ARCHITECTURE.md |
| Provides | books.create, books.list, books.get, books.delete |
| Build Order | 1 |

## Persistence Boundary

| Boundary | Rule |
|----------|------|
| Raw storage access | Only the generated `persistence/` package reaches the store. |
| Caller dependency | Features depend on declared access patterns and their DTOs, not on schemas. |
| Implementation | Generated from this file at the DATABASE build step; never written by hand. |

## Access Patterns

Insertion order is preserved by the autoincrementing integer primary key `id`; listing is ordered by `id` ascending, so no position column exists.

### FEATURE-BOOKS-001 — Create a book

| Field | Value |
|-------|-------|
| Owner | FEATURE-AddBook.md |
| Access | write |
| Repository operation | `books.create` |
| Compatibility | unchanged |

Input: BookCreateInput

| Field | Type | Notes |
|-------|------|-------|
| title | TEXT | Non-empty, trimmed by the caller |
| author | TEXT | Non-empty, trimmed by the caller |

Output: BookRow

| Field | Type | Notes |
|-------|------|-------|
| id | INTEGER | Assigned by the store |
| title | TEXT | As stored |
| author | TEXT | As stored |

### FEATURE-BOOKS-002 — List books in the order added

| Field | Value |
|-------|-------|
| Owner | FEATURE-ListBooks.md |
| Access | read |
| Repository operation | `books.list` |
| Compatibility | unchanged |

Input: BookListInput

| Field | Type | Notes |
|-------|------|-------|
| (none) | | Returns every book, ordered by id ascending |

Output: BookRow

| Field | Type | Notes |
|-------|------|-------|
| id | INTEGER | Ascending across the returned sequence |
| title | TEXT | As stored |
| author | TEXT | As stored |

### FEATURE-BOOKS-003 — Get a book by id

| Field | Value |
|-------|-------|
| Owner | FEATURE-RemoveBook.md |
| Access | read |
| Repository operation | `books.get` |
| Compatibility | unchanged |

Input: BookGetInput

| Field | Type | Notes |
|-------|------|-------|
| id | INTEGER | Book identifier |

Output: BookRow

| Field | Type | Notes |
|-------|------|-------|
| id | INTEGER | Book identifier |
| title | TEXT | As stored |
| author | TEXT | As stored |

### FEATURE-BOOKS-004 — Delete a book

| Field | Value |
|-------|-------|
| Owner | FEATURE-RemoveBook.md |
| Access | write |
| Repository operation | `books.delete` |
| Compatibility | unchanged |

Input: BookDeleteInput

| Field | Type | Notes |
|-------|------|-------|
| id | INTEGER | Book identifier |

Output: BookDeleteResult

| Field | Type | Notes |
|-------|------|-------|
| id | INTEGER | Identifier of the removed book |

## Schemas

## `books`

| Field | Type | Notes |
|-------|------|-------|
| id | INTEGER PK | Autoincrementing; defines insertion order |
| title | TEXT NOT NULL | Book title |
| author | TEXT NOT NULL | Book author |

## Migrations

Each relational change has one staged record in `migrations/MIGRATION-<AccessPatternId>.md`.
The record carries Alembic `upgrade`/`downgrade` snippets and progresses from `planned` to `built`
only when its DATABASE build story completes. Alembic records deployment application separately.

| Access Pattern | Revision | State |
|----------------|----------|-------|

## Config (.env)

| Key | Type | Required | Notes |
|-----|------|----------|-------|

## File Stores

| Store | Root dir | Notes |
|-------|----------|-------|

## External Services

| Service | Wrapper | Notes |
|---------|---------|-------|

## External Libraries

| Library | Ownership | Distribution | Consumer Contract |
|---------|-----------|--------------|-------------------|

## Programmatic Acceptance

=== AC books-create ===
Intent: Creating a book returns a row carrying the supplied title and author and an assigned id.
Suite: scoped

from persistence.testing import db_session

title = "Create Title"
author = "Create Author"
with db_session() as db:
    row = db.books.create(title=title, author=author)
    assert row.id is not None
    assert row.title == title
    assert row.author == author
=== END AC books-create ===

=== AC books-get ===
Intent: A created book can be read back by id with the supplied title and author.
Suite: scoped

from persistence.testing import db_session

title = "Get Title"
author = "Get Author"
with db_session() as db:
    created = db.books.create(title=title, author=author)
    fetched = db.books.get(id=created.id)
    assert fetched is not None
    assert fetched.id == created.id
    assert fetched.title == title
    assert fetched.author == author
=== END AC books-get ===

=== AC books-list-order ===
Intent: Listing returns books in the order they were created.
Suite: scoped

from persistence.testing import db_session

titles = ["Order One", "Order Two", "Order Three"]
with db_session() as db:
    created_ids = [db.books.create(title=t, author="Order Author").id for t in titles]
    listed_ids = [row.id for row in db.books.list()]
    ours = [i for i in listed_ids if i in created_ids]
    assert ours == created_ids
    assert created_ids == sorted(created_ids)
=== END AC books-list-order ===

=== AC books-delete ===
Intent: A deleted book is absent from the list on the next read and other books remain.
Suite: scoped

from persistence.testing import db_session

with db_session() as db:
    first = db.books.create(title="Delete First", author="Delete Author")
    second = db.books.create(title="Delete Second", author="Delete Author")
    db.books.delete(id=first.id)
    listed_ids = [row.id for row in db.books.list()]
    assert first.id not in listed_ids
    assert second.id in listed_ids
=== END AC books-delete ===

## User Acceptance

- None.

## Guardrails

- Books are always listed in ascending id order, which is the order added.
- No caller reaches the store except through the generated `persistence` package.
```
</pblock>


## IMPLEMENTS - Authoritative Step Specifications

<pblock label="Implementation recency anchor" kind="section">
The files in this section are the load-bearing specifications for this build block.
Build these files exactly. Treat earlier sections as constraints and context.

</pblock>

<pblock filename="FEATURE-AddBook.md" role="implements" path="/mnt/c/Users/barlo/projects/drydock/uat/ReadingList/runs/20261023.144538/workspace/targets/ReadingList/blueprint/FEATURE-AddBook.md" guidance="Feature Specification">
```markdown
# FEATURE: Add Book

| Field | Value |
|-------|-------|
| Version | 20261023 V1 |
| Description | A reader adds a book with a title and an author and it is stored. |
| Depends On | ARCHITECTURE.md, DATABASE.md, UI-GENERAL.md |
| Provides | POST /books |
| Consumes | books.create |

## Purpose

Let a reader add a book to the end of the reading list.

## Trigger

A form post to `POST /books` with fields `title` and `author`.

## Sequence

1. Read `title` and `author` from the form, trimmed of surrounding whitespace.
2. Validation of empty values is owned by FEATURE-RejectEmptyTitle.md and FEATURE-RejectEmptyAuthor.md; this feature handles valid submissions.
3. Store the book through `db.books.create(title=..., author=...)`.
4. Answer `303` redirecting to `/`.

## Reads

- None.

## Writes

- One new book via `books.create`.

## Database Interface

- `FEATURE-BOOKS-001` — write: create a book - supplies: `title`, `author` - returns: `id`, `title`, `author`

## Programmatic Acceptance

=== AC add-book-redirects ===
Intent: A valid submission is accepted with a 303 redirect.
Suite: scoped

from app_server.testing import web_client

client = web_client()
marker = "ac-add-redirect"

def cleanup():
    for row in client.get("/books").get_json():
        if marker in row["title"]:
            client.post(f"/books/{row['id']}/delete")

cleanup()
try:
    response = client.post("/books", data={"title": marker + " title", "author": marker + " author"})
    assert response.status_code == 303
finally:
    cleanup()
=== END AC add-book-redirects ===

=== AC add-book-round-trip ===
Intent: An added book is read back through GET /books with the supplied title and author.
Suite: scoped

from app_server.testing import web_client

client = web_client()
marker = "ac-add-roundtrip"
title = marker + " title"
author = marker + " author"

def cleanup():
    for row in client.get("/books").get_json():
        if marker in row["title"]:
            client.post(f"/books/{row['id']}/delete")

cleanup()
try:
    response = client.post("/books", data={"title": title, "author": author})
    assert response.status_code == 303
    listed = client.get("/books")
    assert listed.status_code == 200
    ours = [row for row in listed.get_json() if row["title"] == title]
    assert len(ours) == 1
    assert ours[0]["author"] == author
    assert ours[0]["id"] is not None
finally:
    cleanup()
=== END AC add-book-round-trip ===

=== AC add-book-persists-in-store ===
Intent: An added book is present in the configured store when read through the persistence package.
Suite: scoped

from app_server.testing import web_client
from persistence.testing import committed_session

client = web_client()
marker = "ac-add-store"
title = marker + " title"
author = marker + " author"

def cleanup():
    for row in client.get("/books").get_json():
        if marker in row["title"]:
            client.post(f"/books/{row['id']}/delete")

cleanup()
try:
    response = client.post("/books", data={"title": title, "author": author})
    assert response.status_code == 303
    with committed_session() as db:
        rows = [row for row in db.books.list() if row.title == title]
    assert len(rows) == 1
    assert rows[0].author == author
finally:
    cleanup()
=== END AC add-book-persists-in-store ===

## User Acceptance

- None.

## Guardrails

- A stored book always has a non-empty title and a non-empty author.
- A newly added book is appended after every existing book.
```
</pblock>

<pblock label="Build instructions" kind="instructions">
### Build instructions for this block

#### Let a reader add a book with a title and an author. (add-book)
Implement POST /books accepting form fields title and author. A valid submission is stored
through db.books.create and answers 303 redirecting to /. Validation of empty fields is owned
by the two rejection stories; this story handles valid submissions only.

</pblock>

<pblock label="Reusable compact request" kind="section">
## Reusable compacts

The Blueprint sources below are consumed as context by later Manifest blocks.
In this same response, extract their consumer-facing contract surface. Preserve
interfaces, schemas, constraints, configuration, and cross-file obligations; drop
implementation narrative and repetition. Do not write these files yourself.

Before the required RESULT block, emit one optional payload per source exactly as:
<reusable-compact filename="SOURCE.md">
compact content
</reusable-compact>

Emit no payload when a source has no useful technical surface. These payloads are
advisory and do not change the required build result or file-change report.

Sources eligible for reusable compaction:
- DATABASE.md

</pblock>


# Agent Task

You are a Drydock build agent implementing exactly one build step of a larger plan.
The build job block below names the target, the build working directory, and the
step. Everything you need is stacked into this prompt under role headings:

- `compass` — the Target's COMPASS.md orientation.
- `implements` — the Typed Specification files this step builds. These are
  authoritative; implement them exactly.
- `context` — read-only support specifications. Do not reimplement them.
- `stack` — enterprise stack and technology rules. Honor them.
- `rules` — governance and branding rules. Honor them.

Operating contract:

1. Follow the write authorization and protected paths in the stacked `COMPASS.md` exactly.
   That persisted guardrail is the sole authority for paths this build may modify.
2. Start by inspecting the build working directory. Preserve existing application
   files unless this step's specifications require a change.
   Its `sources/` subdirectory holds staged build assets — imported test corpora,
   conformance harnesses, and fixtures — placed there for you. They are read-only
   inputs: run them, import them, and write code against them, but never create,
   rewrite, trim, regenerate, or substitute one, even to make a check pass. A step
   that modifies a staged asset fails and the asset is restored. If an asset you
   expect is absent, report that; do not author a replacement.
3. Implement only this step. Use `context`, `stack`, and `rules` as constraints,
   not as additional work to perform.
4. Follow the stack and rules for languages, structure, naming, and branding.
5. The programmatic acceptance assertions in the `implements` specifications are
   this step's **Definition of Done** — human-owned, declared before the build,
   and fixed. Build the story and, in this same step, write the deterministic
   tests that prove each declared assertion, as a TDD master would; add finer
   tests for coverage. Every test you write follows the same rule the acceptance
   assertions do: **act on the system, read the state back, compare to expected.**
   The oracle is a return value, parsed JSON, a status code, a stored row, file
   contents read back, or an exit status — never a substring of captured stdout or
   stderr, a test-runner tally, or a log line. Write tests in the project's own
   language using that language's libraries; an in-language HTTP client yields a
   status code and a parsed body, where `curl` yields text to scrape. Round-trip
   anything that stores state: act, then read back through the public interface.
   Assert declared failure signals on negative paths, never message wording. You may add tests but must never remove, soften, or weaken
   a declared acceptance assertion. A `Suite: full` conformance check gates on the
   entire imported test suite: the step is done only when it passes in full, never on a
   representative subset — reproduce the standard exactly rather than wrapping a
   third-party library that approximates it. For a suite, the runner's exit status is the
   verdict and the whole verdict: print its captured output for diagnosis, never assert on the
   text of its summary. When an assertion is a static or filesystem
   scan (import boundary, "X never appears outside Y," grep/AST gate), honor the
   scope the specification states and never widen it: scan production source only,
   exclude `.venv/`, `site-packages`, and vendored or generated code, and do not
   flag test doubles or fixtures that use the guarded dependency.
   Run every declared acceptance assertion before returning. For a conformance suite,
   use its section or example filters to diagnose coherent root-cause clusters, but
   rerun the full declared scope before reporting the result. Treat failing examples as
   a work queue for fixing general behavior; never add example-specific exceptions.
6. Grow the project's own test suite as you write the code, and treat it as the project's
   real coverage. The acceptance assertions in `implements` are gates: few, fixed, and
   written before any code existed, so every expectation in them is a prediction. The tests
   you write are written *beside* the finished code, so their expected values are observed
   rather than predicted — which is why exhaustive coverage belongs here and not there.
   Extend the suite in the project's established location and runner, keep it runnable by the
   project's declared test command, and leave it green when you return.
   Cover, at minimum: every public entry point and every verb it declares, including declared
   error paths; the boundaries — empty, exactly one, many, absent optional fields, declared
   maxima; declared idempotence, applied twice; one behavior per test, named for the behavior;
   and isolation — database criteria use the provisioned application store and the shipped rollback
   fixture, passing its connection into the feature. Other connections and durability tests use
   criterion-owned records, idempotent setup and checked cleanup through supported interfaces.
   Never replace the configured store, reapply schema, or delete unrelated business records.
   Where a staged authoritative suite already covers a surface, that suite is the coverage:
   run it, and do not restate its cases. Run it **only through the invocation this step's
   acceptance criteria declare**. A criterion marked `Suite: scoped` names the whole of this
   step's obligation to that suite; running the suite's unscoped entry point instead is not
   extra rigor, it is a different step's gate executed early. A partial capability fails most
   of an authoritative corpus by construction and its unimplemented cases exhaust the runner's
   per-case timeout rather than returning, so the unscoped run costs the most where it teaches
   the least, and interrupting it forfeits the step. If no criterion in this step invokes the
   staged suite, do not invoke it. Report the pass/fail counts of the invocations you did run
   in your `SUMMARY` so a reader can see coverage moving across steps.
7. Treat `User Acceptance` entries as review evidence requirements. Implement
   the supporting behavior, but do not claim to have performed human judgment.
8. The `implements` section is authoritative and intentionally stacked late in
   the prompt as the recency anchor. Build that WHAT exactly; do not substitute
   generic framework defaults.
9. Before adding or installing Python dependencies, verify each package name
   against the declared registry. Do not invent package names. If a needed
   package cannot be verified or appears newly published, fail explicitly
   instead of installing it.
10. Use the stack's required package manager workflow for dependency changes.
   When the stack requires `uv`, update manifests through `uv` conventions
   rather than bare `pip install`.
11. Do not claim success unless you actually created or modified project files in
   the build working directory. If you cannot write files or cannot complete the
   step, report failure explicitly.
12. Do not run `git add`, `git commit`, create branches, create tags, rewrite
   history, or otherwise mutate Git history. Drydock checkpoints application changes
   and Target evidence after each execution and completed step. File lineage comes
   from Git and the Manifest's `implements:` entries; no additional attribution
   response is required.
13. End your response with this exact closing structure:

```text
RESULT: SUCCESS | FAILED

FILES CHANGED:
- relative/path

SUMMARY:
<brief reviewable summary>

BLOCKERS:
- <only if any>
```
   Before `RESULT`, you may emit one optional JSON payload when implementation required a bounded
   choice not already settled by the owning specification. This records what you did; it does not
   ask permission, create a questionnaire, or excuse incomplete work:

```text
<blueprint-decisions>
[{"spec":"FEATURE-Example.md","severity":"Material","subject":"Chosen behavior","decision":"Options A and B were available. I implemented B because ... Is that acceptable, or should this change on replan?"}]
</blueprint-decisions>
```

   Name only a specification implemented by this build block. Use `Low` or `Material`; Build never
   emits a Blocking decision. Omit the payload when no implementation decision was necessary.

14. `FILES CHANGED` must list only files actually written in the build working
   directory. If no files were written, use `RESULT: FAILED`.
15. On `RESULT: FAILED`, append two additional lines so the failure is actionable
   without opening logs. `FAILURE_SUMMARY` is one line naming the cause;
   `FAILURE_DETAIL` states what happened, why, and what to change before a rerun.
   Name concrete conditions when they apply: token or context limit exceeded,
   could not execute commands in this environment, a required input was missing,
   or a specific tool or command failed.

```text
FAILURE_SUMMARY: <one line naming the cause>
FAILURE_DETAIL: <what happened, why, and what to change before rerunning>
```

16. When a declared acceptance criterion cannot pass no matter how the code is written,
   say so with this exact token. You may not edit the criterion — it is staged and
   restored before grading:

```text
AC_BROKEN: <check-id>[, <check-id>]
```

   This is a report, not a verdict, and it stops nothing. A criterion reaches you only
   when its expected value is one its author could not have invented — a status code, a
   staged suite's exit status, a value the criterion itself supplied as input — so your
   claim that the criterion rather than the code is at fault is the less likely
   explanation, and the budget is spent as it would be for any other failure. A
   criterion whose expectation *was* hand-typed already settles `DISPUTED` on its own,
   without you naming it. Emit the token only after running the criterion and confirming
   the underlying command succeeded while the assertion still failed. Name the affected
   check ids, emit it alongside your normal `RESULT` line, state the reasoning in
   `FAILURE_DETAIL`, and emit it even when `RESULT: SUCCESS`. Do not use it for a
   criterion you merely failed to satisfy.

