Skip to content

M10-S1 — Write the engineering and no-code standard

Section titled “M10-S1 — Write the engineering and no-code standard”
ModuleM10 — Standards and review
After this session you canWrite a traceable standard of must and should rules for a program’s solutions and extensions, including the no-code guarantee.
Time91 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 startModules 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 deeperHow 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”

A standard is a list of rules, each written in the same format:

PartWhat it saysExample
IdA stable reference: section letter and numberE-3
RuleOne sentence, imperative, about one thingNever renumber or reuse a stored enum value.
LevelMust or shouldMust
ReasonThe concrete failure it prevents, and where that is taughtStored records and field definitions keep the number; a renumbered value silently changes their meaning (M2-S3).
CheckHow a reviewer or a tool verifies itCompare the enum against the released line; every member keeps its number.
ExceptionsWho may waive it, and how the waiver is recordedNone.

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.

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.

A program’s standard is not invented on the day. It is distilled from four sources, and each rule cites one:

  1. Platform contracts and behaviour you studied in Modules 2 to 4 and 6: wire contracts, migrations, how runs resume, how imports work.
  2. The program’s own decisions from M1-S2: owners, environments, the promotion path, change control.
  3. 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.
  4. 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.
SectionCoversExamples of its rules
A. Scope and useWhat the standard applies to, who owns it, how it changesVersion and owner; changed by change control
C. ConfigurationWhat builders build in the designerCross-module links only through declared seams; every owner-bearing step has a fallback
X. ExtensionsFunctions, the API, webhooks, packagesOne credential per integration and environment; a package never carries a credential
E. Engine changesSource-strand workNever renumber a stored value; tenant-aware recipes; a caster refuses what it cannot read
S. SecurityAcross everythingThe design rule on user text; threat model updated with each new door
N. No-code guaranteeBy referenceEvery extension passes the checklist, with evidence
O. Operations and releasePromotion, upgrades, runbooksMigrations idempotent, with a written rollback plan; precondition checks in the runbook
W. WaiversHow a must is waivedWho 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.

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

  1. 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.
  2. 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

  1. Write at least two configuration rules (section C), one of which concerns cross-module seams.
  2. Write at least three extension rules (section X), covering credentials, packages and outbound calls.
  3. Write at least two engine-change rules (section E), one about contracts and one about tenant scope.
  4. Write at least three security rules (section S), including the design rule on user text and the threat model’s upkeep.
  5. 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.
  6. Write at least two operations rules (section O): one about migrations and rollback, one about promotion preconditions.
  7. For every rule, fill all six parts. Cite the session that taught the reason.
  8. Make sure at least four rules are should rules with a stated threshold in their check.
  9. 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

  1. Read every rule and apply the failure test again. Move any rule whose failure you cannot name to an appendix called Advice.
  2. 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.
  3. 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).
  4. For any fail, write the finding in one line: rule id, what breaks it, where.
  5. Write the change history’s first line: 1.0, today, first issue, by you.
  6. Save the standard where your capstone documents will live; you will cite it in M11.
  7. 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 seeWhat to do
You cannot find a failure for a rule you believe inIt 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 stateIt 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 mustRe-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).

IdRuleLevelReason (failure · source)CheckExceptions
C-1A module reaches another module’s data only through a declared seam (a proxy or an aggregate).MustDirect references couple module releases and break promotion of one module alone · ACE M1-S2, M1-S1Inspect every relation field whose target is in another moduleMaster and both module owners, recorded
C-2Every workflow step that has an owner has a fallback owner.MustA step whose owner cannot be resolved stalls the request · M4-S4Inspect each owner-bearing step of every workflowNone
X-1Each integration has its own application user per environment, with the narrowest grant.MustA shared or broad credential cannot be revoked alone and lends access on leak · M5-S3, M5-S4List application users and their grants per environmentNone
X-2A package never contains a credential; credentials are listed as manual import steps.MustA credential in a package travels to every environment and every copy · M5-S3, M6-S3Search the exported package for credential patterns; read its import notesNone
E-3Never renumber or reuse a stored enum value; add new members with explicit new numbers, mirrored in every code base.MustStored values change meaning silently · M2-S3, M8-S2Compare enums with the released line and across the three code basesNone
S-1No expression, query or script is built from user-entered text.MustInjection · M5-S3Search Functions and templates for text concatenated into filters, expressions or scriptsNone
O-1Every data migration is idempotent and has a written rollback plan.MustA re-run corrupts data, and there is no automatic downgrade of data · M2-S4, M9-S2Read the migration and its plan; run it twice on a copyMaster, for a one-off data repair with a backup
C-5Lists expected to exceed fifty thousand records are filtered only on indexed fields.ShouldSlow lists and timeouts at scale · M3-S2, M9-S1Inspect the filters of every view over large entities against their indexesAny 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.

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.

PracticeChoose one answer.

Which part of a rule lets a reviewer who has never met its author enforce it?

  1. Explanation for A

    ✗ Incorrect

    Not this one: the id makes a rule citable, but it says nothing about how to tell a pass from a fail. See the rule format.

  2. Explanation for B

    ✓ Correct

    Correct: a stranger can run the check and reach the same verdict as the author. See the rule format.

  3. Explanation for C

    ✗ Incorrect

    Not this one: the level says how serious a violation is, not how to find one. See must or should.

Check your answer

The correct answer is B. Open the explanation under each option to see why.

PracticeChoose one answer.

“Keep the component id of a custom field control unchanged after release.” Must or should?

  1. Explanation for A

    ✓ Correct

    Correct: contracts are musts; the failure happens wherever the rule is broken, at any scale. See the failure test.

  2. Explanation for B

    ✗ Incorrect

    Not this one: consistency is a cost argument, but the failure here is unconditional. See the failure test.

  3. Explanation for C

    ✗ Incorrect

    Not this one: who writes controls decides which section the rule sits in, not whether it is a rule. See the standard’s sections.

Check your answer

The correct answer is A. Open the explanation under each option to see why.

PracticeChoose one answer.

Why does section N of the standard refer to the no-code checklist instead of copying its items?

  1. Explanation for A

    ✗ Incorrect

    Not this one: length is not the reason; two copies would drift apart. See where the rules come from.

  2. Explanation for B

    ✗ Incorrect

    Not this one: the guarantee applies to every extension; the question is where it is defined. See where the rules come from.

  3. Explanation for C

    ✓ Correct

    Correct: the standard enforces the checklist by reference, so updating the checklist updates the standard. See where the rules come from.

Check your answer

The correct answer is C. Open the explanation under each option to see why.

PracticeChoose one answer.

A proposed rule reads: “Reactions should be designed carefully to avoid performance problems.” What is the best response?

  1. Explanation for A

    ✗ Incorrect

    Not this one: a should still needs a failure and a check with a threshold; “carefully” gives neither. See the failure test.

  2. Explanation for B

    ✓ Correct

    Correct: for example, “a reaction on an entity receiving more than a set number of writes per minute has a filter that excludes unchanged records”, with its check. See the rule format.

  3. Explanation for C

    ✗ Incorrect

    Not this one: raising the level does not make the rule checkable; it only makes waivers more likely. See the failure test.

Check your answer

The correct answer is B. Open the explanation under each option to see why.

PracticeChoose one answer.

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?

  1. Explanation for A

    ✗ Incorrect

    Not this one: a must that fails is a finding, whether or not the failure has happened yet. See the lab.

  2. Explanation for B

    ✗ Incorrect

    Not this one: a waiver is signed by the master with the asset’s owner, after a decision; it is not how a reviewer records what they found. See waivers.

  3. Explanation for C

    ✓ Correct

    Correct: a fail cites the rule and where it is broken, so the owner can fix it or ask for a waiver. See the lab.

Check your answer

The correct answer is C. Open the explanation under each option to see why.

PracticeChoose one answer.

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?

  1. Explanation for A

    ✓ Correct

    Correct: the standard is a governed artefact; it is re-read after every upgrade and changed by the same process as the program’s other artefacts. See keeping the standard alive.

  2. Explanation for B

    ✗ Incorrect

    Not this one: a rule that cites behaviour the platform no longer has misleads every review until it is fixed. See keeping the standard alive.

  3. Explanation for C

    ✗ Incorrect

    Not this one: waivers are for justified exceptions, not for repairing the standard itself. See waivers.

Check your answer

The correct answer is A. Open the explanation under each option to see why.

PracticeChoose every answer that applies.

Which of these belong in a Larkspur standard as must rules? Select all that apply.

  1. Explanation for A

    ✓ Correct

    Correct: it is a contract with every consumer, so breaking it fails wherever it happens. See the worked scenario.

  2. Explanation for B

    ✗ Incorrect

    Not this one: a naming convention has no failure of its own; it is advice or, at most, a should. See the failure test.

  3. Explanation for C

    ✓ Correct

    Correct: a token in code or a package leaks with every copy, whatever the context. See the worked scenario.

  4. Explanation for D

    ✗ Incorrect

    Not this one: its cost depends on volume, so it is a should with a threshold. See the worked scenario.

Check your answer

The correct answers are A and C. Open the explanation under each option to see why.

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.