Engineering: section map for agents
Main map · This map · Section overview
Working notes on software design, architecture, delivery, data systems, testing, and review practices, with references and exercises for developing engineering judgment.
All documents in this collection are listed below, grouped by subsection.
Status labels: Canonical = preferred starting point for its topic; Draft = provisional working material; Archived = preserved history. Unlabeled documents have no assigned status.
Documents
- AHA Programming, by Kent C. Dodds — Compare DRY, WET, and AHA to decide when duplication is acceptable and when repeated code justifies an abstraction.
- Premature Abstraction in Software Design — Names for premature abstraction (speculative generality, premature generalization, YAGNI violation, wrong abstraction), their counterparts in Design Science and scientific reasoning, and a closing sketch of inquiry as an evolving …
Architecture
Notes on architectural qualities, trade-offs, design techniques, and heuristics, helping readers connect requirements and uncertainty to practical software design choices.
- Architectural Characteristics — Compare operational, structural, cloud, and cross-cutting quality characteristics when discussing architectural requirements and trade-offs.
- Architecture Toolbox — Hub for the heuristics used to reason about architecture and design: the three laws of software architecture, balanced coupling, ETC, YAGNI, simple design, and named design principles, with how they relate and when each applies.
- Changeability in Software Architecture [Draft] — An undeveloped research prompt on changeability in software engineering, marking a topic for future definitions, examples, and practical applications.
- Coupling and Modularity — Coupling as a design tool rather than a defect: Khononov's balanced coupling model (integration strength, distance, volatility), the connascence vocabulary behind it, and how it turns the laws of architecture into a rule for boundaries.
- Engineering Lifecycle Techniques — Choose spikes, proofs of concept, prototypes, walking skeletons, vertical slices, and rollout techniques according to the uncertainty being resolved.
- Laws of Software Architecture — Richards and Ford's three laws of software architecture (everything is a trade-off, why matters more than how, decisions sit on a spectrum), with their corollaries, worked examples, and a trade-off procedure built from them.
- Software Architecture: A Working Outline [Draft] — A working outline of software architecture concepts, quality characteristics, decisions, practices, and resources for developing architectural judgment.
- YAGNI: Reading List and Open Questions [Draft] — A reading list and open questions about applying YAGNI, balancing future needs with simplicity, and understanding its relationship to XP practices.
Data and Databases
Database study notes on storage choices, access patterns, scaling, consistency, and SQL versus NoSQL trade-offs, with references and examples for system-design discussions.
- Databases and Access Patterns — Study notes for matching storage types to access patterns and exploring sharding, indexing, denormalization, and database engineering resources.
- SQL vs. NoSQL Trade-offs — Interview-oriented notes for discussing SQL and NoSQL choices through consistency, data shape, scaling, and worked system-design examples.
Delivery Techniques
Guides and working notes on walking skeletons, delivery slices, prototypes, and platform templates, helping teams choose what to build first and what evidence to gather.
- Engineering Delivery Techniques Guide [Draft] — Choose delivery techniques by uncertainty and lifecycle stage, specifying scope, real versus simplified parts, completion evidence, lifespan, and the next decision.
- Golden Paths and Checkpoints for LLM Work — Collected notes on golden paths for RAG, agents, and evaluation harnesses, connecting platform templates and engineering checkpoints to observable outcomes.
- Walking Skeleton: Definition and Examples — Define an architectural walking skeleton, its acceptance criteria and lifespan, with document-QA examples and alternative formulations of the first delivery slice.
- Walking Skeleton: Workflow Validation — Choose one narrow end-to-end workflow to validate architectural boundaries, data contracts, observability, and failure handling before expanding functionality.
Distributed Systems
The theory beneath system design: system models and failures, time and order, consistency and CAP, broadcast and consensus, coordination avoidance, distributed computation, verification, replication, partitioning, transactions, and hashing.
- Broadcast and Consensus [Draft] — Broadcast from best-effort to total order, consensus and its equivalence with total-order broadcast, the FLP result and how systems escape it, quorums, Paxos, Raft, Viewstamped Replication and Zab, Byzantine consensus, and coordination …
- Consistency Guarantees [Draft] — What a replicated system can promise about the values clients read: consistency models and their latency cost, session guarantees, transaction isolation levels, what CAP proves, PACELC, delay sensitivity, and choosing consistency per …
- Consistent and Rendezvous Hashing [Draft] — Why hash mod N remaps almost every key, consistent hashing on a ring with virtual nodes and replication, rendezvous hashing and its weighting, a comparison of key movement and lookup cost, and how DDIA 2e uses the term consistent hashing.
- Coordination Avoidance [Draft] — When replicas can accept operations without agreeing first: the cost of coordination, strong eventual consistency, last-write-wins, siblings and merges, OT and CRDTs, the CALM theorem and invariant confluence, and local-first sync engines.
- Distributed Computation [Draft] — How work is split across machines: partitioning and data locality, Burns's sharding, scatter/gather and work-queue patterns, MapReduce and dataflow engines, distributed joins, stream processing, consistent checkpoints, and durable …
- Distributed Systems Reading List — Courses, books, papers, articles, and verification resources for studying distributed systems, with the books and papers in the library.
- Partitioning (Sharding) [Draft] — How data is split across machines and found again: key-range, hash and compound partition keys, skew and hot keys, local and global secondary indexes, rebalancing, request routing, sharding for multitenancy and cells, and cross-partition …
- Replication in Distributed Systems [Draft] — How copies of the same data stay in step across machines: single-leader replication and failover, replication logs and change data capture, replication lag, multi-leader conflicts, leaderless quorums and anti-entropy, and a comparison of …
- System Models and Failures [Draft] — What can go wrong in a distributed system and what an algorithm assumes about it: partial failure, node, link and timing models, safety and liveness, failure detectors, gray failure, and how to state fault assumptions in a design.
- Time and Order in Distributed Systems [Draft] — How nodes order events without a shared clock: time-of-day and monotonic clocks, drift and NTP, happens-before and Lamport clocks, vector clocks and version vectors, hybrid logical clocks, causal versus total order, leases, and fencing …
- Transactions in Distributed Systems [Draft] — What transactions guarantee and how they are built: ACID defined precisely, isolation anomalies and the mechanisms that prevent them, serializability, two-phase commit and its failure modes, Spanner and Calvin, exactly-once processing, and …
- Verifying Distributed Systems [Draft] — How to gain confidence that a distributed system is correct: why ordinary tests miss distributed bugs, randomized testing, fault injection and Jepsen checks, deterministic simulation testing, TLA+ model checking, proofs, and how to combine …
Engineering Experiments
Working notes on exploratory design and engineering experiments, connecting evaluation, contracts, inspectable artifacts, and workbenches to learning about system behavior.
- Design Pressure Toward Modularity in LLM Systems — Use contract-driven evaluation and testing to encourage modularity, replayability, explicit interfaces, and diagnosable failures in RAG and function-calling systems.
- Exploratory Pipeline Design: Linked Notes — An index of exploratory pipeline-design research on inspectable artifacts, interactive workbenches, and progressive automation, including proposals and open questions.
Engineering Review Framework
A framework and supporting guides for reviewing software changes through business goals, requirements, design quality, testing, AI-specific risks, and independent verification.
- Backward Design and Independent Verification — Work backward from product outcomes to required behavior, then independently design verification around consequential failures and observable results.
- Business, Product, and Feature Context — Frame a software change through its business problem, intended users, expected outcome, scope, constraints, and success measures.
- Engineering Review Framework Overview — Review software changes across business context, requirements, engineering principles, technical quality, testing, AI risks, and tools.
- Engineering Review Framework: Assessment and Trial — An assessment of the Engineering Review Framework: what it already justifies, a trial on a payment-retry change, and five proposed revisions to strengthen property, failure, design, and test reasoning.
- Engineering Review Framework: Rationale and Use — Use the Engineering Review Framework to retain context, choose review depth, and connect checklists, supporting notes, and project guidance.
- Engineering Review Reference Lists — Reference lists for business context, requirements, engineering principles, technical review, testing, AI-specific risks, and review tools.
- LLM-Specific Review Guide — Review AI-assisted changes for invented APIs, unsupported assumptions, unnecessary complexity, weak tests, and unverified execution claims.
- Requirements and Quality Targets in Review — Define functional behavior, quality targets, constraints, workload assumptions, and verification criteria before assessing implementation.
- Review Agents, Skills, and Tools — Support review with agents, reusable skills, agentic workflows, and tools, choosing their roles according to the review question.
- Review Tools and Skills Catalog — Local wrappers, unfinished review experiments, and skill collections, with short descriptions and possible uses in the Engineering Review Framework.
- Software Engineering Principles — Apply shared engineering goals across programming paradigms, using design techniques appropriate to the language, code, and actual dependencies.
- Technical Review Guide — Review implementation logic, APIs, state, data, dependencies, security, and operability using project context and relevant technical checklists.
- Testing, CI, and PR Review Guide — Combine tests, CI, author preparation, and human review to assess software changes, with clear expectations and evidence from executed checks.
Engineering Topics
Study notes and reading resources on data storage, messaging, distributed systems, deployment, testing, and trade-offs, with unfinished placeholders identified separately.
- Apache Kafka Study Notes — Study Kafka topics, partitions, producers, consumer groups, offsets, rebalancing, delivery semantics, and failure handling when designing event pipelines.
- Back-of-the-Envelope Estimates — Use back-of-the-envelope estimates and common performance numbers to reason about capacity and judge whether a proposed design can meet its requirements.
- Caching Strategies and Trade-offs — Explore cache placement, invalidation, write strategies, freshness, eviction policies, and sharding when weighing performance against consistency and complexity.
- Cassandra Consistency and Availability — Reading notes on Cassandra consistency and availability trade-offs, tunable consistency, and resources for analytics with Apache Spark.
- DynamoDB Study Notes — Study access-pattern-driven DynamoDB modeling, single-table design, consistency, global tables, limits, APIs, and change streams.
- Event-Driven Architecture Resources — Collected event-driven architecture resources, patterns, and excerpts for exploring pub/sub, events, and messaging-based system design.
- Software Security [Draft] — An empty placeholder reserved for future security notes in the engineering collection; it currently contains no explanations, examples, or technical guidance.
- SQL Study Notes [Draft] — An empty placeholder for future SQL study notes in the engineering collection; query examples, explanations, and practical guidance have not yet been written.
- Stream Processing and Events — Explore events, immutable facts, streams, denormalized views, processing patterns, and a streaming-engine example when reasoning about event-based data systems.
- Streaming Resources and Exercises — Collected streaming resources, learning exercises, batch-versus-stream examples, and Redpanda walkthrough notes for analytics and session-recording use cases.
- Trade-off Analysis Framework (ChatGPT Notes) — Structure trade-off analysis by defining goals and criteria, comparing alternatives, quantifying attributes, recording a decision, and validating it iteratively.
Software Testing
Test-strategy notes, a playbook, and an adoption draft for connecting product intent, risks, contracts, CI checks, and team ownership to useful evidence about software.
- Earlier Test Strategy Notes — Earlier test-strategy notes connecting risk, change cost, testability, system contracts, evidence, and the practical test pyramid, including preparation checklists.
- Test Strategy Foundations (Precursor to Playbook v3) — Build a test portfolio from product intent, invariants, contracts, quality scenarios, and risks, using the practical test pyramid to balance feedback speed and diagnostic value.
- Test Strategy Playbook Adoption RFC [Draft] — A draft RFC for adopting the test-strategy playbook across teams, covering evidence maps, CI gates, determinism, ownership, implementation phases, and rollout.
- Test Strategy Playbook v3 — A detailed test-strategy playbook combining practical-pyramid mental models with evidence mapping, pipeline budgets, ownership, governance, and operational templates.
- Tests and the Domain Model — How the DDD and domain-modeling books describe the role of tests: checking business rules, documenting the model in the domain language, dividing the work with types, shaping a model that can be unit tested, and choosing what and where to …
Evidence in Software Engineering
What evidence a claim about engineering practice needs: ten principles, from stating the claim and arguing for the measure to comparison, method, replication and scrutiny of the evidence itself, with the practices that apply them.
- Causal Claims Need a Comparison — A claim that a practice or tool caused an outcome needs a counterfactual: name the experiment that would settle it, then look for the confounders and the patterns that only look like effects.
- Choosing a Method — Different claims need different methods: benchmarks for capability under set conditions, experiments for causes, case studies for how and why, longitudinal studies for change, and reviews for the total evidence. Experience reports are none …
- Claims Without Evidence — Essays and practitioner retrospectives question whether software development methodologies improve practice, and Bossavit traces how software engineering 'facts' spread by citation without evidence.
- Critical Stance and Evidence-Based Practice — Critical empirical practice combines skepticism, practical tests, and reflection. Its vocabulary distinguishes checking a claim from examining whether the measurement and interpretation support it.
- Evidence in Software Engineering: Provenance — Where the notes in this section came from: two notes moved from the AI evaluation folder, one restored from git history, and one long note split by topic around ten principles.
- Evidence-Based Software Engineering — Evidence-based software engineering connects answerable questions, literature search, critical appraisal, practitioner expertise, and stakeholder values, then evaluates the effects of the chosen practice.
- Four Kinds of Validity — Construct, internal, external and conclusion validity name four ways a study can be wrong, and reproducibility adds a fifth question: whether anyone else could repeat it.
- Measures and Constructs — A metric stands for the concept a claim is about only with an argument that it does. Productivity has several dimensions, and a measure that becomes a target stops measuring.
- Running an Experiment — Empirical software engineering already has a method for experiments: a five-stage process, method-specific standards for what a study must report, and preregistration to fix the outcome before the data is seen.
- Stating a Claim — A claim about engineering practice names its outcome, population, intervention, comparison and time, and whether it is descriptive, associational, causal or speculative. Empirical claims carry evidence, not proof, and a stated uncertainty.
Platform and Delivery
Notes on the platform side of the application–platform contract: Twelve-Factor, deployment, infrastructure as code, Kubernetes, GitOps and declarative configuration, control planes, and platform engineering and developer experience.
- Delivery Capabilities [Draft] — Delivery defined as an operating model above platform tooling: the production change as its central object, the change lifecycle and its two feedback loops, seven delivery capabilities, ownership and architecture, and how AI systems extend …
- Deployment and Progressive Delivery — How software reaches an environment and then its users: deployment principles, separating deployment from release, progressive delivery, environments, and choosing a deployment platform.
- Four Layers of Engineering Standards [Draft] — A four-layer sketch connecting engineering standards, repository and pipeline enforcement, service readiness, and delivery measurements.
- GitOps and Declarative Configuration — Declarative desired state, reconciliation, and GitOps: the four OpenGitOps principles, push versus pull delivery, drift, environment promotion, secrets, limits, and the same model applied to AI system configuration.
- Infrastructure as Code — Representing infrastructure as reviewed, versioned code: declarative and imperative tools, state and drift, consistency across environments, immutable infrastructure, modules, policy as code, and how to learn it.
- Kubernetes — Study Kubernetes architecture, pods, deployments, replica sets, resource management, service discovery, configuration, and extensions, with learning exercises.
- Learning Terraform: Collected Advice — Practical learning advice for Terraform: choose a small infrastructure goal, implement it as code, and expand through hands-on AWS exercises.
- Platform Engineering and Developer Experience — Platform engineering as a product for developers: the narrow-conduit idea, golden paths, self-service and its limits, platform teams, standards and enforcement, measuring delivery and developer experience, and the same ideas in AI work.
- Platform Product Framing [Draft] — How to define what an internal platform is for (its role, users, outcomes, goals, boundaries, and principles), how to build that framing from existing inputs, and why making it explicit improves platform decisions.
- Twelve-Factor and Its Descendants — The Twelve-Factor App as a contract between an application and its platform, and the frameworks that rewrote it for containers, Kubernetes, ML pipelines, and LLM agents: their decisions, justifications, and flaws.
Programming Languages
Programming-language study notes, currently focused on Python and CPython, for comparing execution models, concurrency, runtime types, and JVM behavior.
Python
Notes on Python and CPython internals, covering concurrency, free threading, polymorphism, runtime classes, and Pydantic to explain how familiar language features work.
- CPython Free Threading and Concurrency — Explain CPython free threading, the GIL, synchronization of shared data, and the differences between threads, processes, isolated interpreters, and asynchronous tasks.
- CPython, the JVM, and Polymorphism — Compare CPython and JVM execution, bytecode, memory management, and polymorphism, including Python's method lookup, descriptors, and operator dispatch.
- Python Data Model, Annotations, and Pydantic — Explain Python's runtime class creation, annotations, and dataclasses, and trace how Pydantic builds schemas and calls its Rust validation engine.
Progressive Architecture
Research notes on developing architecture from user needs, outcomes, and workflows, connecting backward design, domain language, and decision records to system responsibilities.
- Backward Design Derivation — Trace user needs through outcomes, workflows, capabilities, and system responsibilities; compare JTBD, requirements engineering, Wardley Mapping, and related methods.
- Intent-Driven Architecture: DDD, Use Cases, and ADRs — Frame architecture through user needs and jobs to be done, using domain language, DSLs, DDD practices, use cases, and decision records to preserve intent.
Goal-Oriented Architecture
Research notes comparing methods for deriving architecture from goals, workflows, and scenarios, helping readers connect user intent to responsibilities and design decisions.
- Architecture Grounded in User Goals — Research notes on how user goals and workflows can ground architectural responsibilities and provide context beyond structural diagrams.
- Intent-Driven and Scenario-Driven Architecture — Compare goal-driven and scenario-driven architecture methods, from Impact Mapping and KAOS to Domain Storytelling, EventStorming, quality scenarios, and BDD.
Use the main map to explore other collections. Descriptions come from note metadata or the page summary; working notes and versions retain their own scope.