From f43b1b690aa46a2f862ac577f725ac29a4251f5d Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Thu, 24 Sep 2026 10:24:35 -0500 Subject: [PATCH] fix: make no plugin isolation claim on the home "The plugin never gets your app" still overstated it: a plugin's step receives the live request context and can overwrite keys in it, and a plugin node can take over a token an app step provides. The card now makes the one claim that holds, that the graph works out the order. Signed-off-by: Diego Resendez --- src/components/sections/WhatIsAPlugin.astro | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/sections/WhatIsAPlugin.astro b/src/components/sections/WhatIsAPlugin.astro index c3202c8..cda6807 100644 --- a/src/components/sections/WhatIsAPlugin.astro +++ b/src/components/sections/WhatIsAPlugin.astro @@ -2,10 +2,12 @@ // Every claim here is checked against core: the shape and the three-method API are // `Plugin`/`PluginApi` in src/plugin.ts, and `mountPlugin` hands over nothing else. // -// Do NOT claim a plugin cannot replace or remove an app's step. It can: a plugin node that +// Make no isolation claims here at all. A plugin's step gets the live request context and can +// overwrite keys in it (see mountPlugin's comment), and a plugin node can replace an app step: a +// plugin node that // provides a token an app step already provides wins in `topoSort`/`subgraphFor` (src/graph.ts, // `producedBy.set`, last one in), and the app's step drops out of the graph with no error. -// Verified 2026-09-24. Only duplicate node *names* are a boot error. +// Verified 2026-09-24. Only duplicate node *names* are a boot error. Ordering is the claim. const points = [ { title: 'One object', @@ -17,7 +19,7 @@ const points = [ }, { title: 'The graph picks the order', - body: 'Say what your plugin needs and what it provides, and green-tea decides where it runs. The plugin never gets your app: no container, no modules, no emit. Only the three functions above.', + body: 'Say what your plugin needs and what it provides, and green-tea works out where it runs. There’s no middleware order to document and no “register this one first” in your README.', }, ]; ---