Macalinao Studio / Learn

Worked lessons · 19 November 2026

Lesson 08 / 12 · approximately 8–12 minutes

Architecture as responsibilities

Map data and authority before selecting products.

UnderstandInspect evidenceTryCheck

The idea

A frontend receives a request. An application layer authenticates the caller, retrieves scoped evidence, chooses a model or deterministic computation and validates the result. External tools need their own authorization boundaries. Storage supports selected persistence requirements, while evaluation, monitoring and security span the system. A diagram that places observability after the database is a simplification, not an instruction to add logging only at the end. A model response need not be stored forever.

Worked example

For a fictional policy assistant, keep a policy store, a scoped retrieval function, a response draft and a human escalation route. It may not need a vector database, queue, Kubernetes or multiple agents at first. Add these only to meet a measured requirement. Memory types such as working and episodic describe intended behavior; Redis and PostgreSQL are implementation choices, not memory types. A provider gateway can centralize routing without replacing access control.

Use it in a workflow

  1. Draw request, evidence and action paths with different labels.
  2. Annotate owner identity, retention and permitted operations.
  3. Specify failure behavior when a dependency or source is unavailable.
  4. Select the smallest existing components that meet those responsibilities.

Try it without a model

Draw the minimal policy assistant and mark one confidential source, one public source, one missing-source failure and one human approval gate.

Compare with the answer criteria

Confidential retrieval is identity-scoped; public evidence still needs freshness checks. Missing evidence produces uncertainty or escalation. Any external mutation has a separate approval gate. Product choice is a later decision.

Check your understanding

Which requirement justifies adding a queue?

Continue and verify

Connected concepts: 09, 11, 16, 18, 20