Skip to content

M6-S4 — The extension map and the no-code guarantee

Section titled “M6-S4 — The extension map and the no-code guarantee”
ModuleM6 — Extension design
After this session you canChoose the extension point a need deserves, from configuration to engine code, and state the test an extension must pass to keep the platform no-code.
Time58 min with a facilitator · about 58 min on your own
Before you startM6-S1 to M6-S3, and M3-S5 (how configuration becomes a screen). No environment needed: this session is design work on paper. Keep the no-code guarantee checklist open; it is written to be printed.
Go deeperIntegrate and extend: overview · Functions: when to use a function · Frontend architecture

◆ Orientation (1 min) — Where the configuration stops

Section titled “◆ Orientation (1 min) — Where the configuration stops”

Larkspur’s board has approved a condition monitoring capability: pumps and compressors report readings, and a reading above its alarm threshold raises a work order. No designer option does that today. In ACE M1-S1 you sorted requirements into no, low and deep code. A master answers a harder question: of all the places the platform can be extended, which one does this need deserve, and will a builder still be able to configure the result? This session gives you the map and the test. M7 (or M8, on the source strand) then builds the capability.

▤ Concept (6 min) — The ladder, and the guarantee

Section titled “▤ Concept (6 min) — The ladder, and the guarantee”

Every way to extend the platform sits on one ladder. Each rung up adds power and adds cost: someone who writes code, a deployment, a version to keep compatible, a new way to fail.

RungWhat it isWho changes it afterwardsShips in a packageYou studied it in
1. ConfigurationEntities, views, workflows, owners, time limits, pagesA builder, in the designerYesACD, ACE
2. ExpressionsCalculated values, conditions, owners and limits by formulaA builderYesACE, M3-S1
3. Composed automationReactions, chains, custom actions, announcements, timersA builderYesACE, M4
4. FunctionsCode the platform calls: reaction custom actions with parameters, validators, interceptorsAn engineer changes the code; a builder maps parameters and picks where it runsThe record and its source; values set per environmentM6-S1
5. The API and eventsOutside programs that read, write and listen: feeds, headless clients, live channelsThe program’s ownerNo: the program lives outside; its application user is set up per environmentACE, M5-S1
6. Outbound calls and connectorsCall API, Notify Zapier, the Grafana data sourceA builder configures the call; the receiver’s owner the other sideThe reaction; addresses and keys per environmentM6-S1
7. Engine extensionA new field type, view type, reaction action, message or service, and its web and phone renderingPlatform engineers, in the platform’s sourceOnly as a platform releaseM8 (source strand)

Two rules make the map usable. Take the lowest rung that meets the need, and move up only for a reason you can name: the designer cannot express it; it must be refused before it is saved; the work belongs to another system; or the platform itself lacks a kind of value or screen that builders will need again and again. And split a need across rungs: most capabilities use several, with each part on the lowest rung that holds it.

The seventh rung is different in kind. An engine change is made in the platform’s own source, so it ships only with a platform release and binds every tenant. It is justified when a capability must become a new building block for builders (a field type, a view, an action) rather than a solution for one program; you will meet the engine’s recipes and the test for that decision in M8-S1 if you take the source strand. The web and phone halves of such a building block plug into the render engines you saw in M3-S5: registered by name, offered to builders per tenant, and drawn from configuration.

The platform’s promise is that a builder configures a system instead of programming it. An extension keeps that promise only if this stays true after it ships:

A builder can configure, vary and extend the new behaviour in the designer, on the web and on the phone, without writing code and without an engineer; and an administrator can govern and remove it with the platform’s own controls.

A design is judged against ten tests, which the checklist puts on one page. Each one names the engine mechanism that makes it true:

  1. Variation is data. What changes from case to case (a threshold, a class of asset, a recipient) is a record or a setting a builder edits, never a constant in code. A new pump type is a new record.
  2. Offered by name. A builder picks the extension in the designer, by name: a Function in Execute Function with named parameters, a field type in the field list, a component in a view. Nothing is wired to one entity in code.
  3. One implementation, parameters not forks. One version serves every module, plant and tenant. No branch in code for a customer or an entity.
  4. The engine runs it. It runs in the platform’s own paths: the reaction pipeline, the validators, the render engines. No bespoke screen or side process that the platform does not know about.
  5. Web and phone. It works in both apps, or it declares a fallback that a builder can see and accept.
  6. The record model and the wire contract. It stores data in entries through actions or the API, never in a side store, and it never renumbers a value others depend on.
  7. Governed. Permissions, protected fields and executors apply to it; it holds no embedded credential; its integration users have least privilege.
  8. Observable. Its runs and failures appear where builders and administrators already look: Reaction Logs, the entry’s history, the import result.
  9. Shippable. It travels in a package, and whatever cannot travel is listed in the promotion plan.
  10. Removable by configuration. Disabling a reaction, archiving a Function or withdrawing a component turns it off, without a code change.

The tests are not a scoring scale: a design either passes all ten or names the test it fails and why that is acceptable. And a design that passes on paper is not yet proved: the proof is a builder doing it, on both apps, with evidence, which you do in M7-S3 (or M8-S4).

◇ Worked scenario (3 min) — Mapping condition monitoring

Section titled “◇ Worked scenario (3 min) — Mapping condition monitoring”

You split the capability into its parts and place each on the lowest rung. Decide each part before you read its answer.

Readings arrive from the plant. The sensors’ gateway is another system. It must post readings into the platform: rung 5, the API, through an application user that may create readings and read nothing else (M5).

Where the readings live. A new module Condition Monitoring with Meter Readings and Threshold Rules: rung 1. Threshold Rules hold, per asset class and measure, a warn and an alarm value. Making the thresholds records is what passes test 1: a planner adds a pump class by adding rows.

Evaluating a reading. Comparing a value with two thresholds could be an expression (rung 2). But the rule will grow: units to normalise, a dead band to stop flapping, a sensor marked faulty. A parameterised Function (rung 4) holds that logic once, tested, and receives everything it needs as parameters the builder maps: the value, the warn and alarm thresholds, the dead band. Because the thresholds come in as parameters, the Function needs no credential, and test 2 passes: a builder picks reading-evaluator and maps its inputs.

Acting on the result. Raising a work order and notifying the planner are rung 3: reactions on the stored result, which a builder can change, extend or disable (tests 4, 8 and 10).

Telling the outside CMMS. Rung 6: a Call API reaction with a receiver key sent in a header and redacted in history, because the platform does not sign calls (test 7).

Shipping. A package with the module, the Function record and the reactions; the receiver key and the CMMS address set per environment with overrides; the application user and its token listed in the promotion plan (test 9).

What you did not choose. A new Meter reading field type (rung 7) would make readings a building block for every module, with a unit and a range check of its own. That is a platform decision, not Larkspur’s, and it is exactly what the source strand builds in M8 as the alternative.

⛏ Lab (41 min) — Judge two designs, rewrite one

Section titled “⛏ Lab (41 min) — Judge two designs, rewrite one”

Goal. Judge two proposals for Larkspur’s condition monitoring against the ten tests, give each a verdict, and rewrite the failing one so it passes. Then place six further needs on the map.

Before you start. The checklist, printed or open. A notes table: test, proposal A, proposal B, evidence.

Proposal A (from a contractor). A Function pump-alarm contains a table of thresholds per pump model and measure. It is called by a reaction on Meter Readings. When a reading is above the alarm threshold, the Function calls the platform’s API with an administrator’s token stored in its source to create a work order. A new Angular page Plant Monitor shows live readings for the Sorrento plant only; it is added to the web app’s build. There is no phone version. New pump models are added by the contractor in the next release.

Proposal B (from Larkspur’s own team). Threshold Rules records hold the thresholds. A Function reading-evaluator receives value, warn, alarm and dead band as parameters and returns a level. A reaction stores the level on the reading; two reactions on the level raise a work order and notify the planners. A view and a page built in the designer show readings, and the phone shows the same view.

  1. Read proposal A against test 1. Record pass or fail with the sentence that proves it.
  2. Do the same for tests 2 and 3.
  3. Tests 4 and 5.
  4. Tests 6 and 7.
  5. Tests 8, 9 and 10.
  6. Give proposal A its verdict and name the three failures that matter most.
  7. Repeat steps 1 to 5 for proposal B.
  8. Give proposal B its verdict. Name the one test where it needs evidence it does not yet have.
  9. Rewrite proposal A in no more than eight lines so that it passes, keeping anything good in it.
  10. Map six needs: for each, name the rung and the reason. (a) A planner wants work orders sorted by asset criticality. (b) Purchase requests must be refused when the supplier’s certification has expired. (c) The finance system must receive every approved purchase order. (d) A dashboard of spend by month in the company’s Grafana. (e) Every module in every tenant should offer a “GPS location” field with a map picker. (f) A supplier portal outside the platform must show each supplier its own open orders.
  11. For need (b), say why rung 3 would be the wrong answer.
  12. For need (e), say who decides it and how it ships.
  13. Compare your table with the worked solution and mark any test you judged differently.
  14. Write one sentence: what is the difference between passing the tests and proving the guarantee?

Check.

  • Every test has a verdict and a sentence of evidence for both proposals.
  • Proposal A fails at least tests 1, 3, 5 and 7, and your top three include the embedded credential.
  • Proposal B passes, and you named test 5 or the proof on the phone as the evidence still missing.
  • Your rewrite of A moves the thresholds into records and removes the token from the source.
  • Each of the six needs has a rung and a reason.
  • Your last sentence names the builder’s proof on both apps.

Pass condition. Your verdicts match the worked solution on every test that it marks as decisive, and your rewrite of A passes all ten tests.

If something goes wrong

What you seeWhat to do
You cannot decide a test for a proposalAsk what a builder would have to do next month to change that part. If the answer involves an engineer, it fails.
Every need lands on rung 4Re-read the ladder rule: take the lowest rung that holds the need.
Your rewrite of A is longer than eight linesYou are re-designing everything. Keep the Function; change where its data and its credential come from.
Model answer

Proposal A fails. Test 1: thresholds are constants in code, so a new pump model needs the contractor. Test 2 passes only nominally (the Function is picked by name) but test 3 fails: the page is built for one plant. Test 4 fails: Plant Monitor is a bespoke screen added to the build. Test 5 fails: no phone version and no declared fallback. Test 6 passes (work orders are created through the API). Test 7 fails: an administrator’s token sits in the source, travels with every copy of the ZIP, and makes every run act as that administrator. Test 8 is weak: failures inside the Function’s own API call are invisible in the run history. Test 9 fails for the page, which is not a platform resource. Test 10 fails for the page, which needs a release to remove. The three that matter most: the embedded credential (7), the thresholds in code (1), and the bespoke page (4, 5, 9, 10).

Proposal B passes every test on paper. The evidence it lacks is the proof: a planner adding a class and its thresholds, and seeing the result on the phone (test 5 and the guarantee itself).

A rewritten. Thresholds become Threshold Rules records. pump-alarm receives value and thresholds as parameters and returns a level, with no token. A reaction stores the level; reactions on the level raise the work order and notify. Plant Monitor becomes a designer page over a view filtered by plant, shown on the phone too. New models are new records.

The six needs. (a) Rung 1: a view sorted by a field of the asset. (b) Rung 4, a standalone validator, because a bad request must be refused before it is saved; a reaction (rung 3) would act after the save, when the record already exists. (c) Rung 6, Call API on approval, with a receiver key. (d) Rung 6, the Grafana data source over a statistic query. (e) Rung 7, a new field type: a platform decision for every tenant, shipped in a platform release, built on the source strand. (f) Rung 5, a headless client with its own application user reading through a view.

Passing and proving. Passing the tests is a judgement on paper; the guarantee is proved only when a builder makes a real change, on the web and the phone, without help.

✓ Practice (6 min) — Check your understanding

Section titled “✓ Practice (6 min) — Check your understanding”
PracticeChoose one answer.

Larkspur wants every non-conformance’s Supplier to be copied into a read-only field so that reports group by it. Which rung, and why?

  1. Explanation for A

    ✗ Incorrect

    Not this one: a Function adds a deployment for something the designer already does. See the extension map.

  2. Explanation for B

    ✓ Correct

    Correct: the lowest rung that holds the need is configuration; a mapped field shows the related value without code. See the extension map.

  3. Explanation for C

    ✗ Incorrect

    Not this one: an engine change binds every tenant and ships only in a release, for a need the designer covers. See the extension map.

Check your answer

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

PracticeChoose one answer.

A Function chooses the planner to notify with if (plant === 'Sorrento') return 'omar.haddad@example.com'. Which test does it fail first?

  1. Explanation for A

    ✗ Incorrect

    Not this one: the run history would show the output; the deeper problem is that the choice is in code. See the no-code guarantee.

  2. Explanation for B

    ✓ Correct

    Correct: a variation that a builder should change lives in code, so every new plant needs an engineer. See the no-code guarantee.

  3. Explanation for C

    ✗ Incorrect

    Not this one: it would travel, inside the code; that it is code is the failure. See the no-code guarantee.

Check your answer

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

PracticeChoose one answer.

An extension adds a web control for a new kind of rating. On the phone the field shows nothing. The team has not written anything about the phone. Does it pass test 5?

  1. Explanation for A

    ✗ Incorrect

    Not this one: the test asks for both apps or a fallback a builder can see and accept; silence is neither. See the no-code guarantee.

  2. Explanation for B

    ✗ Incorrect

    Not this one: configuring happens on the web, but people use both apps. See the no-code guarantee.

  3. Explanation for C

    ✓ Correct

    Correct: an empty field on the phone is a gap the builder cannot see until users report it. See the no-code guarantee.

Check your answer

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

PracticeChoose one answer.

Which need justifies an engine change (rung 7) rather than a documented extension point?

  1. Explanation for A

    ✗ Incorrect

    Not this one: a Function or a calculated field holds it for one program, without a platform release. See the extension map.

  2. Explanation for B

    ✗ Incorrect

    Not this one: a headless client or a designer page serves one partner’s need. See the extension map.

  3. Explanation for C

    ✓ Correct

    Correct: a new building block for all builders is the engine’s job, decided by the platform and shipped in a release. See the extension map.

Check your answer

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

PracticeChoose every answer that applies.

A design for condition monitoring passes all ten tests on paper. Which of these are still needed before you call the guarantee kept? Choose all that apply.

  1. Explanation for A

    ✓ Correct

    Correct: the guarantee is proved by a builder doing it, not by the design’s author asserting it. See the no-code guarantee.

  2. Explanation for B

    ✓ Correct

    Correct: test 5 is part of the guarantee, and only a real check on the phone proves it. See the no-code guarantee.

  3. Explanation for C

    ✗ Incorrect

    Not this one: a review checks the code’s quality; the guarantee is about what a builder can do without code. See the no-code guarantee.

  4. Explanation for D

    ✓ Correct

    Correct: a proof that is not recorded cannot be reviewed or repeated after an upgrade. See the checklist.

Check your answer

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

You can now place any need on the ladder from configuration to engine code and justify the rung, state the no-code guarantee, and judge a design against its ten tests. Next, M6-S5: the external technologies that sit beside the ladder, AI assistants first, and how to judge one before it is connected. Then M7 (or M8) builds the capability you just mapped.