Global scope and named scope stack
Platform spec ADR
Global scope and named scope stack
Spec standingStandard
- Native dependency injection - Contracts and edge cases Lifetime rules, plural inject, host override, fail-closed guarantees, E17xx diagnostics.
- Native dependency injection - Design model host, registry, scope hierarchy, global scope, field inject, array inject, dispose, and launch.
- Native dependency injection - Examples Reference fixtures for hosts, plural inject, scope dispose, and library hosts.
- Native dependency injection - FAQ and troubleshooting Locked design decisions, troubleshooting, and v0.3 follow-ups.
- Native dependency injection - Flow and algorithm Host-chain merge, global scope, composition.resolve, plural inject lowering.
- Native dependency injection - Verification and traceability Tests, snapshot versioning, and implementation checklist.
0 revisions (git unavailable at build; counts may be empty)
No commits recorded for this path.
Full tree: run pnpm verify:platform-spec-layout (writes src/generated/platform-spec-layout-report.json).
Context
Section titled “Context”Authors need predictable scope boundaries for web and console activation patterns.
Decision
Section titled “Decision”| Construct | Rule |
|---|---|
| Global | Merged registry of the launched host after inheritance chain |
Named scope | Tree under global; per-activation unless single / transient |
| Stack | Fiber-local scope stack during with |
| Resolution | Walk innermost → global; global:: and parent:: qualifiers as specified |
Consequences
Section titled “Consequences”Execution backends maintain scope enter/leave with with; plural inject collects at lowest matching level.