Run artifact

workspace/targets/ReadingList/blueprint/ARCHITECTURE.md

ARCHITECTURE: Reading List

FieldValue
Version20261014 V1
DescriptionApplication factory, test client, and project layout for the reading list web application.
Depends OnCOMPASS.md
Providescreate_app, app_server.testing.web_client
Consumes

Project Layout

Technology Stack

Module Ownership

BoundaryOwnerNotes
Application factoryapp_serverRegisters blueprints and error handlers added by later stories.
PersistencepersistenceGenerated from DATABASE.md; callers reach it only through services.
Routesapp_server feature modulesCall db.books.<verb>(...) and never open a connection.

Foundation Contract

create_app() registers no routes of its own. It wires only the blueprints and error handlers that feature stories contribute.

Programmatic Acceptance

=== AC architecture-create-app ===
Intent: create_app returns a Flask application instance.

from flask import Flask from app_server import create_app

app = create_app() assert isinstance(app, Flask) === END AC architecture-create-app ===

=== AC architecture-web-client-testing ===
Intent: web_client returns a test client whose application has TESTING enabled.

from app_server.testing import web_client

client = web_client() assert client.application.config["TESTING"] is True === END AC architecture-web-client-testing ===

=== AC architecture-web-client-unregistered ===
Intent: web_client answers a path no story registers with 404.

from app_server.testing import web_client

client = web_client() response = client.get("/unregistered-probe-path") assert response.status_code == 404 === END AC architecture-web-client-unregistered ===

User Acceptance

Guardrails