Applets Loaded from Outside the Repository¶
The host searches development folders, the user applets folder and the app in a fixed order, chooses one copy of each applet id and checks its manifest before opening the library.
| Field | Value |
|---|---|
| ID | COR-06 |
| Status | Shipped |
| Scope | Supporting |
| Pillar | Core Runtime and SDK |
| Sprint | None |
| Depends On | Host (COR-01)Applet Manifests ( COR-05) |
| Unblocks | caliper check (COR-07)caliper shot ( COR-08)caliper dev ( COR-09)Acceptance Test ( COR-15)Applets in Separate Processes ( COR-22)caliper list ( COR-39) |
| Docs | CLI, Search Order |
| Branches | None |
| Design | None |
Coverage Ledger¶
- design/roadmap.md, under Phase 1: one core with versioned applets. Step 4: applets load from outside the repository through --applets, CALIPER_APPLET_PATH, the user applets folder and the search order.
- design/spec-format.md, under What is built and what is planned. The loader knows the spec applet's manifest, lists spec applets from the search folders and the workspace, and validates their spec with the builder.
- design/spec-format.md, under The spec applet in the loader. The manifest parser reads kind without the builder, and the loader lists spec applets in the search folders, one folder down and in the workspace's applets/ folder.
- design/windows-parity.md, under Where Windows stands. Code already handles several Windows details: LoadLibraryA, ; separator, %APPDATA%, LockFileEx, caliper shot on Vulkan offscreen, the caliper-embed package.
- CLI, App Startup. Starting the app with caliper, with --applets folders and --url to attach to a stream at start.
- CLI, Search Order. The fixed search order of development folders, CALIPER_APPLET_PATH, the user applets folder and the app folder.
- CLI, Build Folders. A build folder stands for its applets/ subfolder in every search list.
- CLI, Environment Variables. The environment variables the subcommands read.
- Manifest, Search Order. Where the host looks for manifests.
- Refusal Messages, Negotiation Refusals. Negotiation refuses an applet before any code runs, with one message for each cause.
- Refusal Messages, Loader Statuses. Loader statuses READY, REFUSED, FAILED, SHADOWED and QUARANTINED, with their messages.
- Compatibility and Epochs, Load Negotiation. Negotiation at load.
- Trust Model, Pre-Flight Checks. Checks run before any applet code loads.
- Pull request #13. Pull request 13 (merged) delivers roadmap Phase 1: the SDK package, a core that compiles no applets, loading from outside, the Caliper CLI, Caliper Embed as a package, and docs and plans.