Chapter I
Idea & discovery
driven by product · fed by customers, partners, data
Nothing at Mahalo begins with code. It begins with a signal: a customer asks for something on a call, several support conversations describe the same pain, or our usage data shows people struggling with a flow. Our product team collects these signals, spots the pattern, and decides which problem deserves the team's next few weeks.
We keep these signals in the open, not in anyone's head. Customer conversations are documented, feedback is tagged and routed to a shared inbox, and anyone in the company can raise what they heard from a customer. Because feedback often contains personal information, it is handled under the same data rules as everything else: stored in approved systems, access-controlled, and never copied into random spreadsheets.
Chapter II
Spec: requirements, design, risk
driven by product → design → engineering · with risk & privacy review
We write the problem down three times, each time answering a different question. Product writes the PRD — why and what. Design turns that into mockups — the look and feel. A senior engineer writes the technical design document — how we build it without breaking anything. These documents are cheap on purpose: changing a sentence costs nothing; changing shipped code costs weeks. We want our arguments to happen here.
Two things make our specs different, and both come from working with regulated data. First, every requirement gets a permanent ID the moment it is written — that ID follows the requirement through design, code, tests, and release, forming an unbroken chain of traceability. Second, every spec includes a risk and privacy assessment: what could go wrong for the user, what personal or health data does this touch, do we actually need that data, and what is the safest design that still solves the problem. Privacy is not reviewed at the end — it is a design input.
Document skeleton
What every Mahalo PRD contains
- 01Problem — Admins can't export more than 1,000 rows at once. 14 tickets last quarter; two at-risk accounts named it in renewal calls. One paragraph, with evidence.
- 02Goals & success metrics — Admins export up to 500k rows in the background. Success: export tickets −80% within a quarter.
- 03Non-goals — No scheduled exports in v1. No new file formats. The section that stops scope creep.
- 04Requirements — each with an ID — REQ-140: an admin requests an export and receives an emailed link. REQ-141: exports respect the requester's data permissions. REQ-142: every export is written to the audit log. Each ID will be traced to code and tests.
- 05Risk & privacy assessment — What data leaves the system? Who can trigger it? Could it expose more than the minimum necessary? Does this need a formal privacy impact assessment (DPIA)? What happens if a link leaks — hence expiring, signed links only.
- 06Design — A link to the design file. The PRD points at pixels, never describes them.
- 07Launch plan — Beta behind a feature flag to design partners → general availability once metrics hold.
Chapter III
Plan: backlog & sprints
driven by engineering and product together · executed by the team
The approved design gets sliced into tickets — small pieces of work, each finishable in one to three days. Every ticket links back to its requirement ID, so the traceability chain continues. Tickets live in our backlog, a ranked to-do list the whole company can see.
Every two weeks we run sprint planning: pull the top tickets into the sprint, size them, and commit. Every morning, a short standup. At sprint end: a demo and a retro — what went well, what didn't, one thing we'll change. The sprint is a planning heartbeat, not a shipping schedule: code merges and deploys every day throughout. Changing an approved requirement mid-sprint is not forbidden — but it goes through change control: the change is written down, its impact assessed, and the spec re-approved, so the paper trail never lies about what we built.
Chapter IV
Build: how the work is done
driven by individual builders · quality gate: independent peer review
All our code lives in a version-controlled repository. The main branch is sacred — it must always be shippable, and nobody edits it directly. Each person works on a short-lived branch named after their ticket, with AI assistance handling boilerplate, tests, and first drafts. We embrace AI tooling fully — and hold AI-written code to exactly the same review standard as human-written code.
When the work is ready, a pull request is opened — a proposal that says "here is my change, please review it." At least one teammate reviews it: naming, edge cases, missed tests, security, simpler approaches. Two rules are enforced by the platform, not by trust: the author can never approve their own change (segregation of duties), and nothing reaches main without a green review. Access follows least privilege — everyone has exactly the access their role needs, granted through role groups, reviewed quarterly, and revoked the day someone leaves. Production data never appears on laptops: local development runs on synthetic test data only.
A day in the life
- 09:45 — Standup. "Finished the export API yesterday, starting the background job today, blocked on nothing."
- 10:00 — Pull the next ticket. Read the spec, the technical design document, the requirement IDs it covers, and the design frame.
- 10:15 — Branch and build. Write the job, with AI assistance drafting the retry logic and the unit tests. All against synthetic data.
- 13:30 — Run tests locally, open the pull request. A clear description: what changed, why, which requirement IDs it satisfies, how to test it.
- 14:00 — Review someone else's change. Reviewing others' work is half the job here. Leave three comments; approve after fixes.
- 16:20 — Address review comments, merge. Checks green, independent reviewer approved. Merge to main.
- 16:30 — Watch it deploy. The bot posts: "export-worker v2.41 → staging ✓ → canary…". Keep one eye on the dashboard.
Chapter V
Verify: automated checks on every change
driven by machines · no exceptions, no mood swings
The moment a change is proposed, our pipeline runs the same checklist on every single change: format the code, lint it, run the unit tests, run integration tests against a throwaway database, build the container, and scan the code, its dependencies, and the image for known security issues. Any red ✗ and the merge is locked — for everyone, including founders.
This stage is where requirements are formally verified: each requirement ID has named tests that prove it works as specified — REQ-142 ("every export is audit-logged") has a test that runs an export and asserts the log entry exists. The pipeline logs themselves are retained and tamper-evident, which means our test evidence is not assembled for an audit once a year; it is generated automatically, on every change, forever. Human quality testing focuses where machines are weak: exploratory testing of big features in the staging environment.
Chapter VI
Deploy: staged, watched, reversible
driven by automation · watched by the person who merged, and the on-call
Merging to main fires our deployment pipeline. It builds a final container image, tags it with the commit hash, and pushes it to our registry. From there, the rollout happens in three waves. Staging first — a full copy of production with test data (never real data), where smoke tests and exploratory testing run. Then canary — the new version takes about 5% of real traffic for 15–30 minutes while we compare its error rate and latency against the old version. Then full rollout — traffic shifts to 100% and the old version drains away. If anything looks wrong, one click points traffic back at the previous version: rollback in under a minute. Deploying should be boring; we have designed it that way.
The environments themselves are built for regulated data. Everything is encrypted in transit and at rest, everywhere, always. Infrastructure is defined as code and changed through the same review process as the product — nobody clicks around a cloud console making untracked changes. Production access is restricted to a small on-call group, every access is logged, and databases are backed up continuously with restores actually tested, not assumed. Data is hosted in the regions our customers' rules require.
Chapter VII
Release: flags, validation, consent
driven by product and engineering together
Deploying code and releasing a feature are two different events at Mahalo. New code ships to production for weeks, one change at a time — wrapped in a feature flag, a remote on/off switch, so no customer sees it until it is ready. The code is live; the feature is dark.
When it is ready, we turn the flag on for a handful of design-partner customers first. This staged release is also where validation happens — not "does the code pass its tests" (that was verification) but "does the feature actually solve the user's problem in real use." Feedback comes in, fixes ship, then the flag opens to 25% of customers, then 100%. If the feature collects any new personal data or uses existing data in a new way, the release checklist requires the legal basis to be settled first — consent flows updated, privacy notice amended, processing records updated — before the flag opens beyond partners. Turning a feature off takes one click and zero deploys.
Chapter VIII
Observe: and close the loop
driven by the on-call and product · the loop restarts here
We watch production from three angles. Is it up? — monitoring tracks error rates, latency, and resource usage; if a threshold trips, the on-call phone rings, at 3 a.m. if necessary. Is it broken for someone? — crash reporting catches every error with a full trace. Is it working as a product? — analytics show whether people actually use the feature and whether the PRD's success metric was hit.
Two disciplined loops run from here. When something breaks badly, we write a blameless postmortem: what happened, why, what we are changing — never who to blame. Each corrective action becomes a tracked item with an owner and a deadline; that is our CAPA process, and it is the same loop whether the trigger is an outage, a security event, an audit finding, or a customer complaint. And if an incident touches personal or health data, a separate clock starts: our incident response plan classifies it, contains it, and — where the rules require — notifies regulators and affected customers within the mandated windows, GDPR's 72 hours being the tightest. We rehearse this; the first time we run the breach playbook is never during a real breach.
Chapter IX
One process, six frameworks
Here is our core belief about compliance: we do not run a separate compliance process next to our building process. We run one good process, and the frameworks are different auditors asking different questions about the same evidence. A reviewed, approved change is simultaneously ISO 13485 design control, SOC 2 change management, and ISO 27001 secure development. The audit trail is not something we assemble in a panic before an audit — our tools generate it automatically, every day, as a side effect of working the way we work.
What each framework asks of us, in simple words:
ISO 13485 — quality management for medical device software. The question it asks: can you prove that what you built is exactly what was needed — and show your working? How we answer: design controls end to end. Requirements are formal design inputs with permanent IDs. Specs and code are design outputs. Peer reviews are design reviews. Pipeline tests are design verification. Partner betas are design validation. Risk is assessed per feature and kept in a living risk file. Every change to an approved design goes through change control. The traceability chain — requirement → design → code → test → release — is unbroken.
ISO 27001 — information security management. The question it asks: do you manage security deliberately, top to bottom — not as a collection of good intentions? How we answer: a maintained risk register drives our controls. Least-privilege access granted by role, reviewed quarterly, revoked on exit. Secrets in a vault, never in code. Encryption everywhere. Secure development enforced by the pipeline. Vendors assessed before use. Incidents triaged through a defined process. Internal audits and a yearly management review keep the whole system honest — leadership reads the findings and funds the fixes.
ISO 9001 — quality management, company-wide. The question it asks: do you do what you say, say what you do, and improve when reality disagrees? How we answer: documented, controlled processes — this very playbook is one. Customer feedback formally captured and acted on. Nonconformities — bugs, complaints, audit findings — feed CAPA: corrective actions with owners, deadlines, and effectiveness checks. Retros and postmortems institutionalise improvement. Documents are versioned and approved; nothing official changes silently.
SOC 2 — trust criteria, examined independently. The question it asks: can an independent examiner watch your controls operate over months and find them real? How we answer: by making evidence automatic. Branch protection proves segregation of duties on every merge. Pipeline logs prove testing on every change. Deploy history proves controlled releases. Access reviews, on-call rotations, backup tests, and vendor reviews run on a calendar with artifacts to show. When change #4,217 is sampled, the ticket, the review, the approval, the test run, and the deploy log are all linked and timestamped.
HIPAA — safeguarding health information. The question it asks: is health data protected by administration, by technology, and by contract — with proof of who touched it? How we answer: administrative safeguards — everyone trained on hire and yearly, access granted on minimum-necessary, business associate agreements signed with every vendor that touches health data. Technical safeguards — encryption at rest and in transit, unique user IDs, immutable audit logs of every access, automatic timeouts. Health data lives only in production; development runs on synthetic data. Breach duties are in the incident plan and rehearsed.
GDPR — personal data rights and privacy by design. The question it asks: do people control their own data — and did you design it that way from the start? How we answer: privacy is a design input, decided in the spec: lawful basis before collection, minimisation by default, retention defined up front, impact assessments for high-risk features. Data-subject rights — access, correction, deletion, export — are built product capabilities, not manual scrambles. Records of processing stay current. Data stays in agreed regions, processors are bound by data processing agreements, and breaches are notified within 72 hours where required.
Chapter X
The golden thread: traceability
The single mechanism that makes all six frameworks workable at once is the traceability chain. Every requirement gets an ID at birth, and that ID is carried — automatically, by our tools — through every artifact it produces. When anyone asks "why does this exist?", "was this tested?", or "who approved this?", the answer is one click away, in either direction along the chain:
Requirement (REQ-142, in the PRD) → Design document (§3, audit logging) → Ticket (ENG-482) → Change #891 (independently approved) → Test (export.audit ✓) → Release v2.41 (deployed, audit-logged).
Readable in both directions: audit any release back to its requirement, or any requirement forward to its proof.
Where each stage produces its evidence
| Stage | ISO 13485 | ISO 27001 | ISO 9001 | SOC 2 | HIPAA | GDPR |
|---|---|---|---|---|---|---|
| 01 · Idea | Customer needs captured as design-input source | Feedback stored in approved systems | Customer feedback records | — | Examples de-identified | Lawful, minimal handling of feedback data |
| 02 · Spec | Design inputs (REQ IDs), design review, risk file | Security requirements per feature | Controlled, versioned documents | — | Minimum-necessary decided in design | Privacy by design, DPIA, retention set up front |
| 03 · Plan | Change control on approved specs | — | Planning & commitment records | Every change traces to an authorised ticket | — | — |
| 04 · Build | Code as controlled design output, linked to REQ IDs | Least privilege, secrets vault, secure coding | — | Segregation of duties, enforced & logged | No real data in development — synthetic only | No real data in development — synthetic only |
| 05 · Verify | Design verification: tests per REQ ID | Vulnerability scanning every build | Nonconforming work blocked (red \= locked) | Automatic change-management evidence | — | — |
| 06 · Deploy | — | Environment separation, logged production access, infrastructure as code | — | Availability: uptime, tested backups, rollback | Encryption, unique IDs, session timeouts, disaster recovery | Data residency; no real data in staging |
| 07 · Release | Design validation with real users, documented | — | Controlled release records | — | — | Lawful basis, consent & notices before rollout |
| 08 · Observe | Complaints & CAPA to closure | Incident process, risk register updated | Postmortems feed improvement | Monitoring evidence, incident records | Immutable access audit logs, breach duties | 72h breach notice, data-subject rights served |
Chapter XI
The always-on layer
Some controls do not belong to any single stage — they run underneath all of them, on a calendar, with evidence filed each time:
- Training — everyone completes security and privacy training on joining and yearly after, role-specific for anyone near health data. Records kept.
- Access reviews — every quarter we re-check who can access what, and remove what is no longer needed. Leavers lose all access on day one.
- Vendor management — every tool and cloud service is assessed before use. Business associate agreements where health data is involved; data processing agreements where personal data is.
- Risk register — a living list of what could hurt us or our customers, each risk owned, rated, and either mitigated or consciously accepted — reviewed on a schedule.
- Internal audits & management review — we audit ourselves before anyone else does. Findings go to leadership yearly; leadership responds with decisions and resources, minuted.
- Document control — policies and procedures — including this playbook — are versioned, approved, and reviewed on a cycle. If we change how we work, the document changes with it.
Appendix
Glossary
- PRD — Product Requirements Document: the "why and what," written before any code.
- Design inputs / outputs — ISO 13485 language: inputs are the requirements; outputs are the specs, designs, and code that satisfy them.
- Verification vs validation — Verification: did we build it right (tests pass)? Validation: did we build the right thing (the user's problem is solved)?
- Traceability — the unbroken chain requirement → design → code → test → release, readable in both directions.
- Change control — approved specs change only through a documented, assessed, re-approved process.
- CAPA — Corrective And Preventive Action: every problem becomes a tracked fix with an owner, a deadline, and an effectiveness check.
- Segregation of duties — the person who writes a change is never the only person who approves it. Enforced by the platform.
- Least privilege — everyone has exactly the access their role needs — no more — reviewed quarterly.
- DPIA — Data Protection Impact Assessment: a structured "what could this do to people's privacy" review for high-risk features.
- BAA / DPA — Business Associate Agreement / Data Processing Agreement: the contracts binding our vendors to the same duties we carry.
- Minimum necessary — collect, show, and share only the data the task truly needs.
- Blameless postmortem — after an incident: what happened, why, what we are changing — never who to blame.
- Canary — sending a new version to a small share of users first and watching the numbers before full rollout.
- Feature flag — a remote on/off switch around new code, so deploying and releasing are separate decisions.
- Sprint — our two-week planning cycle: plan → build → demo → retro. A rhythm, not a release gate.
- Staging — a full copy of production with test data, where every change lands before real users see it.