Skip to content

M11-S4 — Capstone III: the new capability in the engine

Section titled “M11-S4 — Capstone III: the new capability in the engine”
ModuleM11 — Master capstone
After this session you canBuild your chosen capability inside the engine and prove the no-code guarantee.
Time218 min with a facilitator · about 218 min on your own, in three parts of about 70 minutes
Before you startM11-S2 done: the Field Service module accepted in Larkspur Dev. Your capability’s specification from M11-S1, with the four tests of M8-S1 answered. Your source workbench, with the Field Service module imported into it from Larkspur Dev; the stub for your capability running; the no-code checklist.
Go deeperHow to extend the platform · Frontend architecture · Mobile architecture

◆ Orientation (1 min) — The engine part, and only the engine part

Section titled “◆ Orientation (1 min) — The engine part, and only the engine part”

On the source strand, your capability has an engine part: something only a change to the platform can give, of one of the two kinds Module 8 taught you to build. Everything else about it, above all the call to the outside service, still goes through documented points, because the four tests of M8-S1 apply to each piece separately. A master does not put into the engine what a Function or a reaction can do.

★ Capstone (211 min) — Build, expose, prove and release

Section titled “★ Capstone (211 min) — Build, expose, prove and release”

The engine part is one of the two kinds you built or met in Module 8: a new field type with its caster and controls (M8-S2 to M8-S4), or an entity validator found by the booter convention (M8-S1), which refuses a save that breaks a rule. Choose the variant your specification needs:

CapabilityThe engine partThrough documented pointsWhat a builder configures afterwards
Travel-time dispatchA field type Travel estimate (minutes, its source and when it was computed), with a caster, a web control that shows “35 min (est.)” on the board, and a phone displayA Function calls the routing stub when a visit is dispatched and writes the estimateWhich visit types get an estimate; the highlight threshold, as a control option
Supplier risk scoresA field type Risk score (0 to 100 with its band and as-of date), with a caster that refuses out-of-range values, controls, and a phone displayThe rating-feed stub posts nightly through the API with a least-privilege user; a reaction opens the reviewThe score below which a review opens; the band boundaries, as control options or records
Photo evidence checkAn entity validator on Service Visits that refuses the move to Signed off unless the photo’s verdict is passed for visit types that need oneA Function sends an attached photo to the image-check stub and stores the verdictWhich visit types need a checked photo; who may override, with a recorded reason

If you proposed your own capability, write its row first, and check its engine part against M8-S1’s four tests: a part that fails “it is general” or “it will be carried” does not go into the engine.

Part 1 — The engine part (about 70 minutes)

Section titled “Part 1 — The engine part (about 70 minutes)”
  1. The contract (row 5): for a field type, the data-type value with the same new number in all three code bases and the stored shape decided; for a validator, the entity and the phase it binds to and the exact rule it enforces. Write both into a decision record.
  2. Test first: write the tests that state the behaviour, including what is refused, before the code.
  3. The code: the caster (pure, refusing what it cannot read) or the validator (refusing with a message a person can act on), found by the booter convention.
  4. The expression rule for a new field type, so calculated values are checked; or, for a validator, the behaviour on archive and on create, decided and tested.
  5. Tenant safety: read your code against the tenant-aware rules: no hand-built cache keys, no module state, no default space, no messages without the space.
  6. Downstream decisions: the touch-point table of M8-S2 for your part, every row decided.
  7. Commit on a feature branch in each code base, with the contract in the message.

Resume point: the engine part exists, tested, in all the code bases it touches.

Part 2 — Exposure and the outside service (about 70 minutes)

Section titled “Part 2 — Exposure and the outside service (about 70 minutes)”
  1. The web control for a field type: edit and view controls on the plugin contract, metadata that declares what is and is not supported, labels in English and Arabic, registered as built-in or tenant-gated with the reason recorded. For a validator: the message the portal shows when a sign-off is refused, in both languages.
  2. The phone: a mobile component or a declared fallback, never the silent default; the analyser’s list empty; a parity note.
  3. The outside service through a documented point: the Function or feed your row names, with one narrow credential held in configuration and sent in a header, repeatable writes, and a failure path that shows on the record and tells a named person.
  4. Into the module: the capability where its users work, on the board, the supplier or the visit.
  5. Acceptance: run the capability’s acceptance criteria from M11-S1 as their owners on your workbench.

Resume point: builders can use the capability on the web, the phone handles it deliberately, and the outside service is reached safely.

Part 3 — The proof and the release pair (about 70 minutes)

Section titled “Part 3 — The proof and the release pair (about 70 minutes)”
  1. Brief the builder (row 5): a half-page for Omar Haddad on what he can configure, without telling him how; Developer on the module that holds the configuration, nothing more.
  2. The builder’s walkthrough: as Omar, on the web, he uses the engine part for something new (a new field of your type on another entity, a new visit type that needs a checked photo, a changed band), and the result is seen on the phone.
  3. Evidence for every item of the no-code checklist, and every question Omar asked, judged as a capability gap or a brief gap.
  4. The release pair (row 7): the package of the module that uses the engine part, its README opening with the platform precondition; and the list of what the platform build must contain. In M11-S5 you promote the build and the package to your lab release, the build first.
  5. The runbook step: add to your promotion runbook the check that the target build carries the engine part before the package is installed.
  6. Threat-model rows (row 6): the new code paths and the outside call, with STRIDE and a planned control each, to complete and verify in M11-S5.

Resume point: a builder has proved the capability no-code, and the build and the package are ready as a pair.

  • The engine part passed M8-S1’s four tests, and everything else uses documented points (row 5).
  • The contract is the same in every code base it touches, and recorded (row 5).
  • Tests state the behaviour, including refusals, and pass (row 5).
  • The code is tenant-safe by the rules of the recipes (row 5).
  • Every downstream touch-point has a decision (row 5).
  • The web control or the refusal message works in English and Arabic (row 5).
  • The phone shows a component or a declared fallback, with a parity note (row 5).
  • The outside call uses one narrow credential from configuration, repeatable writes and a visible failure path (rows 3 and 6).
  • Omar used the engine part for something new without code, with the result seen on the phone (row 5).
  • Every checklist item has evidence (row 5).
  • The package states its platform precondition, and the runbook checks it (row 7).
  • The threat model has rows for the new code paths and the outside call (row 6).
  • No credential is in any package, code or address (rows 6 and 7).

If something goes wrong

What you seeWhat to do
Your engine part needs the outside call inside the caster or validatorStop: casters stay pure and validators stay fast and local. Move the call to a Function that stores the result, and let the engine part read the stored result.
The validator cannot tell which step a visit is enteringBase the rule on the record’s state as saved (for example the status field) and record the choice; check it on your workbench before you rely on it.
The mobile build fails on new switchesThat is the to-do list working: handle each case, never with a default.
The Field Service module is missing from your workbenchExport it from Larkspur Dev and install it on the workbench, as in M8-S4’s packaging, before Part 1.
You run out of timeKeep the engine part, its tests and the proof; declare the phone fallback rather than building a full mobile component.

✓ Practice (5 min) — Engine discipline in the capstone

Section titled “✓ Practice (5 min) — Engine discipline in the capstone”
PracticeChoose one answer.

For supplier risk scores, a learner puts the nightly call to the rating service inside the Risk score caster, “so every save has a fresh score”. What is wrong?

  1. Explanation for A

    ✗ Incorrect

    Not this one: speed is not the issue; a caster must stay pure and must not depend on an outside service. See the engine part.

  2. Explanation for B

    ✓ Correct

    Correct: the outside call belongs to a documented point (a feed or a Function) that stores the result; the engine part only checks and normalises it. See the mapping.

  3. Explanation for C

    ✗ Incorrect

    Not this one: a new field type gets a new caster; the problem is what this caster does. See M8-S2.

Check your answer

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

PracticeChoose one answer.

Which part of the photo evidence capability belongs in the engine on the source strand, and why?

  1. Explanation for A

    ✗ Incorrect

    Not this one: outside calls go through documented points, which already reach outside services safely. See the mapping.

  2. Explanation for B

    ✗ Incorrect

    Not this one: builders must change that list, so it lives in records, not in code of any kind. See the mapping.

  3. Explanation for C

    ✓ Correct

    Correct: a rule enforced on save holds for every writer, including the API, which only the engine can guarantee. See the mapping.

Check your answer

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

PracticeChoose one answer.

You promote your capability to the lab release. In which order, and why?

  1. Explanation for A

    ✓ Correct

    Correct: a package installed on a build without the engine part fails quietly in several layers. See M8-S4: the scenario.

  2. Explanation for B

    ✗ Incorrect

    Not this one: definitions that name an unknown type or validator are stored or refused before the build can make sense of them. See M8-S4: the scenario.

  3. Explanation for C

    ✗ Incorrect

    Not this one: the import checks the package’s structure, not that the target build carries your engine part. See M8-S4: the scenario.

Check your answer

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

PracticeChoose one answer.

Omar adds a Travel estimate field to Work Orders on the web, but on the phone the field does not appear at all. Your plan said “phone: declared fallback”. What does this tell you?

  1. Explanation for A

    ✗ Incorrect

    Not this one: the guarantee covers the web and the phone; an invisible field is the silent default. See Part 2.

  2. Explanation for B

    ✓ Correct

    Correct: a declared fallback must work wherever the type appears, including entities added later by builders. See M8-S4: three outcomes.

  3. Explanation for C

    ✗ Incorrect

    Not this one: he used the type as intended; the gap is in how the phone handles it. See M8-S4: three outcomes.

Check your answer

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

You have your capability’s engine part, built with the source strand’s discipline: a contract held the same in every code base, tests that state the behaviour, tenant-safe code; exposed to builders on the web and handled deliberately on the phone; with the outside service reached through a documented point; proved no-code by a builder; and a build and a package ready to ship as a pair.

Next. In M11-S5 you promote the build and the packages to your lab release, finish and verify the threat model, write the operations plan and runbook, and check performance.