SECourses Build Software People Can Trust
Apply a rigorous software engineering methodology to any program or service so that behavior, stakeholders, boundaries, evidence, and consequences are all understood — not just the happy path.
// TL;DR
SECourses Build Software People Can Trust is a rigorous software engineering methodology for evaluating any system that others depend on — judging behavior against intended outcomes rather than what a screen appears to show. Use it when designing, reviewing, or auditing software for correctness, fairness, safety, or trustworthiness. It walks you through stating the core rule and its authoritative record, drawing the system boundary, mapping every stakeholder (including support staff and accessibility users), comparing designs under conditions of acceptance, tracing the lifecycle as feedback loops, and stating evidence with its exact scope. The size of the software doesn't matter — who depends on it does.
// When should you apply the Build Software People Can Trust methodology?
Use this skill whenever you are designing, reviewing, or auditing any software that other people depend on — not just a disposable local script. Trigger it when a system needs to be evaluated for correctness, fairness, safety, or trustworthiness beyond what the screen appears to show.
// What do you need before you start evaluating a system?
- System or program descriptionrequired
What the software does and who runs or uses it. - Intended outcome or core rulerequired
The authoritative rule the system must uphold (e.g., one confirmed booking per room per hour). State it precisely. - Stakeholder list (initial)
Who uses, operates, supports, or is affected by this system — even people who never click a button. - Constraints
Hard limits that are conditions of acceptance, not points in a score (e.g., response time, correctness requirement). - Current or proposed design
Description, diagram, or code of the design under review.
// What are the core principles behind building trustworthy software?
Judge Behavior, Not Appearance
Engineering judges behavior against an intended outcome and its consequences — not what the screen says. When a screen says success, ask which stored, authoritative state supports that message. Without that state, you have appearance only.
System Boundary Identifies Responsibility and Dependencies
A system boundary identifies what the team controls and what it depends on. It does not make external behavior disappear. What sits outside your boundary still reaches your users.
Quality Depends on Who and What Is Included in the Definition of Success
If someone cannot finish the task, it does not work. The definition of success must include every stakeholder and every condition of use — including keyboard-only users, screen reader users, and support staff diagnosing failures.
Conditions of Acceptance Are Gates, Not Scores
Compare alternatives under stated constraints. Some requirements — especially correctness — are conditions of acceptance: a design that violates them is eliminated before any other attribute is compared. Faster described one attribute; better needs the stated constraints.
Lifecycle as a Network of Feedback Loops
The lifecycle — Need, Model, Implementation, Checks, Release, Operation, Revision — is a network of feedback loops, not a one-way conveyor ending when code runs. The earlier you learn, the less you redo.
A Check Supports a Bounded Claim
Every check covers only the conditions it ran under. Always state the evidence together with its scope — what it covered and what it left out. A test shows what it tested; say what it covered.
Professional Responsibility Includes Consequences on Others
The people affected by a technical choice often did not make it. The engineers who made the choice own the consequences it imposes on those people. Your shortcut becomes someone else's cost.
Choose the Representation for the Question
The right representation is the one whose structure matches the question being asked — not a preferred diagram style. A dependency graph answers 'who depends on what'; a sequence diagram answers 'what happened first'; a state diagram answers 'what states are possible.' Using the wrong structure gives a wrong or incomplete answer.
Process Grows with Consequence
A disposable calculation on your own machine needs none of this care. A shared service that other people depend on needs all of it. The size of the software is not the point; who depends on it is.
// How do you apply the methodology step by step?
- 1
Identify the intended outcome and its authoritative record
State the core rule the system must uphold — e.g., 'one confirmed booking per room per hour.' Then identify where that rule is enforced: is it in the stored, authoritative state, or only on each individual screen/client? A rule kept only on each screen can be violated simultaneously by multiple actors. The rule must be kept where the records are stored, not where the requests originate.
- 2
Draw the system boundary and name every dependency
Draw a dashed boundary around everything the team controls (modules, services, storage). List everything outside it: identity providers, external data sources, notification delivery, file systems, clocks, networks. Classify each crossing arrow: is it a request (someone asks for something), an identity assertion (another system vouches for a fact), reference data (read but not owned), or a notification/report (reports a decision, does not make one)? Treat these kinds differently — confusing them causes security and reliability failures. The boundary does not make external failures disappear; name what the user sees when each dependency is unavailable.
- 3
Build the stakeholder map — include everyone affected, not only those who click
For each stakeholder, state their concern and the question the system must be able to answer. Minimum stakeholders to consider: primary users, users with accessibility needs (motor, visual), operators/staff managing resources, support staff diagnosing failures, and maintainers interpreting past decisions. If you omit support staff now, you will meet their needs in the middle of an incident. Each stakeholder concern becomes a system requirement or quality attribute.
- 4
Define and label quality attributes using ISO 25010 vocabulary
For each quality attribute under evaluation, name it precisely: response time = performance efficiency; correctness = functional suitability; recoverability = reliability; privacy = security; change effort = maintainability. Separate features (things you could add or drop) from quality attributes (how well the system does what it must). Then separate conditions of acceptance — requirements that eliminate a design outright if violated — from attributes that can be traded off.
- 5
Compare design alternatives under stated constraints with conditions of acceptance first
List your constraints explicitly (e.g., 'answer within 2 seconds; correctness required in every case'). For each design alternative, fill in a comparison table: one row per quality attribute, one column per design. Apply conditions of acceptance as gates before comparing any other attribute. A design that violates a condition of acceptance is out before speed, cost, or any other attribute is compared. For designs that survive the gate, consider: response time, correctness, recoverability, privacy, and change effort.
- 6
Trace the lifecycle as feedback loops and identify where each type of defect is cheapest to find
Map defects through the seven-stage loop: Need → Model → Implementation → Checks → Release → Operation → Revision. For each known or hypothetical defect, estimate the rework cost at each discovery stage. A question asked during Need (e.g., 'what does the user see when the message fails?') costs one sentence and one acceptance example. The same defect found in Operation costs incident handling, user communication, state changes, new checks, and a release. An acceptance example written at the Need stage becomes a check later — that arrow runs from Need toward Checks.
- 7
State all evidence together with its conditions and explicitly name what it did not cover
For every claim (e.g., 'this booking logic is correct'), name the check that supports it and write the conditions next to the claim: how many users, what calendar state, which rooms, which timing scenario. Then explicitly state what the check did not cover. A check supports a bounded claim — the third column (conditions not covered) is never empty. Passing one example does not establish correctness for simultaneous requests.
- 8
Apply deliberate data minimisation to any logging, storage, or observability design
For each field collected in logs, records, or telemetry, write a question that field answers that a minimal identifier-and-category record cannot. Collect names, purposes, and personal context only when a written question requires them. Default to: request identifier, timestamp, and outcome category. Add one field at a time with a written reason. The people in the log did not choose the logging design, yet they carry its risk. Your shortcut becomes someone else's cost.
- 9
Choose the representation that matches the question being asked
Before drawing any diagram, state the question explicitly. Then select: requirement card + acceptance example for 'how would we know this is satisfied?'; state diagram for 'what states can this entity be in?'; dependency graph for 'who depends on what?'; sequence diagram for 'what happened first?'; test table for 'which cases did we check?'; release path for 'what does a change travel through before release?'; incident timeline for 'what did we observe and when?'. A flowchart shows steps in order and cannot answer a question about which parts rely on which. Changing who authored a draft (human vs. automated assistant) does not eliminate any of these representations — they describe the system, not the author.
- 10
Run the four check questions on the completed analysis
1. What is wrong with two successful overlapping confirmations? Answer: they violate the intended exclusivity rule even when each individual screen and request appears successful. 2. Why are support staff in the stakeholder map? Answer: their diagnostic needs influence observability, documentation, privacy, and recovery decisions. 3. Does passing one example establish correctness for simultaneous requests? Answer: no — the evidence does not cover that interaction condition. 4. Which representation answers 'what happens after a timeout'? Answer: a state model if asking about possible states; a sequence or timeline view if asking about one particular interaction. If any answer is unclear, return to the relevant workflow step.
// What do real examples of this methodology look like?
An e-commerce platform allows two customers to simultaneously purchase the last unit of a product. Both see a green 'Order Confirmed' screen.
Step 1: The intended outcome is 'one confirmed sale per unit of inventory.' The authoritative record is the inventory database, not the individual checkout screens. Each screen checked its own cached copy (design 1 pattern) — the rule was not kept where the records are stored. Step 2: Boundary includes the checkout service, payment processor integration, inventory service, and notification delivery. The payment processor is an external dependency. Step 5: Design 1 (each screen checks its own cache) violates the correctness condition of acceptance — it is eliminated before speed is compared. Design 2 (one shared inventory decision reads stored stock) keeps the rule. Step 7: A test showing one successful purchase does not cover the simultaneous two-buyer scenario — state that explicitly.
A healthcare appointment booking tool is evaluated for quality. The team believes it works because it looks clean and passes their internal demo.
Step 1: 'Looking clean' is appearance. The authoritative state is the appointment record in the database. Step 3: Stakeholders include patients, clinicians, reception staff, accessibility users (keyboard-only, screen reader), compliance auditors, and on-call support engineers. Step 4 (accessibility): Put the mouse away and Tab through the full booking task once. If the focus ring skips a control or leaves the page, a painted box has been found — a real button element is required. Step 7: 'It passed our demo' is a bounded claim that covers one user, one appointment type, one device, and no simultaneous requests. State what it did not cover.
A team is deciding how much detail to log when a user's file-processing job fails.
Step 8: The diagnostic question is 'why did this job fail?' The minimal record needs: job identifier, timestamp, and outcome category (e.g., 'storage timeout'). The user's file name, content, and purpose are not needed to answer that question. Add 'file type' only if a written question — such as 'is the failure specific to one file format?' — requires it. The users whose files are logged did not choose the logging design; they carry its risk.
// What mistakes should you avoid when evaluating software trustworthiness?
- Stopping at appearance: accepting a green confirmation screen as proof the system worked, without checking the stored, authoritative state that the message is based on.
- Keeping the rule on each screen instead of where the records are stored — this allows simultaneous actors to each see 'free' and both receive confirmations, violating the intended exclusivity rule.
- Treating a condition of acceptance as a point in a score: a design that violates correctness is eliminated before speed or any other attribute is compared, not averaged in.
- Omitting support staff, maintainers, and accessibility users from the stakeholder map — their needs shape observability, documentation, privacy, and recovery design, and forgetting them now means encountering them during an incident.
- Treating the lifecycle as a one-way conveyor: assuming that work flows Need → Code → Done. It is a network of feedback loops; the earlier a defect is found, the less rework it costs.
- Overstating evidence: claiming a system is correct because it passed one example, without naming the conditions that example covered and what it did not cover.
- Logging everything by default: collecting names, purposes, and personal context without a written question that requires each field. The people in the log did not choose the design; they carry its risk.
- Choosing a diagram style for the whole course instead of choosing the representation for the specific question being asked — a flowchart cannot answer 'who depends on what,' and a dependency graph cannot answer 'what happened first.'
- Confusing the kinds of information crossing the system boundary: treating an identity assertion like a request would let anyone ask to be signed in as someone else; treating a notification report like a decision would let a lost message cancel a confirmed booking.
- Assuming that using an automated engineering assistant eliminates any of the representations or checks — they describe the system and its behavior, not who typed the draft.
// What key terms do you need to know?
- Software Engineering
- Making and changing software that people depend on, over its whole lifetime, with the consequences for other people counted in.
- Happy Path
- The sequence of events when everything goes as planned. Engineering begins when the system must be understood beyond the happy path.
- Appearance vs. Authoritative State
- Appearance is what a screen displays (e.g., a green tick). The authoritative state is the stored record the service actually keeps. Evidence comes from the authoritative state and from consequences, not from appearance.
- Rule R1
- The example core invariant: a room has no overlapping confirmed bookings. Intervals are half-open, so 10–11 and 11–12 are adjacent, not overlapping. Used throughout as the canonical correctness condition of acceptance.
- Condition of Acceptance
- A requirement that eliminates a design outright if violated — it is a gate, not a point in a score. Correctness (Rule R1) is the canonical example: a design that can produce two confirmations for one room is out before speed is compared.
- Stakeholder
- Anyone affected by the system — including people who never clicked the button: users with accessibility needs, support staff diagnosing failures, and maintainers interpreting past decisions.
- System Boundary
- The dashed line identifying everything the team controls (inside) versus every person or system the service depends on (outside). The boundary identifies responsibility and dependencies; it does not make external failures disappear.
- Dependency
- Every arrow that crosses the system boundary — something the team relies on but does not control. Named dependencies allow the team to decide what the user sees when one fails.
- Request / Identity Assertion / Reference Data / Notification
- Four kinds of information crossing the system boundary, treated differently. A request is something a person asks for. An identity assertion is a fact another system vouches for. Reference data is read but not owned. A notification reports a decision — it does not make one.
- Quality Attribute
- A dimension of how well the system does what it must, named using ISO 25010 vocabulary: performance efficiency (response time), functional suitability (correctness), reliability (recoverability), security (privacy), maintainability (change effort). Distinct from features, which can be added or dropped.
- Accessibility
- The ability to complete the core task however you use the service — with a mouse, keyboard only, or a screen reader. Reference standard: Web Content Accessibility Guidelines (WCAG) 2.2. Test: put the mouse away and Tab through the whole task once; if the focus ring skips a control or leaves the page, a painted box has been found.
- Painted Box
- A UI element that looks like a control but is not implemented as one — e.g., a styled div instead of a real button — making it unreachable by keyboard or screen reader.
- Lifecycle
- The seven-stage loop: Need, Model, Implementation, Checks, Release, Operation, Revision. It is a network of feedback loops, not a one-way conveyor ending when code runs. The 14 weeks of the course are an order for learning, not 14 separate project phases.
- Iteration
- Going around the lifecycle loop again to revisit understanding.
- Increment
- The usable capability each pass around the lifecycle loop adds.
- Acceptance Example
- A concrete case written next to a requirement that specifies the expected behavior under a particular condition. Written at the Need stage, it becomes a check later. Example: 'When the message fails, the screen says delayed and the booking stays confirmed.'
- Evidence
- What a check showed, together with the conditions it ran under. Evidence is always bounded — it covers exactly the conditions of the check and no others.
- Bounded Claim
- A claim about system behavior that is explicitly scoped to the conditions under which it was tested. The conditions are always stated alongside the claim; the third column — what was not covered — is never empty.
- Trade-off
- A design decision evaluated by its benefit, its cost, and the people it affects — across multiple quality attributes under stated constraints.
- Requirement
- A stated need the system must satisfy, written so that an acceptance example can be attached to it.
- Constraint
- A hard limit on how the system must behave or be built — often a condition of acceptance (e.g., correctness required in every case, response within 2 seconds).
- Deliberate Collection
- The logging and data-collection discipline of adding exactly one field for one written question, rather than logging everything by default. Each field requires a written reason.
- Representation
- The diagram or notation chosen to answer a specific engineering question. The right representation is the one whose structure matches the question: dependency graph for 'who depends on what,' sequence diagram for 'what happened first,' state diagram for 'what states are possible,' etc.
// FREQUENTLY ASKED QUESTIONS
What does it mean to build software people can trust?
It means judging a system's behavior against its intended outcome and consequences, not against what a screen displays. A green 'success' message is appearance; trust comes from checking the stored, authoritative state that the message is based on. Trustworthy software accounts for every stakeholder, names every dependency, states evidence with its scope, and treats correctness as a gate that eliminates bad designs outright.
What is the difference between appearance and authoritative state?
Appearance is what a screen shows — a green tick or 'Order Confirmed' message. Authoritative state is the stored record the service actually keeps, like the inventory database or appointment record. Evidence of correctness comes from the authoritative state and from consequences, never from appearance. If a screen says success but no stored state supports it, you have only appearance.
How do I draw a system boundary for my software?
Draw a dashed line around everything your team controls — modules, services, storage — and list everything outside it: identity providers, external data sources, notification delivery, file systems, clocks, networks. Classify each arrow crossing the boundary as a request, identity assertion, reference data, or notification. The boundary identifies responsibility and dependencies; it does not make external failures disappear, so name what the user sees when each dependency is unavailable.
How do I know if my testing evidence is strong enough?
State every claim alongside the exact conditions the check ran under — how many users, what state, which scenarios — and explicitly name what the check did not cover. A check supports a bounded claim; the 'what was not covered' column is never empty. Passing one example does not establish correctness for simultaneous requests, so if you can't name the covered conditions, your evidence is overstated.
When should I use this software engineering methodology?
Use it whenever you design, review, or audit software that other people depend on — not a disposable local script. Trigger it when a system must be evaluated for correctness, fairness, safety, or trustworthiness beyond what the screen shows. A one-off calculation on your own machine needs none of this care; a shared service that others rely on needs all of it. Process grows with consequence.
How does this compare to just testing the happy path?
Happy-path testing covers only the sequence where everything goes as planned, which is exactly where engineering begins, not ends. This methodology forces you past the happy path: simultaneous actors, dependency failures, accessibility users, and support staff diagnosing incidents. Where happy-path testing produces a green demo, this approach asks which authoritative state supports that success and what conditions the test never covered.
What is a condition of acceptance versus a quality attribute?
A condition of acceptance is a requirement that eliminates a design outright if violated — it is a gate, not a point in a score. Correctness is the canonical example. A quality attribute is a dimension you can trade off, like response time or change effort. Apply conditions of acceptance as gates first: a design that violates correctness is out before speed or cost is ever compared.
Why do I need to include support staff and accessibility users as stakeholders?
Because their needs shape observability, documentation, privacy, and recovery design — and if you omit them now, you will meet their requirements in the middle of an incident instead. Accessibility users who are keyboard-only or use screen readers must be able to finish the core task; if they can't, the system doesn't work. Every stakeholder concern becomes a system requirement or quality attribute.
What results can I expect from applying this methodology?
You catch defects earlier in the lifecycle, where they cost one sentence instead of a full incident response. You eliminate designs that violate correctness before wasting time comparing speed. You produce evidence you can defend because its scope is stated. And you avoid the costly failures — double bookings, inaccessible flows, over-collected data — that come from stopping at appearance.
How do I choose the right diagram or representation?
State the question first, then pick the representation whose structure matches it. Use a dependency graph for 'who depends on what,' a sequence diagram for 'what happened first,' a state diagram for 'what states are possible,' a test table for 'which cases did we check,' and an incident timeline for 'what did we observe and when.' A flowchart shows steps in order and cannot answer who depends on what.