Scan your whole stack
From OX Research Newsroom
Are you using @appport/core?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v1.13.0
@appport/core was last scanned on 23 Nov 2026 at version 1.13.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 1.13.0 LATEST | 23 Nov 2026 | No rules fired |
| 1.12.0 | 23 Nov 2026 | No rules fired |
| 1.11.0 | 19 Nov 2026 | No rules fired |
| 1.10.0 | 19 Nov 2026 | Not shown |
| 1.9.0 | 19 Nov 2026 | Not shown |
Findings for v1.13.0. 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 1.13.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
The capability runtime: registry, dispatch pipeline, validation, sessions, events, streams, operations and telemetry.
Core knows nothing about HTTP, WebSocket, IPC, or any storage engine.
import { createApplication, defineCapability, defineEvent } from "@appport/core";
import { s } from "@appport/schema";
const application = createApplication({
application: { id: "com.example.docs", name: "Docs", version: "1.0.0" },
capabilities: [documentsSave],
events: [documentsChanged],
authorizer: permissionAuthorizer()
});
const response = await application.handleRequest(envelope, { session, transport: "http" });
receive -> validate -> authorize -> execute -> serialize -> respond
Authorization always runs before privileged logic. Input is validated before authorization, so policies see well-formed input. Output is validated too, so a handler cannot silently break its published contract.
Authorize first (createApplication({ authorizeBeforeValidation: true }), spec §8.2):
receive -> authorize -> validate -> execute -> serialize -> respond
The authorizer is asked first, with the raw input and inputValidated: false on the
AuthorizationRequest, so a caller who is not permitted is refused whatever it sent and
never learns the input contract from INVALID_INPUT. Combined with a concealing policy
(deny("Not found", "NOT_FOUND")), an unknown resource, someone else's and a malformed
reference are answered identically. A permitted caller with invalid input still gets
INVALID_INPUT before the handler runs. Off by default; applies to requests and streams.
context.createStream(), with cancellation.parallel, serialized, or keyed(field).operations.status, operations.cancel, operations.events
for work that outlives a request.The reserved appport.manifest and appport.ping capabilities are registered
automatically, so discovery works identically on transports that have no URLs.
For a capability with idempotency: "supported", a request with an idempotencyKey is
scoped to the caller (session, or principal:<id>) and bound to its request digest.
Claim. Before the handler runs, the runtime writes an IdempotencyClaim
(key, requestId, requestDigest, scope, claimedAt, expiresAt,
status: "in-progress") with store.claim(), an atomic create-if-absent.
Record. On success it writes the IdempotencyRecord with store.set(), which
replaces the claim. Identical replays get the stored response.
Known failure. When the handler throws (or never started), the claim is
released with store.release() and a retry may run: failures are not recorded,
as before.
Unknown outcome. On a timeout or cancellation while the handler runs, a failure
after it returned (output validation, state commit) or a record that cannot be
written, the claim is kept. A replay then fails with CONFLICT,
details.reason: "IDEMPOTENCY_OUTCOME_UNKNOWN" (IdempotencyOutcomeUnknownError,
with the original requestId), and the handler is not run again. The same
answer follows a process crash between the effect and the record, provided the
store is durable. The claim lasts until expiresAt (24 h) or until an operator
resolves it (store.set(record) or store.release({ key, requestId });
store.findByRequestId(requestId) finds it).
Handler-reported unknown outcome. A handler that started work it cannot see the
end of (an external speech-to-text or model call that timed out, an unconfirmed
commit) throws outcomeUnknown(message, details?): CONFLICT,
details.reason: "EFFECT_OUTCOME_UNKNOWN", not retryable. Under a key that answer is
recorded in place of the claim, so a retry gets the same answer and the handler is not
run again; any other thrown error is a known failure (step 3).
A different request under a claim or record is CONFLICT /
IDEMPOTENCY_KEY_REUSED. A key sent to a capability without idempotency support
is refused in development (INVALID_REQUEST / IDEMPOTENCY_KEY_UNSUPPORTED) and
logged once per capability version in production; set
unsupportedIdempotencyKey: "reject" | "warn" to choose.
Store contract. get and set are required. claim and release are optional
but come together (an application refuses a store with only one). A store without
them keeps the pre-1.4 guarantee: duplicates are deduplicated within one process
only, and a crash between the effect and the record lets a replay execute again.
findByRequestId is optional and used only by operators. MemoryIdempotencyStore
implements all of it; durable stores belong to the application and can be checked
with runIdempotencyStoreConformance from @appport/testing.
Define, verify, and register applications for durable tracking:
import { defineApplication, ApplicationRegistry, MemoryApplicationStateStore } from "@appport/core";
// 1. Define an application (PR18)
const application = defineApplication({
identity: { id: "invoicing", name: "Invoicing", version: "1.0.0" },
provides: [invoiceCreate, invoiceSend],
requires: [{ name: "payments.charge", version: 1 }],
implementations: { "invoice.create@1": createImpl, "invoice.send@1": sendImpl }
});
// 2. Verify the application (PR19)
const verification = application.verify();
if (!verification.ready) throw new Error("Application verification failed");
// 3. Get the canonical manifest and fingerprint (PR19)
const manifest = application.manifest();
const fingerprint = application.fingerprint();
// 4. Register for durable tracking (PR20)
const store = new MemoryApplicationStateStore();
const registry = new ApplicationRegistry(store);
const registered = await registry.register({
identity: application.identity,
manifest,
fingerprint,
verification
});
// Tracked application state with identity, manifest, fingerprint, verification
console.log(registered.id, registered.status, registered.revision);
The registered application state is portable and contains no implementation details — only the contract, identity, verification state, and lifecycle.
Resolution follows provider lifecycle state. Among the providers compatible with a requirement, an active (promoted)
one excludes those that are only registered, so a prepared replacement never displaces or makes ambiguous the provider
in service. With no active provider, registered providers resolve as before; two active providers are ambiguous; retired
providers are never candidates, even when pinned by id.
To replace a provider, prepare the replacement under its own id and grants, then hand over in one atomic step:
import { ApplicationLifecycleOperations, ApplicationRegistryLifecycleGateway, MemoryApplicationLifecycleStore } from "@appport/core";
const lifecycle = new ApplicationLifecycleOperations(
new MemoryApplicationLifecycleStore(),
new ApplicationRegistryLifecycleGateway(registry, verifyReplacement) // validation and promotion checks
);
await lifecycle.define(replacement.manifest());
await lifecycle.validate("payments.v2"); // verifyReplacement runs here
await lifecycle.register("payments.v2"); // registered: does not compete with the active provider
await grants.grant({ consumerId: "shop", providerId: "payments.v2", capabilityName: "payments.charge", capabilityVersion: 1 });
const { handover } = await lifecycle.handover("payments.v1", "payments.v2", {
capability: { name: "payments.charge", version: 1 },
authorization: grants // every consumer granted payments.v1 must hold its own grant for payments.v2
});
// payments.v1 is retired and payments.v2 active, in one conditional store write.
ApplicationRegistry.handover() is the registry primitive underneath: it checks both registrations are the expected
ones, in the expected states, with the same capability contract, then retires one and activates the other through the
store's optional replaceIfCurrent (implemented by MemoryApplicationStateStore; a store without it is refused with
atomic-store-unsupported). Every rejection is a ProviderHandoverRejected with a reason and changes nothing.
A binding issued against the former provider is refused at invocation, before the implementation runs, including when
the handover lands after the binding's authority check. Work already handed to the former provider completes there; the
handover does not drain or cancel it. Guarantees and limits: docs/architecture/provider-handover.md.
A business capability can have an identity of its own: a canonical contract, published independently of whether anything implements
it. Applications implement it under their own names and claim to fulfil it; a requirement on the canonical capability resolves only
through a claim that evaluates as valid. Specification: spec/fulfillment-1.md in the repository.
import { CanonicalContractRegistry, ApplicationDependencyResolver, CapabilityBinder, defineCapability, resolvedDependency } from "@appport/core";
import { claimFor } from "@appport/protocol";
const contracts = new CanonicalContractRegistry();
await contracts.register(ordersContract); // a manifest advertising appport.canonical-contract/1, serving no transport
await contracts.activate("org.example.orders");
// A provider implements order.hold@1 under its own name, and claims it (the claim pins the canonical revision by digest).
const hold = defineCapability({ name: "oms.hold", version: 1, authorization: ["orders.hold"], fulfills: [claimFor(ordersContract, "order.hold", 1)], /* … */ });
const resolver = new ApplicationDependencyResolver(registry, { contracts, authorityDecisions });
const candidates = await resolver.discoverCanonical({ contract: "org.example.orders", capability: "order.hold", versionConstraint: "^1" });
const result = await resolver.resolveRequirement({ name: "order.hold", version: 1, versionConstraint: "^1", canonical: { contract: "org.example.orders" } });
if (result.kind === "resolved") {
result.capability.name; // "oms.hold": invocation targets the provider's own capability
resolvedDependency(result); // lock-ready: contract revision and digests, provider registration, claim outcome
await binder.bindResolution(consumer, result); // authorizes oms.hold; result.canonical travels beside it
}
CanonicalContractRegistry, never in the ApplicationRegistry: it can be discovered
but never resolved, bound or invoked. The provider's capability is what runs.discoverCanonical evaluates every claim against the contract's current revision with
evaluateFulfillment. Only valid claims are eligible; unverified, stale and invalid ones are returned with their findings. A
mapping from a canonical permission to a provider permission counts only when the provider enforces the canonical permission itself or an
explicit AuthorityEquivalence decision establishes it.ambiguous.capabilityName, capabilityVersion), which a grant must name, with the canonical identity in context.canonical.result.canonical): contract id, revision and
contractDigest, canonical capabilityDigest, provider registration and fingerprint, the claim and its valid status, and the required
and enforced permissions. Missing, forged or mismatched evidence is refused (provider_not_authorized).contractDigest, even if the claimed capability is unchanged), a
retired contract, or a re-registered or retired provider. The binding is refused at the invocation fence, before the implementation runs;
resolve again to evaluate the current revision.Limits: authority equivalence decisions are supplied to the resolver, not stored, so a binding is not revalidated when they change; the synchronous withdrawal fence is per registry instance.
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.
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).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.