M6-S4 — The extension map and the no-code guarantee
Section titled “M6-S4 — The extension map and the no-code guarantee”| Module | M6 — Extension design |
| After this session you can | Choose 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. |
| Time | 58 min with a facilitator · about 58 min on your own |
| Before you start | M6-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 deeper | Integrate 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”The extension map
Section titled “The extension map”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.
| Rung | What it is | Who changes it afterwards | Ships in a package | You studied it in |
|---|---|---|---|---|
| 1. Configuration | Entities, views, workflows, owners, time limits, pages | A builder, in the designer | Yes | ACD, ACE |
| 2. Expressions | Calculated values, conditions, owners and limits by formula | A builder | Yes | ACE, M3-S1 |
| 3. Composed automation | Reactions, chains, custom actions, announcements, timers | A builder | Yes | ACE, M4 |
| 4. Functions | Code the platform calls: reaction custom actions with parameters, validators, interceptors | An engineer changes the code; a builder maps parameters and picks where it runs | The record and its source; values set per environment | M6-S1 |
| 5. The API and events | Outside programs that read, write and listen: feeds, headless clients, live channels | The program’s owner | No: the program lives outside; its application user is set up per environment | ACE, M5-S1 |
| 6. Outbound calls and connectors | Call API, Notify Zapier, the Grafana data source | A builder configures the call; the receiver’s owner the other side | The reaction; addresses and keys per environment | M6-S1 |
| 7. Engine extension | A new field type, view type, reaction action, message or service, and its web and phone rendering | Platform engineers, in the platform’s source | Only as a platform release | M8 (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 no-code guarantee
Section titled “The no-code guarantee”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:
- 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.
- 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.
- One implementation, parameters not forks. One version serves every module, plant and tenant. No branch in code for a customer or an entity.
- 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.
- Web and phone. It works in both apps, or it declares a fallback that a builder can see and accept.
- 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.
- Governed. Permissions, protected fields and executors apply to it; it holds no embedded credential; its integration users have least privilege.
- Observable. Its runs and failures appear where builders and administrators already look: Reaction Logs, the entry’s history, the import result.
- Shippable. It travels in a package, and whatever cannot travel is listed in the promotion plan.
- 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.
- Read proposal A against test 1. Record pass or fail with the sentence that proves it.
- Do the same for tests 2 and 3.
- Tests 4 and 5.
- Tests 6 and 7.
- Tests 8, 9 and 10.
- Give proposal A its verdict and name the three failures that matter most.
- Repeat steps 1 to 5 for proposal B.
- Give proposal B its verdict. Name the one test where it needs evidence it does not yet have.
- Rewrite proposal A in no more than eight lines so that it passes, keeping anything good in it.
- 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.
- For need (b), say why rung 3 would be the wrong answer.
- For need (e), say who decides it and how it ships.
- Compare your table with the worked solution and mark any test you judged differently.
- 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 see | What to do |
|---|---|
| You cannot decide a test for a proposal | Ask 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 4 | Re-read the ladder rule: take the lowest rung that holds the need. |
| Your rewrite of A is longer than eight lines | You 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”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?
Check your answer
The correct answer is B. Open the explanation under each option to see why.
A Function chooses the planner to notify with if (plant === 'Sorrento') return 'omar.haddad@example.com'.
Which test does it fail first?
Check your answer
The correct answer is B. Open the explanation under each option to see why.
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?
Check your answer
The correct answer is C. Open the explanation under each option to see why.
Which need justifies an engine change (rung 7) rather than a documented extension point?
Check your answer
The correct answer is C. Open the explanation under each option to see why.
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.
Check your answer
The correct answers are A, B and D. Open the explanation under each option to see why.
↺ Recap (1 min) — A map and a test
Section titled “↺ Recap (1 min) — A map and a test”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.