std.policies.* package scaffoldsspanda-policiesLibrary-shaped homeostasis_policy / attention_policy keywords are migrating to
@policy(kind: …). The inventory calls for package APIs under std.policies.* so programs can
import helpers without expanding core grammar. Without a package, the attribute form has no
registry home and evaluators stay undocumented relative to language surface.
Ship official package spanda-policies exporting:
std.policies.homeostasis — helpers aligned with HomeostasisPolicy::platform_defaultsstd.policies.attention — helpers aligned with feature-example attention rulesEvaluation remains in spanda-autonomy (CLI/API/Control Center). The package is a scaffold /
import surface only (same pattern as spanda-resilience).
Register import paths in spanda-package adapter + typecheck catalogs + std_namespaces type
names.
assurance.*std.policies.*; std prefix signals language migration.sdspanda-autonomy; violates non-duplication policyimport the preferred pathls packages/registrystd.policies.* is both std-namespace types and package modules — keep catalogs in sync@policy metrics/rules into autonomy evaluatorsspanda homeostasis|attention check --program + from_declared_* helperscontrol-center serve --program is set (policy_source in homeostasis/attention JSON)| Gate | Notes |
|---|---|
| Purpose | Migration path for library-shaped policies |
| Existing | Extends package registry + autonomy (no new evaluator) |
| Duplication | Avoided by not reimplementing evaluate/rank |
| Entity | Policies remain program decls; entity snapshots unchanged |
| Security | No new trust/authority surface |
| Non-regression | Additive imports; legacy keywords kept |
| Testability | tests/smoke.sd |
| Demonstrability | Feature examples + package README |
| Release | Workspace docs/package count only |
packages/registry/spanda-policies/