M10-S1 — Write the engineering and no-code standard
Section titled “M10-S1 — Write the engineering and no-code standard”| Module | M10 — Standards and review |
| After this session you can | Write a traceable standard of must and should rules for a program’s solutions and extensions, including the no-code guarantee. |
| Time | 91 min with a facilitator · about 88 min on your own. Resume point after the lab, 71 min in (see below); the rest takes 20 min. |
| Before you start | Modules 1 to 9, and what you produced in them: the governance plan (M1-S2), the threat register (M5-S4), the no-code checklist (M6-S4), your strand’s capability (M7 or M8) and the operations plan (M9-S2). A text editor. No platform environment is needed. |
| Go deeper | How to extend the platform · Environments and promotion |
◆ Orientation (1 min) — From the best builder to the one who defines “good”
Section titled “◆ Orientation (1 min) — From the best builder to the one who defines “good””For nine modules you have learned how the platform behaves and how to extend it well. A program with twenty builders and two partners cannot rely on everyone having taken this course. What scales is a standard: written rules that say what “good” means on this program, why, and how anyone can check it. Without one, every review is an argument about taste. With one, a finding is “this breaks rule E-3, which prevents silent data corruption”, and the conversation is about fixing it.
In this session you write Larkspur’s engineering and no-code standard. In M10-S2 and M10-S3 you review other people’s work against it, in M11 your capstone must follow it (rubric row 8), and your peer review uses it as its yardstick (row 9).
▤ Concept (6 min) — Rules with reasons and checks
Section titled “▤ Concept (6 min) — Rules with reasons and checks”The rule format
Section titled “The rule format”A standard is a list of rules, each written in the same format:
| Part | What it says | Example |
|---|---|---|
| Id | A stable reference: section letter and number | E-3 |
| Rule | One sentence, imperative, about one thing | Never renumber or reuse a stored enum value. |
| Level | Must or should | Must |
| Reason | The concrete failure it prevents, and where that is taught | Stored records and field definitions keep the number; a renumbered value silently changes their meaning (M2-S3). |
| Check | How a reviewer or a tool verifies it | Compare the enum against the released line; every member keeps its number. |
| Exceptions | Who may waive it, and how the waiver is recorded | None. |
What to notice: the reason and the check are what make a rule enforceable. A rule without a reason is an opinion; a rule without a check is a wish.
Must or should: the failure test
Section titled “Must or should: the failure test”Classify every rule with one question: can you name a failure that its violation causes, regardless of the context?
- Must: the violation is a defect wherever it happens: data corrupted, a contract broken, a security control missing, the no-code guarantee broken, a release that cannot be rolled back. A must blocks a review until it is fixed or formally waived.
- Should: the violation costs something that depends on context or scale: a query that is fine on two hundred records and slow on two million, a naming convention that helps maintenance. A should is a review note, and a reviewer may accept a reason for departing from it.
- Not a rule: if you cannot name a failure at all (“use clear names”), it is advice. Put it in a guide, not in the standard, so the standard keeps its weight.
The old trap is inconsistency: classing a contract as a must in one place and a should in another. Treat every contract as a must, whatever it is (a stored enum value, a message’s name and version, a component id, a package’s stored shape), because a broken contract is a defect for whoever depends on it. Treat every cost as a should, with its threshold written in the check.
Where the rules come from
Section titled “Where the rules come from”A program’s standard is not invented on the day. It is distilled from four sources, and each rule cites one:
- Platform contracts and behaviour you studied in Modules 2 to 4 and 6: wire contracts, migrations, how runs resume, how imports work.
- The program’s own decisions from M1-S2: owners, environments, the promotion path, change control.
- Security from Module 5: least privilege, one credential per integration and environment, the design rule on user text, the threat model kept with the design.
- The no-code guarantee from M6-S4. The standard does not copy the checklist: it has one rule, “every extension passes the no-code checklist”, and links to the checklist. One definition, one place.
The standard’s sections
Section titled “The standard’s sections”| Section | Covers | Examples of its rules |
|---|---|---|
| A. Scope and use | What the standard applies to, who owns it, how it changes | Version and owner; changed by change control |
| C. Configuration | What builders build in the designer | Cross-module links only through declared seams; every owner-bearing step has a fallback |
| X. Extensions | Functions, the API, webhooks, packages | One credential per integration and environment; a package never carries a credential |
| E. Engine changes | Source-strand work | Never renumber a stored value; tenant-aware recipes; a caster refuses what it cannot read |
| S. Security | Across everything | The design rule on user text; threat model updated with each new door |
| N. No-code guarantee | By reference | Every extension passes the checklist, with evidence |
| O. Operations and release | Promotion, upgrades, runbooks | Migrations idempotent, with a written rollback plan; precondition checks in the runbook |
| W. Waivers | How a must is waived | Who signs, what is recorded, when it expires |
What to notice: section E exists even on a program where nobody changes the engine today, because a partner may propose an engine change tomorrow, and the review needs the rules ready.
Keeping the standard alive
Section titled “Keeping the standard alive”The standard has an owner (the program’s master), a version, and a change history. It changes through the same change control as any program artefact (M1-S2), and every waiver is recorded with the rule’s id, the reason, the person who signed it and an expiry date. A standard that is never updated drifts from the platform: re-read it after every platform upgrade (M9-S2).
◇ Worked scenario (3 min) — Five proposed rules
Section titled “◇ Worked scenario (3 min) — Five proposed rules”Leila Amari’s team proposes five rules for the standard. Classify each before reading the reasoning.
1. “Functions should be written in a clean, modern style.” Not a rule. No failure can be named, and no two reviewers would check it the same way. It goes into a coding guide, if anywhere.
2. “A reaction that writes to another module must run as a named executor, not as System.” Must. The failure is repudiation: when the write is disputed, nobody can say what caused it (the threat model’s LF-10). The check is an inspection of every cross-module reaction’s executor. Exceptions: a scheduled job with no human cause may run as System if the work order it creates links to its cause.
3. “Filter large lists with indexed fields.” Should. Its cost depends on scale: on Larkspur’s two thousand assets it hardly matters; on two million readings it decides whether the planners’ screen opens. The check names a threshold: any list over fifty thousand records filters only on indexed fields.
4. “Never put a token in a Function’s code or a package.” Must. The failure is a leaked credential that travels with every copy. The check: search the code and the exported package for credential patterns, and confirm the credential is listed as a manual step at import.
5. “A message published by an extension keeps its name and version for ever.” Must, because it is a contract: consumers in other services select messages by name and version, and a renamed message is simply not received. The check: compare the message classes with the released line.
The lesson. The test is always the same: name the failure. Rules 2, 4 and 5 have failures that occur whatever the context, so they are musts. Rule 3’s failure depends on volume, so it is a should with a threshold. Rule 1 has no failure, so it is not a rule.
⛏ Lab (61 min) — Write Larkspur’s standard, then use it once
Section titled “⛏ Lab (61 min) — Write Larkspur’s standard, then use it once”Goal. Larkspur Engineering and No-Code Standard, version 1.0: at least fourteen rules across the sections, each in the format, and one artefact of your own checked against three of them.
Before you start. The standard and review templates open; your artefacts from Modules 1 to 9 at hand.
Set it up
- Create the document with the sections A, C, X, E, S, N, O and W, and a header table: title, version 1.0, owner (you), date, and the change-control rule from your M1-S2 governance plan.
- In section A, write two sentences of scope: what the standard applies to (every module, extension and release of the Larkspur Operations Suite, by staff and partners) and what it does not (the platform’s own code, which its vendor governs, except section E for changes Larkspur proposes).
Write the rules
- Write at least two configuration rules (section C), one of which concerns cross-module seams.
- Write at least three extension rules (section X), covering credentials, packages and outbound calls.
- Write at least two engine-change rules (section E), one about contracts and one about tenant scope.
- Write at least three security rules (section S), including the design rule on user text and the threat model’s upkeep.
- Write the no-code section (N) as a single rule that refers to the checklist, with its check: the evidence recorded by a builder persona.
- Write at least two operations rules (section O): one about migrations and rollback, one about promotion preconditions.
- For every rule, fill all six parts. Cite the session that taught the reason.
- Make sure at least four rules are should rules with a stated threshold in their check.
- Write section W: who may waive a must (the program’s master with the asset’s owner), what the waiver records (rule id, reason, signer, expiry), and where waivers are kept.
Test it
- Read every rule and apply the failure test again. Move any rule whose failure you cannot name to an appendix called Advice.
- Pick three rules from different sections that apply to something you built: your M5-S4 threat register, your strand’s capability (M7 or M8), or the Larkspur suite as you found it in M1-S1.
- For each of the three, run its check against that artefact and record pass or fail, with the evidence (what you looked at, what you saw).
- For any fail, write the finding in one line: rule id, what breaks it, where.
- Write the change history’s first line: 1.0, today, first issue, by you.
- Save the standard where your capstone documents will live; you will cite it in M11.
- Read the assessment rubric rows 8 and 9 and check that your standard gives a reviewer something to cite for each.
Screenshot pending The Larkspur standard open in an editor at section X, with three rules in the six-part format and the levels Must and Should What to notice: every rule has a reason that cites a session and a check a stranger could run; the should rule’s check carries its threshold.
Check.
- The standard has all eight sections and a header with version, owner and change control.
- It has at least fourteen rules, each with all six parts.
- Every reason names a concrete failure and the session that taught it.
- Every contract-type rule is a must; at least four rules are shoulds with thresholds.
- Section N refers to the checklist instead of copying it.
- Section W says who waives, what is recorded and where.
- Three rules were applied to your own artefacts with pass or fail and evidence.
- Any statement that failed the failure test was moved to Advice.
Pass condition. Someone who did not write the standard could check any of its rules from the rule alone, and could tell must from should without asking you.
If something goes wrong
| What you see | What to do |
|---|---|
| You cannot find a failure for a rule you believe in | It may be advice; or the failure is real but context-dependent, which makes it a should with a threshold. |
| A rule needs a paragraph to state | It covers several things. Split it into rules that each have one check. |
| Your check says “reviewer judges” | Name what the reviewer looks at and what counts as a pass; if you cannot, the rule is not ready. |
| Every rule is a must | Re-read the should examples; a standard of only musts will be waived wholesale. |
Model answer
An extract of a good standard (eight of its rules).
| Id | Rule | Level | Reason (failure · source) | Check | Exceptions |
|---|---|---|---|---|---|
| C-1 | A module reaches another module’s data only through a declared seam (a proxy or an aggregate). | Must | Direct references couple module releases and break promotion of one module alone · ACE M1-S2, M1-S1 | Inspect every relation field whose target is in another module | Master and both module owners, recorded |
| C-2 | Every workflow step that has an owner has a fallback owner. | Must | A step whose owner cannot be resolved stalls the request · M4-S4 | Inspect each owner-bearing step of every workflow | None |
| X-1 | Each integration has its own application user per environment, with the narrowest grant. | Must | A shared or broad credential cannot be revoked alone and lends access on leak · M5-S3, M5-S4 | List application users and their grants per environment | None |
| X-2 | A package never contains a credential; credentials are listed as manual import steps. | Must | A credential in a package travels to every environment and every copy · M5-S3, M6-S3 | Search the exported package for credential patterns; read its import notes | None |
| E-3 | Never renumber or reuse a stored enum value; add new members with explicit new numbers, mirrored in every code base. | Must | Stored values change meaning silently · M2-S3, M8-S2 | Compare enums with the released line and across the three code bases | None |
| S-1 | No expression, query or script is built from user-entered text. | Must | Injection · M5-S3 | Search Functions and templates for text concatenated into filters, expressions or scripts | None |
| O-1 | Every data migration is idempotent and has a written rollback plan. | Must | A re-run corrupts data, and there is no automatic downgrade of data · M2-S4, M9-S2 | Read the migration and its plan; run it twice on a copy | Master, for a one-off data repair with a backup |
| C-5 | Lists expected to exceed fifty thousand records are filtered only on indexed fields. | Should | Slow lists and timeouts at scale · M3-S2, M9-S1 | Inspect the filters of every view over large entities against their indexes | Any reviewer, with the measured timing |
The three rules applied (example). S-1 on the M7-S1 Function: pass, the asset is found with a structured criterion. X-1 on the M5-S4 register’s design: pass, LF-02’s control gives the telemetry user create-only access. C-2 on Procurement’s Purchase Request workflow as found in M1-S1: fail, the Technical Review step has no fallback owner. Finding: C-2 broken by Technical Review, Purchase Request workflow, Procurement.
Resume point
Section titled “Resume point”Larkspur’s standard is written and has been used once: this is the place to stop if you need to. The rest of the session (the discussion on waivers, two practice sets and the recap) takes about 20 minutes, so start it when you can give it that long.
✳ Discussion (10 min) — Who may waive a must?
Section titled “✳ Discussion (10 min) — Who may waive a must?”The prompt. (1) A partner asks to waive X-2 (“no credential in a package”) for one week, to save a manual step during a demonstration. Would you sign, and if not, what would you offer instead? (2) Should a standard allow any must to be waived? Argue one side.
With a facilitator: the group votes on prompt 1 first, then two volunteers argue prompt 2 for and against (2 minutes each); the facilitator closes by asking what a waiver record must contain.
On your own: write a short answer to each prompt, then compare with the model answer.
Model answer
(1) Do not sign. The failure X-2 prevents (a credential travelling with every copy of the package) does not shrink because the waiver is short: the exported file exists for ever. Offer what removes the cost instead: a demonstration environment where the credential is set once by the operator, or a script that sets it at import.
(2) A good position: some musts may be waived, but never the ones whose failure cannot be undone or contained, such as contract and credential rules. A standard can mark those “no waiver”. Waivers for the others are signed by the master with the owner of the asset at risk, record the rule, reason and expiry, and are reviewed when they expire. A standard that allows nothing to be waived is bypassed silently; one that allows everything is not a standard.
✓ Practice (4 min) — The format
Section titled “✓ Practice (4 min) — The format”Which part of a rule lets a reviewer who has never met its author enforce it?
Check your answer
The correct answer is B. Open the explanation under each option to see why.
“Keep the component id of a custom field control unchanged after release.” Must or should?
Check your answer
The correct answer is A. Open the explanation under each option to see why.
Why does section N of the standard refer to the no-code checklist instead of copying its items?
Check your answer
The correct answer is C. Open the explanation under each option to see why.
✓ Practice (5 min) — Rules in use
Section titled “✓ Practice (5 min) — Rules in use”A proposed rule reads: “Reactions should be designed carefully to avoid performance problems.” What is the best response?
Check your answer
The correct answer is B. Open the explanation under each option to see why.
Applying rule C-2 (“every owner-bearing step has a fallback owner”) to the Purchase Request workflow, you find the Technical Review step without one. How do you record it?
Check your answer
The correct answer is C. Open the explanation under each option to see why.
After a platform upgrade, a rule in section O cites a behaviour that the new line changed. What does the standard’s own process require?
Check your answer
The correct answer is A. Open the explanation under each option to see why.
Which of these belong in a Larkspur standard as must rules? Select all that apply.
Check your answer
The correct answers are A and C. Open the explanation under each option to see why.
↺ Recap (1 min) — What you can now do
Section titled “↺ Recap (1 min) — What you can now do”You can write a program standard whose rules a stranger can enforce: one sentence each, a must or a should decided by the failure test, a reason that names the failure and where it is taught, a check that says how to verify it, and a waiver process for the musts that allow one. You have Larkspur’s standard, version 1.0, and you have used it once.
Next. In M10-S2 you learn the review method that turns this standard into findings about someone else’s design, and in M10-S3 you deliver a full review of a partner’s extension.