Skip to content

Commit 1543352

Browse files
zrr1999Copilot
andcommitted
πŸ› fix: align platform manifest terminology
Rename the legacy [platform].handles key to [platform].handled-effects in the platform manifest and related documentation. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 2adf931 commit 1543352

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

β€ŽREADME.mdβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ The current Platform contract MVP is intentionally split across two artifacts:
105105
- a hole-backed `main` function carries the authoritative startup signature
106106
- `main_for_host` is the Platform-owned adapter that receives the application startup function
107107

108-
Applications targeting `basic-cli` must implement the same startup function name/signature in their entry module. The current compiler already resolves the package's `[platform]` metadata and `src/platform_contract.sp` to validate that startup shape. Runtime support is currently specialized to package-backed `basic-cli`: imported `basic_cli.*` foreign functions route through the built-in basic-cli host profile, while generic `handles` enforcement and startup `spec` stacking are still follow-up work.
108+
Applications targeting `basic-cli` must implement the same startup function name/signature in their entry module. The current compiler already resolves the package's `[platform]` metadata and `src/platform_contract.sp` to validate that startup shape. Runtime support is currently specialized to package-backed `basic-cli`: imported `basic_cli.*` foreign functions route through the built-in basic-cli host profile, while generic `[platform].handled-effects` enforcement and startup `spec` stacking are still follow-up work.
109109

110110
`src/host.sp` remains as a compatibility copy of the adapter for older references; current manifest-backed projects use `src/platform_contract.sp`.
111111

@@ -138,7 +138,7 @@ Following Spore's [SEP-0003 (Effect Capability System)](https://github.com/spore
138138

139139
The canonical example is the **package-backed project-mode** `examples/hello-app/` application. It already validates and runs with `[project].platform = "basic-cli"`, an in-repo path dependency, and `import basic_cli.stdout`.
140140

141-
The standalone file example (`examples/hello.sp`) stays around for quick experiments. The main remaining platform gaps are generic `handles` enforcement, startup `spec` stacking, and lifting the runtime from its current explicit `basic-cli` host profile to a more general package-backed mechanism.
141+
The standalone file example (`examples/hello.sp`) stays around for quick experiments. The main remaining platform gaps are generic `[platform].handled-effects` enforcement, startup `spec` stacking, and lifting the runtime from its current explicit `basic-cli` host profile to a more general package-backed mechanism.
142142

143143
## License
144144

β€Žspore.tomlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ spore-version = ">=0.1.0"
88
contract-module = "platform_contract"
99
startup-contract = "main"
1010
adapter-function = "main_for_host"
11-
handles = ["Console", "FileRead", "FileWrite", "Env", "Spawn", "Exit"]
11+
handled-effects = ["Console", "FileRead", "FileWrite", "Env", "Spawn", "Exit"]
1212

1313
[capabilities]
1414
allow = ["Compute"]

0 commit comments

Comments
Β (0)