Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@loomwork/ui-planner

Latest version: v0.1.7

Overview

Last scanned
24 Nov 2026
Published
24 Nov 2026
npm package Publisher: chhetrisushil
0 Stars
0 Forks
7 Versions
733 Downloads
TypeScript Repo language

Scan summary

@loomwork/ui-planner was last scanned on 24 Nov 2026 at version 0.1.7. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 7 versions; the latest 3 were published within 2 days (23 and 24 Nov 2026).
  • Findings: No rules fired in version 0.1.7.
  • Downloads: 733 downloads.

Versions

7 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.7 LATEST 24 Nov 2026 No rules fired
0.1.6 23 Nov 2026 No rules fired
0.1.5 23 Nov 2026 No rules fired
0.1.2 14 Nov 2026 Not shown
0.1.1 14 Nov 2026 Not shown

No rules fired in 0.1.7

Findings

Findings for v0.1.7. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.1.7; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@loomwork/ui-planner

The Planner SPI — compose/revise: intent + semantic catalogue + capabilities → Operation[] — plus a reference planner, a conformance kit any planner must pass, and the machinery to re-author bindings when hydration reports drift. It is the layer that turns a request into edits of the Experience Model @loomwork/ui-core defines: a planner never touches a Blueprint or a projection directly, only Operations that apply/replay fold onto an Experience — which @loomwork/ui-core then compiles and @loomwork/ui-hydration hydrates.

Install / import

// package.json of a consumer checked out beside this repo (the packages are not published)
"@loomwork/ui-planner": "link:../loom-ui/packages/planner"
import { ReferencePlanner, interpretAction, checkPlannerConformance } from "@loomwork/ui-planner";
import type { Planner, ComposeInput, ReviseInput, PlanResult } from "@loomwork/ui-planner";

Key concepts

  • A planner returns operations, never an Experience. Planner.compose/.revise both resolve to a PlanResult { ops, findings, report, summary? }; the caller folds ops onto its own lineage with replay. @loomwork/ui-planner imports no invoker, effect runtime, projection runtime or LLM provider (enforced by noLookups.test.ts) — capabilities and context arrive resolved from the caller.
  • Every model call is one ctx.decide. A plan is recorded as a single decision keyed on every input that shapes the prompt (intent, catalogue content, surface, the offered capabilities' identity and tool-authored text, and the caller's context) — so a replay serves the recorded ops with no model call. CapabilityRef.sampleOutput is deliberately NOT part of that key: a new sample is a new REVISION, never a silent re-plan.
  • Capabilities are an input, not a lookup. A CapabilityRef is a tool the planner MAY bind a node to: handle, toolName, toolVersion, a pinned toolSchemaHash, and an optional sampleOutput the planner reshapes to pin outputShapeHash — no sample means not bindable.
  • The summary is stamped with the class of everything the model read, and fails closed. PlanResult.summaryClass is the strictest of: the base experience, the APPLIED result, the caller's contextClass, and CapabilityRef.sensitivity of EVERY offered capability (its sample reaches the prompt whether or not the plan binds it). A capability that carries a sampleOutput but no sensitivity, with no contextClass declared, is content of unknown class: the summary is OMITTED (warn finding summary-withheld; the ops are unaffected) rather than stamped with a guess. Declare sensitivity on the capability, or contextClass to vouch for the lot. The conformance kit reports summary-class-unsound for a planner that does otherwise.
  • A capability's declared class classes every node bound to it (tool-level, fail-closed). CapabilityRef.sensitivity is not only the summary's stamp: materialize gives each bound node strictest(the model's proposal, the capability's class). A proposal (admitted only on a sensitivity: "model-may-set" type) can raise the class, never lower it, and a node on a caller-only type still takes the capability's class although the model could not set one. On a revise it raises an existing node (a bindProvider carrying the class). The conformance kit reports binding-class-below-capability for a planner whose bound nodes carry less than their capability declares. The class is the strictest declared over EVERY step of the node's call graph and every capability of the same tool (requiredClass; declaredToolClassesFrom(capabilities) is the matching read-time table). The same declaration is the READ-time floor a host passes to core as declaredToolClasses (see @loomwork/ui-core), which covers nodes this planner did not write. declaredToolClassesFrom(capabilities) is THE way a host builds that table, from the same CapabilityRefs it gives the planner, so host and planner derive it identically: new Lineage({ events, content, readPolicy: { declaredToolClasses: declaredToolClassesFrom(capabilities) } }) (or createServeSurface({ declaredToolClasses: ... }) in hydration). Add undeclared: "deny" to make a tool the capabilities do not list unreadable; pass the same readPolicy to checkPlannerConformance and it warns (handle-tool-undeclared) when a composed handle's tool is neither offered nor in the table, i.e. would be unreadable.
  • Untrusted content stays fenced. Anything tool- or caller-authored that reaches a model (samples, the current experience's node list, a capability's description/schema) is wrapped as DATA in the user message, never system; ReferencePlanner fences its own prompts rather than going through @loomwork/llm's buildRequest/guardRequest.
  • Two authorisation domains. interpretAction is the one seam between a widget's click and the Experience: an experience.op action is admitted only if it parses as an Operation, is not prompt/setRole/a provider op, does not touch the root, and names a node that exists; everything else passes through to loom's ordinary business-action path untouched.
  • Drift re-authoring. reviseForDrift takes the DriftRecords collected from one or more @loomwork/ui-hydration DriftReports (their .drift arrays) and turns them into a revision request any Planner can serve, composing the same helpers (driftRequest, driftContext, observedSamples, driftCapabilities, unsampledDrift) the reference planner itself calls.

API

The SPI
  • Planner — { compose(input: ComposeInput, ctx, opts?: PlanStreamOptions): Promise<PlanResult>; revise(input: ReviseInput, ctx, opts?: PlanStreamOptions): Promise<PlanResult> }.
  • ComposeInput, ReviseInput — { intent, catalog, capabilities, context?, contextClass?, surface?, containers?, unit? } and, for a revision, { experience, request: { text, scopeNodeIds? }, catalog, capabilities, context?, contextClass?, surface?, observed?, containers?, unit? }.
  • PlanResult, PlanReport, AttemptTrace — { ops, findings, report, summary?, summaryClass? } (summary is the model's own description of the plan, kept for change delivery: UNTRUSTED text, bounded and stripped by core's boundSummary, never an instruction); the report's decisionId, attempts, firstAttemptValid, modelId and summed usage are what a caller stamps provenance from.
  • CapabilityRef — one bindable tool: handle, optional kind, toolName, toolVersion, toolSchemaHash, optional description/inputSchema/outputSchema/sampleOutput/sensitivity. kind (absent = MCP) names the data-provider kind (see hydration): the planner treats it as opaque, copies it onto the step it emits, and keys handles, decision ids and observation matching by it (toolKey), so the same name under two kinds is two providers. An MCP capability keeps every id it had.
  • DecideContext, DecideOptionsLike, DecideScope — the structural subset of loom's ExecutionContext.decide a planner needs; any loom ctx satisfies it. The decider is (scope: DecideScope) => T | Promise<T>: scope.invokeTransient(toolId, input, { signal? }) runs the call AS the deciding execution (its workflowId/executionId, full principal including delegation, composed cancellation, budget snapshot), still transient. A zero-arg decider remains valid. A planner that makes its model / MCP / sandbox calls through the scope is authorised and metered as the flow that asked, not as an anonymous runtime-level caller.
  • scopeInvoker(scope): TransientInvoker — adapts a DecideScope to the TransientInvoker interface @loomwork/ui-hydration is written against, so its wrappers compose on top: memoInvoker(limitInvoker(scopeInvoker(scope), 4)). Only signal and onDelta are forwarded; principal, as and resources are refused (the scope IS the identity; a silent drop would run a call as someone it did not ask to be), label is ignored. memoInvoker keys on every option except signal, and the scope fixes the identity, so a memo built inside one decider is safe — never share one memo across scopes (executions). A refused option is a REJECTED promise, never a synchronous throw. Do not configure principal on hydration / reshape when their invoker is a scopeInvoker — the scope already carries the execution's principal, and the call is refused otherwise (refusing beats running as someone else).
  • PlannerModel, PlannerMessage, PlannerUsage — the structural subset of @loomwork/llm's LlmProvider.complete a model must satisfy, and its token-usage shape. PlannerMessage.content is text OR parts (PlannerMessageContent, mirroring loom R5's LlmMessageContent); the messages the planner itself writes are always text. A model that reads message content uses plannerMessageText(content) (the local textOf: text and tool-result text, never [object Object]; a tainted() wrapper throws). Type change: code that read message.content as a string must narrow or call plannerMessageText.
  • planDecisionId(kind, input): string — the ctx.decide key compose/revise use: every input that shapes the prompt (intent/request, catalogue CONTENT, the offered capabilities including their tool-authored text, caller context, and surface), deliberately excluding a capability's sampleOutput (a new sample is a new revision, never a silent re-plan). Overloaded per kind: "compose" takes { intent, catalog, capabilities, context?, surface? }; "revise" takes { versionHash, request, catalog?, capabilities?, context?, surface?, observedHandles? }. ReferencePlanner calls it to key its own ctx.decide; a custom planner can reuse it for the same replay-stability.
Reference planner
  • ReferencePlanner — implements Planner. Constructor: { model: PlannerModel | ((scope: DecideScope) => PlannerModel), modelId: string, maxAttempts?: number, reach?, decisionKey?, orderSalt?: string, variants? } (default 2 attempts, parse/validation retries included). orderSalt is an author id (a replica, agent or session) mixed into the order keys of the nodes the planner inserts, so planners writing concurrently into one experience get distinct keys in the same gap; unset keeps the unsalted keys. Pass a factory to make the model calls AS the deciding execution, e.g. model: (scope) => { const inv = scopeInvoker(scope); return { complete: (req, o) => inv.invokeTransient("llm.complete", req, o) }; } (forward o: it carries the signal and, for a streamed turn, the delta sink); a plain model ignores the scope.
  • reach?: { run?, transient? } — the planner's declared reach for @loomwork/verify (loom L32). A flow that calls planner.compose(input, ctx) hands its ctx to code the verifier cannot see into; the planner declares what that code runs, and the verifier counts those tools against the real grants and registry. The planner cannot know the model tool id (the model factory is yours), so you declare it: new ReferencePlanner({ model, modelId, reach: { transient: ["llm.complete"] } }) — transient = toolIds called through scope.invokeTransient (the model tool, plus any hydration / MCP / sandbox tool your model factory or wrappers call), run = toolIds run through ctx.run / ctx.execute. No reach option means NO declaration: verify then reports the hand-off as unresolved, which is honest; a partial guess would not be. The declaration is attached structurally under Symbol.for("loom.verify.reach") (non-enumerable, a copy), with no dependency on @loomwork/verify.
  • decisionKey?: Uint8Array | string — a host secret of 32 or more RANDOM bytes (for example randomBytes(32), stored base64 and decoded to a Uint8Array) that keys every plan decision id with HMAC-SHA-256: plan:<kind>:k:<32 hex>. The length check (refused at construction below 32 bytes) is a floor and does not measure entropy; a passphrase is not a key. Prefer the Uint8Array. A string is UTF-8 encoded without normalisation: an NFC and an NFD spelling of the same key are DIFFERENT keys (a silent rotation, below), and lone surrogates collapse to U+FFFD. The planner copies the bytes once at construction, so zeroing your buffer afterwards changes nothing, and keeps them (and variants.rollout.bucketSecret) in private fields that JSON.stringify and util.inspect do not show. Why: the id is recorded in PLAINTEXT as DECISION_RECORDED.decisionId and survives a crypto-shred of the owner's key; the unkeyed default hashes the intent, context, revise request and catalogue with a fast non-secret hash, so after erasure anyone can hash a guessed (low-entropy) intent and compare it with the log. A revise also records context.base; with a key it is a keyed k:<32 hex> HMAC of the version hash instead of the raw (unkeyed SHA-256) hash. Unset = the unkeyed id and raw base, byte-for-byte as before (existing logs replay). Keep the key as durable as the log, and change it only with no execution in flight. The same key gives the same id, which is how a replay serves the recorded decision. Changing, losing or adding the key is safe ONLY after you drain or finish every in-flight execution. Otherwise a resumed execution's planner computes a new id, misses the recorded decision and re-plans LIVE: it may compose a DIFFERENT plan, so an approval or later step served from the log then applies to a plan nobody saw, and a later step whose id derives from the plan can fail replay with FlowReplayDivergenceError under divergence: "fail". Never reuse the KeyStore's per-subject keys; erasure destroys those. planDecisionId(kind, input, { key }) takes the same option. Still plaintext with a key (this option does not cover them): the lineage's experienceId and its versionHash, parents, revertedTo, carriedFrom and from (versionHash is a plain SHA-256 of the artifact, so a guessed artifact can be confirmed against it; see the erasure section of @loomwork/ui-lineage); the variant unit and the catalogue id in a variant decision's recorded context; the planner modelId, the decision's source and policy labels; and any other event field the host or loom records outside the planner. Keep personal data out of those.
  • declarePlannerReach(target, reach) / readPlannerReach(value) / REACH_DECLARATION — the same attachment for a custom Planner (or any object a flow hands ctx to).
  • REFERENCE_POLICY, REFERENCE_SOURCE — the fixed { id, version } policy stamp and decision source this planner records.
  • scratchGenesis(intent) — a scratch-lineage Experience for validating a draft plan before it is applied to a real one (every genesis shares the same root, so ops are id-based and portable).
Conformance

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @loomwork/ui-planner

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Frame 2085668439 (1)
Group 1261154229